diff --git a/clients/client-socialmessaging/src/commands/AssociateWhatsAppBusinessAccountCommand.ts b/clients/client-socialmessaging/src/commands/AssociateWhatsAppBusinessAccountCommand.ts index 81dea745cf6a..e413f3e32ca0 100644 --- a/clients/client-socialmessaging/src/commands/AssociateWhatsAppBusinessAccountCommand.ts +++ b/clients/client-socialmessaging/src/commands/AssociateWhatsAppBusinessAccountCommand.ts @@ -70,6 +70,7 @@ export interface AssociateWhatsAppBusinessAccountCommandOutput * eventDestinations: [ // WhatsAppBusinessAccountEventDestinations * { // WhatsAppBusinessAccountEventDestination * eventDestinationArn: "STRING_VALUE", // required + * roleArn: "STRING_VALUE", * }, * ], * tags: [ @@ -101,6 +102,7 @@ export interface AssociateWhatsAppBusinessAccountCommandOutput * // qualityRating: "STRING_VALUE", // required * // }, * // ], + * // wabaId: "STRING_VALUE", * // }, * // }, * // }, diff --git a/clients/client-socialmessaging/src/commands/GetLinkedWhatsAppBusinessAccountCommand.ts b/clients/client-socialmessaging/src/commands/GetLinkedWhatsAppBusinessAccountCommand.ts index a4bd9ded1b59..85b28ad227a5 100644 --- a/clients/client-socialmessaging/src/commands/GetLinkedWhatsAppBusinessAccountCommand.ts +++ b/clients/client-socialmessaging/src/commands/GetLinkedWhatsAppBusinessAccountCommand.ts @@ -56,6 +56,7 @@ export interface GetLinkedWhatsAppBusinessAccountCommandOutput * // eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required * // { // WhatsAppBusinessAccountEventDestination * // eventDestinationArn: "STRING_VALUE", // required + * // roleArn: "STRING_VALUE", * // }, * // ], * // phoneNumbers: [ // WhatsAppPhoneNumberSummaryList // required diff --git a/clients/client-socialmessaging/src/commands/ListLinkedWhatsAppBusinessAccountsCommand.ts b/clients/client-socialmessaging/src/commands/ListLinkedWhatsAppBusinessAccountsCommand.ts index 552062f97d94..73cf61377f64 100644 --- a/clients/client-socialmessaging/src/commands/ListLinkedWhatsAppBusinessAccountsCommand.ts +++ b/clients/client-socialmessaging/src/commands/ListLinkedWhatsAppBusinessAccountsCommand.ts @@ -58,6 +58,7 @@ export interface ListLinkedWhatsAppBusinessAccountsCommandOutput * // eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required * // { // WhatsAppBusinessAccountEventDestination * // eventDestinationArn: "STRING_VALUE", // required + * // roleArn: "STRING_VALUE", * // }, * // ], * // }, diff --git a/clients/client-socialmessaging/src/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.ts b/clients/client-socialmessaging/src/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.ts index 4db83bf1e831..f56812f329c1 100644 --- a/clients/client-socialmessaging/src/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.ts +++ b/clients/client-socialmessaging/src/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.ts @@ -49,6 +49,7 @@ export interface PutWhatsAppBusinessAccountEventDestinationsCommandOutput * eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required * { // WhatsAppBusinessAccountEventDestination * eventDestinationArn: "STRING_VALUE", // required + * roleArn: "STRING_VALUE", * }, * ], * }; diff --git a/clients/client-socialmessaging/src/models/models_0.ts b/clients/client-socialmessaging/src/models/models_0.ts index b5ec527259f0..f7b7ce238dc8 100644 --- a/clients/client-socialmessaging/src/models/models_0.ts +++ b/clients/client-socialmessaging/src/models/models_0.ts @@ -188,6 +188,13 @@ export interface WhatsAppBusinessAccountEventDestination { * @public */ eventDestinationArn: string | undefined; + + /** + *

The Amazon Resource Name (ARN) of an Identity and Access Management role + * that is able to import phone numbers and write events.

+ * @public + */ + roleArn?: string | undefined; } /** @@ -358,6 +365,12 @@ export interface LinkedWhatsAppBusinessAccountIdMetaData { * @public */ unregisteredWhatsAppPhoneNumbers?: WhatsAppPhoneNumberDetail[] | undefined; + + /** + *

The Amazon Resource Name (ARN) of the WhatsApp Business Account ID.

+ * @public + */ + wabaId?: string | undefined; } /** diff --git a/codegen/sdk-codegen/aws-models/socialmessaging.json b/codegen/sdk-codegen/aws-models/socialmessaging.json index 7dd6a36ce7b4..e51b7287954d 100644 --- a/codegen/sdk-codegen/aws-models/socialmessaging.json +++ b/codegen/sdk-codegen/aws-models/socialmessaging.json @@ -660,6 +660,12 @@ "traits": { "smithy.api#documentation": "

The details for unregistered WhatsApp phone numbers.

" } + }, + "wabaId": { + "target": "com.amazonaws.socialmessaging#LinkedWhatsAppBusinessAccountId", + "traits": { + "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the WhatsApp Business Account ID.

" + } } }, "traits": { @@ -1091,6 +1097,9 @@ } ], "traits": { + "aws.iam#iamAction": { + "requiredActions": ["iam:PassRole"] + }, "smithy.api#documentation": "

Add an event destination to log event data from WhatsApp for a WhatsApp Business Account (WABA). A WABA can only have one event destination at a time. All resources associated with the WABA use the same event destination.

", "smithy.api#http": { "method": "PUT", @@ -1160,6 +1169,12 @@ "smithy.api#httpError": 404 } }, + "com.amazonaws.socialmessaging#RoleArn": { + "type": "string", + "traits": { + "smithy.api#pattern": "^arn:aws:iam::\\d{12}:role\\/[a-zA-Z0-9+=,.@\\-_]+$" + } + }, "com.amazonaws.socialmessaging#S3File": { "type": "structure", "members": { @@ -2362,6 +2377,12 @@ "smithy.api#documentation": "

The ARN of the event destination.

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

The Amazon Resource Name (ARN) of an Identity and Access Management role\n that is able to import phone numbers and write events.

" + } } }, "traits": {