aws-sdk-sns 1.23.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # utility classes
2
4
  require 'aws-sdk-sns/message_verifier'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'net/http'
2
4
  require 'openssl'
3
5
  require 'base64'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -103,8 +105,8 @@ module Aws::SNS
103
105
  # device. The specific name for Token will vary, depending on which
104
106
  # notification service is being used. For example, when using APNS as
105
107
  # the notification service, you need the device token. Alternatively,
106
- # when using FCM or ADM, the device token equivalent is called the
107
- # registration ID.
108
+ # when using GCM (Firebase Cloud Messaging) or ADM, the device token
109
+ # equivalent is called the registration ID.
108
110
  # @option options [String] :custom_user_data
109
111
  # Arbitrary user data to associate with the endpoint. Amazon SNS does
110
112
  # not use this data. The data must be in UTF-8 format and less than 2KB.
@@ -148,26 +150,27 @@ module Aws::SNS
148
150
  # include the following:
149
151
  #
150
152
  # * `PlatformCredential` – The credential received from the notification
151
- # service. For APNS/APNS\_SANDBOX, PlatformCredential is private key.
152
- # For FCM, PlatformCredential is "API key". For ADM,
153
- # PlatformCredential is "client secret".
153
+ # service. For `APNS` and `APNS_SANDBOX`, `PlatformCredential` is
154
+ # `private key`. For `GCM` (Firebase Cloud Messaging),
155
+ # `PlatformCredential` is `API key`. For `ADM`, `PlatformCredential`
156
+ # is `client secret`.
154
157
  #
155
158
  # * `PlatformPrincipal` – The principal received from the notification
156
- # service. For APNS/APNS\_SANDBOX, PlatformPrincipal is SSL
157
- # certificate. For FCM, PlatformPrincipal is not applicable. For ADM,
158
- # PlatformPrincipal is "client id".
159
+ # service. For `APNS` and `APNS_SANDBOX`, `PlatformPrincipal` is `SSL
160
+ # certificate`. For `GCM` (Firebase Cloud Messaging), there is no
161
+ # `PlatformPrincipal`. For `ADM`, `PlatformPrincipal` is `client id`.
159
162
  #
160
- # * `EventEndpointCreated` – Topic ARN to which EndpointCreated event
161
- # notifications should be sent.
163
+ # * `EventEndpointCreated` – Topic ARN to which `EndpointCreated` event
164
+ # notifications are sent.
162
165
  #
163
- # * `EventEndpointDeleted` – Topic ARN to which EndpointDeleted event
164
- # notifications should be sent.
166
+ # * `EventEndpointDeleted` – Topic ARN to which `EndpointDeleted` event
167
+ # notifications are sent.
165
168
  #
166
- # * `EventEndpointUpdated` – Topic ARN to which EndpointUpdate event
167
- # notifications should be sent.
169
+ # * `EventEndpointUpdated` – Topic ARN to which `EndpointUpdate` event
170
+ # notifications are sent.
168
171
  #
169
- # * `EventDeliveryFailure` – Topic ARN to which DeliveryFailure event
170
- # notifications should be sent upon Direct Publish delivery failure
172
+ # * `EventDeliveryFailure` – Topic ARN to which `DeliveryFailure` event
173
+ # notifications are sent upon Direct Publish delivery failure
171
174
  # (permanent) to one of the application's endpoints.
172
175
  #
173
176
  # * `SuccessFeedbackRoleArn` – IAM role ARN used to give Amazon SNS
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -49,7 +51,7 @@ module Aws::SNS
49
51
  # between 1 and 256 characters long.
50
52
  # @option options [required, String] :platform
51
53
  # The following platforms are supported: ADM (Amazon Device Messaging),
52
- # APNS (Apple Push Notification Service), APNS\_SANDBOX, and FCM
54
+ # APNS (Apple Push Notification Service), APNS\_SANDBOX, and GCM
53
55
  # (Firebase Cloud Messaging).
54
56
  # @option options [required, Hash<String,String>] :attributes
55
57
  # For a list of attributes, see [SetPlatformApplicationAttributes][1]
@@ -87,6 +89,9 @@ module Aws::SNS
87
89
  # Constraints: Topic names must be made up of only uppercase and
88
90
  # lowercase ASCII letters, numbers, underscores, and hyphens, and must
89
91
  # be between 1 and 256 characters long.
92
+ #
93
+ # For a FIFO (first-in-first-out) topic, the name must end with the
94
+ # `.fifo` suffix.
90
95
  # @option options [Hash<String,String>] :attributes
91
96
  # A map of attributes with their corresponding values.
92
97
  #
@@ -99,18 +104,34 @@ module Aws::SNS
99
104
  # * `DisplayName` – The display name to use for a topic with SMS
100
105
  # subscriptions.
101
106
  #
107
+ # * `FifoTopic` – Set to true to create a FIFO topic.
108
+ #
102
109
  # * `Policy` – The policy that defines who can access your topic. By
103
110
  # default, only the topic owner can publish or subscribe to the topic.
104
111
  #
105
112
  # The following attribute applies only to [server-side-encryption][1]\:
106
113
  #
107
- # * `KmsMasterKeyId` - The ID of an AWS-managed customer master key
114
+ # * `KmsMasterKeyId` The ID of an AWS-managed customer master key
108
115
  # (CMK) for Amazon SNS or a custom CMK. For more information, see [Key
109
116
  # Terms][2]. For more examples, see [KeyId][3] in the *AWS Key
110
117
  # Management Service API Reference*.
111
118
  #
112
119
  # ^
113
120
  #
