aws-sdk-sns 1.120.0 → 1.121.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63f5c4bcca42e996520618baf213d3a3f37a9ec3cebf73e2ff52f8ce6d0136e2
4
- data.tar.gz: 5d28ff5cf8cac2f6367f6fac2af985c140ccce2abea8bbc90ba13a97af61c347
3
+ metadata.gz: dcc3f84cf75b5bcf5a5feced240bcb8c2ac8e8ff53faba126e9139cbe39ffc3e
4
+ data.tar.gz: c8fdde77bf7ca2644e68f157298ffc208b935c964ea0d5a8dd43718570285170
5
5
  SHA512:
6
- metadata.gz: 946eb51e08e2b5bfc694f70cd547bc29189bf0acfde1cf526772a729d80a3ea777a2c07f5d4b860379fcd0637f1455c274d1827ccf91e1e287261209b5240b3d
7
- data.tar.gz: 86eeed9e20ef3693ccac8a01f8ab96ab95b30a92eeee9cb027f0b8ec13e0122a668ca3613e2f8f5df99698809d24a90f6507808744753e9eab215c7b89c3f3ad
6
+ metadata.gz: e8f6f7c19978d2693d44fb244867ad26f7dc1fb0a6b2320d2a26deea9c781d6d4ba1a3af26a4b1f830c9e4fb2c141a205deb9071831162cda82a84c2b670214a
7
+ data.tar.gz: 1538bdf0980014f592eb0ce369ce2072ab46670e413968bb170f2cc4ea07dd36e0a1478616f71aa24bf157ccc3681b5bed753c15a8cd06faa086f8d032296587
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.121.0 (2026-09-17)
5
+ ------------------
6
+
7
+ * Feature - SNS API reference documentation update
8
+
4
9
  1.120.0 (2026-09-11)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.120.0
1
+ 1.121.0
@@ -833,8 +833,20 @@ module Aws::SNS
833
833
  # * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
834
834
  # failed deliveries to HTTP/S endpoints.
835
835
  #
836
- # * `DisplayName` – The display name to use for a topic with SMS
837
- # subscriptions.
836
+ # * `DisplayName` – The display name to use for a topic with SMS,
837
+ # `email`, and `email-json` subscriptions. For `email` and
838
+ # `email-json` subscriptions, the display name is used as the sender
839
+ # name for regular notification messages. Subscription confirmation
840
+ # and unsubscribe confirmation emails always use "Amazon Web Services
841
+ # Notifications" as the sender name.
842
+ #
843
+ # * `MaximumMessageSize` – The maximum size, in bytes, of a message that
844
+ # can be published to the topic. Valid values are `1024` to `1048576`
845
+ # (1 MiB). The default is `262144` (256 KiB).
846
+ #
847
+ # A topic with a `MaximumMessageSize` above 256 KiB must have 100 or
848
+ # fewer subscriptions, and each subscription must be an Amazon SQS,
849
+ # Amazon Data Firehose, or Lambda subscription.
838
850
  #
839
851
  # * `Policy` – The policy that defines who can access your topic. By
840
852
  # default, only the topic owner can publish or subscribe to the topic.
@@ -999,6 +1011,10 @@ module Aws::SNS
999
1011
  # </note>
1000
1012
  #
1001
1013
  # @option params [String] :data_protection_policy
1014
+ # Amazon SNS message data protection is no longer available to new
1015
+ # customers. For more information and guidance on alternatives, see
1016
+ # [Amazon SNS message data protection availability change][1].
1017
+ #
1002
1018
  # The body of the policy document you want to use for this topic.
1003
1019
  #
1004
1020
  # You can only add one policy per topic.
@@ -1007,6 +1023,10 @@ module Aws::SNS
1007
1023
  #
1008
1024
  # Length Constraints: Maximum length of 30,720.
1009
1025
  #
1026
+ #
1027
+ #
1028
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-message-data-protection-availability-change.html
1029
+ #
1010
1030
  # @return [Types::CreateTopicResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1011
1031
  #
1012
1032
  # * {Types::CreateTopicResponse#topic_arn #topic_arn} => String
@@ -1162,9 +1182,17 @@ module Aws::SNS
1162
1182
  req.send_request(options)
1163
1183
  end
1164
1184
 
1185
+ # Amazon SNS message data protection is no longer available to new
1186
+ # customers. For more information and guidance on alternatives, see
1187
+ # [Amazon SNS message data protection availability change][1].
1188
+ #
1165
1189
  # Retrieves the specified inline `DataProtectionPolicy` document that is
1166
1190
  # stored in the specified Amazon SNS topic.
1167
1191
  #
1192
+ #
1193
+ #
1194
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-message-data-protection-availability-change.html
1195
+ #
1168
1196
  # @option params [required, String] :resource_arn
