From 607ec0a76c9cee19c69cd2a39efeec44e0f64595 Mon Sep 17 00:00:00 2001 From: awstools Date: Fri, 27 Sep 2024 18:43:00 +0000 Subject: [PATCH] feat(client-customer-profiles): Introduces optional RoleArn parameter for PutIntegration request and includes RoleArn in the response of PutIntegration, GetIntegration and ListIntegrations --- clients/client-customer-profiles/README.md | 12 ++++++++ .../src/CustomerProfiles.ts | 12 ++++++++ .../src/CustomerProfilesClient.ts | 12 ++++++++ .../src/commands/GetIntegrationCommand.ts | 1 + .../ListAccountIntegrationsCommand.ts | 1 + .../src/commands/ListIntegrationsCommand.ts | 1 + .../src/commands/PutIntegrationCommand.ts | 2 ++ clients/client-customer-profiles/src/index.ts | 12 ++++++++ .../src/models/models_0.ts | 28 +++++++++++++++++++ .../src/protocols/Aws_restJson1.ts | 4 +++ .../aws-models/customer-profiles.json | 26 ++++++++++++++++- 11 files changed, 110 insertions(+), 1 deletion(-) diff --git a/clients/client-customer-profiles/README.md b/clients/client-customer-profiles/README.md index 602223f6c108..0866960ed182 100644 --- a/clients/client-customer-profiles/README.md +++ b/clients/client-customer-profiles/README.md @@ -8,6 +8,18 @@ AWS SDK for JavaScript CustomerProfiles Client for Node.js, Browser and React Na Amazon Connect Customer Profiles +