121
+ # The following attribute applies only to FIFO topics:
122
+ #
123
+ # * `ContentBasedDeduplication` – Enables content-based deduplication.
124
+ # Amazon SNS uses a SHA-256 hash to generate the
125
+ # `MessageDeduplicationId` using the body of the message (but not the
126
+ # attributes of the message).
127
+ #
128
+ # * When `ContentBasedDeduplication` is in effect, messages with
129
+ # identical content sent within the deduplication interval are treated
130
+ # as duplicates and only one copy of the message is delivered.
131
+ #
132
+ # * If the queue has `ContentBasedDeduplication` set, your
133
+ # `MessageDeduplicationId` overrides the generated one.
134
+ #
114
135
  #
115
136
  #
116
137
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -46,7 +48,8 @@ module Aws::SNS
46
48
  # and account system defaults.
47
49
  #
48
50
  # * `FilterPolicy` – The filter policy JSON that is assigned to the
49
- # subscription.
51
+ # subscription. For more information, see [Amazon SNS Message
52
+ # Filtering][1] in the *Amazon SNS Developer Guide*.
50
53
  #
51
54
  # * `Owner` – The AWS account ID of the subscription's owner.
52
55
  #
@@ -68,6 +71,10 @@ module Aws::SNS
68
71
  # * `SubscriptionArn` – The subscription's ARN.
69
72
  #
70
73
  # * `TopicArn` – The topic ARN that the subscription is associated with.
74
+ #
75
+ #
76
+ #
77
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html
71
78
  # @return [Hash<String,String>]
72
79
  def attributes
73
80
  data[:attributes]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -57,7 +59,7 @@ module Aws::SNS
57
59
  #
58
60
  # * `TopicArn` – The topic's ARN.
59
61
  #
60
- # * `EffectiveDeliveryPolicy` – Yhe JSON serialization of the effective
62
+ # * `EffectiveDeliveryPolicy` – The JSON serialization of the effective
61
63
  # delivery policy, taking system defaults into account.
62
64
  #
63
65
  # The following attribute applies only to [server-side-encryption][1]\:
@@ -330,13 +332,27 @@ module Aws::SNS
330
332
  #
331
333
  # The following attribute applies only to [server-side-encryption][1]\:
332
334
  #
333
- # * `KmsMasterKeyId` - The ID of an AWS-managed customer master key
335
+ # * `KmsMasterKeyId` The ID of an AWS-managed customer master key
334
336
  # (CMK) for Amazon SNS or a custom CMK. For more information, see [Key
335
337
  # Terms][2]. For more examples, see [KeyId][3] in the *AWS Key
336
338
  # Management Service API Reference*.
337
339
  #
338
340
  # ^
339
341
  #
342
+ # The following attribute applies only to FIFO topics:
343
+ #
344
+ # * `ContentBasedDeduplication` – Enables content-based deduplication.
345
+ # Amazon SNS uses a SHA-256 hash to generate the
346
+ # `MessageDeduplicationId` using the body of the message (but not the
347
+ # attributes of the message).
348
+ #
349
+ # * When `ContentBasedDeduplication` is in effect, messages with
350
+ # identical content sent within the deduplication interval are treated
351
+ # as duplicates and only one copy of the message is delivered.
352
+ #
353
+ # * If the queue has `ContentBasedDeduplication` set, your
354
+ # `MessageDeduplicationId` overrides the generated one.
355
+ #
340
356
  #
341
357
  #
342
358
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
@@ -386,11 +402,11 @@ module Aws::SNS
386
402
  # The endpoint that you want to receive notifications. Endpoints vary by
387
403
  # protocol:
388
404
  #
389
- # * For the `http` protocol, the endpoint is an URL beginning with
390
- # `http://`
405
+ # * For the `http` protocol, the (public) endpoint is a URL beginning
406
+ # with `http://`
391
407
  #
392
- # * For the `https` protocol, the endpoint is a URL beginning with
393
- # `https://`
408
+ # * For the `https` protocol, the (public) endpoint is a URL beginning
409
+ # with `https://`
394
410
  #
395
411
  # * For the `email` protocol, the endpoint is an email address
396
412
  #
@@ -435,16 +451,17 @@ module Aws::SNS
435
451
  # Sets whether the response from the `Subscribe` request includes the
436
452
  # subscription ARN, even if the subscription is not yet confirmed.
437
453
  #
438
- # * If you have the subscription ARN returned, the response includes the
439
- # ARN in all cases, even if the subscription is not yet confirmed.
454
+ # * If you set this parameter to `true`, the response includes the ARN
455
+ # in all cases, even if the subscription is not yet confirmed. In
456
+ # addition to the ARN for confirmed subscriptions, the response also
457
+ # includes the `pending subscription` ARN value for subscriptions that
458
+ # aren't yet confirmed. A subscription becomes confirmed when the
459
+ # subscriber calls the `ConfirmSubscription` action with a
460
+ # confirmation token.
461
+ #
462
+ # ^
440
463
  #
441
- # * If you don't have the subscription ARN returned, in addition to the
442
- # ARN for confirmed subscriptions, the response also includes the
443
- # `pending subscription` ARN value for subscriptions that aren't yet
444
- # confirmed. A subscription becomes confirmed when the subscriber
445
- # calls the `ConfirmSubscription` action with a confirmation token.
446
464
  #
447
- # If you set this parameter to `true`, .
448
465
  #
449
466
  # The default value is `false`.
450
467
  # @return [Subscription]
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,6 +47,7 @@ module Aws::SNS
45
47
  :label,
46
48
  :aws_account_id,
47
49
  :action_name)
50
+ SENSITIVE = []
48
51
  include Aws::Structure
49
52
  end
50
53
 
@@ -58,6 +61,7 @@ module Aws::SNS
58
61
  #
59
62
  class AuthorizationErrorException < Struct.new(
60
63
  :message)