1169
1197
  # The ARN of the topic whose `DataProtectionPolicy` you want to get.
1170
1198
  #
@@ -1908,8 +1936,18 @@ module Aws::SNS
1908
1936
  #
1909
1937
  # Constraints:
1910
1938
  #
1911
- # * With the exception of SMS, messages must be UTF-8 encoded strings
1912
- # and at most 256 KB in size (262,144 bytes, not 262,144 characters).
1939
+ # * With the exception of SMS, messages must be UTF-8 encoded strings.
1940
+ # By default, a message can be at most 256 KiB in size (262,144 bytes,
1941
+ # not 262,144 characters).
1942
+ #
1943
+ # When you publish to a topic, the maximum size is determined by the
1944
+ # topic's `MaximumMessageSize` attribute, which supports values up to
1945
+ # 1 MiB (1,048,576 bytes). Amazon SNS validates the combined size of
1946
+ # the message body and message attributes against this value and
1947
+ # returns an `InvalidParameter` error if the limit is exceeded.
1948
+ #
1949
+ # For more information, see [Large message payloads][1] in the *Amazon
1950
+ # SNS Developer Guide.*
1913
1951
  #
1914
1952
  # * For SMS, each message can contain up to 140 characters. This
1915
1953
  # character limit depends on the encoding schema. For example, an SMS
@@ -1951,6 +1989,10 @@ module Aws::SNS
1951
1989
  # * Failure to parse or validate any key or value in the message will
1952
1990
  # cause the `Publish` call to return an error (no partial delivery).
1953
1991
  #
1992
+ #
1993
+ #
1994
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
1995
+ #
1954
1996
  # @option params [String] :subject
1955
1997
  # Optional parameter to be used as the "Subject" line when the message
1956
1998
  # is delivered to email endpoints. This field will also be included, if
@@ -2099,9 +2141,16 @@ module Aws::SNS
2099
2141
  # successful and unsuccessful actions, you should check for batch errors
2100
2142
  # even when the call returns an HTTP status code of 200.
2101
2143
  #
2102
- # The maximum allowed individual message size and the maximum total
2103
- # payload size (the sum of the individual lengths of all of the batched
2104
- # messages) are both 256 KB (262,144 bytes).
2144
+ # By default, the maximum allowed individual message size and the
2145
+ # maximum total payload size (the sum of the individual lengths of all
2146
+ # of the batched messages) are both 256 KiB (262,144 bytes). To publish
2147
+ # larger batches, set the topic's `MaximumMessageSize` attribute, which
2148
+ # supports values up to 1 MiB (1,048,576 bytes). The combined size of
2149
+ # all messages in the batch, including each message's body and
2150
+ # attributes, must not exceed the topic's `MaximumMessageSize`.
2151
+ #
2152
+ # For more information, see [Large message payloads][1] in the *Amazon
2153
+ # SNS Developer Guide.*
2105
2154
  #
2106
2155
  # The `PublishBatch` API can send up to 10 messages at a time. If you
2107
2156
  # attempt to send more than 10 messages in one request, you will
@@ -2126,6 +2175,10 @@ module Aws::SNS
2126
2175
  # When a `messageId` is returned, the batch message is saved, and Amazon
2127
2176
  # SNS immediately delivers the message to subscribers.
2128
2177
  #
2178
+ #
2179
+ #
2180
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
2181
+ #
2129
2182
  # @option params [required, String] :topic_arn
2130
2183
  # The Amazon resource name (ARN) of the topic you want to batch publish
2131
2184
  # to.
@@ -2182,9 +2235,17 @@ module Aws::SNS
2182
2235
  req.send_request(options)
2183
2236
  end
2184
2237
 
2238
+ # Amazon SNS message data protection is no longer available to new
2239
+ # customers. For more information and guidance on alternatives, see
2240
+ # [Amazon SNS message data protection availability change][1].
2241
+ #
2185
2242
  # Adds or updates an inline policy document that is stored in the
2186
2243
  # specified Amazon SNS topic.
2187
2244
  #
2245
+ #
2246
+ #
2247
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-message-data-protection-availability-change.html
2248
+ #
2188
2249
  # @option params [required, String] :resource_arn
2189
2250
  # The ARN of the topic whose `DataProtectionPolicy` you want to add or
2190
2251
  # update.
@@ -2631,8 +2692,26 @@ module Aws::SNS
2631
2692
  # * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
2632
2693
  # failed deliveries to HTTP/S endpoints.
2633
2694
  #
