aws-sdk-sns 1.88.0 → 1.112.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +120 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +309 -133
- data/lib/aws-sdk-sns/client_api.rb +33 -33
- data/lib/aws-sdk-sns/customizations.rb +0 -1
- data/lib/aws-sdk-sns/endpoint_parameters.rb +13 -10
- data/lib/aws-sdk-sns/endpoint_provider.rb +15 -19
- data/lib/aws-sdk-sns/endpoints.rb +2 -460
- data/lib/aws-sdk-sns/errors.rb +93 -0
- data/lib/aws-sdk-sns/platform_application.rb +0 -1
- data/lib/aws-sdk-sns/platform_endpoint.rb +61 -21
- data/lib/aws-sdk-sns/plugins/endpoints.rb +1 -90
- data/lib/aws-sdk-sns/resource.rb +117 -24
- data/lib/aws-sdk-sns/subscription.rb +0 -4
- data/lib/aws-sdk-sns/topic.rb +99 -43
- data/lib/aws-sdk-sns/types.rb +264 -105
- data/lib/aws-sdk-sns.rb +1 -1
- data/sig/client.rbs +3 -0
- data/sig/resource.rbs +3 -0
- metadata +6 -9
data/lib/aws-sdk-sns/errors.rb
CHANGED
|
@@ -28,37 +28,68 @@ module Aws::SNS
|
|
|
28
28
|
#
|
|
29
29
|
# ## Error Classes
|
|
30
30
|
# * {AuthorizationErrorException}
|
|
31
|
+
# * This error class is not used. `AuthorizationError` is used during parsing instead.
|
|
31
32
|
# * {BatchEntryIdsNotDistinctException}
|
|
33
|
+
# * This error class is not used. `BatchEntryIdsNotDistinct` is used during parsing instead.
|
|
32
34
|
# * {BatchRequestTooLongException}
|
|
35
|
+
# * This error class is not used. `BatchRequestTooLong` is used during parsing instead.
|
|
33
36
|
# * {ConcurrentAccessException}
|
|
37
|
+
# * This error class is not used. `ConcurrentAccess` is used during parsing instead.
|
|
34
38
|
# * {EmptyBatchRequestException}
|
|
39
|
+
# * This error class is not used. `EmptyBatchRequest` is used during parsing instead.
|
|
35
40
|
# * {EndpointDisabledException}
|
|
41
|
+
# * This error class is not used. `EndpointDisabled` is used during parsing instead.
|
|
36
42
|
# * {FilterPolicyLimitExceededException}
|
|
43
|
+
# * This error class is not used. `FilterPolicyLimitExceeded` is used during parsing instead.
|
|
37
44
|
# * {InternalErrorException}
|
|
45
|
+
# * This error class is not used. `InternalError` is used during parsing instead.
|
|
38
46
|
# * {InvalidBatchEntryIdException}
|
|
47
|
+
# * This error class is not used. `InvalidBatchEntryId` is used during parsing instead.
|
|
39
48
|
# * {InvalidParameterException}
|
|
49
|
+
# * This error class is not used. `InvalidParameter` is used during parsing instead.
|
|
40
50
|
# * {InvalidParameterValueException}
|
|
51
|
+
# * This error class is not used. `ParameterValueInvalid` is used during parsing instead.
|
|
41
52
|
# * {InvalidSecurityException}
|
|
53
|
+
# * This error class is not used. `InvalidSecurity` is used during parsing instead.
|
|
42
54
|
# * {InvalidStateException}
|
|
55
|
+
# * This error class is not used. `InvalidState` is used during parsing instead.
|
|
43
56
|
# * {KMSAccessDeniedException}
|
|
57
|
+
# * This error class is not used. `KMSAccessDenied` is used during parsing instead.
|
|
44
58
|
# * {KMSDisabledException}
|
|
59
|
+
# * This error class is not used. `KMSDisabled` is used during parsing instead.
|
|
45
60
|
# * {KMSInvalidStateException}
|
|
61
|
+
# * This error class is not used. `KMSInvalidState` is used during parsing instead.
|
|
46
62
|
# * {KMSNotFoundException}
|
|
63
|
+
# * This error class is not used. `KMSNotFound` is used during parsing instead.
|
|
47
64
|
# * {KMSOptInRequired}
|
|
48
65
|
# * {KMSThrottlingException}
|
|
66
|
+
# * This error class is not used. `KMSThrottling` is used during parsing instead.
|
|
49
67
|
# * {NotFoundException}
|
|
68
|
+
# * This error class is not used. `NotFound` is used during parsing instead.
|
|
50
69
|
# * {OptedOutException}
|
|
70
|
+
# * This error class is not used. `OptedOut` is used during parsing instead.
|
|
51
71
|
# * {PlatformApplicationDisabledException}
|
|
72
|
+
# * This error class is not used. `PlatformApplicationDisabled` is used during parsing instead.
|
|
52
73
|
# * {ReplayLimitExceededException}
|
|
74
|
+
# * This error class is not used. `ReplayLimitExceeded` is used during parsing instead.
|
|
53
75
|
# * {ResourceNotFoundException}
|
|
76
|
+
# * This error class is not used. `ResourceNotFound` is used during parsing instead.
|
|
54
77
|
# * {StaleTagException}
|
|
78
|
+
# * This error class is not used. `StaleTag` is used during parsing instead.
|
|
55
79
|
# * {SubscriptionLimitExceededException}
|
|
80
|
+
# * This error class is not used. `SubscriptionLimitExceeded` is used during parsing instead.
|
|
56
81
|
# * {TagLimitExceededException}
|
|
82
|
+
# * This error class is not used. `TagLimitExceeded` is used during parsing instead.
|
|
57
83
|
# * {TagPolicyException}
|
|
84
|
+
# * This error class is not used. `TagPolicy` is used during parsing instead.
|
|
58
85
|
# * {ThrottledException}
|
|
86
|
+
# * This error class is not used. `Throttled` is used during parsing instead.
|
|
59
87
|
# * {TooManyEntriesInBatchRequestException}
|
|
88
|
+
# * This error class is not used. `TooManyEntriesInBatchRequest` is used during parsing instead.
|
|
60
89
|
# * {TopicLimitExceededException}
|
|
90
|
+
# * This error class is not used. `TopicLimitExceeded` is used during parsing instead.
|
|
61
91
|
# * {UserErrorException}
|
|
92
|
+
# * This error class is not used. `UserError` is used during parsing instead.
|
|
62
93
|
# * {ValidationException}
|
|
63
94
|
# * {VerificationException}
|
|
64
95
|
#
|
|
@@ -68,6 +99,8 @@ module Aws::SNS
|
|
|
68
99
|
|
|
69
100
|
extend Aws::Errors::DynamicErrors
|
|
70
101
|
|
|
102
|
+
# @deprecated This error class is not used during parsing.
|
|
103
|
+
# Please use `AuthorizationError` instead.
|
|
71
104
|
class AuthorizationErrorException < ServiceError
|
|
72
105
|
|
|
73
106
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -83,6 +116,8 @@ module Aws::SNS
|
|
|
83
116
|
end
|
|
84
117
|
end
|
|
85
118
|
|
|
119
|
+
# @deprecated This error class is not used during parsing.
|
|
120
|
+
# Please use `BatchEntryIdsNotDistinct` instead.
|
|
86
121
|
class BatchEntryIdsNotDistinctException < ServiceError
|
|
87
122
|
|
|
88
123
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -98,6 +133,8 @@ module Aws::SNS
|
|
|
98
133
|
end
|
|
99
134
|
end
|
|
100
135
|
|
|
136
|
+
# @deprecated This error class is not used during parsing.
|
|
137
|
+
# Please use `BatchRequestTooLong` instead.
|
|
101
138
|
class BatchRequestTooLongException < ServiceError
|
|
102
139
|
|
|
103
140
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -113,6 +150,8 @@ module Aws::SNS
|
|
|
113
150
|
end
|
|
114
151
|
end
|
|
115
152
|
|
|
153
|
+
# @deprecated This error class is not used during parsing.
|
|
154
|
+
# Please use `ConcurrentAccess` instead.
|
|
116
155
|
class ConcurrentAccessException < ServiceError
|
|
117
156
|
|
|
118
157
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -128,6 +167,8 @@ module Aws::SNS
|
|
|
128
167
|
end
|
|
129
168
|
end
|
|
130
169
|
|
|
170
|
+
# @deprecated This error class is not used during parsing.
|
|
171
|
+
# Please use `EmptyBatchRequest` instead.
|
|
131
172
|
class EmptyBatchRequestException < ServiceError
|
|
132
173
|
|
|
133
174
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -143,6 +184,8 @@ module Aws::SNS
|
|
|
143
184
|
end
|
|
144
185
|
end
|
|
145
186
|
|
|
187
|
+
# @deprecated This error class is not used during parsing.
|
|
188
|
+
# Please use `EndpointDisabled` instead.
|
|
146
189
|
class EndpointDisabledException < ServiceError
|
|
147
190
|
|
|
148
191
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -158,6 +201,8 @@ module Aws::SNS
|
|
|
158
201
|
end
|
|
159
202
|
end
|
|
160
203
|
|
|
204
|
+
# @deprecated This error class is not used during parsing.
|
|
205
|
+
# Please use `FilterPolicyLimitExceeded` instead.
|
|
161
206
|
class FilterPolicyLimitExceededException < ServiceError
|
|
162
207
|
|
|
163
208
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -173,6 +218,8 @@ module Aws::SNS
|
|
|
173
218
|
end
|
|
174
219
|
end
|
|
175
220
|
|
|
221
|
+
# @deprecated This error class is not used during parsing.
|
|
222
|
+
# Please use `InternalError` instead.
|
|
176
223
|
class InternalErrorException < ServiceError
|
|
177
224
|
|
|
178
225
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -188,6 +235,8 @@ module Aws::SNS
|
|
|
188
235
|
end
|
|
189
236
|
end
|
|
190
237
|
|
|
238
|
+
# @deprecated This error class is not used during parsing.
|
|
239
|
+
# Please use `InvalidBatchEntryId` instead.
|
|
191
240
|
class InvalidBatchEntryIdException < ServiceError
|
|
192
241
|
|
|
193
242
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -203,6 +252,8 @@ module Aws::SNS
|
|
|
203
252
|
end
|
|
204
253
|
end
|
|
205
254
|
|
|
255
|
+
# @deprecated This error class is not used during parsing.
|
|
256
|
+
# Please use `InvalidParameter` instead.
|
|
206
257
|
class InvalidParameterException < ServiceError
|
|
207
258
|
|
|
208
259
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -218,6 +269,8 @@ module Aws::SNS
|
|
|
218
269
|
end
|
|
219
270
|
end
|
|
220
271
|
|
|
272
|
+
# @deprecated This error class is not used during parsing.
|
|
273
|
+
# Please use `ParameterValueInvalid` instead.
|
|
221
274
|
class InvalidParameterValueException < ServiceError
|
|
222
275
|
|
|
223
276
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -233,6 +286,8 @@ module Aws::SNS
|
|
|
233
286
|
end
|
|
234
287
|
end
|
|
235
288
|
|
|
289
|
+
# @deprecated This error class is not used during parsing.
|
|
290
|
+
# Please use `InvalidSecurity` instead.
|
|
236
291
|
class InvalidSecurityException < ServiceError
|
|
237
292
|
|
|
238
293
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -248,6 +303,8 @@ module Aws::SNS
|
|
|
248
303
|
end
|
|
249
304
|
end
|
|
250
305
|
|
|
306
|
+
# @deprecated This error class is not used during parsing.
|
|
307
|
+
# Please use `InvalidState` instead.
|
|
251
308
|
class InvalidStateException < ServiceError
|
|
252
309
|
|
|
253
310
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -263,6 +320,8 @@ module Aws::SNS
|
|
|
263
320
|
end
|
|
264
321
|
end
|
|
265
322
|
|
|
323
|
+
# @deprecated This error class is not used during parsing.
|
|
324
|
+
# Please use `KMSAccessDenied` instead.
|
|
266
325
|
class KMSAccessDeniedException < ServiceError
|
|
267
326
|
|
|
268
327
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -278,6 +337,8 @@ module Aws::SNS
|
|
|
278
337
|
end
|
|
279
338
|
end
|
|
280
339
|
|
|
340
|
+
# @deprecated This error class is not used during parsing.
|
|
341
|
+
# Please use `KMSDisabled` instead.
|
|
281
342
|
class KMSDisabledException < ServiceError
|
|
282
343
|
|
|
283
344
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -293,6 +354,8 @@ module Aws::SNS
|
|
|
293
354
|
end
|
|
294
355
|
end
|
|
295
356
|
|
|
357
|
+
# @deprecated This error class is not used during parsing.
|
|
358
|
+
# Please use `KMSInvalidState` instead.
|
|
296
359
|
class KMSInvalidStateException < ServiceError
|
|
297
360
|
|
|
298
361
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -308,6 +371,8 @@ module Aws::SNS
|
|
|
308
371
|
end
|
|
309
372
|
end
|
|
310
373
|
|
|
374
|
+
# @deprecated This error class is not used during parsing.
|
|
375
|
+
# Please use `KMSNotFound` instead.
|
|
311
376
|
class KMSNotFoundException < ServiceError
|
|
312
377
|
|
|
313
378
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -338,6 +403,8 @@ module Aws::SNS
|
|
|
338
403
|
end
|
|
339
404
|
end
|
|
340
405
|
|
|
406
|
+
# @deprecated This error class is not used during parsing.
|
|
407
|
+
# Please use `KMSThrottling` instead.
|
|
341
408
|
class KMSThrottlingException < ServiceError
|
|
342
409
|
|
|
343
410
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -353,6 +420,8 @@ module Aws::SNS
|
|
|
353
420
|
end
|
|
354
421
|
end
|
|
355
422
|
|
|
423
|
+
# @deprecated This error class is not used during parsing.
|
|
424
|
+
# Please use `NotFound` instead.
|
|
356
425
|
class NotFoundException < ServiceError
|
|
357
426
|
|
|
358
427
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -368,6 +437,8 @@ module Aws::SNS
|
|
|
368
437
|
end
|
|
369
438
|
end
|
|
370
439
|
|
|
440
|
+
# @deprecated This error class is not used during parsing.
|
|
441
|
+
# Please use `OptedOut` instead.
|
|
371
442
|
class OptedOutException < ServiceError
|
|
372
443
|
|
|
373
444
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -383,6 +454,8 @@ module Aws::SNS
|
|
|
383
454
|
end
|
|
384
455
|
end
|
|
385
456
|
|
|
457
|
+
# @deprecated This error class is not used during parsing.
|
|
458
|
+
# Please use `PlatformApplicationDisabled` instead.
|
|
386
459
|
class PlatformApplicationDisabledException < ServiceError
|
|
387
460
|
|
|
388
461
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -398,6 +471,8 @@ module Aws::SNS
|
|
|
398
471
|
end
|
|
399
472
|
end
|
|
400
473
|
|
|
474
|
+
# @deprecated This error class is not used during parsing.
|
|
475
|
+
# Please use `ReplayLimitExceeded` instead.
|
|
401
476
|
class ReplayLimitExceededException < ServiceError
|
|
402
477
|
|
|
403
478
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -413,6 +488,8 @@ module Aws::SNS
|
|
|
413
488
|
end
|
|
414
489
|
end
|
|
415
490
|
|
|
491
|
+
# @deprecated This error class is not used during parsing.
|
|
492
|
+
# Please use `ResourceNotFound` instead.
|
|
416
493
|
class ResourceNotFoundException < ServiceError
|
|
417
494
|
|
|
418
495
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -428,6 +505,8 @@ module Aws::SNS
|
|
|
428
505
|
end
|
|
429
506
|
end
|
|
430
507
|
|
|
508
|
+
# @deprecated This error class is not used during parsing.
|
|
509
|
+
# Please use `StaleTag` instead.
|
|
431
510
|
class StaleTagException < ServiceError
|
|
432
511
|
|
|
433
512
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -443,6 +522,8 @@ module Aws::SNS
|
|
|
443
522
|
end
|
|
444
523
|
end
|
|
445
524
|
|
|
525
|
+
# @deprecated This error class is not used during parsing.
|
|
526
|
+
# Please use `SubscriptionLimitExceeded` instead.
|
|
446
527
|
class SubscriptionLimitExceededException < ServiceError
|
|
447
528
|
|
|
448
529
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -458,6 +539,8 @@ module Aws::SNS
|
|
|
458
539
|
end
|
|
459
540
|
end
|
|
460
541
|
|
|
542
|
+
# @deprecated This error class is not used during parsing.
|
|
543
|
+
# Please use `TagLimitExceeded` instead.
|
|
461
544
|
class TagLimitExceededException < ServiceError
|
|
462
545
|
|
|
463
546
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -473,6 +556,8 @@ module Aws::SNS
|
|
|
473
556
|
end
|
|
474
557
|
end
|
|
475
558
|
|
|
559
|
+
# @deprecated This error class is not used during parsing.
|
|
560
|
+
# Please use `TagPolicy` instead.
|
|
476
561
|
class TagPolicyException < ServiceError
|
|
477
562
|
|
|
478
563
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -488,6 +573,8 @@ module Aws::SNS
|
|
|
488
573
|
end
|
|
489
574
|
end
|
|
490
575
|
|
|
576
|
+
# @deprecated This error class is not used during parsing.
|
|
577
|
+
# Please use `Throttled` instead.
|
|
491
578
|
class ThrottledException < ServiceError
|
|
492
579
|
|
|
493
580
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -503,6 +590,8 @@ module Aws::SNS
|
|
|
503
590
|
end
|
|
504
591
|
end
|
|
505
592
|
|
|
593
|
+
# @deprecated This error class is not used during parsing.
|
|
594
|
+
# Please use `TooManyEntriesInBatchRequest` instead.
|
|
506
595
|
class TooManyEntriesInBatchRequestException < ServiceError
|
|
507
596
|
|
|
508
597
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -518,6 +607,8 @@ module Aws::SNS
|
|
|
518
607
|
end
|
|
519
608
|
end
|
|
520
609
|
|
|
610
|
+
# @deprecated This error class is not used during parsing.
|
|
611
|
+
# Please use `TopicLimitExceeded` instead.
|
|
521
612
|
class TopicLimitExceededException < ServiceError
|
|
522
613
|
|
|
523
614
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -533,6 +624,8 @@ module Aws::SNS
|
|
|
533
624
|
end
|
|
534
625
|
end
|
|
535
626
|
|
|
627
|
+
# @deprecated This error class is not used during parsing.
|
|
628
|
+
# Please use `UserError` instead.
|
|
536
629
|
class UserErrorException < ServiceError
|
|
537
630
|
|
|
538
631
|
# @param [Seahorse::Client::RequestContext] context
|
|
@@ -221,30 +221,70 @@ module Aws::SNS
|
|
|
221
221
|
# @option options [Hash<String,Types::MessageAttributeValue>] :message_attributes
|
|
222
222
|
# Message attributes for Publish action.
|
|
223
223
|
# @option options [String] :message_deduplication_id
|
|
224
|
-
# This parameter applies only to FIFO (first-in-first-out) topics. The
|
|
225
|
-
#
|
|
224
|
+
# * This parameter applies only to FIFO (first-in-first-out) topics. The
|
|
225
|
+
# `MessageDeduplicationId` can contain up to 128 alphanumeric
|
|
226
|
+
# characters `(a-z, A-Z, 0-9)` and punctuation ``
|
|
227
|
+
# (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~) ``.
|
|
228
|
+
#
|
|
229
|
+
# * Every message must have a unique `MessageDeduplicationId`, which is
|
|
230
|
+
# a token used for deduplication of sent messages within the 5 minute
|
|
231
|
+
# minimum deduplication interval.
|
|
232
|
+
#
|
|
233
|
+
# * The scope of deduplication depends on the `FifoThroughputScope`
|
|
234
|
+
# attribute, when set to `Topic` the message deduplication scope is
|
|
235
|
+
# across the entire topic, when set to `MessageGroup` the message
|
|
236
|
+
# deduplication scope is within each individual message group.
|
|
237
|
+
#
|
|
238
|
+
# * If a message with a particular `MessageDeduplicationId` is sent
|
|
239
|
+
# successfully, subsequent messages within the deduplication scope and
|
|
240
|
+
# interval, with the same `MessageDeduplicationId`, are accepted
|
|
241
|
+
# successfully but aren't delivered.
|
|
242
|
+
#
|
|
243
|
+
# * Every message must have a unique `MessageDeduplicationId`:
|
|
244
|
+
#
|
|
245
|
+
# * You may provide a `MessageDeduplicationId` explicitly.
|
|
246
|
+
#
|
|
247
|
+
# * If you aren't able to provide a `MessageDeduplicationId` and you
|
|
248
|
+
# enable `ContentBasedDeduplication` for your topic, Amazon SNS uses
|
|
249
|
+
# a SHA-256 hash to generate the `MessageDeduplicationId` using the
|
|
250
|
+
# body of the message (but not the attributes of the message).
|
|
251
|
+
#
|
|
252
|
+
# * If you don't provide a `MessageDeduplicationId` and the topic
|
|
253
|
+
# doesn't have `ContentBasedDeduplication` set, the action fails
|
|
254
|
+
# with an error.
|
|
255
|
+
#
|
|
256
|
+
# * If the topic has a `ContentBasedDeduplication` set, your
|
|
257
|
+
# `MessageDeduplicationId` overrides the generated one.
|
|
258
|
+
# * When `ContentBasedDeduplication` is in effect, messages with
|
|
259
|
+
# identical content sent within the deduplication scope and interval
|
|
260
|
+
# are treated as duplicates and only one copy of the message is
|
|
261
|
+
# delivered.
|
|
262
|
+
#
|
|
263
|
+
# * If you send one message with `ContentBasedDeduplication` enabled,
|
|
264
|
+
# and then another message with a `MessageDeduplicationId` that is the
|
|
265
|
+
# same as the one generated for the first `MessageDeduplicationId`,
|
|
266
|
+
# the two messages are treated as duplicates, within the deduplication
|
|
267
|
+
# scope and interval, and only one copy of the message is delivered.
|
|
268
|
+
# @option options [String] :message_group_id
|
|
269
|
+
# The `MessageGroupId` can contain up to 128 alphanumeric characters
|
|
226
270
|
# `(a-z, A-Z, 0-9)` and punctuation ``
|
|
227
|
-
# (!"#$%&'()*+,-./:;<=>?@[\]^_
|
|
271
|
+
# (!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~) ``.
|
|
228
272
|
#
|
|
229
|
-
#
|
|
230
|
-
#
|
|
231
|
-
#
|
|
232
|
-
#
|
|
233
|
-
#
|
|
273
|
+
# For FIFO topics: The `MessageGroupId` is a tag that specifies that a
|
|
274
|
+
# message belongs to a specific message group. Messages that belong to
|
|
275
|
+
# the same message group are processed in a FIFO manner (however,
|
|
276
|
+
# messages in different message groups might be processed out of order).
|
|
277
|
+
# Every message must include a `MessageGroupId`.
|
|
234
278
|
#
|
|
235
|
-
#
|
|
236
|
-
#
|
|
237
|
-
# `
|
|
238
|
-
#
|
|
239
|
-
#
|
|
240
|
-
#
|
|
241
|
-
#
|
|
242
|
-
#
|
|
243
|
-
#
|
|
244
|
-
# a specific message group. Messages that belong to the same message
|
|
245
|
-
# group are processed in a FIFO manner (however, messages in different
|
|
246
|
-
# message groups might be processed out of order). Every message must
|
|
247
|
-
# include a `MessageGroupId`.
|
|
279
|
+
# For standard topics: The `MessageGroupId` is optional and is forwarded
|
|
280
|
+
# only to Amazon SQS standard subscriptions to activate [fair
|
|
281
|
+
# queues][1]. The `MessageGroupId` is not used for, or sent to, any
|
|
282
|
+
# other endpoint types. When provided, the same validation rules apply
|
|
283
|
+
# as for FIFO topics.
|
|
284
|
+
#
|
|
285
|
+
#
|
|
286
|
+
#
|
|
287
|
+
# [1]: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-fair-queues.html
|
|
248
288
|
# @return [Types::PublishResponse]
|
|
249
289
|
def publish(options = {})
|
|
250
290
|
options = options.merge(target_arn: @arn)
|
|
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
|
27
27
|
class Handler < Seahorse::Client::Handler
|
|
28
28
|
def call(context)
|
|
29
29
|
unless context[:discovered_endpoint]
|
|
30
|
-
params = parameters_for_operation(context)
|
|
30
|
+
params = Aws::SNS::Endpoints.parameters_for_operation(context)
|
|
31
31
|
endpoint = context.config.endpoint_provider.resolve_endpoint(params)
|
|
32
32
|
|
|
33
33
|
context.http_request.endpoint = endpoint.url
|
|
@@ -67,95 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
|
|
|
67
67
|
context.http_request.headers[key] = value
|
|
68
68
|
end
|
|
69
69
|
end
|
|
70
|
-
|
|
71
|
-
def parameters_for_operation(context)
|
|
72
|
-
case context.operation_name
|
|
73
|
-
when :add_permission
|
|
74
|
-
Aws::SNS::Endpoints::AddPermission.build(context)
|
|
75
|
-
when :check_if_phone_number_is_opted_out
|
|
76
|
-
Aws::SNS::Endpoints::CheckIfPhoneNumberIsOptedOut.build(context)
|
|
77
|
-
when :confirm_subscription
|
|
78
|
-
Aws::SNS::Endpoints::ConfirmSubscription.build(context)
|
|
79
|
-
when :create_platform_application
|
|
80
|
-
Aws::SNS::Endpoints::CreatePlatformApplication.build(context)
|
|
81
|
-
when :create_platform_endpoint
|
|
82
|
-
Aws::SNS::Endpoints::CreatePlatformEndpoint.build(context)
|
|
83
|
-
when :create_sms_sandbox_phone_number
|
|
84
|
-
Aws::SNS::Endpoints::CreateSMSSandboxPhoneNumber.build(context)
|
|
85
|
-
when :create_topic
|
|
86
|
-
Aws::SNS::Endpoints::CreateTopic.build(context)
|
|
87
|
-
when :delete_endpoint
|
|
88
|
-
Aws::SNS::Endpoints::DeleteEndpoint.build(context)
|
|
89
|
-
when :delete_platform_application
|
|
90
|
-
Aws::SNS::Endpoints::DeletePlatformApplication.build(context)
|
|
91
|
-
when :delete_sms_sandbox_phone_number
|
|
92
|
-
Aws::SNS::Endpoints::DeleteSMSSandboxPhoneNumber.build(context)
|
|
93
|
-
when :delete_topic
|
|
94
|
-
Aws::SNS::Endpoints::DeleteTopic.build(context)
|
|
95
|
-
when :get_data_protection_policy
|
|
96
|
-
Aws::SNS::Endpoints::GetDataProtectionPolicy.build(context)
|
|
97
|
-
when :get_endpoint_attributes
|
|
98
|
-
Aws::SNS::Endpoints::GetEndpointAttributes.build(context)
|
|
99
|
-
when :get_platform_application_attributes
|
|
100
|
-
Aws::SNS::Endpoints::GetPlatformApplicationAttributes.build(context)
|
|
101
|
-
when :get_sms_attributes
|
|
102
|
-
Aws::SNS::Endpoints::GetSMSAttributes.build(context)
|
|
103
|
-
when :get_sms_sandbox_account_status
|
|
104
|
-
Aws::SNS::Endpoints::GetSMSSandboxAccountStatus.build(context)
|
|
105
|
-
when :get_subscription_attributes
|
|
106
|
-
Aws::SNS::Endpoints::GetSubscriptionAttributes.build(context)
|
|
107
|
-
when :get_topic_attributes
|
|
108
|
-
Aws::SNS::Endpoints::GetTopicAttributes.build(context)
|
|
109
|
-
when :list_endpoints_by_platform_application
|
|
110
|
-
Aws::SNS::Endpoints::ListEndpointsByPlatformApplication.build(context)
|
|
111
|
-
when :list_origination_numbers
|
|
112
|
-
Aws::SNS::Endpoints::ListOriginationNumbers.build(context)
|
|
113
|
-
when :list_phone_numbers_opted_out
|
|
114
|
-
Aws::SNS::Endpoints::ListPhoneNumbersOptedOut.build(context)
|
|
115
|
-
when :list_platform_applications
|
|
116
|
-
Aws::SNS::Endpoints::ListPlatformApplications.build(context)
|
|
117
|
-
when :list_sms_sandbox_phone_numbers
|
|
118
|
-
Aws::SNS::Endpoints::ListSMSSandboxPhoneNumbers.build(context)
|
|
119
|
-
when :list_subscriptions
|
|
120
|
-
Aws::SNS::Endpoints::ListSubscriptions.build(context)
|
|
121
|
-
when :list_subscriptions_by_topic
|
|
122
|
-
Aws::SNS::Endpoints::ListSubscriptionsByTopic.build(context)
|
|
123
|
-
when :list_tags_for_resource
|
|
124
|
-
Aws::SNS::Endpoints::ListTagsForResource.build(context)
|
|
125
|
-
when :list_topics
|
|
126
|
-
Aws::SNS::Endpoints::ListTopics.build(context)
|
|
127
|
-
when :opt_in_phone_number
|
|
128
|
-
Aws::SNS::Endpoints::OptInPhoneNumber.build(context)
|
|
129
|
-
when :publish
|
|
130
|
-
Aws::SNS::Endpoints::Publish.build(context)
|
|
131
|
-
when :publish_batch
|
|
132
|
-
Aws::SNS::Endpoints::PublishBatch.build(context)
|
|
133
|
-
when :put_data_protection_policy
|
|
134
|
-
Aws::SNS::Endpoints::PutDataProtectionPolicy.build(context)
|
|
135
|
-
when :remove_permission
|
|
136
|
-
Aws::SNS::Endpoints::RemovePermission.build(context)
|
|
137
|
-
when :set_endpoint_attributes
|
|
138
|
-
Aws::SNS::Endpoints::SetEndpointAttributes.build(context)
|
|
139
|
-
when :set_platform_application_attributes
|
|
140
|
-
Aws::SNS::Endpoints::SetPlatformApplicationAttributes.build(context)
|
|
141
|
-
when :set_sms_attributes
|
|
142
|
-
Aws::SNS::Endpoints::SetSMSAttributes.build(context)
|
|
143
|
-
when :set_subscription_attributes
|
|
144
|
-
Aws::SNS::Endpoints::SetSubscriptionAttributes.build(context)
|
|
145
|
-
when :set_topic_attributes
|
|
146
|
-
Aws::SNS::Endpoints::SetTopicAttributes.build(context)
|
|
147
|
-
when :subscribe
|
|
148
|
-
Aws::SNS::Endpoints::Subscribe.build(context)
|
|
149
|
-
when :tag_resource
|
|
150
|
-
Aws::SNS::Endpoints::TagResource.build(context)
|
|
151
|
-
when :unsubscribe
|
|
152
|
-
Aws::SNS::Endpoints::Unsubscribe.build(context)
|
|
153
|
-
when :untag_resource
|
|
154
|
-
Aws::SNS::Endpoints::UntagResource.build(context)
|
|
155
|
-
when :verify_sms_sandbox_phone_number
|
|
156
|
-
Aws::SNS::Endpoints::VerifySMSSandboxPhoneNumber.build(context)
|
|
157
|
-
end
|
|
158
|
-
end
|
|
159
70
|
end
|
|
160
71
|
|
|
161
72
|
def add_handlers(handlers, _config)
|