64
+ SENSITIVE = []
61
65
  include Aws::Structure
62
66
  end
63
67
 
@@ -78,6 +82,7 @@ module Aws::SNS
78
82
  #
79
83
  class CheckIfPhoneNumberIsOptedOutInput < Struct.new(
80
84
  :phone_number)
85
+ SENSITIVE = []
81
86
  include Aws::Structure
82
87
  end
83
88
 
@@ -97,6 +102,7 @@ module Aws::SNS
97
102
  #
98
103
  class CheckIfPhoneNumberIsOptedOutResponse < Struct.new(
99
104
  :is_opted_out)
105
+ SENSITIVE = []
100
106
  include Aws::Structure
101
107
  end
102
108
 
@@ -110,6 +116,7 @@ module Aws::SNS
110
116
  #
111
117
  class ConcurrentAccessException < Struct.new(
112
118
  :message)
119
+ SENSITIVE = []
113
120
  include Aws::Structure
114
121
  end
115
122
 
@@ -146,6 +153,7 @@ module Aws::SNS
146
153
  :topic_arn,
147
154
  :token,
148
155
  :authenticate_on_unsubscribe)
156
+ SENSITIVE = []
149
157
  include Aws::Structure
150
158
  end
151
159
 
@@ -159,6 +167,7 @@ module Aws::SNS
159
167
  #
160
168
  class ConfirmSubscriptionResponse < Struct.new(
161
169
  :subscription_arn)
170
+ SENSITIVE = []
162
171
  include Aws::Structure
163
172
  end
164
173
 
@@ -172,6 +181,7 @@ module Aws::SNS
172
181
  #
173
182
  class CreateEndpointResponse < Struct.new(
174
183
  :endpoint_arn)
184
+ SENSITIVE = []
175
185
  include Aws::Structure
176
186
  end
177
187
 
@@ -197,7 +207,7 @@ module Aws::SNS
197
207
  # @!attribute [rw] platform
198
208
  # The following platforms are supported: ADM (Amazon Device
199
209
  # Messaging), APNS (Apple Push Notification Service), APNS\_SANDBOX,
200
- # and FCM (Firebase Cloud Messaging).
210
+ # and GCM (Firebase Cloud Messaging).
201
211
  # @return [String]
202
212
  #
203
213
  # @!attribute [rw] attributes
@@ -214,6 +224,7 @@ module Aws::SNS
214
224
  :name,
215
225
  :platform,
216
226
  :attributes)
227
+ SENSITIVE = []
217
228
  include Aws::Structure
218
229
  end
219
230
 
@@ -227,6 +238,7 @@ module Aws::SNS
227
238
  #
228
239
  class CreatePlatformApplicationResponse < Struct.new(
229
240
  :platform_application_arn)
241
+ SENSITIVE = []
230
242
  include Aws::Structure
231
243
  end
232
244
 
@@ -254,8 +266,8 @@ module Aws::SNS
254
266
  # a device. The specific name for Token will vary, depending on which
255
267
  # notification service is being used. For example, when using APNS as
256
268
  # the notification service, you need the device token. Alternatively,
257
- # when using FCM or ADM, the device token equivalent is called the
258
- # registration ID.
269
+ # when using GCM (Firebase Cloud Messaging) or ADM, the device token
270
+ # equivalent is called the registration ID.
259
271
  # @return [String]
260
272
  #
261
273
  # @!attribute [rw] custom_user_data
@@ -279,6 +291,7 @@ module Aws::SNS
279
291
  :token,
280
292
  :custom_user_data,
281
293
  :attributes)
294
+ SENSITIVE = []
282
295
  include Aws::Structure
283
296
  end
284
297
 
@@ -306,6 +319,9 @@ module Aws::SNS
306
319
  # Constraints: Topic names must be made up of only uppercase and
307
320
  # lowercase ASCII letters, numbers, underscores, and hyphens, and must
308
321
  # be between 1 and 256 characters long.
322
+ #
323
+ # For a FIFO (first-in-first-out) topic, the name must end with the
324
+ # `.fifo` suffix.
309
325
  # @return [String]
310
326
  #
311
327
  # @!attribute [rw] attributes
@@ -320,6 +336,8 @@ module Aws::SNS
320
336
  # * `DisplayName` – The display name to use for a topic with SMS
321
337
  # subscriptions.
322
338
  #
339
+ # * `FifoTopic` – Set to true to create a FIFO topic.
340
+ #
323
341
  # * `Policy` – The policy that defines who can access your topic. By
324
342
  # default, only the topic owner can publish or subscribe to the
325
343
  # topic.
@@ -327,13 +345,28 @@ module Aws::SNS
327
345
  # The following attribute applies only to
328
346
  # [server-side-encryption][1]\:
329
347
  #
330
- # * `KmsMasterKeyId` - The ID of an AWS-managed customer master key
348
+ # * `KmsMasterKeyId` The ID of an AWS-managed customer master key
331
349
  # (CMK) for Amazon SNS or a custom CMK. For more information, see
332
350
  # [Key Terms][2]. For more examples, see [KeyId][3] in the *AWS Key
333
351
  # Management Service API Reference*.
334
352
  #
335
353
  # ^
336
354
  #
355
+ # The following attribute applies only to FIFO topics:
356
+ #
357
+ # * `ContentBasedDeduplication` – Enables content-based deduplication.
358
+ # Amazon SNS uses a SHA-256 hash to generate the
359
+ # `MessageDeduplicationId` using the body of the message (but not
360
+ # the attributes of the message).
361
+ #
362
+ # * When `ContentBasedDeduplication` is in effect, messages with
363
+ # identical content sent within the deduplication interval are
364
+ # treated as duplicates and only one copy of the message is
365
+ # delivered.
366
+ #
367
+ # * If the queue has `ContentBasedDeduplication` set, your
368
+ # `MessageDeduplicationId` overrides the generated one.
369
+ #
337
370
  #
