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,1074 @@
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
+ module Types
12
+
13
+ # You do not have sufficient access to perform this action.
14
+ #
15
+ # @!attribute [rw] message
16
+ # @return [String]
17
+ #
18
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/AccessDeniedByMetaException AWS API Documentation
19
+ #
20
+ class AccessDeniedByMetaException < Struct.new(
21
+ :message)
22
+ SENSITIVE = []
23
+ include Aws::Structure
24
+ end
25
+
26
+ # You do not have sufficient access to perform this action.
27
+ #
28
+ # @!attribute [rw] message
29
+ # @return [String]
30
+ #
31
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/AccessDeniedException AWS API Documentation
32
+ #
33
+ class AccessDeniedException < Struct.new(
34
+ :message)
35
+ SENSITIVE = []
36
+ include Aws::Structure
37
+ end
38
+
39
+ # @!attribute [rw] signup_callback
40
+ # Contains the callback access token.
41
+ # @return [Types::WhatsAppSignupCallback]
42
+ #
43
+ # @!attribute [rw] setup_finalization
44
+ # A JSON object that contains the phone numbers and WhatsApp Business
45
+ # Account to link to your account.
46
+ # @return [Types::WhatsAppSetupFinalization]
47
+ #
48
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/AssociateWhatsAppBusinessAccountInput AWS API Documentation
49
+ #
50
+ class AssociateWhatsAppBusinessAccountInput < Struct.new(
51
+ :signup_callback,
52
+ :setup_finalization)
53
+ SENSITIVE = []
54
+ include Aws::Structure
55
+ end
56
+
57
+ # @!attribute [rw] signup_callback_result
58
+ # Contains your WhatsApp registration status.
59
+ # @return [Types::WhatsAppSignupCallbackResult]
60
+ #
61
+ # @!attribute [rw] status_code
62
+ # The status code for the response.
63
+ # @return [Integer]
64
+ #
65
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/AssociateWhatsAppBusinessAccountOutput AWS API Documentation
66
+ #
67
+ class AssociateWhatsAppBusinessAccountOutput < Struct.new(
68
+ :signup_callback_result,
69
+ :status_code)
70
+ SENSITIVE = []
71
+ include Aws::Structure
72
+ end
73
+
74
+ # @!attribute [rw] media_id
75
+ # The unique identifier of the media file to delete. Use the `mediaId`
76
+ # returned from [PostWhatsAppMessageMedia][1].
77
+ #
78
+ #
79
+ #
80
+ # [1]: https://console.aws.amazon.com/social-messaging/latest/APIReference/API_PostWhatsAppMessageMedia.html
81
+ # @return [String]
82
+ #
83
+ # @!attribute [rw] origination_phone_number_id
84
+ # The unique identifier of the originating phone number associated
85
+ # with the media. Phone number identifiers are formatted as
86
+ # `phone-number-id-01234567890123456789012345678901`. Use
87
+ # [GetLinkedWhatsAppBusinessAccount][1] to find a phone number's id.
88
+ #
89
+ #
90
+ #
91
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html
92
+ # @return [String]
93
+ #
94
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/DeleteWhatsAppMessageMediaInput AWS API Documentation
95
+ #
96
+ class DeleteWhatsAppMessageMediaInput < Struct.new(
97
+ :media_id,
98
+ :origination_phone_number_id)
99
+ SENSITIVE = []
100
+ include Aws::Structure
101
+ end
102
+
103
+ # @!attribute [rw] success
104
+ # Success indicator for deleting the media file.
105
+ # @return [Boolean]
106
+ #
107
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/DeleteWhatsAppMessageMediaOutput AWS API Documentation
108
+ #
109
+ class DeleteWhatsAppMessageMediaOutput < Struct.new(
110
+ :success)
111
+ SENSITIVE = []
112
+ include Aws::Structure
113
+ end
114
+
115
+ # Thrown when performing an action because a dependency would be broken.
116
+ #
117
+ # @!attribute [rw] message
118
+ # @return [String]
119
+ #
120
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/DependencyException AWS API Documentation
121
+ #
122
+ class DependencyException < Struct.new(
123
+ :message)
124
+ SENSITIVE = []
125
+ include Aws::Structure
126
+ end
127
+
128
+ # @!attribute [rw] id
129
+ # The unique identifier of your WhatsApp Business Account. WABA
130
+ # identifiers are formatted as
131
+ # `waba-01234567890123456789012345678901`. Use
132
+ # [ListLinkedWhatsAppBusinessAccounts][1] to list all WABAs and their
133
+ # details.
134
+ #
135
+ #
136
+ #
137
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListLinkedWhatsAppBusinessAccounts.html
138
+ # @return [String]
139
+ #
140
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/DisassociateWhatsAppBusinessAccountInput AWS API Documentation
141
+ #
142
+ class DisassociateWhatsAppBusinessAccountInput < Struct.new(
143
+ :id)
144
+ SENSITIVE = []
145
+ include Aws::Structure
146
+ end
147
+
148
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/DisassociateWhatsAppBusinessAccountOutput AWS API Documentation
149
+ #
150
+ class DisassociateWhatsAppBusinessAccountOutput < Aws::EmptyStructure; end
151
+
152
+ # @!attribute [rw] id
153
+ # The unique identifier, from Amazon Web Services, of the linked
154
+ # WhatsApp Business Account. WABA identifiers are formatted as
155
+ # `waba-01234567890123456789012345678901`. Use
156
+ # [ListLinkedWhatsAppBusinessAccounts][1] to list all WABAs and their
157
+ # details.
158
+ #
159
+ #
160
+ #
161
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListLinkedWhatsAppBusinessAccounts.html
162
+ # @return [String]
163
+ #
164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetLinkedWhatsAppBusinessAccountInput AWS API Documentation
165
+ #
166
+ class GetLinkedWhatsAppBusinessAccountInput < Struct.new(
167
+ :id)
168
+ SENSITIVE = []
169
+ include Aws::Structure
170
+ end
171
+
172
+ # @!attribute [rw] account
173
+ # The details of the linked WhatsApp Business Account.
174
+ # @return [Types::LinkedWhatsAppBusinessAccount]
175
+ #
176
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetLinkedWhatsAppBusinessAccountOutput AWS API Documentation
177
+ #
178
+ class GetLinkedWhatsAppBusinessAccountOutput < Struct.new(
179
+ :account)
180
+ SENSITIVE = []
181
+ include Aws::Structure
182
+ end
183
+
184
+ # @!attribute [rw] id
185
+ # The unique identifier of the phone number. Phone number identifiers
186
+ # are formatted as `phone-number-id-01234567890123456789012345678901`.
187
+ # Use [GetLinkedWhatsAppBusinessAccount][1] to find a phone number's
188
+ # id.
189
+ #
190
+ #
191
+ #
192
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html
193
+ # @return [String]
194
+ #
195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetLinkedWhatsAppBusinessAccountPhoneNumberInput AWS API Documentation
196
+ #
197
+ class GetLinkedWhatsAppBusinessAccountPhoneNumberInput < Struct.new(
198
+ :id)
199
+ SENSITIVE = []
200
+ include Aws::Structure
201
+ end
202
+
203
+ # @!attribute [rw] phone_number
204
+ # The details of your WhatsApp phone number.
205
+ # @return [Types::WhatsAppPhoneNumberDetail]
206
+ #
207
+ # @!attribute [rw] linked_whats_app_business_account_id
208
+ # The WABA identifier linked to the phone number, formatted as
209
+ # `waba-01234567890123456789012345678901`.
210
+ # @return [String]
211
+ #
212
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetLinkedWhatsAppBusinessAccountPhoneNumberOutput AWS API Documentation
213
+ #
214
+ class GetLinkedWhatsAppBusinessAccountPhoneNumberOutput < Struct.new(
215
+ :phone_number,
216
+ :linked_whats_app_business_account_id)
217
+ SENSITIVE = []
218
+ include Aws::Structure
219
+ end
220
+
221
+ # @!attribute [rw] media_id
222
+ # The unique identifier for the media file.
223
+ # @return [String]
224
+ #
225
+ # @!attribute [rw] origination_phone_number_id
226
+ # The unique identifier of the originating phone number for the
227
+ # WhatsApp message media. The phone number identifiers are formatted
228
+ # as `phone-number-id-01234567890123456789012345678901`. Use
229
+ # [GetLinkedWhatsAppBusinessAccount][1] to find a phone number's id.
230
+ #
231
+ #
232
+ #
233
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html
234
+ # @return [String]
235
+ #
236
+ # @!attribute [rw] metadata_only
237
+ # Set to `True` to get only the metadata for the file.
238
+ # @return [Boolean]
239
+ #
240
+ # @!attribute [rw] destination_s3_presigned_url
241
+ # The presign url of the media file.
242
+ # @return [Types::S3PresignedUrl]
243
+ #
244
+ # @!attribute [rw] destination_s3_file
245
+ # The `bucketName` and `key` of the S3 media file.
246
+ # @return [Types::S3File]
247
+ #
248
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetWhatsAppMessageMediaInput AWS API Documentation
249
+ #
250
+ class GetWhatsAppMessageMediaInput < Struct.new(
251
+ :media_id,
252
+ :origination_phone_number_id,
253
+ :metadata_only,
254
+ :destination_s3_presigned_url,
255
+ :destination_s3_file)
256
+ SENSITIVE = [:destination_s3_presigned_url, :destination_s3_file]
257
+ include Aws::Structure
258
+ end
259
+
260
+ # @!attribute [rw] mime_type
261
+ # The MIME type of the media.
262
+ # @return [String]
263
+ #
264
+ # @!attribute [rw] file_size
265
+ # The file size of the media, in KB.
266
+ # @return [Integer]
267
+ #
268
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/GetWhatsAppMessageMediaOutput AWS API Documentation
269
+ #
270
+ class GetWhatsAppMessageMediaOutput < Struct.new(
271
+ :mime_type,
272
+ :file_size)
273
+ SENSITIVE = []
274
+ include Aws::Structure
275
+ end
276
+
277
+ # The request processing has failed because of an unknown error,
278
+ # exception, or failure.
279
+ #
280
+ # @!attribute [rw] message
281
+ # @return [String]
282
+ #
283
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/InternalServiceException AWS API Documentation
284
+ #
285
+ class InternalServiceException < Struct.new(
286
+ :message)
287
+ SENSITIVE = []
288
+ include Aws::Structure
289
+ end
290
+
291
+ # One or more parameters provided to the action are not valid.
292
+ #
293
+ # @!attribute [rw] message
294
+ # @return [String]
295
+ #
296
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/InvalidParametersException AWS API Documentation
297
+ #
298
+ class InvalidParametersException < Struct.new(
299
+ :message)
300
+ SENSITIVE = []
301
+ include Aws::Structure
302
+ end
303
+
304
+ # The details of your linked WhatsApp Business Account.
305
+ #
306
+ # @!attribute [rw] arn
307
+ # The ARN of the linked WhatsApp Business Account.
308
+ # @return [String]
309
+ #
310
+ # @!attribute [rw] id
311
+ # The ID of the linked WhatsApp Business Account, formatted as
312
+ # `waba-01234567890123456789012345678901`.
313
+ # @return [String]
314
+ #
315
+ # @!attribute [rw] waba_id
316
+ # The WhatsApp Business Account ID from meta.
317
+ # @return [String]
318
+ #
319
+ # @!attribute [rw] registration_status
320
+ # The registration status of the linked WhatsApp Business Account.
321
+ # @return [String]
322
+ #
323
+ # @!attribute [rw] link_date
324
+ # The date the WhatsApp Business Account was linked.
325
+ # @return [Time]
326
+ #
327
+ # @!attribute [rw] waba_name
328
+ # The name of the linked WhatsApp Business Account.
329
+ # @return [String]
330
+ #
331
+ # @!attribute [rw] event_destinations
332
+ # The event destinations for the linked WhatsApp Business Account.
333
+ # @return [Array<Types::WhatsAppBusinessAccountEventDestination>]
334
+ #
335
+ # @!attribute [rw] phone_numbers
336
+ # The phone numbers associated with the Linked WhatsApp Business
337
+ # Account.
338
+ # @return [Array<Types::WhatsAppPhoneNumberSummary>]
339
+ #
340
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/LinkedWhatsAppBusinessAccount AWS API Documentation
341
+ #
342
+ class LinkedWhatsAppBusinessAccount < Struct.new(
343
+ :arn,
344
+ :id,
345
+ :waba_id,
346
+ :registration_status,
347
+ :link_date,
348
+ :waba_name,
349
+ :event_destinations,
350
+ :phone_numbers)
351
+ SENSITIVE = []
352
+ include Aws::Structure
353
+ end
354
+
355
+ # Contains your WhatsApp registration status and details of any
356
+ # unregistered WhatsApp phone number.
357
+ #
358
+ # @!attribute [rw] account_name
359
+ # The name of your account.
360
+ # @return [String]
361
+ #
362
+ # @!attribute [rw] registration_status
363
+ # The registration status of the linked WhatsApp Business Account.
364
+ # @return [String]
365
+ #
366
+ # @!attribute [rw] unregistered_whats_app_phone_numbers
367
+ # The details for unregistered WhatsApp phone numbers.
368
+ # @return [Array<Types::WhatsAppPhoneNumberDetail>]
369
+ #
370
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/LinkedWhatsAppBusinessAccountIdMetaData AWS API Documentation
371
+ #
372
+ class LinkedWhatsAppBusinessAccountIdMetaData < Struct.new(
373
+ :account_name,
374
+ :registration_status,
375
+ :unregistered_whats_app_phone_numbers)
376
+ SENSITIVE = []
377
+ include Aws::Structure
378
+ end
379
+
380
+ # The details of a linked WhatsApp Business Account.
381
+ #
382
+ # @!attribute [rw] arn
383
+ # The ARN of the linked WhatsApp Business Account.
384
+ # @return [String]
385
+ #
386
+ # @!attribute [rw] id
387
+ # The ID of the linked WhatsApp Business Account, formatted as
388
+ # `waba-01234567890123456789012345678901`.
389
+ # @return [String]
390
+ #
391
+ # @!attribute [rw] waba_id
392
+ # The WhatsApp Business Account ID provided by Meta.
393
+ # @return [String]
394
+ #
395
+ # @!attribute [rw] registration_status
396
+ # The registration status of the linked WhatsApp Business Account.
397
+ # @return [String]
398
+ #
399
+ # @!attribute [rw] link_date
400
+ # The date the WhatsApp Business Account was linked.
401
+ # @return [Time]
402
+ #
403
+ # @!attribute [rw] waba_name
404
+ # The name of the linked WhatsApp Business Account.
405
+ # @return [String]
406
+ #
407
+ # @!attribute [rw] event_destinations
408
+ # The event destinations for the linked WhatsApp Business Account.
409
+ # @return [Array<Types::WhatsAppBusinessAccountEventDestination>]
410
+ #
411
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/LinkedWhatsAppBusinessAccountSummary AWS API Documentation
412
+ #
413
+ class LinkedWhatsAppBusinessAccountSummary < Struct.new(
414
+ :arn,
415
+ :id,
416
+ :waba_id,
417
+ :registration_status,
418
+ :link_date,
419
+ :waba_name,
420
+ :event_destinations)
421
+ SENSITIVE = []
422
+ include Aws::Structure
423
+ end
424
+
425
+ # @!attribute [rw] next_token
426
+ # The next token for pagination.
427
+ # @return [String]
428
+ #
429
+ # @!attribute [rw] max_results
430
+ # The maximum number of results to return.
431
+ # @return [Integer]
432
+ #
433
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ListLinkedWhatsAppBusinessAccountsInput AWS API Documentation
434
+ #
435
+ class ListLinkedWhatsAppBusinessAccountsInput < Struct.new(
436
+ :next_token,
437
+ :max_results)
438
+ SENSITIVE = []
439
+ include Aws::Structure
440
+ end
441
+
442
+ # @!attribute [rw] linked_accounts
443
+ # A list of WhatsApp Business Accounts linked to your Amazon Web
444
+ # Services account.
445
+ # @return [Array<Types::LinkedWhatsAppBusinessAccountSummary>]
446
+ #
447
+ # @!attribute [rw] next_token
448
+ # The next token for pagination.
449
+ # @return [String]
450
+ #
451
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ListLinkedWhatsAppBusinessAccountsOutput AWS API Documentation
452
+ #
453
+ class ListLinkedWhatsAppBusinessAccountsOutput < Struct.new(
454
+ :linked_accounts,
455
+ :next_token)
456
+ SENSITIVE = []
457
+ include Aws::Structure
458
+ end
459
+
460
+ # @!attribute [rw] resource_arn
461
+ # The Amazon Resource Name (ARN) of the resource to retrieve the tags
462
+ # from.
463
+ # @return [String]
464
+ #
465
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ListTagsForResourceInput AWS API Documentation
466
+ #
467
+ class ListTagsForResourceInput < Struct.new(
468
+ :resource_arn)
469
+ SENSITIVE = []
470
+ include Aws::Structure
471
+ end
472
+
473
+ # @!attribute [rw] status_code
474
+ # The status code of the response.
475
+ # @return [Integer]
476
+ #
477
+ # @!attribute [rw] tags
478
+ # The tags for the resource.
479
+ # @return [Array<Types::Tag>]
480
+ #
481
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ListTagsForResourceOutput AWS API Documentation
482
+ #
483
+ class ListTagsForResourceOutput < Struct.new(
484
+ :status_code,
485
+ :tags)
486
+ SENSITIVE = []
487
+ include Aws::Structure
488
+ end
489
+
490
+ # @!attribute [rw] origination_phone_number_id
491
+ # The ID of the phone number to associate with the WhatsApp media
492
+ # file. The phone number identifiers are formatted as
493
+ # `phone-number-id-01234567890123456789012345678901`. Use
494
+ # [GetLinkedWhatsAppBusinessAccount][1] to find a phone number's id.
495
+ #
496
+ #
497
+ #
498
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html
499
+ # @return [String]
500
+ #
501
+ # @!attribute [rw] source_s3_presigned_url
502
+ # The source presign url of the media file.
503
+ # @return [Types::S3PresignedUrl]
504
+ #
505
+ # @!attribute [rw] source_s3_file
506
+ # The source S3 url for the media file.
507
+ # @return [Types::S3File]
508
+ #
509
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PostWhatsAppMessageMediaInput AWS API Documentation
510
+ #
511
+ class PostWhatsAppMessageMediaInput < Struct.new(
512
+ :origination_phone_number_id,
513
+ :source_s3_presigned_url,
514
+ :source_s3_file)
515
+ SENSITIVE = [:source_s3_presigned_url, :source_s3_file]
516
+ include Aws::Structure
517
+ end
518
+
519
+ # @!attribute [rw] media_id
520
+ # The unique identifier of the posted WhatsApp message.
521
+ # @return [String]
522
+ #
523
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PostWhatsAppMessageMediaOutput AWS API Documentation
524
+ #
525
+ class PostWhatsAppMessageMediaOutput < Struct.new(
526
+ :media_id)
527
+ SENSITIVE = []
528
+ include Aws::Structure
529
+ end
530
+
531
+ # @!attribute [rw] id
532
+ # The unique identifier of your WhatsApp Business Account. WABA
533
+ # identifiers are formatted as
534
+ # `waba-01234567890123456789012345678901`. Use
535
+ # [ListLinkedWhatsAppBusinessAccounts][1] to list all WABAs and their
536
+ # details.
537
+ #
538
+ #
539
+ #
540
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_ListLinkedWhatsAppBusinessAccounts.html
541
+ # @return [String]
542
+ #
543
+ # @!attribute [rw] event_destinations
544
+ # An array of `WhatsAppBusinessAccountEventDestination` event
545
+ # destinations.
546
+ # @return [Array<Types::WhatsAppBusinessAccountEventDestination>]
547
+ #
548
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PutWhatsAppBusinessAccountEventDestinationsInput AWS API Documentation
549
+ #
550
+ class PutWhatsAppBusinessAccountEventDestinationsInput < Struct.new(
551
+ :id,
552
+ :event_destinations)
553
+ SENSITIVE = []
554
+ include Aws::Structure
555
+ end
556
+
557
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/PutWhatsAppBusinessAccountEventDestinationsOutput AWS API Documentation
558
+ #
559
+ class PutWhatsAppBusinessAccountEventDestinationsOutput < Aws::EmptyStructure; end
560
+
561
+ # The resource was not found.
562
+ #
563
+ # @!attribute [rw] message
564
+ # @return [String]
565
+ #
566
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ResourceNotFoundException AWS API Documentation
567
+ #
568
+ class ResourceNotFoundException < Struct.new(
569
+ :message)
570
+ SENSITIVE = []
571
+ include Aws::Structure
572
+ end
573
+
574
+ # Contains information for the S3 bucket that contains media files.
575
+ #
576
+ # @!attribute [rw] bucket_name
577
+ # The bucket name.
578
+ # @return [String]
579
+ #
580
+ # @!attribute [rw] key
581
+ # The object key of the media file.
582
+ # @return [String]
583
+ #
584
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/S3File AWS API Documentation
585
+ #
586
+ class S3File < Struct.new(
587
+ :bucket_name,
588
+ :key)
589
+ SENSITIVE = []
590
+ include Aws::Structure
591
+ end
592
+
593
+ # You can use presigned URLs to grant time-limited access to objects in
594
+ # Amazon S3 without updating your bucket policy. For more information,
595
+ # see [Working with presigned URLs][1] in the *Amazon S3 User Guide*.
596
+ #
597
+ #
598
+ #
599
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-presigned-url.html
600
+ #
601
+ # @!attribute [rw] url
602
+ # The presign url to the object.
603
+ # @return [String]
604
+ #
605
+ # @!attribute [rw] headers
606
+ # A map of headers and their values. You must specify the
607
+ # `Content-Type` header when using `PostWhatsAppMessageMedia`. For a
608
+ # list of common headers, see [Common Request Headers][1] in the
609
+ # *Amazon S3 API Reference*
610
+ #
611
+ #
612
+ #
613
+ # [1]: https://docs.aws.amazon.com/AmazonS3/latest/API/RESTCommonRequestHeaders.html
614
+ # @return [Hash<String,String>]
615
+ #
616
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/S3PresignedUrl AWS API Documentation
617
+ #
618
+ class S3PresignedUrl < Struct.new(
619
+ :url,
620
+ :headers)
621
+ SENSITIVE = []
622
+ include Aws::Structure
623
+ end
624
+
625
+ # @!attribute [rw] origination_phone_number_id
626
+ # The ID of the phone number used to send the WhatsApp message. If you
627
+ # are sending a media file only the `originationPhoneNumberId` used to
628
+ # upload the file can be used. Phone number identifiers are formatted
629
+ # as `phone-number-id-01234567890123456789012345678901`. Use
630
+ # [GetLinkedWhatsAppBusinessAccount][1] to find a phone number's id.
631
+ #
632
+ #
633
+ #
634
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html
635
+ # @return [String]
636
+ #
637
+ # @!attribute [rw] message
638
+ # The message to send through WhatsApp. The length is in KB. The
639
+ # message field passes through a WhatsApp Message object, see
640
+ # [Messages][1] in the *WhatsApp Business Platform Cloud API
641
+ # Reference*.
642
+ #
643
+ #
644
+ #
645
+ # [1]: https://developers.facebook.com/docs/whatsapp/cloud-api/reference/messages
646
+ # @return [String]
647
+ #
648
+ # @!attribute [rw] meta_api_version
649
+ # The API version for the request formatted as `v\{VersionNumber\}`.
650
+ # For a list of supported API versions and Amazon Web Services
651
+ # Regions, see [ *Amazon Web Services End User Messaging Social API*
652
+ # Service Endpoints][1] in the *Amazon Web Services General
653
+ # Reference*.
654
+ #
655
+ #
656
+ #
657
+ # [1]: https://docs.aws.amazon.com/general/latest/gr/end-user-messaging.html
658
+ # @return [String]
659
+ #
660
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/SendWhatsAppMessageInput AWS API Documentation
661
+ #
662
+ class SendWhatsAppMessageInput < Struct.new(
663
+ :origination_phone_number_id,
664
+ :message,
665
+ :meta_api_version)
666
+ SENSITIVE = [:message]
667
+ include Aws::Structure
668
+ end
669
+
670
+ # @!attribute [rw] message_id
671
+ # The unique identifier of the message.
672
+ # @return [String]
673
+ #
674
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/SendWhatsAppMessageOutput AWS API Documentation
675
+ #
676
+ class SendWhatsAppMessageOutput < Struct.new(
677
+ :message_id)
678
+ SENSITIVE = []
679
+ include Aws::Structure
680
+ end
681
+
682
+ # The tag for a resource.
683
+ #
684
+ # @!attribute [rw] key
685
+ # The tag key.
686
+ # @return [String]
687
+ #
688
+ # @!attribute [rw] value
689
+ # The tag value.
690
+ # @return [String]
691
+ #
692
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/Tag AWS API Documentation
693
+ #
694
+ class Tag < Struct.new(
695
+ :key,
696
+ :value)
697
+ SENSITIVE = []
698
+ include Aws::Structure
699
+ end
700
+
701
+ # @!attribute [rw] resource_arn
702
+ # The Amazon Resource Name (ARN) of the resource to tag.
703
+ # @return [String]
704
+ #
705
+ # @!attribute [rw] tags
706
+ # The tags to add to the resource.
707
+ # @return [Array<Types::Tag>]
708
+ #
709
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/TagResourceInput AWS API Documentation
710
+ #
711
+ class TagResourceInput < Struct.new(
712
+ :resource_arn,
713
+ :tags)
714
+ SENSITIVE = []
715
+ include Aws::Structure
716
+ end
717
+
718
+ # @!attribute [rw] status_code
719
+ # The status code of the tag resource operation.
720
+ # @return [Integer]
721
+ #
722
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/TagResourceOutput AWS API Documentation
723
+ #
724
+ class TagResourceOutput < Struct.new(
725
+ :status_code)
726
+ SENSITIVE = []
727
+ include Aws::Structure
728
+ end
729
+
730
+ # The request was denied due to request throttling.
731
+ #
732
+ # @!attribute [rw] message
733
+ # @return [String]
734
+ #
735
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ThrottledRequestException AWS API Documentation
736
+ #
737
+ class ThrottledRequestException < Struct.new(
738
+ :message)
739
+ SENSITIVE = []
740
+ include Aws::Structure
741
+ end
742
+
743
+ # @!attribute [rw] resource_arn
744
+ # The Amazon Resource Name (ARN) of the resource to remove tags from.
745
+ # @return [String]
746
+ #
747
+ # @!attribute [rw] tag_keys
748
+ # The keys of the tags to remove from the resource.
749
+ # @return [Array<String>]
750
+ #
751
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/UntagResourceInput AWS API Documentation
752
+ #
753
+ class UntagResourceInput < Struct.new(
754
+ :resource_arn,
755
+ :tag_keys)
756
+ SENSITIVE = []
757
+ include Aws::Structure
758
+ end
759
+
760
+ # @!attribute [rw] status_code
761
+ # The status code of the untag resource operation.
762
+ # @return [Integer]
763
+ #
764
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/UntagResourceOutput AWS API Documentation
765
+ #
766
+ class UntagResourceOutput < Struct.new(
767
+ :status_code)
768
+ SENSITIVE = []
769
+ include Aws::Structure
770
+ end
771
+
772
+ # The request contains an invalid parameter value.
773
+ #
774
+ # @!attribute [rw] message
775
+ # @return [String]
776
+ #
777
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/ValidationException AWS API Documentation
778
+ #
779
+ class ValidationException < Struct.new(
780
+ :message)
781
+ SENSITIVE = []
782
+ include Aws::Structure
783
+ end
784
+
785
+ # The registration details for a linked phone number.
786
+ #
787
+ # @!attribute [rw] id
788
+ # The unique identifier of the originating phone number associated
789
+ # with the media. Phone number identifiers are formatted as
790
+ # `phone-number-id-01234567890123456789012345678901`. Use
791
+ # [GetLinkedWhatsAppBusinessAccount][1] to find a phone number's id.
792
+ #
793
+ #
794
+ #
795
+ # [1]: https://docs.aws.amazon.com/social-messaging/latest/APIReference/API_GetLinkedWhatsAppBusinessAccountPhoneNumber.html
796
+ # @return [String]
797
+ #
798
+ # @!attribute [rw] two_factor_pin
799
+ # The PIN to use for two-step verification. To reset your PIN follow
800
+ # the directions in [Updating PIN][1] in the *WhatsApp Business
801
+ # Platform Cloud API Reference*.
802
+ #
803
+ #
804
+ #
805
+ # [1]: https://developers.facebook.com/docs/whatsapp/cloud-api/reference/two-step-verification/#updating-pin
806
+ # @return [String]
807
+ #
808
+ # @!attribute [rw] data_localization_region
809
+ # The two letter ISO region for the location of where Meta will store
810
+ # data.
811
+ #
812
+ # **Asia–Pacific (APAC)**
813
+ #
814
+ # * Australia **AU**
815
+ #
816
+ # * Indonesia **ID**
817
+ #
818
+ # * India **IN**
819
+ #
820
+ # * Japan **JP**
821
+ #
822
+ # * Singapore **SG**
823
+ #
824
+ # * South Korea **KR**
825
+ #
826
+ # **Europe**
827
+ #
828
+ # * Germany **DE**
829
+ #
830
+ # * Switzerland **CH**
831
+ #
832
+ # * United Kingdom **GB**
833
+ #
834
+ # **Latin America (LATAM)**
835
+ #
836
+ # * Brazil **BR**
837
+ #
838
+ # ^
839
+ #
840
+ # **Middle East and Africa (MEA)**
841
+ #
842
+ # * Bahrain **BH**
843
+ #
844
+ # * South Africa **ZA**
845
+ #
846
+ # * United Arab Emirates **AE**
847
+ #
848
+ # **North America (NORAM)**
849
+ #
850
+ # * Canada **CA**
851
+ #
852
+ # ^
853
+ # @return [String]
854
+ #
855
+ # @!attribute [rw] tags
856
+ # An array of key and value pair tags.
857
+ # @return [Array<Types::Tag>]
858
+ #
859
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WabaPhoneNumberSetupFinalization AWS API Documentation
860
+ #
861
+ class WabaPhoneNumberSetupFinalization < Struct.new(
862
+ :id,
863
+ :two_factor_pin,
864
+ :data_localization_region,
865
+ :tags)
866
+ SENSITIVE = [:two_factor_pin]
867
+ include Aws::Structure
868
+ end
869
+
870
+ # The registration details for a linked WhatsApp Business Account.
871
+ #
872
+ # @!attribute [rw] id
873
+ # The ID of the linked WhatsApp Business Account, formatted as
874
+ # `waba-01234567890123456789012345678901`.
875
+ # @return [String]
876
+ #
877
+ # @!attribute [rw] event_destinations
878
+ # The event destinations for the linked WhatsApp Business Account.
879
+ # @return [Array<Types::WhatsAppBusinessAccountEventDestination>]
880
+ #
881
+ # @!attribute [rw] tags
882
+ # An array of key and value pair tags.
883
+ # @return [Array<Types::Tag>]
884
+ #
885
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WabaSetupFinalization AWS API Documentation
886
+ #
887
+ class WabaSetupFinalization < Struct.new(
888
+ :id,
889
+ :event_destinations,
890
+ :tags)
891
+ SENSITIVE = []
892
+ include Aws::Structure
893
+ end
894
+
895
+ # Contains information on the event destination.
896
+ #
897
+ # @!attribute [rw] event_destination_arn
898
+ # The ARN of the event destination.
899
+ # @return [String]
900
+ #
901
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WhatsAppBusinessAccountEventDestination AWS API Documentation
902
+ #
903
+ class WhatsAppBusinessAccountEventDestination < Struct.new(
904
+ :event_destination_arn)
905
+ SENSITIVE = []
906
+ include Aws::Structure
907
+ end
908
+
909
+ # The details of your WhatsApp phone number.
910
+ #
911
+ # @!attribute [rw] arn
912
+ # The ARN of the WhatsApp phone number.
913
+ # @return [String]
914
+ #
915
+ # @!attribute [rw] phone_number
916
+ # The phone number for sending WhatsApp.
917
+ # @return [String]
918
+ #
919
+ # @!attribute [rw] phone_number_id
920
+ # The phone number ID. Phone number identifiers are formatted as
921
+ # `phone-number-id-01234567890123456789012345678901`.
922
+ # @return [String]
923
+ #
924
+ # @!attribute [rw] meta_phone_number_id
925
+ # The phone number ID from Meta.
926
+ # @return [String]
927
+ #
928
+ # @!attribute [rw] display_phone_number_name
929
+ # The display name for this phone number.
930
+ # @return [String]
931
+ #
932
+ # @!attribute [rw] display_phone_number
933
+ # The phone number that appears in the recipients display.
934
+ # @return [String]
935
+ #
936
+ # @!attribute [rw] quality_rating
937
+ # The quality rating of the phone number.
938
+ # @return [String]
939
+ #
940
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WhatsAppPhoneNumberDetail AWS API Documentation
941
+ #
942
+ class WhatsAppPhoneNumberDetail < Struct.new(
943
+ :arn,
944
+ :phone_number,
945
+ :phone_number_id,
946
+ :meta_phone_number_id,
947
+ :display_phone_number_name,
948
+ :display_phone_number,
949
+ :quality_rating)
950
+ SENSITIVE = []
951
+ include Aws::Structure
952
+ end
953
+
954
+ # The details of a linked phone number.
955
+ #
956
+ # @!attribute [rw] arn
957
+ # The full Amazon Resource Name (ARN) for the phone number.
958
+ # @return [String]
959
+ #
960
+ # @!attribute [rw] phone_number
961
+ # The phone number associated with the Linked WhatsApp Business
962
+ # Account.
963
+ # @return [String]
964
+ #
965
+ # @!attribute [rw] phone_number_id
966
+ # The phone number ID. Phone number identifiers are formatted as
967
+ # `phone-number-id-01234567890123456789012345678901`.
968
+ # @return [String]
969
+ #
970
+ # @!attribute [rw] meta_phone_number_id
971
+ # The phone number ID from Meta.
972
+ # @return [String]
973
+ #
974
+ # @!attribute [rw] display_phone_number_name
975
+ # The display name for this phone number.
976
+ # @return [String]
977
+ #
978
+ # @!attribute [rw] display_phone_number
979
+ # The phone number that appears in the recipients display.
980
+ # @return [String]
981
+ #
982
+ # @!attribute [rw] quality_rating
983
+ # The quality rating of the phone number. This is from Meta.
984
+ # @return [String]
985
+ #
986
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WhatsAppPhoneNumberSummary AWS API Documentation
987
+ #
988
+ class WhatsAppPhoneNumberSummary < Struct.new(
989
+ :arn,
990
+ :phone_number,
991
+ :phone_number_id,
992
+ :meta_phone_number_id,
993
+ :display_phone_number_name,
994
+ :display_phone_number,
995
+ :quality_rating)
996
+ SENSITIVE = []
997
+ include Aws::Structure
998
+ end
999
+
1000
+ # The details of linking a WhatsApp Business Account to your Amazon Web
1001
+ # Services account.
1002
+ #
1003
+ # @!attribute [rw] associate_in_progress_token
1004
+ # An Amazon Web Services access token generated by
1005
+ # `WhatsAppSignupCallback` and used by `WhatsAppSetupFinalization`.
1006
+ # @return [String]
1007
+ #
1008
+ # @!attribute [rw] phone_numbers
1009
+ # An array of WabaPhoneNumberSetupFinalization objects containing the
1010
+ # details of each phone number associated with the WhatsApp Business
1011
+ # Account.
1012
+ # @return [Array<Types::WabaPhoneNumberSetupFinalization>]
1013
+ #
1014
+ # @!attribute [rw] phone_number_parent
1015
+ # Used to add a new phone number to an existing WhatsApp Business
1016
+ # Account. This field can't be used when the `waba` field is present.
1017
+ # @return [String]
1018
+ #
1019
+ # @!attribute [rw] waba
1020
+ # Used to create a new WhatsApp Business Account and add a phone
1021
+ # number. This field can't be used when the `phoneNumberParent` field
1022
+ # is present.
1023
+ # @return [Types::WabaSetupFinalization]
1024
+ #
1025
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WhatsAppSetupFinalization AWS API Documentation
1026
+ #
1027
+ class WhatsAppSetupFinalization < Struct.new(
1028
+ :associate_in_progress_token,
1029
+ :phone_numbers,
1030
+ :phone_number_parent,
1031
+ :waba)
1032
+ SENSITIVE = [:associate_in_progress_token]
1033
+ include Aws::Structure
1034
+ end
1035
+
1036
+ # Contains the `accessToken` provided by Meta during signup.
1037
+ #
1038
+ # @!attribute [rw] access_token
1039
+ # The access token for your WhatsApp Business Account. The
1040
+ # `accessToken` value is provided by Meta.
1041
+ # @return [String]
1042
+ #
1043
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WhatsAppSignupCallback AWS API Documentation
1044
+ #
1045
+ class WhatsAppSignupCallback < Struct.new(
1046
+ :access_token)
1047
+ SENSITIVE = []
1048
+ include Aws::Structure
1049
+ end
1050
+
1051
+ # Contains the results of WhatsAppSignupCallback.
1052
+ #
1053
+ # @!attribute [rw] associate_in_progress_token
1054
+ # An Amazon Web Services access token generated by
1055
+ # `WhatsAppSignupCallback` and used by `WhatsAppSetupFinalization`.
1056
+ # @return [String]
1057
+ #
1058
+ # @!attribute [rw] linked_accounts_with_incomplete_setup
1059
+ # A LinkedWhatsAppBusinessAccountIdMetaData object map containing the
1060
+ # details of any WhatsAppBusiness accounts that have incomplete setup.
1061
+ # @return [Hash<String,Types::LinkedWhatsAppBusinessAccountIdMetaData>]
1062
+ #
1063
+ # @see http://docs.aws.amazon.com/goto/WebAPI/socialmessaging-2024-01-01/WhatsAppSignupCallbackResult AWS API Documentation
1064
+ #
1065
+ class WhatsAppSignupCallbackResult < Struct.new(
1066
+ :associate_in_progress_token,
1067
+ :linked_accounts_with_incomplete_setup)
1068
+ SENSITIVE = [:associate_in_progress_token]
1069
+ include Aws::Structure
1070
+ end
1071
+
1072
+ end
1073
+ end
1074
+