Skip to content

Commit

Permalink
feat(client-socialmessaging): Added support for passing role arn corr…
Browse files Browse the repository at this point in the history
…esponding to the supported event destination
  • Loading branch information
awstools committed Dec 3, 2024
1 parent 94cd2b3 commit 75bd846
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export interface AssociateWhatsAppBusinessAccountCommandOutput
* eventDestinations: [ // WhatsAppBusinessAccountEventDestinations
* { // WhatsAppBusinessAccountEventDestination
* eventDestinationArn: "STRING_VALUE", // required
* roleArn: "STRING_VALUE",
* },
* ],
* tags: [
Expand Down Expand Up @@ -101,6 +102,7 @@ export interface AssociateWhatsAppBusinessAccountCommandOutput
* // qualityRating: "STRING_VALUE", // required
* // },
* // ],
* // wabaId: "STRING_VALUE",
* // },
* // },
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export interface GetLinkedWhatsAppBusinessAccountCommandOutput
* // eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
* // { // WhatsAppBusinessAccountEventDestination
* // eventDestinationArn: "STRING_VALUE", // required
* // roleArn: "STRING_VALUE",
* // },
* // ],
* // phoneNumbers: [ // WhatsAppPhoneNumberSummaryList // required
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface ListLinkedWhatsAppBusinessAccountsCommandOutput
* // eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
* // { // WhatsAppBusinessAccountEventDestination
* // eventDestinationArn: "STRING_VALUE", // required
* // roleArn: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export interface PutWhatsAppBusinessAccountEventDestinationsCommandOutput
* eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
* { // WhatsAppBusinessAccountEventDestination
* eventDestinationArn: "STRING_VALUE", // required
* roleArn: "STRING_VALUE",
* },
* ],
* };
Expand Down
13 changes: 13 additions & 0 deletions clients/client-socialmessaging/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,13 @@ export interface WhatsAppBusinessAccountEventDestination {
* @public
*/
eventDestinationArn: string | undefined;

/**
* <p>The Amazon Resource Name (ARN) of an Identity and Access Management role
* that is able to import phone numbers and write events.</p>
* @public
*/
roleArn?: string | undefined;
}

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

/**
* <p>The Amazon Resource Name (ARN) of the WhatsApp Business Account ID.</p>
* @public
*/
wabaId?: string | undefined;
}

/**
Expand Down
21 changes: 21 additions & 0 deletions codegen/sdk-codegen/aws-models/socialmessaging.json
Original file line number Diff line number Diff line change
Expand Up @@ -660,6 +660,12 @@
"traits": {
"smithy.api#documentation": "<p>The details for unregistered WhatsApp phone numbers.</p>"
}
},
"wabaId": {
"target": "com.amazonaws.socialmessaging#LinkedWhatsAppBusinessAccountId",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the WhatsApp Business Account ID.</p>"
}
}
},
"traits": {
Expand Down Expand Up @@ -1091,6 +1097,9 @@
}
],
"traits": {
"aws.iam#iamAction": {
"requiredActions": ["iam:PassRole"]
},
"smithy.api#documentation": "<p>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.</p>",
"smithy.api#http": {
"method": "PUT",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -2362,6 +2377,12 @@
"smithy.api#documentation": "<p>The ARN of the event destination.</p>",
"smithy.api#required": {}
}
},
"roleArn": {
"target": "com.amazonaws.socialmessaging#RoleArn",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of an Identity and Access Management role\n that is able to import phone numbers and write events.</p>"
}
}
},
"traits": {
Expand Down

0 comments on commit 75bd846

Please sign in to comment.