338
371
  #
339
372
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
@@ -356,6 +389,7 @@ module Aws::SNS
356
389
  :name,
357
390
  :attributes,
358
391
  :tags)
392
+ SENSITIVE = []
359
393
  include Aws::Structure
360
394
  end
361
395
 
@@ -369,6 +403,7 @@ module Aws::SNS
369
403
  #
370
404
  class CreateTopicResponse < Struct.new(
371
405
  :topic_arn)
406
+ SENSITIVE = []
372
407
  include Aws::Structure
373
408
  end
374
409
 
@@ -389,6 +424,7 @@ module Aws::SNS
389
424
  #
390
425
  class DeleteEndpointInput < Struct.new(
391
426
  :endpoint_arn)
427
+ SENSITIVE = []
392
428
  include Aws::Structure
393
429
  end
394
430
 
@@ -409,6 +445,7 @@ module Aws::SNS
409
445
  #
410
446
  class DeletePlatformApplicationInput < Struct.new(
411
447
  :platform_application_arn)
448
+ SENSITIVE = []
412
449
  include Aws::Structure
413
450
  end
414
451
 
@@ -427,6 +464,7 @@ module Aws::SNS
427
464
  #
428
465
  class DeleteTopicInput < Struct.new(
429
466
  :topic_arn)
467
+ SENSITIVE = []
430
468
  include Aws::Structure
431
469
  end
432
470
 
@@ -445,6 +483,7 @@ module Aws::SNS
445
483
  class Endpoint < Struct.new(
446
484
  :endpoint_arn,
447
485
  :attributes)
486
+ SENSITIVE = []
448
487
  include Aws::Structure
449
488
  end
450
489
 
@@ -458,6 +497,7 @@ module Aws::SNS
458
497
  #
459
498
  class EndpointDisabledException < Struct.new(
460
499
  :message)
500
+ SENSITIVE = []
461
501
  include Aws::Structure
462
502
  end
463
503
 
@@ -472,6 +512,7 @@ module Aws::SNS
472
512
  #
473
513
  class FilterPolicyLimitExceededException < Struct.new(
474
514
  :message)
515
+ SENSITIVE = []
475
516
  include Aws::Structure
476
517
  end
477
518
 
@@ -492,6 +533,7 @@ module Aws::SNS
492
533
  #
493
534
  class GetEndpointAttributesInput < Struct.new(
494
535
  :endpoint_arn)
536
+ SENSITIVE = []
495
537
  include Aws::Structure
496
538
  end
497
539
 
@@ -523,6 +565,7 @@ module Aws::SNS
523
565
  #
524
566
  class GetEndpointAttributesResponse < Struct.new(
525
567
  :attributes)
568
+ SENSITIVE = []
526
569
  include Aws::Structure
527
570
  end
528
571
 
@@ -543,6 +586,7 @@ module Aws::SNS
543
586
  #
544
587
  class GetPlatformApplicationAttributesInput < Struct.new(
545
588
  :platform_application_arn)
589
+ SENSITIVE = []
546
590
  include Aws::Structure
547
591
  end
548
592
 
@@ -569,6 +613,7 @@ module Aws::SNS
569
613
  #
570
614
  class GetPlatformApplicationAttributesResponse < Struct.new(
571
615
  :attributes)
616
+ SENSITIVE = []
572
617
  include Aws::Structure
573
618
  end
574
619
 
@@ -599,6 +644,7 @@ module Aws::SNS
599
644
  #
600
645
  class GetSMSAttributesInput < Struct.new(
601
646
  :attributes)
647
+ SENSITIVE = []
602
648
  include Aws::Structure
603
649
  end
604
650
 
@@ -612,6 +658,7 @@ module Aws::SNS
612
658
  #
613
659
  class GetSMSAttributesResponse < Struct.new(
614
660
  :attributes)
661
+ SENSITIVE = []
615
662
  include Aws::Structure
616
663
  end
617
664
 
@@ -632,6 +679,7 @@ module Aws::SNS
632
679
  #
633
680
  class GetSubscriptionAttributesInput < Struct.new(
634
681
  :subscription_arn)
682
+ SENSITIVE = []
635
683
  include Aws::Structure
636
684
  end
637
685
 
@@ -652,7 +700,8 @@ module Aws::SNS
652
700
  # delivery policy and account system defaults.
653
701
  #
654
702
  # * `FilterPolicy` – The filter policy JSON that is assigned to the
655
- # subscription.
703
+ # subscription. For more information, see [Amazon SNS Message
704
+ # Filtering][1] in the *Amazon SNS Developer Guide*.
656
705
  #
657
706
  # * `Owner` – The AWS account ID of the subscription's owner.
658
707
  #
@@ -676,12 +725,17 @@ module Aws::SNS
676
725
  #
677
726
  # * `TopicArn` – The topic ARN that the subscription is associated
678
727
  # with.
728
+ #
729
+ #
730
+ #
731
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-message-filtering.html
679
732
  # @return [Hash<String,String>]
680
733
  #
681
734
  # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/GetSubscriptionAttributesResponse AWS API Documentation
682
735
  #
683
736
  class GetSubscriptionAttributesResponse < Struct.new(
684
737
  :attributes)
738
+ SENSITIVE = []
685
739
  include Aws::Structure
686
740
  end
687
741
 
@@ -702,6 +756,7 @@ module Aws::SNS
702
756
  #
703
757
  class GetTopicAttributesInput < Struct.new(
704
758
  :topic_arn)
759
+ SENSITIVE = []
705
760
  include Aws::Structure