2634
- # * `DisplayName` – The display name to use for a topic with SMS
2635
- # subscriptions.
2695
+ # * `DisplayName` – The display name to use for a topic with SMS,
2696
+ # `email`, and `email-json` subscriptions. For `email` and
2697
+ # `email-json` subscriptions, the display name is used as the sender
2698
+ # name for regular notification messages. Subscription confirmation
2699
+ # and unsubscribe confirmation emails always use "Amazon Web Services
2700
+ # Notifications" as the sender name.
2701
+ #
2702
+ # * `MaximumMessageSize` – The maximum size, in bytes, of a message that
2703
+ # can be published to the topic. Valid values are `1024` to `1048576`
2704
+ # (1 MiB). The default is `262144` (256 KiB).
2705
+ #
2706
+ # A topic with a `MaximumMessageSize` above 256 KiB must have 100 or
2707
+ # fewer subscriptions, and each subscription must be an Amazon SQS,
2708
+ # Amazon Data Firehose, or Lambda subscription.
2709
+ #
2710
+ # You can increase or decrease this value at any time. If the topic
2711
+ # doesn't meet these requirements when you set a value above 256 KiB,
2712
+ # Amazon SNS returns an `InvalidParameter` error. For more
2713
+ # information, see [Large message payloads][1] in the *Amazon SNS
2714
+ # Developer Guide.*
2636
2715
  #
2637
2716
  # * `Policy` – The policy that defines who can access your topic. By
2638
2717
  # default, only the topic owner can publish or subscribe to the topic.
@@ -2703,7 +2782,7 @@ module Aws::SNS
2703
2782
  # notification services.
2704
2783
  #
2705
2784
  # For example, For more information, see [Using Amazon SNS Application
2706
- # Attributes for Message Delivery Status][1].
2785
+ # Attributes for Message Delivery Status][2].
2707
2786
  #
2708
2787
  # </note>
2709
2788
  #
@@ -2732,11 +2811,11 @@ module Aws::SNS
2732
2811
  #
2733
2812
  # </note>
2734
2813
  #
2735
- # The following attribute applies only to [server-side-encryption][2]:
2814
+ # The following attribute applies only to [server-side-encryption][3]:
2736
2815
  #
2737
2816
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
2738
2817
  # master key (CMK) for Amazon SNS or a custom CMK. For more
2739
- # information, see [Key Terms][3]. For more examples, see [KeyId][4]
2818
+ # information, see [Key Terms][4]. For more examples, see [KeyId][5]
2740
2819
  # in the *Key Management Service API Reference*.
2741
2820
  #
2742
2821
  # * `SignatureVersion` – The signature version corresponds to the
@@ -2745,7 +2824,7 @@ module Aws::SNS
2745
2824
  # confirmation messages sent by Amazon SNS. By default,
2746
2825
  # `SignatureVersion` is set to `1`.
2747
2826
  #
2748
- # The following attribute applies only to [FIFO topics][5]:
2827
+ # The following attribute applies only to [FIFO topics][6]:
2749
2828
  #
2750
2829
  # * `ArchivePolicy` – The policy that sets the retention period for
2751
2830
  # messages stored in the message archive of an Amazon SNS FIFO topic.
@@ -2756,7 +2835,7 @@ module Aws::SNS
2756
2835
  # * By default, `ContentBasedDeduplication` is set to `false`. If you
2757
2836
  # create a FIFO topic and this attribute is `false`, you must
2758
2837
  # specify a value for the `MessageDeduplicationId` parameter for the
2759
- # [Publish][6] action.
2838
+ # [Publish][7] action.
2760
2839
  #
2761
2840
  # * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
2762
2841
  # uses a SHA-256 hash to generate the `MessageDeduplicationId` using
@@ -2779,18 +2858,19 @@ module Aws::SNS
2779
2858
  # * `MessageGroup` – The scope of deduplication is within each
2780
2859
  # individual message group, which enables higher throughput per
2781
2860
  # topic subject to regional quotas. For more information on quotas
2782
- # or to request an increase, see [Amazon SNS service quotas][7] in
2861
+ # or to request an increase, see [Amazon SNS service quotas][8] in
2783
2862
  # the Amazon Web Services General Reference.
2784
2863
  #
2785
2864
  #
2786
2865
  #
2787
- # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
2788
- # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
2789
- # [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
2790
- # [4]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
2791
- # [5]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
2792
- # [6]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
2793
- # [7]: https://docs.aws.amazon.com/general/latest/gr/sns.html
2866
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
2867
+ # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
2868
+ # [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
2869
+ # [4]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
2870
+ # [5]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
2871
+ # [6]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
2872
+ # [7]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
2873
+ # [8]: https://docs.aws.amazon.com/general/latest/gr/sns.html
2794
2874
  #
2795
2875
  # @option params [String] :attribute_value
2796
2876
  # The new value for the attribute.
