aws-sdk-socialmessaging 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,541 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::SocialMessaging
12
+ # @api private
13
+ module ClientApi
14
+
15
+ include Seahorse::Model
16
+
17
+ AccessDeniedByMetaException = Shapes::StructureShape.new(name: 'AccessDeniedByMetaException')
18
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
19
+ Arn = Shapes::StringShape.new(name: 'Arn')
20
+ AssociateInProgressToken = Shapes::StringShape.new(name: 'AssociateInProgressToken')
21
+ AssociateWhatsAppBusinessAccountInput = Shapes::StructureShape.new(name: 'AssociateWhatsAppBusinessAccountInput')
22
+ AssociateWhatsAppBusinessAccountOutput = Shapes::StructureShape.new(name: 'AssociateWhatsAppBusinessAccountOutput')
23
+ Boolean = Shapes::BooleanShape.new(name: 'Boolean')
24
+ DeleteWhatsAppMessageMediaInput = Shapes::StructureShape.new(name: 'DeleteWhatsAppMessageMediaInput')
25
+ DeleteWhatsAppMessageMediaOutput = Shapes::StructureShape.new(name: 'DeleteWhatsAppMessageMediaOutput')
26
+ DependencyException = Shapes::StructureShape.new(name: 'DependencyException')
27
+ DisassociateWhatsAppBusinessAccountInput = Shapes::StructureShape.new(name: 'DisassociateWhatsAppBusinessAccountInput')
28
+ DisassociateWhatsAppBusinessAccountOutput = Shapes::StructureShape.new(name: 'DisassociateWhatsAppBusinessAccountOutput')
29
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
30
+ EventDestinationArn = Shapes::StringShape.new(name: 'EventDestinationArn')
31
+ GetLinkedWhatsAppBusinessAccountInput = Shapes::StructureShape.new(name: 'GetLinkedWhatsAppBusinessAccountInput')
32
+ GetLinkedWhatsAppBusinessAccountOutput = Shapes::StructureShape.new(name: 'GetLinkedWhatsAppBusinessAccountOutput')
33
+ GetLinkedWhatsAppBusinessAccountPhoneNumberInput = Shapes::StructureShape.new(name: 'GetLinkedWhatsAppBusinessAccountPhoneNumberInput')
34
+ GetLinkedWhatsAppBusinessAccountPhoneNumberOutput = Shapes::StructureShape.new(name: 'GetLinkedWhatsAppBusinessAccountPhoneNumberOutput')
35
+ GetWhatsAppMessageMediaInput = Shapes::StructureShape.new(name: 'GetWhatsAppMessageMediaInput')
36
+ GetWhatsAppMessageMediaOutput = Shapes::StructureShape.new(name: 'GetWhatsAppMessageMediaOutput')
37
+ Headers = Shapes::MapShape.new(name: 'Headers')
38
+ Integer = Shapes::IntegerShape.new(name: 'Integer')
39
+ InternalServiceException = Shapes::StructureShape.new(name: 'InternalServiceException')
40
+ InvalidParametersException = Shapes::StructureShape.new(name: 'InvalidParametersException')
41
+ IsoCountryCode = Shapes::StringShape.new(name: 'IsoCountryCode')
42
+ LinkedAccountWithIncompleteSetup = Shapes::MapShape.new(name: 'LinkedAccountWithIncompleteSetup')
43
+ LinkedWhatsAppBusinessAccount = Shapes::StructureShape.new(name: 'LinkedWhatsAppBusinessAccount')
44
+ LinkedWhatsAppBusinessAccountArn = Shapes::StringShape.new(name: 'LinkedWhatsAppBusinessAccountArn')
45
+ LinkedWhatsAppBusinessAccountId = Shapes::StringShape.new(name: 'LinkedWhatsAppBusinessAccountId')
46
+ LinkedWhatsAppBusinessAccountIdMetaData = Shapes::StructureShape.new(name: 'LinkedWhatsAppBusinessAccountIdMetaData')
47
+ LinkedWhatsAppBusinessAccountSummary = Shapes::StructureShape.new(name: 'LinkedWhatsAppBusinessAccountSummary')
48
+ LinkedWhatsAppBusinessAccountSummaryList = Shapes::ListShape.new(name: 'LinkedWhatsAppBusinessAccountSummaryList')
49
+ LinkedWhatsAppPhoneNumberArn = Shapes::StringShape.new(name: 'LinkedWhatsAppPhoneNumberArn')
50
+ ListLinkedWhatsAppBusinessAccountsInput = Shapes::StructureShape.new(name: 'ListLinkedWhatsAppBusinessAccountsInput')
51
+ ListLinkedWhatsAppBusinessAccountsOutput = Shapes::StructureShape.new(name: 'ListLinkedWhatsAppBusinessAccountsOutput')
52
+ ListTagsForResourceInput = Shapes::StructureShape.new(name: 'ListTagsForResourceInput')
53
+ ListTagsForResourceOutput = Shapes::StructureShape.new(name: 'ListTagsForResourceOutput')
54
+ Long = Shapes::IntegerShape.new(name: 'Long')
55
+ MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
56
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
57
+ PhoneNumber = Shapes::StringShape.new(name: 'PhoneNumber')
58
+ PostWhatsAppMessageMediaInput = Shapes::StructureShape.new(name: 'PostWhatsAppMessageMediaInput')
59
+ PostWhatsAppMessageMediaOutput = Shapes::StructureShape.new(name: 'PostWhatsAppMessageMediaOutput')
60
+ PutWhatsAppBusinessAccountEventDestinationsInput = Shapes::StructureShape.new(name: 'PutWhatsAppBusinessAccountEventDestinationsInput')
61
+ PutWhatsAppBusinessAccountEventDestinationsOutput = Shapes::StructureShape.new(name: 'PutWhatsAppBusinessAccountEventDestinationsOutput')
62
+ RegistrationStatus = Shapes::StringShape.new(name: 'RegistrationStatus')
63
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
64
+ S3File = Shapes::StructureShape.new(name: 'S3File')
65
+ S3FileBucketNameString = Shapes::StringShape.new(name: 'S3FileBucketNameString')
66
+ S3FileKeyString = Shapes::StringShape.new(name: 'S3FileKeyString')
67
+ S3PresignedUrl = Shapes::StructureShape.new(name: 'S3PresignedUrl')
68
+ S3PresignedUrlUrlString = Shapes::StringShape.new(name: 'S3PresignedUrlUrlString')
69
+ SendWhatsAppMessageInput = Shapes::StructureShape.new(name: 'SendWhatsAppMessageInput')
70
+ SendWhatsAppMessageOutput = Shapes::StructureShape.new(name: 'SendWhatsAppMessageOutput')
71
+ String = Shapes::StringShape.new(name: 'String')
72
+ StringList = Shapes::ListShape.new(name: 'StringList')
73
+ Tag = Shapes::StructureShape.new(name: 'Tag')
74
+ TagKeyString = Shapes::StringShape.new(name: 'TagKeyString')
75
+ TagList = Shapes::ListShape.new(name: 'TagList')
76
+ TagResourceInput = Shapes::StructureShape.new(name: 'TagResourceInput')
77
+ TagResourceOutput = Shapes::StructureShape.new(name: 'TagResourceOutput')
78
+ TagValueString = Shapes::StringShape.new(name: 'TagValueString')
79
+ ThrottledRequestException = Shapes::StructureShape.new(name: 'ThrottledRequestException')
80
+ TwoFactorPin = Shapes::StringShape.new(name: 'TwoFactorPin')
81
+ UntagResourceInput = Shapes::StructureShape.new(name: 'UntagResourceInput')
82
+ UntagResourceOutput = Shapes::StructureShape.new(name: 'UntagResourceOutput')
83
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
84
+ WabaPhoneNumberSetupFinalization = Shapes::StructureShape.new(name: 'WabaPhoneNumberSetupFinalization')
85
+ WabaPhoneNumberSetupFinalizationList = Shapes::ListShape.new(name: 'WabaPhoneNumberSetupFinalizationList')
86
+ WabaSetupFinalization = Shapes::StructureShape.new(name: 'WabaSetupFinalization')
87
+ WhatsAppBusinessAccountEventDestination = Shapes::StructureShape.new(name: 'WhatsAppBusinessAccountEventDestination')
88
+ WhatsAppBusinessAccountEventDestinations = Shapes::ListShape.new(name: 'WhatsAppBusinessAccountEventDestinations')
89
+ WhatsAppBusinessAccountId = Shapes::StringShape.new(name: 'WhatsAppBusinessAccountId')
90
+ WhatsAppBusinessAccountLinkDate = Shapes::TimestampShape.new(name: 'WhatsAppBusinessAccountLinkDate')
91
+ WhatsAppBusinessAccountName = Shapes::StringShape.new(name: 'WhatsAppBusinessAccountName')
92
+ WhatsAppDisplayPhoneNumber = Shapes::StringShape.new(name: 'WhatsAppDisplayPhoneNumber')
93
+ WhatsAppMediaId = Shapes::StringShape.new(name: 'WhatsAppMediaId')
94
+ WhatsAppMessageBlob = Shapes::BlobShape.new(name: 'WhatsAppMessageBlob')
95
+ WhatsAppPhoneNumber = Shapes::StringShape.new(name: 'WhatsAppPhoneNumber')
96
+ WhatsAppPhoneNumberDetail = Shapes::StructureShape.new(name: 'WhatsAppPhoneNumberDetail')
97
+ WhatsAppPhoneNumberDetailList = Shapes::ListShape.new(name: 'WhatsAppPhoneNumberDetailList')
98
+ WhatsAppPhoneNumberId = Shapes::StringShape.new(name: 'WhatsAppPhoneNumberId')
99
+ WhatsAppPhoneNumberName = Shapes::StringShape.new(name: 'WhatsAppPhoneNumberName')
100
+ WhatsAppPhoneNumberQualityRating = Shapes::StringShape.new(name: 'WhatsAppPhoneNumberQualityRating')
101
+ WhatsAppPhoneNumberSummary = Shapes::StructureShape.new(name: 'WhatsAppPhoneNumberSummary')
102
+ WhatsAppPhoneNumberSummaryList = Shapes::ListShape.new(name: 'WhatsAppPhoneNumberSummaryList')
103
+ WhatsAppSetupFinalization = Shapes::StructureShape.new(name: 'WhatsAppSetupFinalization')
104
+ WhatsAppSignupCallback = Shapes::StructureShape.new(name: 'WhatsAppSignupCallback')
105
+ WhatsAppSignupCallbackAccessTokenString = Shapes::StringShape.new(name: 'WhatsAppSignupCallbackAccessTokenString')
106
+ WhatsAppSignupCallbackResult = Shapes::StructureShape.new(name: 'WhatsAppSignupCallbackResult')
107
+
108
+ AccessDeniedByMetaException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
109
+ AccessDeniedByMetaException.struct_class = Types::AccessDeniedByMetaException
110
+
111
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
112
+ AccessDeniedException.struct_class = Types::AccessDeniedException
113
+
114
+ AssociateWhatsAppBusinessAccountInput.add_member(:signup_callback, Shapes::ShapeRef.new(shape: WhatsAppSignupCallback, location_name: "signupCallback"))
115
+ AssociateWhatsAppBusinessAccountInput.add_member(:setup_finalization, Shapes::ShapeRef.new(shape: WhatsAppSetupFinalization, location_name: "setupFinalization"))
116
+ AssociateWhatsAppBusinessAccountInput.struct_class = Types::AssociateWhatsAppBusinessAccountInput
117
+
118
+ AssociateWhatsAppBusinessAccountOutput.add_member(:signup_callback_result, Shapes::ShapeRef.new(shape: WhatsAppSignupCallbackResult, location_name: "signupCallbackResult"))
119
+ AssociateWhatsAppBusinessAccountOutput.add_member(:status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "statusCode"))
120
+ AssociateWhatsAppBusinessAccountOutput.struct_class = Types::AssociateWhatsAppBusinessAccountOutput
121
+
122
+ DeleteWhatsAppMessageMediaInput.add_member(:media_id, Shapes::ShapeRef.new(shape: WhatsAppMediaId, required: true, location: "querystring", location_name: "mediaId"))
123
+ DeleteWhatsAppMessageMediaInput.add_member(:origination_phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location: "querystring", location_name: "originationPhoneNumberId"))
124
+ DeleteWhatsAppMessageMediaInput.struct_class = Types::DeleteWhatsAppMessageMediaInput
125
+
126
+ DeleteWhatsAppMessageMediaOutput.add_member(:success, Shapes::ShapeRef.new(shape: Boolean, location_name: "success"))
127
+ DeleteWhatsAppMessageMediaOutput.struct_class = Types::DeleteWhatsAppMessageMediaOutput
128
+
129
+ DependencyException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
130
+ DependencyException.struct_class = Types::DependencyException
131
+
132
+ DisassociateWhatsAppBusinessAccountInput.add_member(:id, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, required: true, location: "querystring", location_name: "id"))
133
+ DisassociateWhatsAppBusinessAccountInput.struct_class = Types::DisassociateWhatsAppBusinessAccountInput
134
+
135
+ DisassociateWhatsAppBusinessAccountOutput.struct_class = Types::DisassociateWhatsAppBusinessAccountOutput
136
+
137
+ GetLinkedWhatsAppBusinessAccountInput.add_member(:id, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, required: true, location: "querystring", location_name: "id"))
138
+ GetLinkedWhatsAppBusinessAccountInput.struct_class = Types::GetLinkedWhatsAppBusinessAccountInput
139
+
140
+ GetLinkedWhatsAppBusinessAccountOutput.add_member(:account, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccount, location_name: "account"))
141
+ GetLinkedWhatsAppBusinessAccountOutput.struct_class = Types::GetLinkedWhatsAppBusinessAccountOutput
142
+
143
+ GetLinkedWhatsAppBusinessAccountPhoneNumberInput.add_member(:id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location: "querystring", location_name: "id"))
144
+ GetLinkedWhatsAppBusinessAccountPhoneNumberInput.struct_class = Types::GetLinkedWhatsAppBusinessAccountPhoneNumberInput
145
+
146
+ GetLinkedWhatsAppBusinessAccountPhoneNumberOutput.add_member(:phone_number, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberDetail, location_name: "phoneNumber"))
147
+ GetLinkedWhatsAppBusinessAccountPhoneNumberOutput.add_member(:linked_whats_app_business_account_id, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, location_name: "linkedWhatsAppBusinessAccountId"))
148
+ GetLinkedWhatsAppBusinessAccountPhoneNumberOutput.struct_class = Types::GetLinkedWhatsAppBusinessAccountPhoneNumberOutput
149
+
150
+ GetWhatsAppMessageMediaInput.add_member(:media_id, Shapes::ShapeRef.new(shape: WhatsAppMediaId, required: true, location_name: "mediaId"))
151
+ GetWhatsAppMessageMediaInput.add_member(:origination_phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location_name: "originationPhoneNumberId"))
152
+ GetWhatsAppMessageMediaInput.add_member(:metadata_only, Shapes::ShapeRef.new(shape: Boolean, location_name: "metadataOnly"))
153
+ GetWhatsAppMessageMediaInput.add_member(:destination_s3_presigned_url, Shapes::ShapeRef.new(shape: S3PresignedUrl, location_name: "destinationS3PresignedUrl"))
154
+ GetWhatsAppMessageMediaInput.add_member(:destination_s3_file, Shapes::ShapeRef.new(shape: S3File, location_name: "destinationS3File"))
155
+ GetWhatsAppMessageMediaInput.struct_class = Types::GetWhatsAppMessageMediaInput
156
+
157
+ GetWhatsAppMessageMediaOutput.add_member(:mime_type, Shapes::ShapeRef.new(shape: String, location_name: "mimeType"))
158
+ GetWhatsAppMessageMediaOutput.add_member(:file_size, Shapes::ShapeRef.new(shape: Long, location_name: "fileSize"))
159
+ GetWhatsAppMessageMediaOutput.struct_class = Types::GetWhatsAppMessageMediaOutput
160
+
161
+ Headers.key = Shapes::ShapeRef.new(shape: String)
162
+ Headers.value = Shapes::ShapeRef.new(shape: String)
163
+
164
+ InternalServiceException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
165
+ InternalServiceException.struct_class = Types::InternalServiceException
166
+
167
+ InvalidParametersException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
168
+ InvalidParametersException.struct_class = Types::InvalidParametersException
169
+
170
+ LinkedAccountWithIncompleteSetup.key = Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountId)
171
+ LinkedAccountWithIncompleteSetup.value = Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountIdMetaData)
172
+
173
+ LinkedWhatsAppBusinessAccount.add_member(:arn, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountArn, required: true, location_name: "arn"))
174
+ LinkedWhatsAppBusinessAccount.add_member(:id, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, required: true, location_name: "id"))
175
+ LinkedWhatsAppBusinessAccount.add_member(:waba_id, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountId, required: true, location_name: "wabaId"))
176
+ LinkedWhatsAppBusinessAccount.add_member(:registration_status, Shapes::ShapeRef.new(shape: RegistrationStatus, required: true, location_name: "registrationStatus"))
177
+ LinkedWhatsAppBusinessAccount.add_member(:link_date, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountLinkDate, required: true, location_name: "linkDate"))
178
+ LinkedWhatsAppBusinessAccount.add_member(:waba_name, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountName, required: true, location_name: "wabaName"))
179
+ LinkedWhatsAppBusinessAccount.add_member(:event_destinations, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountEventDestinations, required: true, location_name: "eventDestinations"))
180
+ LinkedWhatsAppBusinessAccount.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberSummaryList, required: true, location_name: "phoneNumbers"))
181
+ LinkedWhatsAppBusinessAccount.struct_class = Types::LinkedWhatsAppBusinessAccount
182
+
183
+ LinkedWhatsAppBusinessAccountIdMetaData.add_member(:account_name, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountName, location_name: "accountName"))
184
+ LinkedWhatsAppBusinessAccountIdMetaData.add_member(:registration_status, Shapes::ShapeRef.new(shape: RegistrationStatus, location_name: "registrationStatus"))
185
+ LinkedWhatsAppBusinessAccountIdMetaData.add_member(:unregistered_whats_app_phone_numbers, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberDetailList, location_name: "unregisteredWhatsAppPhoneNumbers"))
186
+ LinkedWhatsAppBusinessAccountIdMetaData.struct_class = Types::LinkedWhatsAppBusinessAccountIdMetaData
187
+
188
+ LinkedWhatsAppBusinessAccountSummary.add_member(:arn, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountArn, required: true, location_name: "arn"))
189
+ LinkedWhatsAppBusinessAccountSummary.add_member(:id, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, required: true, location_name: "id"))
190
+ LinkedWhatsAppBusinessAccountSummary.add_member(:waba_id, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountId, required: true, location_name: "wabaId"))
191
+ LinkedWhatsAppBusinessAccountSummary.add_member(:registration_status, Shapes::ShapeRef.new(shape: RegistrationStatus, required: true, location_name: "registrationStatus"))
192
+ LinkedWhatsAppBusinessAccountSummary.add_member(:link_date, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountLinkDate, required: true, location_name: "linkDate"))
193
+ LinkedWhatsAppBusinessAccountSummary.add_member(:waba_name, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountName, required: true, location_name: "wabaName"))
194
+ LinkedWhatsAppBusinessAccountSummary.add_member(:event_destinations, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountEventDestinations, required: true, location_name: "eventDestinations"))
195
+ LinkedWhatsAppBusinessAccountSummary.struct_class = Types::LinkedWhatsAppBusinessAccountSummary
196
+
197
+ LinkedWhatsAppBusinessAccountSummaryList.member = Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountSummary)
198
+
199
+ ListLinkedWhatsAppBusinessAccountsInput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
200
+ ListLinkedWhatsAppBusinessAccountsInput.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
201
+ ListLinkedWhatsAppBusinessAccountsInput.struct_class = Types::ListLinkedWhatsAppBusinessAccountsInput
202
+
203
+ ListLinkedWhatsAppBusinessAccountsOutput.add_member(:linked_accounts, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountSummaryList, location_name: "linkedAccounts"))
204
+ ListLinkedWhatsAppBusinessAccountsOutput.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
205
+ ListLinkedWhatsAppBusinessAccountsOutput.struct_class = Types::ListLinkedWhatsAppBusinessAccountsOutput
206
+
207
+ ListTagsForResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location: "querystring", location_name: "resourceArn"))
208
+ ListTagsForResourceInput.struct_class = Types::ListTagsForResourceInput
209
+
210
+ ListTagsForResourceOutput.add_member(:status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "statusCode"))
211
+ ListTagsForResourceOutput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
212
+ ListTagsForResourceOutput.struct_class = Types::ListTagsForResourceOutput
213
+
214
+ PostWhatsAppMessageMediaInput.add_member(:origination_phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location_name: "originationPhoneNumberId"))
215
+ PostWhatsAppMessageMediaInput.add_member(:source_s3_presigned_url, Shapes::ShapeRef.new(shape: S3PresignedUrl, location_name: "sourceS3PresignedUrl"))
216
+ PostWhatsAppMessageMediaInput.add_member(:source_s3_file, Shapes::ShapeRef.new(shape: S3File, location_name: "sourceS3File"))
217
+ PostWhatsAppMessageMediaInput.struct_class = Types::PostWhatsAppMessageMediaInput
218
+
219
+ PostWhatsAppMessageMediaOutput.add_member(:media_id, Shapes::ShapeRef.new(shape: WhatsAppMediaId, location_name: "mediaId"))
220
+ PostWhatsAppMessageMediaOutput.struct_class = Types::PostWhatsAppMessageMediaOutput
221
+
222
+ PutWhatsAppBusinessAccountEventDestinationsInput.add_member(:id, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, required: true, location_name: "id"))
223
+ PutWhatsAppBusinessAccountEventDestinationsInput.add_member(:event_destinations, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountEventDestinations, required: true, location_name: "eventDestinations"))
224
+ PutWhatsAppBusinessAccountEventDestinationsInput.struct_class = Types::PutWhatsAppBusinessAccountEventDestinationsInput
225
+
226
+ PutWhatsAppBusinessAccountEventDestinationsOutput.struct_class = Types::PutWhatsAppBusinessAccountEventDestinationsOutput
227
+
228
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
229
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
230
+
231
+ S3File.add_member(:bucket_name, Shapes::ShapeRef.new(shape: S3FileBucketNameString, required: true, location_name: "bucketName"))
232
+ S3File.add_member(:key, Shapes::ShapeRef.new(shape: S3FileKeyString, required: true, location_name: "key"))
233
+ S3File.struct_class = Types::S3File
234
+
235
+ S3PresignedUrl.add_member(:url, Shapes::ShapeRef.new(shape: S3PresignedUrlUrlString, required: true, location_name: "url"))
236
+ S3PresignedUrl.add_member(:headers, Shapes::ShapeRef.new(shape: Headers, required: true, location_name: "headers"))
237
+ S3PresignedUrl.struct_class = Types::S3PresignedUrl
238
+
239
+ SendWhatsAppMessageInput.add_member(:origination_phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location_name: "originationPhoneNumberId"))
240
+ SendWhatsAppMessageInput.add_member(:message, Shapes::ShapeRef.new(shape: WhatsAppMessageBlob, required: true, location_name: "message"))
241
+ SendWhatsAppMessageInput.add_member(:meta_api_version, Shapes::ShapeRef.new(shape: String, required: true, location_name: "metaApiVersion"))
242
+ SendWhatsAppMessageInput.struct_class = Types::SendWhatsAppMessageInput
243
+
244
+ SendWhatsAppMessageOutput.add_member(:message_id, Shapes::ShapeRef.new(shape: String, location_name: "messageId"))
245
+ SendWhatsAppMessageOutput.struct_class = Types::SendWhatsAppMessageOutput
246
+
247
+ StringList.member = Shapes::ShapeRef.new(shape: String)
248
+
249
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKeyString, required: true, location_name: "key"))
250
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValueString, location_name: "value"))
251
+ Tag.struct_class = Types::Tag
252
+
253
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
254
+
255
+ TagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
256
+ TagResourceInput.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "tags"))
257
+ TagResourceInput.struct_class = Types::TagResourceInput
258
+
259
+ TagResourceOutput.add_member(:status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "statusCode"))
260
+ TagResourceOutput.struct_class = Types::TagResourceOutput
261
+
262
+ ThrottledRequestException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
263
+ ThrottledRequestException.struct_class = Types::ThrottledRequestException
264
+
265
+ UntagResourceInput.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "resourceArn"))
266
+ UntagResourceInput.add_member(:tag_keys, Shapes::ShapeRef.new(shape: StringList, required: true, location_name: "tagKeys"))
267
+ UntagResourceInput.struct_class = Types::UntagResourceInput
268
+
269
+ UntagResourceOutput.add_member(:status_code, Shapes::ShapeRef.new(shape: Integer, location_name: "statusCode"))
270
+ UntagResourceOutput.struct_class = Types::UntagResourceOutput
271
+
272
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
273
+ ValidationException.struct_class = Types::ValidationException
274
+
275
+ WabaPhoneNumberSetupFinalization.add_member(:id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumber, required: true, location_name: "id"))
276
+ WabaPhoneNumberSetupFinalization.add_member(:two_factor_pin, Shapes::ShapeRef.new(shape: TwoFactorPin, required: true, location_name: "twoFactorPin"))
277
+ WabaPhoneNumberSetupFinalization.add_member(:data_localization_region, Shapes::ShapeRef.new(shape: IsoCountryCode, location_name: "dataLocalizationRegion"))
278
+ WabaPhoneNumberSetupFinalization.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
279
+ WabaPhoneNumberSetupFinalization.struct_class = Types::WabaPhoneNumberSetupFinalization
280
+
281
+ WabaPhoneNumberSetupFinalizationList.member = Shapes::ShapeRef.new(shape: WabaPhoneNumberSetupFinalization)
282
+
283
+ WabaSetupFinalization.add_member(:id, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountId, location_name: "id"))
284
+ WabaSetupFinalization.add_member(:event_destinations, Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountEventDestinations, location_name: "eventDestinations"))
285
+ WabaSetupFinalization.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
286
+ WabaSetupFinalization.struct_class = Types::WabaSetupFinalization
287
+
288
+ WhatsAppBusinessAccountEventDestination.add_member(:event_destination_arn, Shapes::ShapeRef.new(shape: EventDestinationArn, required: true, location_name: "eventDestinationArn"))
289
+ WhatsAppBusinessAccountEventDestination.struct_class = Types::WhatsAppBusinessAccountEventDestination
290
+
291
+ WhatsAppBusinessAccountEventDestinations.member = Shapes::ShapeRef.new(shape: WhatsAppBusinessAccountEventDestination)
292
+
293
+ WhatsAppPhoneNumberDetail.add_member(:arn, Shapes::ShapeRef.new(shape: LinkedWhatsAppPhoneNumberArn, required: true, location_name: "arn"))
294
+ WhatsAppPhoneNumberDetail.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "phoneNumber"))
295
+ WhatsAppPhoneNumberDetail.add_member(:phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location_name: "phoneNumberId"))
296
+ WhatsAppPhoneNumberDetail.add_member(:meta_phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumber, required: true, location_name: "metaPhoneNumberId"))
297
+ WhatsAppPhoneNumberDetail.add_member(:display_phone_number_name, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberName, required: true, location_name: "displayPhoneNumberName"))
298
+ WhatsAppPhoneNumberDetail.add_member(:display_phone_number, Shapes::ShapeRef.new(shape: WhatsAppDisplayPhoneNumber, required: true, location_name: "displayPhoneNumber"))
299
+ WhatsAppPhoneNumberDetail.add_member(:quality_rating, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberQualityRating, required: true, location_name: "qualityRating"))
300
+ WhatsAppPhoneNumberDetail.struct_class = Types::WhatsAppPhoneNumberDetail
301
+
302
+ WhatsAppPhoneNumberDetailList.member = Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberDetail)
303
+
304
+ WhatsAppPhoneNumberSummary.add_member(:arn, Shapes::ShapeRef.new(shape: LinkedWhatsAppPhoneNumberArn, required: true, location_name: "arn"))
305
+ WhatsAppPhoneNumberSummary.add_member(:phone_number, Shapes::ShapeRef.new(shape: PhoneNumber, required: true, location_name: "phoneNumber"))
306
+ WhatsAppPhoneNumberSummary.add_member(:phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberId, required: true, location_name: "phoneNumberId"))
307
+ WhatsAppPhoneNumberSummary.add_member(:meta_phone_number_id, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumber, required: true, location_name: "metaPhoneNumberId"))
308
+ WhatsAppPhoneNumberSummary.add_member(:display_phone_number_name, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberName, required: true, location_name: "displayPhoneNumberName"))
309
+ WhatsAppPhoneNumberSummary.add_member(:display_phone_number, Shapes::ShapeRef.new(shape: WhatsAppDisplayPhoneNumber, required: true, location_name: "displayPhoneNumber"))
310
+ WhatsAppPhoneNumberSummary.add_member(:quality_rating, Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberQualityRating, required: true, location_name: "qualityRating"))
311
+ WhatsAppPhoneNumberSummary.struct_class = Types::WhatsAppPhoneNumberSummary
312
+
313
+ WhatsAppPhoneNumberSummaryList.member = Shapes::ShapeRef.new(shape: WhatsAppPhoneNumberSummary)
314
+
315
+ WhatsAppSetupFinalization.add_member(:associate_in_progress_token, Shapes::ShapeRef.new(shape: AssociateInProgressToken, required: true, location_name: "associateInProgressToken"))
316
+ WhatsAppSetupFinalization.add_member(:phone_numbers, Shapes::ShapeRef.new(shape: WabaPhoneNumberSetupFinalizationList, required: true, location_name: "phoneNumbers"))
317
+ WhatsAppSetupFinalization.add_member(:phone_number_parent, Shapes::ShapeRef.new(shape: LinkedWhatsAppBusinessAccountId, location_name: "phoneNumberParent"))
318
+ WhatsAppSetupFinalization.add_member(:waba, Shapes::ShapeRef.new(shape: WabaSetupFinalization, location_name: "waba"))
319
+ WhatsAppSetupFinalization.struct_class = Types::WhatsAppSetupFinalization
320
+
321
+ WhatsAppSignupCallback.add_member(:access_token, Shapes::ShapeRef.new(shape: WhatsAppSignupCallbackAccessTokenString, required: true, location_name: "accessToken"))
322
+ WhatsAppSignupCallback.struct_class = Types::WhatsAppSignupCallback
323
+
324
+ WhatsAppSignupCallbackResult.add_member(:associate_in_progress_token, Shapes::ShapeRef.new(shape: AssociateInProgressToken, location_name: "associateInProgressToken"))
325
+ WhatsAppSignupCallbackResult.add_member(:linked_accounts_with_incomplete_setup, Shapes::ShapeRef.new(shape: LinkedAccountWithIncompleteSetup, location_name: "linkedAccountsWithIncompleteSetup"))
326
+ WhatsAppSignupCallbackResult.struct_class = Types::WhatsAppSignupCallbackResult
327
+
328
+
329
+ # @api private
330
+ API = Seahorse::Model::Api.new.tap do |api|
331
+
332
+ api.version = "2024-01-01"
333
+
334
+ api.metadata = {
335
+ "apiVersion" => "2024-01-01",
336
+ "auth" => ["aws.auth#sigv4"],
337
+ "endpointPrefix" => "social-messaging",
338
+ "protocol" => "rest-json",
339
+ "protocols" => ["rest-json"],
340
+ "serviceFullName" => "AWS End User Messaging Social",
341
+ "serviceId" => "SocialMessaging",
342
+ "signatureVersion" => "v4",
343
+ "signingName" => "social-messaging",
344
+ "uid" => "socialmessaging-2024-01-01",
345
+ }
346
+
347
+ api.add_operation(:associate_whats_app_business_account, Seahorse::Model::Operation.new.tap do |o|
348
+ o.name = "AssociateWhatsAppBusinessAccount"
349
+ o.http_method = "POST"
350
+ o.http_request_uri = "/v1/whatsapp/signup"
351
+ o.input = Shapes::ShapeRef.new(shape: AssociateWhatsAppBusinessAccountInput)
352
+ o.output = Shapes::ShapeRef.new(shape: AssociateWhatsAppBusinessAccountOutput)
353
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
354
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
355
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
356
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
357
+ o.errors << Shapes::ShapeRef.new(shape: DependencyException)
358
+ end)
359
+
360
+ api.add_operation(:delete_whats_app_message_media, Seahorse::Model::Operation.new.tap do |o|
361
+ o.name = "DeleteWhatsAppMessageMedia"
362
+ o.http_method = "DELETE"
363
+ o.http_request_uri = "/v1/whatsapp/media"
364
+ o.input = Shapes::ShapeRef.new(shape: DeleteWhatsAppMessageMediaInput)
365
+ o.output = Shapes::ShapeRef.new(shape: DeleteWhatsAppMessageMediaOutput)
366
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
367
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
368
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
369
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
370
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
371
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedByMetaException)
372
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
373
+ o.errors << Shapes::ShapeRef.new(shape: DependencyException)
374
+ end)
375
+
376
+ api.add_operation(:disassociate_whats_app_business_account, Seahorse::Model::Operation.new.tap do |o|
377
+ o.name = "DisassociateWhatsAppBusinessAccount"
378
+ o.http_method = "DELETE"
379
+ o.http_request_uri = "/v1/whatsapp/waba/disassociate"
380
+ o.input = Shapes::ShapeRef.new(shape: DisassociateWhatsAppBusinessAccountInput)
381
+ o.output = Shapes::ShapeRef.new(shape: DisassociateWhatsAppBusinessAccountOutput)
382
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
383
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
384
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
385
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
386
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
387
+ o.errors << Shapes::ShapeRef.new(shape: DependencyException)
388
+ end)
389
+
390
+ api.add_operation(:get_linked_whats_app_business_account, Seahorse::Model::Operation.new.tap do |o|
391
+ o.name = "GetLinkedWhatsAppBusinessAccount"
392
+ o.http_method = "GET"
393
+ o.http_request_uri = "/v1/whatsapp/waba/details"
394
+ o.input = Shapes::ShapeRef.new(shape: GetLinkedWhatsAppBusinessAccountInput)
395
+ o.output = Shapes::ShapeRef.new(shape: GetLinkedWhatsAppBusinessAccountOutput)
396
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
397
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
398
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
399
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
400
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
401
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
402
+ o.errors << Shapes::ShapeRef.new(shape: DependencyException)
403
+ end)
404
+
405
+ api.add_operation(:get_linked_whats_app_business_account_phone_number, Seahorse::Model::Operation.new.tap do |o|
406
+ o.name = "GetLinkedWhatsAppBusinessAccountPhoneNumber"
407
+ o.http_method = "GET"
408
+ o.http_request_uri = "/v1/whatsapp/waba/phone/details"
409
+ o.input = Shapes::ShapeRef.new(shape: GetLinkedWhatsAppBusinessAccountPhoneNumberInput)
410
+ o.output = Shapes::ShapeRef.new(shape: GetLinkedWhatsAppBusinessAccountPhoneNumberOutput)
411
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
412
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
413
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
414
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
415
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
416
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
417
+ o.errors << Shapes::ShapeRef.new(shape: DependencyException)
418
+ end)
419
+
420
+ api.add_operation(:get_whats_app_message_media, Seahorse::Model::Operation.new.tap do |o|
421
+ o.name = "GetWhatsAppMessageMedia"
422
+ o.http_method = "POST"
423
+ o.http_request_uri = "/v1/whatsapp/media/get"
424
+ o.input = Shapes::ShapeRef.new(shape: GetWhatsAppMessageMediaInput)
425
+ o.output = Shapes::ShapeRef.new(shape: GetWhatsAppMessageMediaOutput)
426
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
427
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
428
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
429
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
430
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
431
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedByMetaException)
432
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
433
+ o.errors << Shapes::ShapeRef.new(shape: DependencyException)
434
+ end)
435
+
436
+ api.add_operation(:list_linked_whats_app_business_accounts, Seahorse::Model::Operation.new.tap do |o|
437
+ o.name = "ListLinkedWhatsAppBusinessAccounts"
438
+ o.http_method = "GET"
439
+ o.http_request_uri = "/v1/whatsapp/waba/list"
440
+ o.input = Shapes::ShapeRef.new(shape: ListLinkedWhatsAppBusinessAccountsInput)
441
+ o.output = Shapes::ShapeRef.new(shape: ListLinkedWhatsAppBusinessAccountsOutput)
442
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
443
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
444
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
445
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
446
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
447
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
448
+ o[:pager] = Aws::Pager.new(
449
+ limit_key: "max_results",
450
+ tokens: {
451
+ "next_token" => "next_token"
452
+ }
453
+ )
454
+ end)
455
+
456
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
457
+ o.name = "ListTagsForResource"
458
+ o.http_method = "GET"
459
+ o.http_request_uri = "/v1/tags/list"
460
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceInput)
461
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceOutput)
462
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
463
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
464
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
465
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
466
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
467
+ end)
468
+
469
+ api.add_operation(:post_whats_app_message_media, Seahorse::Model::Operation.new.tap do |o|
470
+ o.name = "PostWhatsAppMessageMedia"
471
+ o.http_method = "POST"
472
+ o.http_request_uri = "/v1/whatsapp/media"
473
+ o.input = Shapes::ShapeRef.new(shape: PostWhatsAppMessageMediaInput)
474
+ o.output = Shapes::ShapeRef.new(shape: PostWhatsAppMessageMediaOutput)
475
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
476
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
477
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
478
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
479
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
480
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedByMetaException)
481
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
482
+ o.errors << Shapes::ShapeRef.new(shape: DependencyException)
483
+ end)
484
+
485
+ api.add_operation(:put_whats_app_business_account_event_destinations, Seahorse::Model::Operation.new.tap do |o|
486
+ o.name = "PutWhatsAppBusinessAccountEventDestinations"
487
+ o.http_method = "PUT"
488
+ o.http_request_uri = "/v1/whatsapp/waba/eventdestinations"
489
+ o.input = Shapes::ShapeRef.new(shape: PutWhatsAppBusinessAccountEventDestinationsInput)
490
+ o.output = Shapes::ShapeRef.new(shape: PutWhatsAppBusinessAccountEventDestinationsOutput)
491
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
492
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
493
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
494
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
495
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
496
+ end)
497
+
498
+ api.add_operation(:send_whats_app_message, Seahorse::Model::Operation.new.tap do |o|
499
+ o.name = "SendWhatsAppMessage"
500
+ o.http_method = "POST"
501
+ o.http_request_uri = "/v1/whatsapp/send"
502
+ o.input = Shapes::ShapeRef.new(shape: SendWhatsAppMessageInput)
503
+ o.output = Shapes::ShapeRef.new(shape: SendWhatsAppMessageOutput)
504
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
505
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
506
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
507
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
508
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
509
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
510
+ o.errors << Shapes::ShapeRef.new(shape: DependencyException)
511
+ end)
512
+
513
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
514
+ o.name = "TagResource"
515
+ o.http_method = "POST"
516
+ o.http_request_uri = "/v1/tags/tag-resource"
517
+ o.input = Shapes::ShapeRef.new(shape: TagResourceInput)
518
+ o.output = Shapes::ShapeRef.new(shape: TagResourceOutput)
519
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
520
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
521
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
522
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
523
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
524
+ end)
525
+
526
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
527
+ o.name = "UntagResource"
528
+ o.http_method = "POST"
529
+ o.http_request_uri = "/v1/tags/untag-resource"
530
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceInput)
531
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceOutput)
532
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
533
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
534
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParametersException)
535
+ o.errors << Shapes::ShapeRef.new(shape: ThrottledRequestException)
536
+ o.errors << Shapes::ShapeRef.new(shape: InternalServiceException)
537
+ end)
538
+ end
539
+
540
+ end
541
+ end
File without changes
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SocialMessaging
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end