706
761
  end
707
762
 
@@ -733,7 +788,7 @@ module Aws::SNS
733
788
  #
734
789
  # * `TopicArn` – The topic's ARN.
735
790
  #
736
- # * `EffectiveDeliveryPolicy` – Yhe JSON serialization of the
791
+ # * `EffectiveDeliveryPolicy` – The JSON serialization of the
737
792
  # effective delivery policy, taking system defaults into account.
738
793
  #
739
794
  # The following attribute applies only to
@@ -757,6 +812,7 @@ module Aws::SNS
757
812
  #
758
813
  class GetTopicAttributesResponse < Struct.new(
759
814
  :attributes)
815
+ SENSITIVE = []
760
816
  include Aws::Structure
761
817
  end
762
818
 
@@ -769,6 +825,7 @@ module Aws::SNS
769
825
  #
770
826
  class InternalErrorException < Struct.new(
771
827
  :message)
828
+ SENSITIVE = []
772
829
  include Aws::Structure
773
830
  end
774
831
 
@@ -782,6 +839,7 @@ module Aws::SNS
782
839
  #
783
840
  class InvalidParameterException < Struct.new(
784
841
  :message)
842
+ SENSITIVE = []
785
843
  include Aws::Structure
786
844
  end
787
845
 
@@ -796,6 +854,7 @@ module Aws::SNS
796
854
  #
797
855
  class InvalidParameterValueException < Struct.new(
798
856
  :message)
857
+ SENSITIVE = []
799
858
  include Aws::Structure
800
859
  end
801
860
 
@@ -809,6 +868,7 @@ module Aws::SNS
809
868
  #
810
869
  class InvalidSecurityException < Struct.new(
811
870
  :message)
871
+ SENSITIVE = []
812
872
  include Aws::Structure
813
873
  end
814
874
 
@@ -822,6 +882,7 @@ module Aws::SNS
822
882
  #
823
883
  class KMSAccessDeniedException < Struct.new(
824
884
  :message)
885
+ SENSITIVE = []
825
886
  include Aws::Structure
826
887
  end
827
888
 
@@ -835,6 +896,7 @@ module Aws::SNS
835
896
  #
836
897
  class KMSDisabledException < Struct.new(
837
898
  :message)
899
+ SENSITIVE = []
838
900
  include Aws::Structure
839
901
  end
840
902
 
@@ -854,6 +916,7 @@ module Aws::SNS
854
916
  #
855
917
  class KMSInvalidStateException < Struct.new(
856
918
  :message)
919
+ SENSITIVE = []
857
920
  include Aws::Structure
858
921
  end
859
922
 
@@ -867,6 +930,7 @@ module Aws::SNS
867
930
  #
868
931
  class KMSNotFoundException < Struct.new(
869
932
  :message)
933
+ SENSITIVE = []
870
934
  include Aws::Structure
871
935
  end
872
936
 
@@ -879,6 +943,7 @@ module Aws::SNS
879
943
  #
880
944
  class KMSOptInRequired < Struct.new(
881
945
  :message)
946
+ SENSITIVE = []
882
947
  include Aws::Structure
883
948
  end
884
949
 
@@ -897,6 +962,7 @@ module Aws::SNS
897
962
  #
898
963
  class KMSThrottlingException < Struct.new(
899
964
  :message)
965
+ SENSITIVE = []
900
966
  include Aws::Structure
901
967
  end
902
968
 
@@ -926,6 +992,7 @@ module Aws::SNS
926
992
  class ListEndpointsByPlatformApplicationInput < Struct.new(
927
993
  :platform_application_arn,
928
994
  :next_token)
995
+ SENSITIVE = []
929
996
  include Aws::Structure
930
997
  end
931
998
 
@@ -946,6 +1013,7 @@ module Aws::SNS
946
1013
  class ListEndpointsByPlatformApplicationResponse < Struct.new(
947
1014
  :endpoints,
948
1015
  :next_token)
1016
+ SENSITIVE = []
949
1017
  include Aws::Structure
950
1018
  end
951
1019
 
@@ -968,6 +1036,7 @@ module Aws::SNS
968
1036
  #
969
1037
  class ListPhoneNumbersOptedOutInput < Struct.new(
970
1038
  :next_token)
1039
+ SENSITIVE = []
971
1040
  include Aws::Structure
972
1041
  end
973
1042
 
@@ -990,6 +1059,7 @@ module Aws::SNS
990
1059
  class ListPhoneNumbersOptedOutResponse < Struct.new(
991
1060
  :phone_numbers,
992
1061
  :next_token)
1062
+ SENSITIVE = []
993
1063
  include Aws::Structure
994
1064
  end
995
1065
 
@@ -1012,6 +1082,7 @@ module Aws::SNS
1012
1082
  #
1013
1083
  class ListPlatformApplicationsInput < Struct.new(
1014
1084
  :next_token)
1085
+ SENSITIVE = []
1015
1086
  include Aws::Structure
1016
1087
  end
1017
1088
 
@@ -1033,6 +1104,7 @@ module Aws::SNS
1033
1104
  class ListPlatformApplicationsResponse < Struct.new(
1034
1105
  :platform_applications,
1035
1106
  :next_token)
1107
+ SENSITIVE = []
1036
1108
  include Aws::Structure
1037
1109
  end
1038
1110
 
@@ -1059,6 +1131,7 @@ module Aws::SNS
1059
1131
  class ListSubscriptionsByTopicInput < Struct.new(
1060
1132
  :topic_arn,
1061
1133
  :next_token)
1134
+ SENSITIVE = []
1062
1135
  include Aws::Structure
1063
1136
  end
1064
1137
 