@@ -3169,7 +3249,7 @@ module Aws::SNS
3169
3249
  tracer: tracer
3170
3250
  )
3171
3251
  context[:gem_name] = 'aws-sdk-sns'
3172
- context[:gem_version] = '1.120.0'
3252
+ context[:gem_version] = '1.121.0'
3173
3253
  Seahorse::Client::Request.new(handlers, context)
3174
3254
  end
3175
3255
 
@@ -153,8 +153,18 @@ module Aws::SNS
153
153
  #
154
154
  # Constraints:
155
155
  #
156
- # * With the exception of SMS, messages must be UTF-8 encoded strings
157
- # and at most 256 KB in size (262,144 bytes, not 262,144 characters).
156
+ # * With the exception of SMS, messages must be UTF-8 encoded strings.
157
+ # By default, a message can be at most 256 KiB in size (262,144 bytes,
158
+ # not 262,144 characters).
159
+ #
160
+ # When you publish to a topic, the maximum size is determined by the
161
+ # topic's `MaximumMessageSize` attribute, which supports values up to
162
+ # 1 MiB (1,048,576 bytes). Amazon SNS validates the combined size of
163
+ # the message body and message attributes against this value and
164
+ # returns an `InvalidParameter` error if the limit is exceeded.
165
+ #
166
+ # For more information, see [Large message payloads][1] in the *Amazon
167
+ # SNS Developer Guide.*
158
168
  #
159
169
  # * For SMS, each message can contain up to 140 characters. This
160
170
  # character limit depends on the encoding schema. For example, an SMS
@@ -195,6 +205,10 @@ module Aws::SNS
195
205
  #
196
206
  # * Failure to parse or validate any key or value in the message will
197
207
  # cause the `Publish` call to return an error (no partial delivery).
208
+ #
209
+ #
210
+ #
211
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
198
212
  # @option options [String] :subject
199
213
  # Optional parameter to be used as the "Subject" line when the message
200
214
  # is delivered to email endpoints. This field will also be included, if
@@ -105,8 +105,20 @@ module Aws::SNS
105
105
  # * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
106
106
  # failed deliveries to HTTP/S endpoints.
107
107
  #
108
- # * `DisplayName` – The display name to use for a topic with SMS
109
- # subscriptions.
108
+ # * `DisplayName` – The display name to use for a topic with SMS,
109
+ # `email`, and `email-json` subscriptions. For `email` and
110
+ # `email-json` subscriptions, the display name is used as the sender
111
+ # name for regular notification messages. Subscription confirmation
112
+ # and unsubscribe confirmation emails always use "Amazon Web Services
113
+ # Notifications" as the sender name.
114
+ #
115
+ # * `MaximumMessageSize` – The maximum size, in bytes, of a message that
116
+ # can be published to the topic. Valid values are `1024` to `1048576`
117
+ # (1 MiB). The default is `262144` (256 KiB).
118
+ #
119
+ # A topic with a `MaximumMessageSize` above 256 KiB must have 100 or
120
+ # fewer subscriptions, and each subscription must be an Amazon SQS,
121
+ # Amazon Data Firehose, or Lambda subscription.
110
122
  #
111
123
  # * `Policy` – The policy that defines who can access your topic. By
112
124
  # default, only the topic owner can publish or subscribe to the topic.
@@ -269,6 +281,10 @@ module Aws::SNS
269
281
  #
270
282
  # </note>
271
283
  # @option options [String] :data_protection_policy
284
+ # Amazon SNS message data protection is no longer available to new
285
+ # customers. For more information and guidance on alternatives, see
286
+ # [Amazon SNS message data protection availability change][1].
287
+ #
272
288
  # The body of the policy document you want to use for this topic.
273
289
  #
274
290
  # You can only add one policy per topic.
@@ -276,6 +292,10 @@ module Aws::SNS
276
292
  # The policy must be in JSON string format.
277
293
  #
278
294
  # Length Constraints: Maximum length of 30,720.
295
+ #
296
+ #
297
+ #
298
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-message-data-protection-availability-change.html
279
299
  # @return [Topic]
280
300
  def create_topic(options = {})
281
301
  resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
@@ -41,11 +41,19 @@ module Aws::SNS
41
41
  # policy.
42
42
  #
43
43
  # * `DisplayName` – The human-readable name used in the `From` field for
44
- # notifications to `email` and `email-json` endpoints.
44
+ # notifications to `email` and `email-json` endpoints. For
45
+ # subscription confirmation and unsubscribe confirmation emails, the
46
+ # sender name is always "Amazon Web Services Notifications"
47
+ # regardless of this attribute.
45
48
  #
46
49
  # * `EffectiveDeliveryPolicy` – The JSON serialization of the effective
