aws-sdk-sns 1.60.0 → 1.96.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 +180 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +356 -153
- data/lib/aws-sdk-sns/client_api.rb +48 -33
- data/lib/aws-sdk-sns/customizations.rb +5 -1
- data/lib/aws-sdk-sns/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-sns/endpoint_provider.rb +16 -20
- data/lib/aws-sdk-sns/endpoints.rb +3 -586
- data/lib/aws-sdk-sns/errors.rb +32 -0
- data/lib/aws-sdk-sns/platform_application.rb +33 -8
- data/lib/aws-sdk-sns/platform_endpoint.rb +60 -23
- data/lib/aws-sdk-sns/plugins/endpoints.rb +23 -98
- data/lib/aws-sdk-sns/resource.rb +39 -10
- data/lib/aws-sdk-sns/subscription.rb +21 -21
- data/lib/aws-sdk-sns/topic.rb +134 -46
- data/lib/aws-sdk-sns/types.rb +266 -125
- data/lib/aws-sdk-sns.rb +19 -15
- data/sig/client.rbs +530 -0
- data/sig/errors.rbs +119 -0
- data/sig/platform_application.rbs +64 -0
- data/sig/platform_endpoint.rbs +68 -0
- data/sig/resource.rbs +133 -0
- data/sig/subscription.rbs +52 -0
- data/sig/topic.rbs +104 -0
- data/sig/types.rbs +664 -0
- data/sig/waiters.rbs +13 -0
- metadata +20 -11
@@ -9,595 +9,12 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
module Aws::SNS
|
12
|
+
# @api private
|
12
13
|
module Endpoints
|
13
14
|
|
14
|
-
class AddPermission
|
15
|
-
def self.build(context)
|
16
|
-
unless context.config.regional_endpoint
|
17
|
-
endpoint = context.config.endpoint.to_s
|
18
|
-
end
|
19
|
-
Aws::SNS::EndpointParameters.new(
|
20
|
-
region: context.config.region,
|
21
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
22
|
-
use_fips: context.config.use_fips_endpoint,
|
23
|
-
endpoint: endpoint,
|
24
|
-
)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
class CheckIfPhoneNumberIsOptedOut
|
29
|
-
def self.build(context)
|
30
|
-
unless context.config.regional_endpoint
|
31
|
-
endpoint = context.config.endpoint.to_s
|
32
|
-
end
|
33
|
-
Aws::SNS::EndpointParameters.new(
|
34
|
-
region: context.config.region,
|
35
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
36
|
-
use_fips: context.config.use_fips_endpoint,
|
37
|
-
endpoint: endpoint,
|
38
|
-
)
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
class ConfirmSubscription
|
43
|
-
def self.build(context)
|
44
|
-
unless context.config.regional_endpoint
|
45
|
-
endpoint = context.config.endpoint.to_s
|
46
|
-
end
|
47
|
-
Aws::SNS::EndpointParameters.new(
|
48
|
-
region: context.config.region,
|
49
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
50
|
-
use_fips: context.config.use_fips_endpoint,
|
51
|
-
endpoint: endpoint,
|
52
|
-
)
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
class CreatePlatformApplication
|
57
|
-
def self.build(context)
|
58
|
-
unless context.config.regional_endpoint
|
59
|
-
endpoint = context.config.endpoint.to_s
|
60
|
-
end
|
61
|
-
Aws::SNS::EndpointParameters.new(
|
62
|
-
region: context.config.region,
|
63
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
64
|
-
use_fips: context.config.use_fips_endpoint,
|
65
|
-
endpoint: endpoint,
|
66
|
-
)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
class CreatePlatformEndpoint
|
71
|
-
def self.build(context)
|
72
|
-
unless context.config.regional_endpoint
|
73
|
-
endpoint = context.config.endpoint.to_s
|
74
|
-
end
|
75
|
-
Aws::SNS::EndpointParameters.new(
|
76
|
-
region: context.config.region,
|
77
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
78
|
-
use_fips: context.config.use_fips_endpoint,
|
79
|
-
endpoint: endpoint,
|
80
|
-
)
|
81
|
-
end
|
82
|
-
end
|
83
|
-
|
84
|
-
class CreateSMSSandboxPhoneNumber
|
85
|
-
def self.build(context)
|
86
|
-
unless context.config.regional_endpoint
|
87
|
-
endpoint = context.config.endpoint.to_s
|
88
|
-
end
|
89
|
-
Aws::SNS::EndpointParameters.new(
|
90
|
-
region: context.config.region,
|
91
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
92
|
-
use_fips: context.config.use_fips_endpoint,
|
93
|
-
endpoint: endpoint,
|
94
|
-
)
|
95
|
-
end
|
96
|
-
end
|
97
|
-
|
98
|
-
class CreateTopic
|
99
|
-
def self.build(context)
|
100
|
-
unless context.config.regional_endpoint
|
101
|
-
endpoint = context.config.endpoint.to_s
|
102
|
-
end
|
103
|
-
Aws::SNS::EndpointParameters.new(
|
104
|
-
region: context.config.region,
|
105
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
106
|
-
use_fips: context.config.use_fips_endpoint,
|
107
|
-
endpoint: endpoint,
|
108
|
-
)
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
|
-
class DeleteEndpoint
|
113
|
-
def self.build(context)
|
114
|
-
unless context.config.regional_endpoint
|
115
|
-
endpoint = context.config.endpoint.to_s
|
116
|
-
end
|
117
|
-
Aws::SNS::EndpointParameters.new(
|
118
|
-
region: context.config.region,
|
119
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
120
|
-
use_fips: context.config.use_fips_endpoint,
|
121
|
-
endpoint: endpoint,
|
122
|
-
)
|
123
|
-
end
|
124
|
-
end
|
125
|
-
|
126
|
-
class DeletePlatformApplication
|
127
|
-
def self.build(context)
|
128
|
-
unless context.config.regional_endpoint
|
129
|
-
endpoint = context.config.endpoint.to_s
|
130
|
-
end
|
131
|
-
Aws::SNS::EndpointParameters.new(
|
132
|
-
region: context.config.region,
|
133
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
134
|
-
use_fips: context.config.use_fips_endpoint,
|
135
|
-
endpoint: endpoint,
|
136
|
-
)
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
class DeleteSMSSandboxPhoneNumber
|
141
|
-
def self.build(context)
|
142
|
-
unless context.config.regional_endpoint
|
143
|
-
endpoint = context.config.endpoint.to_s
|
144
|
-
end
|
145
|
-
Aws::SNS::EndpointParameters.new(
|
146
|
-
region: context.config.region,
|
147
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
148
|
-
use_fips: context.config.use_fips_endpoint,
|
149
|
-
endpoint: endpoint,
|
150
|
-
)
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
|
-
class DeleteTopic
|
155
|
-
def self.build(context)
|
156
|
-
unless context.config.regional_endpoint
|
157
|
-
endpoint = context.config.endpoint.to_s
|
158
|
-
end
|
159
|
-
Aws::SNS::EndpointParameters.new(
|
160
|
-
region: context.config.region,
|
161
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
162
|
-
use_fips: context.config.use_fips_endpoint,
|
163
|
-
endpoint: endpoint,
|
164
|
-
)
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
class GetDataProtectionPolicy
|
169
|
-
def self.build(context)
|
170
|
-
unless context.config.regional_endpoint
|
171
|
-
endpoint = context.config.endpoint.to_s
|
172
|
-
end
|
173
|
-
Aws::SNS::EndpointParameters.new(
|
174
|
-
region: context.config.region,
|
175
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
176
|
-
use_fips: context.config.use_fips_endpoint,
|
177
|
-
endpoint: endpoint,
|
178
|
-
)
|
179
|
-
end
|
180
|
-
end
|
181
|
-
|
182
|
-
class GetEndpointAttributes
|
183
|
-
def self.build(context)
|
184
|
-
unless context.config.regional_endpoint
|
185
|
-
endpoint = context.config.endpoint.to_s
|
186
|
-
end
|
187
|
-
Aws::SNS::EndpointParameters.new(
|
188
|
-
region: context.config.region,
|
189
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
190
|
-
use_fips: context.config.use_fips_endpoint,
|
191
|
-
endpoint: endpoint,
|
192
|
-
)
|
193
|
-
end
|
194
|
-
end
|
195
|
-
|
196
|
-
class GetPlatformApplicationAttributes
|
197
|
-
def self.build(context)
|
198
|
-
unless context.config.regional_endpoint
|
199
|
-
endpoint = context.config.endpoint.to_s
|
200
|
-
end
|
201
|
-
Aws::SNS::EndpointParameters.new(
|
202
|
-
region: context.config.region,
|
203
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
204
|
-
use_fips: context.config.use_fips_endpoint,
|
205
|
-
endpoint: endpoint,
|
206
|
-
)
|
207
|
-
end
|
208
|
-
end
|
209
|
-
|
210
|
-
class GetSMSAttributes
|
211
|
-
def self.build(context)
|
212
|
-
unless context.config.regional_endpoint
|
213
|
-
endpoint = context.config.endpoint.to_s
|
214
|
-
end
|
215
|
-
Aws::SNS::EndpointParameters.new(
|
216
|
-
region: context.config.region,
|
217
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
218
|
-
use_fips: context.config.use_fips_endpoint,
|
219
|
-
endpoint: endpoint,
|
220
|
-
)
|
221
|
-
end
|
222
|
-
end
|
223
|
-
|
224
|
-
class GetSMSSandboxAccountStatus
|
225
|
-
def self.build(context)
|
226
|
-
unless context.config.regional_endpoint
|
227
|
-
endpoint = context.config.endpoint.to_s
|
228
|
-
end
|
229
|
-
Aws::SNS::EndpointParameters.new(
|
230
|
-
region: context.config.region,
|
231
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
232
|
-
use_fips: context.config.use_fips_endpoint,
|
233
|
-
endpoint: endpoint,
|
234
|
-
)
|
235
|
-
end
|
236
|
-
end
|
237
|
-
|
238
|
-
class GetSubscriptionAttributes
|
239
|
-
def self.build(context)
|
240
|
-
unless context.config.regional_endpoint
|
241
|
-
endpoint = context.config.endpoint.to_s
|
242
|
-
end
|
243
|
-
Aws::SNS::EndpointParameters.new(
|
244
|
-
region: context.config.region,
|
245
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
246
|
-
use_fips: context.config.use_fips_endpoint,
|
247
|
-
endpoint: endpoint,
|
248
|
-
)
|
249
|
-
end
|
250
|
-
end
|
251
|
-
|
252
|
-
class GetTopicAttributes
|
253
|
-
def self.build(context)
|
254
|
-
unless context.config.regional_endpoint
|
255
|
-
endpoint = context.config.endpoint.to_s
|
256
|
-
end
|
257
|
-
Aws::SNS::EndpointParameters.new(
|
258
|
-
region: context.config.region,
|
259
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
260
|
-
use_fips: context.config.use_fips_endpoint,
|
261
|
-
endpoint: endpoint,
|
262
|
-
)
|
263
|
-
end
|
264
|
-
end
|
265
|
-
|
266
|
-
class ListEndpointsByPlatformApplication
|
267
|
-
def self.build(context)
|
268
|
-
unless context.config.regional_endpoint
|
269
|
-
endpoint = context.config.endpoint.to_s
|
270
|
-
end
|
271
|
-
Aws::SNS::EndpointParameters.new(
|
272
|
-
region: context.config.region,
|
273
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
274
|
-
use_fips: context.config.use_fips_endpoint,
|
275
|
-
endpoint: endpoint,
|
276
|
-
)
|
277
|
-
end
|
278
|
-
end
|
279
|
-
|
280
|
-
class ListOriginationNumbers
|
281
|
-
def self.build(context)
|
282
|
-
unless context.config.regional_endpoint
|
283
|
-
endpoint = context.config.endpoint.to_s
|
284
|
-
end
|
285
|
-
Aws::SNS::EndpointParameters.new(
|
286
|
-
region: context.config.region,
|
287
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
288
|
-
use_fips: context.config.use_fips_endpoint,
|
289
|
-
endpoint: endpoint,
|
290
|
-
)
|
291
|
-
end
|
292
|
-
end
|
293
|
-
|
294
|
-
class ListPhoneNumbersOptedOut
|
295
|
-
def self.build(context)
|
296
|
-
unless context.config.regional_endpoint
|
297
|
-
endpoint = context.config.endpoint.to_s
|
298
|
-
end
|
299
|
-
Aws::SNS::EndpointParameters.new(
|
300
|
-
region: context.config.region,
|
301
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
302
|
-
use_fips: context.config.use_fips_endpoint,
|
303
|
-
endpoint: endpoint,
|
304
|
-
)
|
305
|
-
end
|
306
|
-
end
|
307
15
|
|
308
|
-
|
309
|
-
|
310
|
-
unless context.config.regional_endpoint
|
311
|
-
endpoint = context.config.endpoint.to_s
|
312
|
-
end
|
313
|
-
Aws::SNS::EndpointParameters.new(
|
314
|
-
region: context.config.region,
|
315
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
316
|
-
use_fips: context.config.use_fips_endpoint,
|
317
|
-
endpoint: endpoint,
|
318
|
-
)
|
319
|
-
end
|
16
|
+
def self.parameters_for_operation(context)
|
17
|
+
Aws::SNS::EndpointParameters.create(context.config)
|
320
18
|
end
|
321
|
-
|
322
|
-
class ListSMSSandboxPhoneNumbers
|
323
|
-
def self.build(context)
|
324
|
-
unless context.config.regional_endpoint
|
325
|
-
endpoint = context.config.endpoint.to_s
|
326
|
-
end
|
327
|
-
Aws::SNS::EndpointParameters.new(
|
328
|
-
region: context.config.region,
|
329
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
330
|
-
use_fips: context.config.use_fips_endpoint,
|
331
|
-
endpoint: endpoint,
|
332
|
-
)
|
333
|
-
end
|
334
|
-
end
|
335
|
-
|
336
|
-
class ListSubscriptions
|
337
|
-
def self.build(context)
|
338
|
-
unless context.config.regional_endpoint
|
339
|
-
endpoint = context.config.endpoint.to_s
|
340
|
-
end
|
341
|
-
Aws::SNS::EndpointParameters.new(
|
342
|
-
region: context.config.region,
|
343
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
344
|
-
use_fips: context.config.use_fips_endpoint,
|
345
|
-
endpoint: endpoint,
|
346
|
-
)
|
347
|
-
end
|
348
|
-
end
|
349
|
-
|
350
|
-
class ListSubscriptionsByTopic
|
351
|
-
def self.build(context)
|
352
|
-
unless context.config.regional_endpoint
|
353
|
-
endpoint = context.config.endpoint.to_s
|
354
|
-
end
|
355
|
-
Aws::SNS::EndpointParameters.new(
|
356
|
-
region: context.config.region,
|
357
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
358
|
-
use_fips: context.config.use_fips_endpoint,
|
359
|
-
endpoint: endpoint,
|
360
|
-
)
|
361
|
-
end
|
362
|
-
end
|
363
|
-
|
364
|
-
class ListTagsForResource
|
365
|
-
def self.build(context)
|
366
|
-
unless context.config.regional_endpoint
|
367
|
-
endpoint = context.config.endpoint.to_s
|
368
|
-
end
|
369
|
-
Aws::SNS::EndpointParameters.new(
|
370
|
-
region: context.config.region,
|
371
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
372
|
-
use_fips: context.config.use_fips_endpoint,
|
373
|
-
endpoint: endpoint,
|
374
|
-
)
|
375
|
-
end
|
376
|
-
end
|
377
|
-
|
378
|
-
class ListTopics
|
379
|
-
def self.build(context)
|
380
|
-
unless context.config.regional_endpoint
|
381
|
-
endpoint = context.config.endpoint.to_s
|
382
|
-
end
|
383
|
-
Aws::SNS::EndpointParameters.new(
|
384
|
-
region: context.config.region,
|
385
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
386
|
-
use_fips: context.config.use_fips_endpoint,
|
387
|
-
endpoint: endpoint,
|
388
|
-
)
|
389
|
-
end
|
390
|
-
end
|
391
|
-
|
392
|
-
class OptInPhoneNumber
|
393
|
-
def self.build(context)
|
394
|
-
unless context.config.regional_endpoint
|
395
|
-
endpoint = context.config.endpoint.to_s
|
396
|
-
end
|
397
|
-
Aws::SNS::EndpointParameters.new(
|
398
|
-
region: context.config.region,
|
399
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
400
|
-
use_fips: context.config.use_fips_endpoint,
|
401
|
-
endpoint: endpoint,
|
402
|
-
)
|
403
|
-
end
|
404
|
-
end
|
405
|
-
|
406
|
-
class Publish
|
407
|
-
def self.build(context)
|
408
|
-
unless context.config.regional_endpoint
|
409
|
-
endpoint = context.config.endpoint.to_s
|
410
|
-
end
|
411
|
-
Aws::SNS::EndpointParameters.new(
|
412
|
-
region: context.config.region,
|
413
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
414
|
-
use_fips: context.config.use_fips_endpoint,
|
415
|
-
endpoint: endpoint,
|
416
|
-
)
|
417
|
-
end
|
418
|
-
end
|
419
|
-
|
420
|
-
class PublishBatch
|
421
|
-
def self.build(context)
|
422
|
-
unless context.config.regional_endpoint
|
423
|
-
endpoint = context.config.endpoint.to_s
|
424
|
-
end
|
425
|
-
Aws::SNS::EndpointParameters.new(
|
426
|
-
region: context.config.region,
|
427
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
428
|
-
use_fips: context.config.use_fips_endpoint,
|
429
|
-
endpoint: endpoint,
|
430
|
-
)
|
431
|
-
end
|
432
|
-
end
|
433
|
-
|
434
|
-
class PutDataProtectionPolicy
|
435
|
-
def self.build(context)
|
436
|
-
unless context.config.regional_endpoint
|
437
|
-
endpoint = context.config.endpoint.to_s
|
438
|
-
end
|
439
|
-
Aws::SNS::EndpointParameters.new(
|
440
|
-
region: context.config.region,
|
441
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
442
|
-
use_fips: context.config.use_fips_endpoint,
|
443
|
-
endpoint: endpoint,
|
444
|
-
)
|
445
|
-
end
|
446
|
-
end
|
447
|
-
|
448
|
-
class RemovePermission
|
449
|
-
def self.build(context)
|
450
|
-
unless context.config.regional_endpoint
|
451
|
-
endpoint = context.config.endpoint.to_s
|
452
|
-
end
|
453
|
-
Aws::SNS::EndpointParameters.new(
|
454
|
-
region: context.config.region,
|
455
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
456
|
-
use_fips: context.config.use_fips_endpoint,
|
457
|
-
endpoint: endpoint,
|
458
|
-
)
|
459
|
-
end
|
460
|
-
end
|
461
|
-
|
462
|
-
class SetEndpointAttributes
|
463
|
-
def self.build(context)
|
464
|
-
unless context.config.regional_endpoint
|
465
|
-
endpoint = context.config.endpoint.to_s
|
466
|
-
end
|
467
|
-
Aws::SNS::EndpointParameters.new(
|
468
|
-
region: context.config.region,
|
469
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
470
|
-
use_fips: context.config.use_fips_endpoint,
|
471
|
-
endpoint: endpoint,
|
472
|
-
)
|
473
|
-
end
|
474
|
-
end
|
475
|
-
|
476
|
-
class SetPlatformApplicationAttributes
|
477
|
-
def self.build(context)
|
478
|
-
unless context.config.regional_endpoint
|
479
|
-
endpoint = context.config.endpoint.to_s
|
480
|
-
end
|
481
|
-
Aws::SNS::EndpointParameters.new(
|
482
|
-
region: context.config.region,
|
483
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
484
|
-
use_fips: context.config.use_fips_endpoint,
|
485
|
-
endpoint: endpoint,
|
486
|
-
)
|
487
|
-
end
|
488
|
-
end
|
489
|
-
|
490
|
-
class SetSMSAttributes
|
491
|
-
def self.build(context)
|
492
|
-
unless context.config.regional_endpoint
|
493
|
-
endpoint = context.config.endpoint.to_s
|
494
|
-
end
|
495
|
-
Aws::SNS::EndpointParameters.new(
|
496
|
-
region: context.config.region,
|
497
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
498
|
-
use_fips: context.config.use_fips_endpoint,
|
499
|
-
endpoint: endpoint,
|
500
|
-
)
|
501
|
-
end
|
502
|
-
end
|
503
|
-
|
504
|
-
class SetSubscriptionAttributes
|
505
|
-
def self.build(context)
|
506
|
-
unless context.config.regional_endpoint
|
507
|
-
endpoint = context.config.endpoint.to_s
|
508
|
-
end
|
509
|
-
Aws::SNS::EndpointParameters.new(
|
510
|
-
region: context.config.region,
|
511
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
512
|
-
use_fips: context.config.use_fips_endpoint,
|
513
|
-
endpoint: endpoint,
|
514
|
-
)
|
515
|
-
end
|
516
|
-
end
|
517
|
-
|
518
|
-
class SetTopicAttributes
|
519
|
-
def self.build(context)
|
520
|
-
unless context.config.regional_endpoint
|
521
|
-
endpoint = context.config.endpoint.to_s
|
522
|
-
end
|
523
|
-
Aws::SNS::EndpointParameters.new(
|
524
|
-
region: context.config.region,
|
525
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
526
|
-
use_fips: context.config.use_fips_endpoint,
|
527
|
-
endpoint: endpoint,
|
528
|
-
)
|
529
|
-
end
|
530
|
-
end
|
531
|
-
|
532
|
-
class Subscribe
|
533
|
-
def self.build(context)
|
534
|
-
unless context.config.regional_endpoint
|
535
|
-
endpoint = context.config.endpoint.to_s
|
536
|
-
end
|
537
|
-
Aws::SNS::EndpointParameters.new(
|
538
|
-
region: context.config.region,
|
539
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
540
|
-
use_fips: context.config.use_fips_endpoint,
|
541
|
-
endpoint: endpoint,
|
542
|
-
)
|
543
|
-
end
|
544
|
-
end
|
545
|
-
|
546
|
-
class TagResource
|
547
|
-
def self.build(context)
|
548
|
-
unless context.config.regional_endpoint
|
549
|
-
endpoint = context.config.endpoint.to_s
|
550
|
-
end
|
551
|
-
Aws::SNS::EndpointParameters.new(
|
552
|
-
region: context.config.region,
|
553
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
554
|
-
use_fips: context.config.use_fips_endpoint,
|
555
|
-
endpoint: endpoint,
|
556
|
-
)
|
557
|
-
end
|
558
|
-
end
|
559
|
-
|
560
|
-
class Unsubscribe
|
561
|
-
def self.build(context)
|
562
|
-
unless context.config.regional_endpoint
|
563
|
-
endpoint = context.config.endpoint.to_s
|
564
|
-
end
|
565
|
-
Aws::SNS::EndpointParameters.new(
|
566
|
-
region: context.config.region,
|
567
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
568
|
-
use_fips: context.config.use_fips_endpoint,
|
569
|
-
endpoint: endpoint,
|
570
|
-
)
|
571
|
-
end
|
572
|
-
end
|
573
|
-
|
574
|
-
class UntagResource
|
575
|
-
def self.build(context)
|
576
|
-
unless context.config.regional_endpoint
|
577
|
-
endpoint = context.config.endpoint.to_s
|
578
|
-
end
|
579
|
-
Aws::SNS::EndpointParameters.new(
|
580
|
-
region: context.config.region,
|
581
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
582
|
-
use_fips: context.config.use_fips_endpoint,
|
583
|
-
endpoint: endpoint,
|
584
|
-
)
|
585
|
-
end
|
586
|
-
end
|
587
|
-
|
588
|
-
class VerifySMSSandboxPhoneNumber
|
589
|
-
def self.build(context)
|
590
|
-
unless context.config.regional_endpoint
|
591
|
-
endpoint = context.config.endpoint.to_s
|
592
|
-
end
|
593
|
-
Aws::SNS::EndpointParameters.new(
|
594
|
-
region: context.config.region,
|
595
|
-
use_dual_stack: context.config.use_dualstack_endpoint,
|
596
|
-
use_fips: context.config.use_fips_endpoint,
|
597
|
-
endpoint: endpoint,
|
598
|
-
)
|
599
|
-
end
|
600
|
-
end
|
601
|
-
|
602
19
|
end
|
603
20
|
end
|
data/lib/aws-sdk-sns/errors.rb
CHANGED
@@ -39,6 +39,7 @@ module Aws::SNS
|
|
39
39
|
# * {InvalidParameterException}
|
40
40
|
# * {InvalidParameterValueException}
|
41
41
|
# * {InvalidSecurityException}
|
42
|
+
# * {InvalidStateException}
|
42
43
|
# * {KMSAccessDeniedException}
|
43
44
|
# * {KMSDisabledException}
|
44
45
|
# * {KMSInvalidStateException}
|
@@ -48,6 +49,7 @@ module Aws::SNS
|
|
48
49
|
# * {NotFoundException}
|
49
50
|
# * {OptedOutException}
|
50
51
|
# * {PlatformApplicationDisabledException}
|
52
|
+
# * {ReplayLimitExceededException}
|
51
53
|
# * {ResourceNotFoundException}
|
52
54
|
# * {StaleTagException}
|
53
55
|
# * {SubscriptionLimitExceededException}
|
@@ -246,6 +248,21 @@ module Aws::SNS
|
|
246
248
|
end
|
247
249
|
end
|
248
250
|
|
251
|
+
class InvalidStateException < ServiceError
|
252
|
+
|
253
|
+
# @param [Seahorse::Client::RequestContext] context
|
254
|
+
# @param [String] message
|
255
|
+
# @param [Aws::SNS::Types::InvalidStateException] data
|
256
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
257
|
+
super(context, message, data)
|
258
|
+
end
|
259
|
+
|
260
|
+
# @return [String]
|
261
|
+
def message
|
262
|
+
@message || @data[:message]
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
249
266
|
class KMSAccessDeniedException < ServiceError
|
250
267
|
|
251
268
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -381,6 +398,21 @@ module Aws::SNS
|
|
381
398
|
end
|
382
399
|
end
|
383
400
|
|
401
|
+
class ReplayLimitExceededException < ServiceError
|
402
|
+
|
403
|
+
# @param [Seahorse::Client::RequestContext] context
|
404
|
+
# @param [String] message
|
405
|
+
# @param [Aws::SNS::Types::ReplayLimitExceededException] data
|
406
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
407
|
+
super(context, message, data)
|
408
|
+
end
|
409
|
+
|
410
|
+
# @return [String]
|
411
|
+
def message
|
412
|
+
@message || @data[:message]
|
413
|
+
end
|
414
|
+
end
|
415
|
+
|
384
416
|
class ResourceNotFoundException < ServiceError
|
385
417
|
|
386
418
|
# @param [Seahorse::Client::RequestContext] context
|