@@ -1079,6 +1152,7 @@ module Aws::SNS
1079
1152
  class ListSubscriptionsByTopicResponse < Struct.new(
1080
1153
  :subscriptions,
1081
1154
  :next_token)
1155
+ SENSITIVE = []
1082
1156
  include Aws::Structure
1083
1157
  end
1084
1158
 
@@ -1099,6 +1173,7 @@ module Aws::SNS
1099
1173
  #
1100
1174
  class ListSubscriptionsInput < Struct.new(
1101
1175
  :next_token)
1176
+ SENSITIVE = []
1102
1177
  include Aws::Structure
1103
1178
  end
1104
1179
 
@@ -1118,6 +1193,7 @@ module Aws::SNS
1118
1193
  class ListSubscriptionsResponse < Struct.new(
1119
1194
  :subscriptions,
1120
1195
  :next_token)
1196
+ SENSITIVE = []
1121
1197
  include Aws::Structure
1122
1198
  end
1123
1199
 
@@ -1136,6 +1212,7 @@ module Aws::SNS
1136
1212
  #
1137
1213
  class ListTagsForResourceRequest < Struct.new(
1138
1214
  :resource_arn)
1215
+ SENSITIVE = []
1139
1216
  include Aws::Structure
1140
1217
  end
1141
1218
 
@@ -1147,6 +1224,7 @@ module Aws::SNS
1147
1224
  #
1148
1225
  class ListTagsForResourceResponse < Struct.new(
1149
1226
  :tags)
1227
+ SENSITIVE = []
1150
1228
  include Aws::Structure
1151
1229
  end
1152
1230
 
@@ -1165,6 +1243,7 @@ module Aws::SNS
1165
1243
  #
1166
1244
  class ListTopicsInput < Struct.new(
1167
1245
  :next_token)
1246
+ SENSITIVE = []
1168
1247
  include Aws::Structure
1169
1248
  end
1170
1249
 
@@ -1184,6 +1263,7 @@ module Aws::SNS
1184
1263
  class ListTopicsResponse < Struct.new(
1185
1264
  :topics,
1186
1265
  :next_token)
1266
+ SENSITIVE = []
1187
1267
  include Aws::Structure
1188
1268
  end
1189
1269
 
@@ -1241,6 +1321,7 @@ module Aws::SNS
1241
1321
  :data_type,
1242
1322
  :string_value,
1243
1323
  :binary_value)
1324
+ SENSITIVE = []
1244
1325
  include Aws::Structure
1245
1326
  end
1246
1327
 
@@ -1253,6 +1334,7 @@ module Aws::SNS
1253
1334
  #
1254
1335
  class NotFoundException < Struct.new(
1255
1336
  :message)
1337
+ SENSITIVE = []
1256
1338
  include Aws::Structure
1257
1339
  end
1258
1340
 
@@ -1273,6 +1355,7 @@ module Aws::SNS
1273
1355
  #
1274
1356
  class OptInPhoneNumberInput < Struct.new(
1275
1357
  :phone_number)
1358
+ SENSITIVE = []
1276
1359
  include Aws::Structure
1277
1360
  end
1278
1361
 
@@ -1297,6 +1380,7 @@ module Aws::SNS
1297
1380
  class PlatformApplication < Struct.new(
1298
1381
  :platform_application_arn,
1299
1382
  :attributes)
1383
+ SENSITIVE = []
1300
1384
  include Aws::Structure
1301
1385
  end
1302
1386
 
@@ -1310,6 +1394,7 @@ module Aws::SNS
1310
1394
  #
1311
1395
  class PlatformApplicationDisabledException < Struct.new(
1312
1396
  :message)
1397
+ SENSITIVE = []
1313
1398
  include Aws::Structure
1314
1399
  end
1315
1400
 
@@ -1456,6 +1541,7 @@ module Aws::SNS
1456
1541
  :subject,
1457
1542
  :message_structure,
1458
1543
  :message_attributes)
1544
+ SENSITIVE = []
1459
1545
  include Aws::Structure
1460
1546
  end
1461
1547
 
@@ -1471,6 +1557,7 @@ module Aws::SNS
1471
1557
  #
1472
1558
  class PublishResponse < Struct.new(
1473
1559
  :message_id)
1560
+ SENSITIVE = []
1474
1561
  include Aws::Structure
1475
1562
  end
1476
1563
 
@@ -1497,6 +1584,7 @@ module Aws::SNS
1497
1584
  class RemovePermissionInput < Struct.new(
1498
1585
  :topic_arn,
1499
1586
  :label)
1587
+ SENSITIVE = []
1500
1588
  include Aws::Structure
1501
1589
  end
1502
1590
 
@@ -1509,6 +1597,7 @@ module Aws::SNS
1509
1597
  #
1510
1598
  class ResourceNotFoundException < Struct.new(
1511
1599
  :message)
1600
+ SENSITIVE = []
1512
1601
  include Aws::Structure
1513
1602
  end
1514
1603
 
@@ -1552,6 +1641,7 @@ module Aws::SNS
1552
1641
  class SetEndpointAttributesInput < Struct.new(
1553
1642
  :endpoint_arn,
1554
1643
  :attributes)
1644
+ SENSITIVE = []
1555
1645
  include Aws::Structure
1556
1646
  end
1557
1647
 
@@ -1576,26 +1666,28 @@ module Aws::SNS
1576
1666
  # include the following:
1577
1667
  #
1578
1668
  # * `PlatformCredential` – The credential received from the
1579
- # notification service. For APNS/APNS\_SANDBOX, PlatformCredential
1580
- # is private key. For FCM, PlatformCredential is "API key". For
1581
- # ADM, PlatformCredential is "client secret".
1669
+ # notification service. For `APNS` and `APNS_SANDBOX`,
1670
+ # `PlatformCredential` is `private key`. For `GCM` (Firebase Cloud
1671
+ # Messaging), `PlatformCredential` is `API key`. For `ADM`,
1672
+ # `PlatformCredential` is `client secret`.
1582
1673
  #