47
50
  # delivery policy, taking system defaults into account.
48
51
  #
52
+ # * `MaximumMessageSize` – The maximum size, in bytes, of a message that
53
+ # can be published to the topic. Amazon SNS returns this attribute
54
+ # only if you explicitly set it. If Amazon SNS doesn't return it, the
55
+ # topic uses the default of `262144` (256 KiB).
56
+ #
49
57
  # * `Owner` – The Amazon Web Services account ID of the topic's owner.
50
58
  #
51
59
  # * `Policy` – The JSON serialization of the topic's access control
@@ -281,8 +289,18 @@ module Aws::SNS
281
289
  #
282
290
  # Constraints:
283
291
  #
284
- # * With the exception of SMS, messages must be UTF-8 encoded strings
285
- # and at most 256 KB in size (262,144 bytes, not 262,144 characters).
292
+ # * With the exception of SMS, messages must be UTF-8 encoded strings.
293
+ # By default, a message can be at most 256 KiB in size (262,144 bytes,
294
+ # not 262,144 characters).
295
+ #
296
+ # When you publish to a topic, the maximum size is determined by the
297
+ # topic's `MaximumMessageSize` attribute, which supports values up to
298
+ # 1 MiB (1,048,576 bytes). Amazon SNS validates the combined size of
299
+ # the message body and message attributes against this value and
300
+ # returns an `InvalidParameter` error if the limit is exceeded.
301
+ #
302
+ # For more information, see [Large message payloads][1] in the *Amazon
303
+ # SNS Developer Guide.*
286
304
  #
287
305
  # * For SMS, each message can contain up to 140 characters. This
288
306
  # character limit depends on the encoding schema. For example, an SMS
@@ -323,6 +341,10 @@ module Aws::SNS
323
341
  #
324
342
  # * Failure to parse or validate any key or value in the message will
325
343
  # cause the `Publish` call to return an error (no partial delivery).
344
+ #
345
+ #
346
+ #
347
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
326
348
  # @option options [String] :subject
327
349
  # Optional parameter to be used as the "Subject" line when the message
328
350
  # is delivered to email endpoints. This field will also be included, if
@@ -455,8 +477,26 @@ module Aws::SNS
455
477
  # * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
456
478
  # failed deliveries to HTTP/S endpoints.
457
479
  #
458
- # * `DisplayName` – The display name to use for a topic with SMS
459
- # subscriptions.
480
+ # * `DisplayName` – The display name to use for a topic with SMS,
481
+ # `email`, and `email-json` subscriptions. For `email` and
482
+ # `email-json` subscriptions, the display name is used as the sender
483
+ # name for regular notification messages. Subscription confirmation
484
+ # and unsubscribe confirmation emails always use "Amazon Web Services
485
+ # Notifications" as the sender name.
486
+ #
487
+ # * `MaximumMessageSize` – The maximum size, in bytes, of a message that
488
+ # can be published to the topic. Valid values are `1024` to `1048576`
489
+ # (1 MiB). The default is `262144` (256 KiB).
490
+ #
491
+ # A topic with a `MaximumMessageSize` above 256 KiB must have 100 or
492
+ # fewer subscriptions, and each subscription must be an Amazon SQS,
493
+ # Amazon Data Firehose, or Lambda subscription.
494
+ #
495
+ # You can increase or decrease this value at any time. If the topic
496
+ # doesn't meet these requirements when you set a value above 256 KiB,
497
+ # Amazon SNS returns an `InvalidParameter` error. For more
498
+ # information, see [Large message payloads][1] in the *Amazon SNS
499
+ # Developer Guide.*
460
500
  #
461
501
  # * `Policy` – The policy that defines who can access your topic. By
462
502
  # default, only the topic owner can publish or subscribe to the topic.
@@ -527,7 +567,7 @@ module Aws::SNS
527
567
  # notification services.
528
568
  #
529
569
  # For example, For more information, see [Using Amazon SNS Application
530
- # Attributes for Message Delivery Status][1].
570
+ # Attributes for Message Delivery Status][2].
531
571
  #
532
572
  # </note>
533
573
  #
@@ -556,11 +596,11 @@ module Aws::SNS
556
596
  #
557
597
  # </note>
558
598
  #
559
- # The following attribute applies only to [server-side-encryption][2]:
599
+ # The following attribute applies only to [server-side-encryption][3]:
560
600
  #
561
601
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
562
602
  # master key (CMK) for Amazon SNS or a custom CMK. For more
563
- # information, see [Key Terms][3]. For more examples, see [KeyId][4]
603
+ # information, see [Key Terms][4]. For more examples, see [KeyId][5]
564
604
  # in the *Key Management Service API Reference*.