Amazon Connect Customer Profiles is a unified customer profile for your contact center that has pre-built connectors powered by AppFlow that make it easy to combine customer information from third party applications, such as Salesforce (CRM), ServiceNow diff --git a/clients/client-customer-profiles/src/CustomerProfiles.ts b/clients/client-customer-profiles/src/CustomerProfiles.ts index 68df6c36b6b9..bccbe378933d 100644 --- a/clients/client-customer-profiles/src/CustomerProfiles.ts +++ b/clients/client-customer-profiles/src/CustomerProfiles.ts @@ -1084,6 +1084,18 @@ export interface CustomerProfiles { /** * Amazon Connect Customer Profiles + *

*

Amazon Connect Customer Profiles is a unified customer profile for your contact * center that has pre-built connectors powered by AppFlow that make it easy to combine * customer information from third party applications, such as Salesforce (CRM), ServiceNow diff --git a/clients/client-customer-profiles/src/CustomerProfilesClient.ts b/clients/client-customer-profiles/src/CustomerProfilesClient.ts index 0ecbea3f2d58..07db0f0e6709 100644 --- a/clients/client-customer-profiles/src/CustomerProfilesClient.ts +++ b/clients/client-customer-profiles/src/CustomerProfilesClient.ts @@ -469,6 +469,18 @@ export interface CustomerProfilesClientResolvedConfig extends CustomerProfilesCl /** * Amazon Connect Customer Profiles + *

*

Amazon Connect Customer Profiles is a unified customer profile for your contact * center that has pre-built connectors powered by AppFlow that make it easy to combine * customer information from third party applications, such as Salesforce (CRM), ServiceNow diff --git a/clients/client-customer-profiles/src/commands/GetIntegrationCommand.ts b/clients/client-customer-profiles/src/commands/GetIntegrationCommand.ts index 54afa45b078a..9cd7645f1cb1 100644 --- a/clients/client-customer-profiles/src/commands/GetIntegrationCommand.ts +++ b/clients/client-customer-profiles/src/commands/GetIntegrationCommand.ts @@ -55,6 +55,7 @@ export interface GetIntegrationCommandOutput extends GetIntegrationResponse, __M * // }, * // WorkflowId: "STRING_VALUE", * // IsUnstructured: true || false, + * // RoleArn: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-customer-profiles/src/commands/ListAccountIntegrationsCommand.ts b/clients/client-customer-profiles/src/commands/ListAccountIntegrationsCommand.ts index 5d7726220fc6..4df4bac1124d 100644 --- a/clients/client-customer-profiles/src/commands/ListAccountIntegrationsCommand.ts +++ b/clients/client-customer-profiles/src/commands/ListAccountIntegrationsCommand.ts @@ -59,6 +59,7 @@ export interface ListAccountIntegrationsCommandOutput extends ListAccountIntegra * // }, * // WorkflowId: "STRING_VALUE", * // IsUnstructured: true || false, + * // RoleArn: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-customer-profiles/src/commands/ListIntegrationsCommand.ts b/clients/client-customer-profiles/src/commands/ListIntegrationsCommand.ts index 500cd88a9e95..d9f1f64be81c 100644 --- a/clients/client-customer-profiles/src/commands/ListIntegrationsCommand.ts +++ b/clients/client-customer-profiles/src/commands/ListIntegrationsCommand.ts @@ -59,6 +59,7 @@ export interface ListIntegrationsCommandOutput extends ListIntegrationsResponse, * // }, * // WorkflowId: "STRING_VALUE", * // IsUnstructured: true || false, + * // RoleArn: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", diff --git a/clients/client-customer-profiles/src/commands/PutIntegrationCommand.ts b/clients/client-customer-profiles/src/commands/PutIntegrationCommand.ts index 518e640010d7..1dd8894e2752 100644 --- a/clients/client-customer-profiles/src/commands/PutIntegrationCommand.ts +++ b/clients/client-customer-profiles/src/commands/PutIntegrationCommand.ts @@ -119,6 +119,7 @@ export interface PutIntegrationCommandOutput extends PutIntegrationResponse, __M * ObjectTypeNames: { // ObjectTypeNames * "": "STRING_VALUE", * }, + * RoleArn: "STRING_VALUE", * }; * const command = new PutIntegrationCommand(input); * const response = await client.send(command); @@ -136,6 +137,7 @@ export interface PutIntegrationCommandOutput extends PutIntegrationResponse, __M * // }, * // WorkflowId: "STRING_VALUE", * // IsUnstructured: true || false, + * // RoleArn: "STRING_VALUE", * // }; * * ``` diff --git a/clients/client-customer-profiles/src/index.ts b/clients/client-customer-profiles/src/index.ts index 0fa7afca5459..028df9e613e3 100644 --- a/clients/client-customer-profiles/src/index.ts +++ b/clients/client-customer-profiles/src/index.ts @@ -2,6 +2,18 @@ /* eslint-disable */ /** * Amazon Connect Customer Profiles + *

*

Amazon Connect Customer Profiles is a unified customer profile for your contact * center that has pre-built connectors powered by AppFlow that make it easy to combine * customer information from third party applications, such as Salesforce (CRM), ServiceNow diff --git a/clients/client-customer-profiles/src/models/models_0.ts b/clients/client-customer-profiles/src/models/models_0.ts index 9ae19f653d54..90b0750ddd9b 100644 --- a/clients/client-customer-profiles/src/models/models_0.ts +++ b/clients/client-customer-profiles/src/models/models_0.ts @@ -3515,6 +3515,13 @@ export interface GetIntegrationResponse { * @public */ IsUnstructured?: boolean; + + /** + *

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make + * Customer Profiles requests on your behalf.

+ * @public + */ + RoleArn?: string; } /** @@ -4134,6 +4141,13 @@ export interface ListIntegrationItem { * @public */ IsUnstructured?: boolean; + + /** + *

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make + * Customer Profiles requests on your behalf.

+ * @public + */ + RoleArn?: string; } /** @@ -5236,6 +5250,13 @@ export interface PutIntegrationRequest { * @public */ ObjectTypeNames?: Record; + + /** + *

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make + * Customer Profiles requests on your behalf.

+ * @public + */ + RoleArn?: string; } /** @@ -5299,6 +5320,13 @@ export interface PutIntegrationResponse { * @public */ IsUnstructured?: boolean; + + /** + *

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make + * Customer Profiles requests on your behalf.

+ * @public + */ + RoleArn?: string; } /** diff --git a/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts b/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts index c9a8f598c5c2..2bdbd2d69e7d 100644 --- a/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts +++ b/clients/client-customer-profiles/src/protocols/Aws_restJson1.ts @@ -1170,6 +1170,7 @@ export const se_PutIntegrationCommand = async ( FlowDefinition: (_) => se_FlowDefinition(_, context), ObjectTypeName: [], ObjectTypeNames: (_) => _json(_), + RoleArn: [], Tags: (_) => _json(_), Uri: [], }) @@ -1936,6 +1937,7 @@ export const de_GetIntegrationCommand = async ( LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), ObjectTypeName: __expectString, ObjectTypeNames: _json, + RoleArn: __expectString, Tags: _json, Uri: __expectString, WorkflowId: __expectString, @@ -2434,6 +2436,7 @@ export const de_PutIntegrationCommand = async ( LastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), ObjectTypeName: __expectString, ObjectTypeNames: _json, + RoleArn: __expectString, Tags: _json, Uri: __expectString, WorkflowId: __expectString, @@ -3223,6 +3226,7 @@ const de_ListIntegrationItem = (output: any, context: __SerdeContext): ListInteg LastUpdatedAt: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), ObjectTypeName: __expectString, ObjectTypeNames: _json, + RoleArn: __expectString, Tags: _json, Uri: __expectString, WorkflowId: __expectString, diff --git a/codegen/sdk-codegen/aws-models/customer-profiles.json b/codegen/sdk-codegen/aws-models/customer-profiles.json index d95e65512abb..48659c6541b1 100644 --- a/codegen/sdk-codegen/aws-models/customer-profiles.json +++ b/codegen/sdk-codegen/aws-models/customer-profiles.json @@ -1624,7 +1624,7 @@ "name": "profile" }, "aws.protocols#restJson1": {}, - "smithy.api#documentation": "Amazon Connect Customer Profiles\n

Amazon Connect Customer Profiles is a unified customer profile for your contact\n center that has pre-built connectors powered by AppFlow that make it easy to combine\n customer information from third party applications, such as Salesforce (CRM), ServiceNow\n (ITSM), and your enterprise resource planning (ERP), with contact history from your Amazon Connect contact center.

\n

For more information about the Amazon Connect Customer Profiles feature, see Use Customer\n Profiles in the Amazon Connect Administrator's Guide.

", + "smithy.api#documentation": "Amazon Connect Customer Profiles\n \n

Amazon Connect Customer Profiles is a unified customer profile for your contact\n center that has pre-built connectors powered by AppFlow that make it easy to combine\n customer information from third party applications, such as Salesforce (CRM), ServiceNow\n (ITSM), and your enterprise resource planning (ERP), with contact history from your Amazon Connect contact center.

\n

For more information about the Amazon Connect Customer Profiles feature, see Use Customer\n Profiles in the Amazon Connect Administrator's Guide.

", "smithy.api#title": "Amazon Connect Customer Profiles", "smithy.rules#endpointRuleSet": { "version": "1.0", @@ -4524,6 +4524,12 @@ "traits": { "smithy.api#documentation": "

Boolean that shows if the Flow that's associated with the Integration is created in\n Amazon Appflow, or with ObjectTypeName equals _unstructured via API/CLI in\n flowDefinition.

" } + }, + "RoleArn": { + "target": "com.amazonaws.customerprofiles#RoleArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make\n Customer Profiles requests on your behalf.

" + } } }, "traits": { @@ -6200,6 +6206,12 @@ "traits": { "smithy.api#documentation": "

Boolean that shows if the Flow that's associated with the Integration is created in\n Amazon Appflow, or with ObjectTypeName equals _unstructured via API/CLI in\n flowDefinition.

" } + }, + "RoleArn": { + "target": "com.amazonaws.customerprofiles#RoleArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make\n Customer Profiles requests on your behalf.

" + } } }, "traits": { @@ -7922,6 +7934,12 @@ "traits": { "smithy.api#documentation": "

A map in which each key is an event type from an external application such as Segment or Shopify, and each value is an ObjectTypeName (template) used to ingest the event.\nIt supports the following event types: SegmentIdentify, ShopifyCreateCustomers, ShopifyUpdateCustomers, ShopifyCreateDraftOrders, \nShopifyUpdateDraftOrders, ShopifyCreateOrders, and ShopifyUpdatedOrders.

" } + }, + "RoleArn": { + "target": "com.amazonaws.customerprofiles#RoleArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make\n Customer Profiles requests on your behalf.

" + } } }, "traits": { @@ -7988,6 +8006,12 @@ "traits": { "smithy.api#documentation": "

Boolean that shows if the Flow that's associated with the Integration is created in\n Amazon Appflow, or with ObjectTypeName equals _unstructured via API/CLI in\n flowDefinition.

" } + }, + "RoleArn": { + "target": "com.amazonaws.customerprofiles#RoleArn", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the IAM role. The Integration uses this role to make\n Customer Profiles requests on your behalf.

" + } } }, "traits": {