1583
1674
  # * `PlatformPrincipal` – The principal received from the notification
1584
- # service. For APNS/APNS\_SANDBOX, PlatformPrincipal is SSL
1585
- # certificate. For FCM, PlatformPrincipal is not applicable. For
1586
- # ADM, PlatformPrincipal is "client id".
1675
+ # service. For `APNS` and `APNS_SANDBOX`, `PlatformPrincipal` is
1676
+ # `SSL certificate`. For `GCM` (Firebase Cloud Messaging), there is
1677
+ # no `PlatformPrincipal`. For `ADM`, `PlatformPrincipal` is `client
1678
+ # id`.
1587
1679
  #
1588
- # * `EventEndpointCreated` – Topic ARN to which EndpointCreated event
1589
- # notifications should be sent.
1680
+ # * `EventEndpointCreated` – Topic ARN to which `EndpointCreated`
1681
+ # event notifications are sent.
1590
1682
  #
1591
- # * `EventEndpointDeleted` – Topic ARN to which EndpointDeleted event
1592
- # notifications should be sent.
1683
+ # * `EventEndpointDeleted` – Topic ARN to which `EndpointDeleted`
1684
+ # event notifications are sent.
1593
1685
  #
1594
- # * `EventEndpointUpdated` – Topic ARN to which EndpointUpdate event
1595
- # notifications should be sent.
1686
+ # * `EventEndpointUpdated` – Topic ARN to which `EndpointUpdate` event
1687
+ # notifications are sent.
1596
1688
  #
1597
- # * `EventDeliveryFailure` – Topic ARN to which DeliveryFailure event
1598
- # notifications should be sent upon Direct Publish delivery failure
1689
+ # * `EventDeliveryFailure` – Topic ARN to which `DeliveryFailure`
1690
+ # event notifications are sent upon Direct Publish delivery failure
1599
1691
  # (permanent) to one of the application's endpoints.
1600
1692
  #
1601
1693
  # * `SuccessFeedbackRoleArn` – IAM role ARN used to give Amazon SNS
@@ -1613,6 +1705,7 @@ module Aws::SNS
1613
1705
  class SetPlatformApplicationAttributesInput < Struct.new(
1614
1706
  :platform_application_arn,
1615
1707
  :attributes)
1708
+ SENSITIVE = []
1616
1709
  include Aws::Structure
1617
1710
  end
1618
1711
 
@@ -1716,6 +1809,7 @@ module Aws::SNS
1716
1809
  #
1717
1810
  class SetSMSAttributesInput < Struct.new(
1718
1811
  :attributes)
1812
+ SENSITIVE = []
1719
1813
  include Aws::Structure
1720
1814
  end
1721
1815
 
@@ -1778,6 +1872,7 @@ module Aws::SNS
1778
1872
  :subscription_arn,
1779
1873
  :attribute_name,
1780
1874
  :attribute_value)
1875
+ SENSITIVE = []
1781
1876
  include Aws::Structure
1782
1877
  end
1783
1878
 
@@ -1816,13 +1911,28 @@ module Aws::SNS
1816
1911
  # The following attribute applies only to
1817
1912
  # [server-side-encryption][1]\:
1818
1913
  #
1819
- # * `KmsMasterKeyId` - The ID of an AWS-managed customer master key
1914
+ # * `KmsMasterKeyId` The ID of an AWS-managed customer master key
1820
1915
  # (CMK) for Amazon SNS or a custom CMK. For more information, see
1821
1916
  # [Key Terms][2]. For more examples, see [KeyId][3] in the *AWS Key
1822
1917
  # Management Service API Reference*.
1823
1918
  #
1824
1919
  # ^
1825
1920
  #
1921
+ # The following attribute applies only to FIFO topics:
1922
+ #
1923
+ # * `ContentBasedDeduplication` – Enables content-based deduplication.
1924
+ # Amazon SNS uses a SHA-256 hash to generate the
1925
+ # `MessageDeduplicationId` using the body of the message (but not
1926
+ # the attributes of the message).
1927
+ #
1928
+ # * When `ContentBasedDeduplication` is in effect, messages with
1929
+ # identical content sent within the deduplication interval are
1930
+ # treated as duplicates and only one copy of the message is
1931
+ # delivered.
1932
+ #
1933
+ # * If the queue has `ContentBasedDeduplication` set, your
1934
+ # `MessageDeduplicationId` overrides the generated one.
1935
+ #
1826
1936
  #
1827
1937
  #
1828
1938
  # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
@@ -1840,6 +1950,7 @@ module Aws::SNS
1840
1950
  :topic_arn,
1841
1951
  :attribute_name,
1842
1952
  :attribute_value)
1953
+ SENSITIVE = []
1843
1954
  include Aws::Structure
1844
1955
  end
1845
1956
 
@@ -1853,6 +1964,7 @@ module Aws::SNS
1853
1964
  #
1854
1965
  class StaleTagException < Struct.new(
1855
1966
  :message)
1967
+ SENSITIVE = []
1856
1968
  include Aws::Structure
1857
1969
  end
1858
1970
 
@@ -1901,11 +2013,11 @@ module Aws::SNS
1901
2013
  # The endpoint that you want to receive notifications. Endpoints vary
1902
2014
  # by protocol:
1903
2015
  #
1904
- # * For the `http` protocol, the endpoint is an URL beginning with
1905
- # `http://`
2016
+ # * For the `http` protocol, the (public) endpoint is a URL beginning
2017
+ # with `http://`
1906
2018
  #