565
605
  #
566
606
  # * `SignatureVersion` – The signature version corresponds to the
@@ -569,7 +609,7 @@ module Aws::SNS
569
609
  # confirmation messages sent by Amazon SNS. By default,
570
610
  # `SignatureVersion` is set to `1`.
571
611
  #
572
- # The following attribute applies only to [FIFO topics][5]:
612
+ # The following attribute applies only to [FIFO topics][6]:
573
613
  #
574
614
  # * `ArchivePolicy` – The policy that sets the retention period for
575
615
  # messages stored in the message archive of an Amazon SNS FIFO topic.
@@ -580,7 +620,7 @@ module Aws::SNS
580
620
  # * By default, `ContentBasedDeduplication` is set to `false`. If you
581
621
  # create a FIFO topic and this attribute is `false`, you must
582
622
  # specify a value for the `MessageDeduplicationId` parameter for the
583
- # [Publish][6] action.
623
+ # [Publish][7] action.
584
624
  #
585
625
  # * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
586
626
  # uses a SHA-256 hash to generate the `MessageDeduplicationId` using
@@ -603,18 +643,19 @@ module Aws::SNS
603
643
  # * `MessageGroup` – The scope of deduplication is within each
604
644
  # individual message group, which enables higher throughput per
605
645
  # topic subject to regional quotas. For more information on quotas
606
- # or to request an increase, see [Amazon SNS service quotas][7] in
646
+ # or to request an increase, see [Amazon SNS service quotas][8] in
607
647
  # the Amazon Web Services General Reference.
608
648
  #
609
649
  #
610
650
  #
611
- # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
612
- # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
613
- # [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
614
- # [4]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
615
- # [5]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
616
- # [6]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
617
- # [7]: https://docs.aws.amazon.com/general/latest/gr/sns.html
651
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
652
+ # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
653
+ # [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
654
+ # [4]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
655
+ # [5]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
656
+ # [6]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
657
+ # [7]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
658
+ # [8]: https://docs.aws.amazon.com/general/latest/gr/sns.html
618
659
  # @option options [String] :attribute_value
619
660
  # The new value for the attribute.
620
661
  # @return [EmptyStructure]
@@ -351,8 +351,20 @@ module Aws::SNS
351
351
  # * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
352
352
  # failed deliveries to HTTP/S endpoints.
353
353
  #
354
- # * `DisplayName` – The display name to use for a topic with SMS
355
- # subscriptions.
354
+ # * `DisplayName` – The display name to use for a topic with SMS,
355
+ # `email`, and `email-json` subscriptions. For `email` and
356
+ # `email-json` subscriptions, the display name is used as the sender
357
+ # name for regular notification messages. Subscription confirmation
358
+ # and unsubscribe confirmation emails always use "Amazon Web
359
+ # Services Notifications" as the sender name.
360
+ #
361
+ # * `MaximumMessageSize` – The maximum size, in bytes, of a message
362
+ # that can be published to the topic. Valid values are `1024` to
363
+ # `1048576` (1 MiB). The default is `262144` (256 KiB).
364
+ #
365
+ # A topic with a `MaximumMessageSize` above 256 KiB must have 100 or
366
+ # fewer subscriptions, and each subscription must be an Amazon SQS,
367
+ # Amazon Data Firehose, or Lambda subscription.
356
368
  #
357
369
  # * `Policy` – The policy that defines who can access your topic. By
358
370
  # default, only the topic owner can publish or subscribe to the
@@ -523,6 +535,10 @@ module Aws::SNS
523
535
  # @return [Array<Types::Tag>]
524
536
  #
525
537
  # @!attribute [rw] data_protection_policy
538
+ # Amazon SNS message data protection is no longer available to new
539
+ # customers. For more information and guidance on alternatives, see
540
+ # [Amazon SNS message data protection availability change][1].
541
+ #
526
542
  # The body of the policy document you want to use for this topic.
527
543
  #
528
544
  # You can only add one policy per topic.
@@ -530,6 +546,10 @@ module Aws::SNS
530
546
  # The policy must be in JSON string format.
531
547
  #
532
548
  # Length Constraints: Maximum length of 30,720.
549
+ #
550
+ #
551
+ #
552
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-message-data-protection-availability-change.html
533
553
  # @return [String]
534
554
  #
535
555
  # @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/CreateTopicInput AWS API Documentation
@@ -983,11 +1003,19 @@ module Aws::SNS
983
1003
  # policy.
984
1004
  #
985
1005
  # * `DisplayName` – The human-readable name used in the `From` field
