Skip to content

Commit 75bd846

Browse files
author
awstools
committed
feat(client-socialmessaging): Added support for passing role arn corresponding to the supported event destination
1 parent 94cd2b3 commit 75bd846

6 files changed

+39
-0
lines changed

Diff for: clients/client-socialmessaging/src/commands/AssociateWhatsAppBusinessAccountCommand.ts

+2
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export interface AssociateWhatsAppBusinessAccountCommandOutput
7070
* eventDestinations: [ // WhatsAppBusinessAccountEventDestinations
7171
* { // WhatsAppBusinessAccountEventDestination
7272
* eventDestinationArn: "STRING_VALUE", // required
73+
* roleArn: "STRING_VALUE",
7374
* },
7475
* ],
7576
* tags: [
@@ -101,6 +102,7 @@ export interface AssociateWhatsAppBusinessAccountCommandOutput
101102
* // qualityRating: "STRING_VALUE", // required
102103
* // },
103104
* // ],
105+
* // wabaId: "STRING_VALUE",
104106
* // },
105107
* // },
106108
* // },

Diff for: clients/client-socialmessaging/src/commands/GetLinkedWhatsAppBusinessAccountCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface GetLinkedWhatsAppBusinessAccountCommandOutput
5656
* // eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
5757
* // { // WhatsAppBusinessAccountEventDestination
5858
* // eventDestinationArn: "STRING_VALUE", // required
59+
* // roleArn: "STRING_VALUE",
5960
* // },
6061
* // ],
6162
* // phoneNumbers: [ // WhatsAppPhoneNumberSummaryList // required

Diff for: clients/client-socialmessaging/src/commands/ListLinkedWhatsAppBusinessAccountsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ export interface ListLinkedWhatsAppBusinessAccountsCommandOutput
5858
* // eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
5959
* // { // WhatsAppBusinessAccountEventDestination
6060
* // eventDestinationArn: "STRING_VALUE", // required
61+
* // roleArn: "STRING_VALUE",
6162
* // },
6263
* // ],
6364
* // },

Diff for: clients/client-socialmessaging/src/commands/PutWhatsAppBusinessAccountEventDestinationsCommand.ts

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export interface PutWhatsAppBusinessAccountEventDestinationsCommandOutput
4949
* eventDestinations: [ // WhatsAppBusinessAccountEventDestinations // required
5050
* { // WhatsAppBusinessAccountEventDestination
5151
* eventDestinationArn: "STRING_VALUE", // required
52+
* roleArn: "STRING_VALUE",
5253
* },
5354
* ],
5455
* };

Diff for: clients/client-socialmessaging/src/models/models_0.ts

+13
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ export interface WhatsAppBusinessAccountEventDestination {
188188
* @public
189189
*/
190190
eventDestinationArn: string | undefined;
191+
192+
/**
193+
* <p>The Amazon Resource Name (ARN) of an Identity and Access Management role
194+
* that is able to import phone numbers and write events.</p>
195+
* @public
196+
*/
197+
roleArn?: string | undefined;
191198
}
192199

193200
/**
@@ -358,6 +365,12 @@ export interface LinkedWhatsAppBusinessAccountIdMetaData {
358365
* @public
359366
*/
360367
unregisteredWhatsAppPhoneNumbers?: WhatsAppPhoneNumberDetail[] | undefined;
368+
369+
/**
370+
* <p>The Amazon Resource Name (ARN) of the WhatsApp Business Account ID.</p>
371+
* @public
372+
*/
373+
wabaId?: string | undefined;
361374
}
362375

363376
/**

Diff for: codegen/sdk-codegen/aws-models/socialmessaging.json

+21
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,12 @@
660660
"traits": {
661661
"smithy.api#documentation": "<p>The details for unregistered WhatsApp phone numbers.</p>"
662662
}
663+
},
664+
"wabaId": {
665+
"target": "com.amazonaws.socialmessaging#LinkedWhatsAppBusinessAccountId",
666+
"traits": {
667+
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the WhatsApp Business Account ID.</p>"
668+
}
663669
}
664670
},
665671
"traits": {
@@ -1091,6 +1097,9 @@
10911097
}
10921098
],
10931099
"traits": {
1100+
"aws.iam#iamAction": {
1101+
"requiredActions": ["iam:PassRole"]
1102+
},
10941103
"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>",
10951104
"smithy.api#http": {
10961105
"method": "PUT",
@@ -1160,6 +1169,12 @@
11601169
"smithy.api#httpError": 404
11611170
}
11621171
},
1172+
"com.amazonaws.socialmessaging#RoleArn": {
1173+
"type": "string",
1174+
"traits": {
1175+
"smithy.api#pattern": "^arn:aws:iam::\\d{12}:role\\/[a-zA-Z0-9+=,.@\\-_]+$"
1176+
}
1177+
},
11631178
"com.amazonaws.socialmessaging#S3File": {
11641179
"type": "structure",
11651180
"members": {
@@ -2362,6 +2377,12 @@
23622377
"smithy.api#documentation": "<p>The ARN of the event destination.</p>",
23632378
"smithy.api#required": {}
23642379
}
2380+
},
2381+
"roleArn": {
2382+
"target": "com.amazonaws.socialmessaging#RoleArn",
2383+
"traits": {
2384+
"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>"
2385+
}
23652386
}
23662387
},
23672388
"traits": {

0 commit comments

Comments
 (0)