1907
- # * For the `https` protocol, the endpoint is a URL beginning with
1908
- # `https://`
2019
+ # * For the `https` protocol, the (public) endpoint is a URL beginning
2020
+ # with `https://`
1909
2021
  #
1910
2022
  # * For the `email` protocol, the endpoint is an email address
1911
2023
  #
@@ -1956,18 +2068,17 @@ module Aws::SNS
1956
2068
  # Sets whether the response from the `Subscribe` request includes the
1957
2069
  # subscription ARN, even if the subscription is not yet confirmed.
1958
2070
  #
1959
- # * If you have the subscription ARN returned, the response includes
1960
- # the ARN in all cases, even if the subscription is not yet
1961
- # confirmed.
1962
- #
1963
- # * If you don't have the subscription ARN returned, in addition to
1964
- # the ARN for confirmed subscriptions, the response also includes
1965
- # the `pending subscription` ARN value for subscriptions that
1966
- # aren't yet confirmed. A subscription becomes confirmed when the
1967
- # subscriber calls the `ConfirmSubscription` action with a
2071
+ # * If you set this parameter to `true`, the response includes the ARN
2072
+ # in all cases, even if the subscription is not yet confirmed. In
2073
+ # addition to the ARN for confirmed subscriptions, the response also
2074
+ # includes the `pending subscription` ARN value for subscriptions
2075
+ # that aren't yet confirmed. A subscription becomes confirmed when
2076
+ # the subscriber calls the `ConfirmSubscription` action with a
1968
2077
  # confirmation token.
1969
2078
  #
1970
- # If you set this parameter to `true`, .
2079
+ # ^
2080
+ #
2081
+ #
1971
2082
  #
1972
2083
  # The default value is `false`.
1973
2084
  # @return [Boolean]
@@ -1980,6 +2091,7 @@ module Aws::SNS
1980
2091
  :endpoint,
1981
2092
  :attributes,
1982
2093
  :return_subscription_arn)
2094
+ SENSITIVE = []
1983
2095
  include Aws::Structure
1984
2096
  end
1985
2097
 
@@ -1997,6 +2109,7 @@ module Aws::SNS
1997
2109
  #
1998
2110
  class SubscribeResponse < Struct.new(
1999
2111
  :subscription_arn)
2112
+ SENSITIVE = []
2000
2113
  include Aws::Structure
2001
2114
  end
2002
2115
 
@@ -2030,6 +2143,7 @@ module Aws::SNS
2030
2143
  :protocol,
2031
2144
  :endpoint,
2032
2145
  :topic_arn)
2146
+ SENSITIVE = []
2033
2147
  include Aws::Structure
2034
2148
  end
2035
2149
 
@@ -2043,6 +2157,7 @@ module Aws::SNS
2043
2157
  #
2044
2158
  class SubscriptionLimitExceededException < Struct.new(
2045
2159
  :message)
2160
+ SENSITIVE = []
2046
2161
  include Aws::Structure
2047
2162
  end
2048
2163
 
@@ -2069,6 +2184,7 @@ module Aws::SNS
2069
2184
  class Tag < Struct.new(
2070
2185
  :key,
2071
2186
  :value)
2187
+ SENSITIVE = []
2072
2188
  include Aws::Structure
2073
2189
  end
2074
2190
 
@@ -2081,6 +2197,7 @@ module Aws::SNS
2081
2197
  #
2082
2198
  class TagLimitExceededException < Struct.new(
2083
2199
  :message)
2200
+ SENSITIVE = []
2084
2201
  include Aws::Structure
2085
2202
  end
2086
2203
 
@@ -2094,6 +2211,7 @@ module Aws::SNS
2094
2211
  #
2095
2212
  class TagPolicyException < Struct.new(
2096
2213
  :message)
2214
+ SENSITIVE = []
2097
2215
  include Aws::Structure
2098
2216
  end
2099
2217
 
@@ -2124,6 +2242,7 @@ module Aws::SNS
2124
2242
  class TagResourceRequest < Struct.new(
2125
2243
  :resource_arn,
2126
2244
  :tags)
2245
+ SENSITIVE = []
2127
2246
  include Aws::Structure
2128
2247
  end
2129
2248
 
@@ -2142,6 +2261,7 @@ module Aws::SNS
2142
2261
  #
2143
2262
  class ThrottledException < Struct.new(
2144
2263
  :message)
2264
+ SENSITIVE = []
2145
2265
  include Aws::Structure
2146
2266
  end
2147
2267
 
@@ -2156,6 +2276,7 @@ module Aws::SNS
2156
2276
  #
2157
2277
  class Topic < Struct.new(
2158
2278
  :topic_arn)
2279
+ SENSITIVE = []
2159
2280
  include Aws::Structure
2160
2281
  end
2161
2282
 
@@ -2169,6 +2290,7 @@ module Aws::SNS
2169
2290
  #
2170
2291
  class TopicLimitExceededException < Struct.new(
2171
2292
  :message)
2293
+ SENSITIVE = []
2172
2294
  include Aws::Structure
2173
2295
  end
2174
2296
 
@@ -2189,6 +2311,7 @@ module Aws::SNS
2189
2311
  #
2190
2312
  class UnsubscribeInput < Struct.new(
2191
2313
  :subscription_arn)
2314
+ SENSITIVE = []
2192
2315
  include Aws::Structure
2193
2316
  end
2194
2317
 
@@ -2213,6 +2336,7 @@ module Aws::SNS
2213
2336
  class UntagResourceRequest < Struct.new(
2214
2337
  :resource_arn,
2215
2338
  :tag_keys)
2339
+ SENSITIVE = []
2216
2340
  include Aws::Structure
2217
2341
  end
2218
2342