986
- # for notifications to `email` and `email-json` endpoints.
1006
+ # for notifications to `email` and `email-json` endpoints. For
1007
+ # subscription confirmation and unsubscribe confirmation emails, the
1008
+ # sender name is always "Amazon Web Services Notifications"
1009
+ # regardless of this attribute.
987
1010
  #
988
1011
  # * `EffectiveDeliveryPolicy` – The JSON serialization of the
989
1012
  # effective delivery policy, taking system defaults into account.
990
1013
  #
1014
+ # * `MaximumMessageSize` – The maximum size, in bytes, of a message
1015
+ # that can be published to the topic. Amazon SNS returns this
1016
+ # attribute only if you explicitly set it. If Amazon SNS doesn't
1017
+ # return it, the topic uses the default of `262144` (256 KiB).
1018
+ #
991
1019
  # * `Owner` – The Amazon Web Services account ID of the topic's
992
1020
  # owner.
993
1021
  #
@@ -1595,15 +1623,18 @@ module Aws::SNS
1595
1623
  # Name, type, and value must not be empty or null. In addition, the
1596
1624
  # message body should not be empty or null. All parts of the message
1597
1625
  # attribute, including name, type, and value, are included in the
1598
- # message size restriction, which is currently 256 KB (262,144 bytes).
1599
- # For more information, see [Amazon SNS message attributes][2] and
1600
- # [Publishing to a mobile phone][3] in the *Amazon SNS Developer Guide.*
1626
+ # message size restriction, which is 256 KiB (262,144 bytes) by default
1627
+ # and is determined by the topic's `MaximumMessageSize` attribute. For
1628
+ # more information, see [Large message payloads][2], [Amazon SNS message
1629
+ # attributes][3] and [Publishing to a mobile phone][4] in the *Amazon
1630
+ # SNS Developer Guide.*
1601
1631
  #
1602
1632
  #
1603
1633
  #
1604
1634
  # [1]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
1605
- # [2]: https://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html
1606
- # [3]: https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html
1635
+ # [2]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
1636
+ # [3]: https://docs.aws.amazon.com/sns/latest/dg/SNSMessageAttributes.html
1637
+ # [4]: https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html
1607
1638
  #
1608
1639
  # @!attribute [rw] data_type
1609
1640
  # Amazon SNS supports the following logical data types: String,
@@ -2017,9 +2048,18 @@ module Aws::SNS
2017
2048
  #
2018
2049
  # Constraints:
2019
2050
  #
2020
- # * With the exception of SMS, messages must be UTF-8 encoded strings
2021
- # and at most 256 KB in size (262,144 bytes, not 262,144
2022
- # characters).
2051
+ # * With the exception of SMS, messages must be UTF-8 encoded strings.
2052
+ # By default, a message can be at most 256 KiB in size (262,144
2053
+ # bytes, not 262,144 characters).
2054
+ #
2055
+ # When you publish to a topic, the maximum size is determined by the
2056
+ # topic's `MaximumMessageSize` attribute, which supports values up
2057
+ # to 1 MiB (1,048,576 bytes). Amazon SNS validates the combined size
2058
+ # of the message body and message attributes against this value and
2059
+ # returns an `InvalidParameter` error if the limit is exceeded.
2060
+ #
2061
+ # For more information, see [Large message payloads][1] in the
2062
+ # *Amazon SNS Developer Guide.*
2023
2063
  #
2024
2064
  # * For SMS, each message can contain up to 140 characters. This
2025
2065
  # character limit depends on the encoding schema. For example, an
@@ -2060,6 +2100,10 @@ module Aws::SNS
2060
2100
  #
2061
2101
  # * Failure to parse or validate any key or value in the message will
2062
2102
  # cause the `Publish` call to return an error (no partial delivery).
2103
+ #
2104
+ #
2105
+ #
2106
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
2063
2107
  # @return [String]
2064
2108
  #
2065
2109
  # @!attribute [rw] subject
@@ -2632,8 +2676,26 @@ module Aws::SNS
2632
2676
  # * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
2633
2677
  # failed deliveries to HTTP/S endpoints.
2634
2678
  #
2635
- # * `DisplayName` – The display name to use for a topic with SMS
2636
- # subscriptions.
2679
+ # * `DisplayName` – The display name to use for a topic with SMS,
2680
+ # `email`, and `email-json` subscriptions. For `email` and
2681
+ # `email-json` subscriptions, the display name is used as the sender
2682
+ # name for regular notification messages. Subscription confirmation
2683
+ # and unsubscribe confirmation emails always use "Amazon Web
2684
+ # Services Notifications" as the sender name.
2685
+ #
2686
+ # * `MaximumMessageSize` – The maximum size, in bytes, of a message
2687
+ # that can be published to the topic. Valid values are `1024` to
2688
+ # `1048576` (1 MiB). The default is `262144` (256 KiB).
2689
+ #
2690
+ # A topic with a `MaximumMessageSize` above 256 KiB must have 100 or
2691
+ # fewer subscriptions, and each subscription must be an Amazon SQS,
2692
+ # Amazon Data Firehose, or Lambda subscription.
2693
+ #
2694
+ # You can increase or decrease this value at any time. If the topic
2695
+ # doesn't meet these requirements when you set a value above 256
2696
+ # KiB, Amazon SNS returns an `InvalidParameter` error. For more
2697
+ # information, see [Large message payloads][1] in the *Amazon SNS
2698
+ # Developer Guide.*
2637
2699
  #
