From 678f17d82335dbe3dc5e01812ffdee5fc800fe54 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 18 Oct 2024 18:15:04 +0000 Subject: [PATCH] feat(client-datazone): Adding the following project member designations: PROJECT_CATALOG_VIEWER, PROJECT_CATALOG_CONSUMER and PROJECT_CATALOG_STEWARD in the CreateProjectMembership API and PROJECT_CATALOG_STEWARD designation in the AddPolicyGrant API. --- .../src/commands/AddPolicyGrantCommand.ts | 2 +- .../CreateProjectMembershipCommand.ts | 2 +- .../src/commands/ListPolicyGrantsCommand.ts | 2 +- .../commands/ListProjectMembershipsCommand.ts | 2 +- .../src/commands/RemovePolicyGrantCommand.ts | 2 +- .../client-datazone/src/models/models_0.ts | 4 ++++ codegen/sdk-codegen/aws-models/datazone.json | 24 +++++++++++++++++++ 7 files changed, 33 insertions(+), 5 deletions(-) diff --git a/clients/client-datazone/src/commands/AddPolicyGrantCommand.ts b/clients/client-datazone/src/commands/AddPolicyGrantCommand.ts index 111e63c9c68c..a986741d8209 100644 --- a/clients/client-datazone/src/commands/AddPolicyGrantCommand.ts +++ b/clients/client-datazone/src/commands/AddPolicyGrantCommand.ts @@ -50,7 +50,7 @@ export interface AddPolicyGrantCommandOutput extends AddPolicyGrantOutput, __Met * groupIdentifier: "STRING_VALUE", * }, * project: { // ProjectPolicyGrantPrincipal - * projectDesignation: "OWNER" || "CONTRIBUTOR", // required + * projectDesignation: "OWNER" || "CONTRIBUTOR" || "PROJECT_CATALOG_STEWARD", // required * projectIdentifier: "STRING_VALUE", * projectGrantFilter: { // ProjectGrantFilter Union: only one key present * domainUnitFilter: { // DomainUnitFilterForProject diff --git a/clients/client-datazone/src/commands/CreateProjectMembershipCommand.ts b/clients/client-datazone/src/commands/CreateProjectMembershipCommand.ts index 6c5304350c31..3c61eda25395 100644 --- a/clients/client-datazone/src/commands/CreateProjectMembershipCommand.ts +++ b/clients/client-datazone/src/commands/CreateProjectMembershipCommand.ts @@ -42,7 +42,7 @@ export interface CreateProjectMembershipCommandOutput extends CreateProjectMembe * userIdentifier: "STRING_VALUE", * groupIdentifier: "STRING_VALUE", * }, - * designation: "PROJECT_OWNER" || "PROJECT_CONTRIBUTOR", // required + * designation: "PROJECT_OWNER" || "PROJECT_CONTRIBUTOR" || "PROJECT_CATALOG_VIEWER" || "PROJECT_CATALOG_CONSUMER" || "PROJECT_CATALOG_STEWARD", // required * }; * const command = new CreateProjectMembershipCommand(input); * const response = await client.send(command); diff --git a/clients/client-datazone/src/commands/ListPolicyGrantsCommand.ts b/clients/client-datazone/src/commands/ListPolicyGrantsCommand.ts index 47ddb63fee85..e43d0740af04 100644 --- a/clients/client-datazone/src/commands/ListPolicyGrantsCommand.ts +++ b/clients/client-datazone/src/commands/ListPolicyGrantsCommand.ts @@ -57,7 +57,7 @@ export interface ListPolicyGrantsCommandOutput extends ListPolicyGrantsOutput, _ * // groupIdentifier: "STRING_VALUE", * // }, * // project: { // ProjectPolicyGrantPrincipal - * // projectDesignation: "OWNER" || "CONTRIBUTOR", // required + * // projectDesignation: "OWNER" || "CONTRIBUTOR" || "PROJECT_CATALOG_STEWARD", // required * // projectIdentifier: "STRING_VALUE", * // projectGrantFilter: { // ProjectGrantFilter Union: only one key present * // domainUnitFilter: { // DomainUnitFilterForProject diff --git a/clients/client-datazone/src/commands/ListProjectMembershipsCommand.ts b/clients/client-datazone/src/commands/ListProjectMembershipsCommand.ts index 0b4bfebc2544..10bfb420fa19 100644 --- a/clients/client-datazone/src/commands/ListProjectMembershipsCommand.ts +++ b/clients/client-datazone/src/commands/ListProjectMembershipsCommand.ts @@ -56,7 +56,7 @@ export interface ListProjectMembershipsCommandOutput extends ListProjectMembersh * // groupId: "STRING_VALUE", // required * // }, * // }, - * // designation: "PROJECT_OWNER" || "PROJECT_CONTRIBUTOR", // required + * // designation: "PROJECT_OWNER" || "PROJECT_CONTRIBUTOR" || "PROJECT_CATALOG_VIEWER" || "PROJECT_CATALOG_CONSUMER" || "PROJECT_CATALOG_STEWARD", // required * // }, * // ], * // nextToken: "STRING_VALUE", diff --git a/clients/client-datazone/src/commands/RemovePolicyGrantCommand.ts b/clients/client-datazone/src/commands/RemovePolicyGrantCommand.ts index a5658123dda1..0a360cca9454 100644 --- a/clients/client-datazone/src/commands/RemovePolicyGrantCommand.ts +++ b/clients/client-datazone/src/commands/RemovePolicyGrantCommand.ts @@ -49,7 +49,7 @@ export interface RemovePolicyGrantCommandOutput extends RemovePolicyGrantOutput, * groupIdentifier: "STRING_VALUE", * }, * project: { // ProjectPolicyGrantPrincipal - * projectDesignation: "OWNER" || "CONTRIBUTOR", // required + * projectDesignation: "OWNER" || "CONTRIBUTOR" || "PROJECT_CATALOG_STEWARD", // required * projectIdentifier: "STRING_VALUE", * projectGrantFilter: { // ProjectGrantFilter Union: only one key present * domainUnitFilter: { // DomainUnitFilterForProject diff --git a/clients/client-datazone/src/models/models_0.ts b/clients/client-datazone/src/models/models_0.ts index d09960292e03..1554c01b3db7 100644 --- a/clients/client-datazone/src/models/models_0.ts +++ b/clients/client-datazone/src/models/models_0.ts @@ -1502,6 +1502,7 @@ export namespace GroupPolicyGrantPrincipal { export const ProjectDesignation = { CONTRIBUTOR: "CONTRIBUTOR", OWNER: "OWNER", + PROJECT_CATALOG_STEWARD: "PROJECT_CATALOG_STEWARD", } as const; /** @@ -6913,6 +6914,9 @@ export interface CreateProjectOutput { * @enum */ export const UserDesignation = { + PROJECT_CATALOG_CONSUMER: "PROJECT_CATALOG_CONSUMER", + PROJECT_CATALOG_STEWARD: "PROJECT_CATALOG_STEWARD", + PROJECT_CATALOG_VIEWER: "PROJECT_CATALOG_VIEWER", PROJECT_CONTRIBUTOR: "PROJECT_CONTRIBUTOR", PROJECT_OWNER: "PROJECT_OWNER", } as const; diff --git a/codegen/sdk-codegen/aws-models/datazone.json b/codegen/sdk-codegen/aws-models/datazone.json index ebe2c2864ac9..3d632465a416 100644 --- a/codegen/sdk-codegen/aws-models/datazone.json +++ b/codegen/sdk-codegen/aws-models/datazone.json @@ -21289,6 +21289,12 @@ "traits": { "smithy.api#enumValue": "CONTRIBUTOR" } + }, + "PROJECT_CATALOG_STEWARD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PROJECT_CATALOG_STEWARD" + } } } }, @@ -28599,6 +28605,24 @@ "traits": { "smithy.api#enumValue": "PROJECT_CONTRIBUTOR" } + }, + "PROJECT_CATALOG_VIEWER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PROJECT_CATALOG_VIEWER" + } + }, + "PROJECT_CATALOG_CONSUMER": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PROJECT_CATALOG_CONSUMER" + } + }, + "PROJECT_CATALOG_STEWARD": { + "target": "smithy.api#Unit", + "traits": { + "smithy.api#enumValue": "PROJECT_CATALOG_STEWARD" + } } } },