2638
2700
  # * `Policy` – The policy that defines who can access your topic. By
2639
2701
  # default, only the topic owner can publish or subscribe to the
@@ -2706,7 +2768,7 @@ module Aws::SNS
2706
2768
  # sent to push notification services.
2707
2769
  #
2708
2770
  # For example, For more information, see [Using Amazon SNS
2709
- # Application Attributes for Message Delivery Status][1].
2771
+ # Application Attributes for Message Delivery Status][2].
2710
2772
  #
2711
2773
  # </note>
2712
2774
  #
@@ -2735,11 +2797,11 @@ module Aws::SNS
2735
2797
  #
2736
2798
  # </note>
2737
2799
  #
2738
- # The following attribute applies only to [server-side-encryption][2]:
2800
+ # The following attribute applies only to [server-side-encryption][3]:
2739
2801
  #
2740
2802
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed
2741
2803
  # customer master key (CMK) for Amazon SNS or a custom CMK. For more
2742
- # information, see [Key Terms][3]. For more examples, see [KeyId][4]
2804
+ # information, see [Key Terms][4]. For more examples, see [KeyId][5]
2743
2805
  # in the *Key Management Service API Reference*.
2744
2806
  #
2745
2807
  # * `SignatureVersion` – The signature version corresponds to the
@@ -2748,7 +2810,7 @@ module Aws::SNS
2748
2810
  # confirmation messages sent by Amazon SNS. By default,
2749
2811
  # `SignatureVersion` is set to `1`.
2750
2812
  #
2751
- # The following attribute applies only to [FIFO topics][5]:
2813
+ # The following attribute applies only to [FIFO topics][6]:
2752
2814
  #
2753
2815
  # * `ArchivePolicy` – The policy that sets the retention period for
2754
2816
  # messages stored in the message archive of an Amazon SNS FIFO
@@ -2760,7 +2822,7 @@ module Aws::SNS
2760
2822
  # * By default, `ContentBasedDeduplication` is set to `false`. If
2761
2823
  # you create a FIFO topic and this attribute is `false`, you must
2762
2824
  # specify a value for the `MessageDeduplicationId` parameter for
2763
- # the [Publish][6] action.
2825
+ # the [Publish][7] action.
2764
2826
  #
2765
2827
  # * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
2766
2828
  # uses a SHA-256 hash to generate the `MessageDeduplicationId`
@@ -2784,18 +2846,19 @@ module Aws::SNS
2784
2846
  # * `MessageGroup` – The scope of deduplication is within each
2785
2847
  # individual message group, which enables higher throughput per
2786
2848
  # topic subject to regional quotas. For more information on quotas
2787
- # or to request an increase, see [Amazon SNS service quotas][7] in
2849
+ # or to request an increase, see [Amazon SNS service quotas][8] in
2788
2850
  # the Amazon Web Services General Reference.
2789
2851
  #
2790
2852
  #
2791
2853
  #
2792
- # [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
2793
- # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
2794
- # [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
2795
- # [4]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
2796
- # [5]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
2797
- # [6]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
2798
- # [7]: https://docs.aws.amazon.com/general/latest/gr/sns.html
2854
+ # [1]: https://docs.aws.amazon.com/sns/latest/dg/large-message-payloads.html
2855
+ # [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
2856
+ # [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
2857
+ # [4]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
2858
+ # [5]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
2859
+ # [6]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
2860
+ # [7]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
2861
+ # [8]: https://docs.aws.amazon.com/general/latest/gr/sns.html
2799
2862
  # @return [String]
2800
2863
  #
2801
2864
  # @!attribute [rw] attribute_value
data/lib/aws-sdk-sns.rb CHANGED
@@ -58,7 +58,7 @@ module Aws::SNS
58
58
  autoload :Subscription, 'aws-sdk-sns/subscription'
59
59
  autoload :Topic, 'aws-sdk-sns/topic'
60
60
 
61
- GEM_VERSION = '1.120.0'
61
+ GEM_VERSION = '1.121.0'
62
62
 
63
63
  end
64
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.120.0
4
+ version: 1.121.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services