aws-sdk-sns 1.59.0 → 1.61.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5180f45a384868426bbd2327643aafb1efe30da3bcdb42c129869ea07051c942
4
- data.tar.gz: 9654db3e5315e4cb9c98c88d110c2ab0db23b491877152cc2dd112f8eff341f3
3
+ metadata.gz: 0042c124ed656a7b6308c019a8dcc5cc66866e8c6c57b246b052eede1a91209b
4
+ data.tar.gz: 645cb2b4435d6883b7eab56d534a60f3e8d7ba49a2eff4539abc8ad77f3d5adf
5
5
  SHA512:
6
- metadata.gz: 29b9cb431cc2c015ace8853a8e2fc4b514e64202c4c5a1d7f9a0433e5ec60bb53ebe04414e900d901db8c6cd396a0a2f8805ab1e189db5939c13a29151586a2d
7
- data.tar.gz: 1abdc459db9fc01ba16a3d134089ab16bf51cd281881c811a405bbaafcea214f15c511d6ac4f1ac87b76836a6722d9d27cc08e3a98dd7a51cb5c77ff3a636e68
6
+ metadata.gz: c33916ba36cf7baed5b9f14319a89686ace2bd8c81a74cde681fb10c067284fb0c110c0ed4750a9c06189aaaf0e34edd277013dde50c56472a3785bba734f5de
7
+ data.tar.gz: 5ff3ead4dcb1086333dbef80148a6c3764cf2ce853d7b0e0be762519b814f3199778691f5d47eedf9bab4edb8c1800842ad07564c95f8c1165b3c8a76f6fc71a
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.61.0 (2023-05-31)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.60.0 (2023-02-10)
10
+ ------------------
11
+
12
+ * Feature - This release adds support for SNS X-Ray active tracing as well as other updates.
13
+
4
14
  1.59.0 (2023-02-01)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.59.0
1
+ 1.61.0
@@ -275,6 +275,11 @@ module Aws::SNS
275
275
  # in the future.
276
276
  #
277
277
  #
278
+ # @option options [String] :sdk_ua_app_id
279
+ # A unique and opaque application ID that is appended to the
280
+ # User-Agent header as app/<sdk_ua_app_id>. It should have a
281
+ # maximum length of 50.
282
+ #
278
283
  # @option options [String] :secret_access_key
279
284
  #
280
285
  # @option options [String] :session_token
@@ -730,9 +735,16 @@ module Aws::SNS
730
735
  # hashing algorithm used while creating the signature of the
731
736
  # notifications, subscription confirmations, or unsubscribe
732
737
  # confirmation messages sent by Amazon SNS. By default,
733
- # `SignatureVersion` is set to 1.
738
+ # `SignatureVersion` is set to `1`.
739
+ #
740
+ # * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
741
+ # `TracingConfig` is set to `PassThrough`, and the topic passes
742
+ # through the tracing header it receives from an Amazon SNS publisher
743
+ # to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
744
+ # segment data to topic owner account if the sampled flag in the
745
+ # tracing header is true. This is only supported on standard topics.
734
746
  #
735
- # The following attribute applies only to [server-side encryption][1]\:
747
+ # The following attribute applies only to [server-side encryption][1]:
736
748
  #
737
749
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
738
750
  # master key (CMK) for Amazon SNS or a custom CMK. For more
@@ -741,7 +753,7 @@ module Aws::SNS
741
753
  #
742
754
  # ^
743
755
  #
744
- # The following attributes apply only to [FIFO topics][4]\:
756
+ # The following attributes apply only to [FIFO topics][4]:
745
757
  #
746
758
  # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
747
759
  #
@@ -2364,6 +2376,13 @@ module Aws::SNS
2364
2376
  # * `Policy` – The policy that defines who can access your topic. By
2365
2377
  # default, only the topic owner can publish or subscribe to the topic.
2366
2378
  #
2379
+ # * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
2380
+ # `TracingConfig` is set to `PassThrough`, and the topic passes
2381
+ # through the tracing header it receives from an Amazon SNS publisher
2382
+ # to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
2383
+ # segment data to topic owner account if the sampled flag in the
2384
+ # tracing header is true. This is only supported on standard topics.
2385
+ #
2367
2386
  # * HTTP
2368
2387
  #
2369
2388
  # * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
@@ -2456,7 +2475,7 @@ module Aws::SNS
2456
2475
  #
2457
2476
  # </note>
2458
2477
  #
2459
- # The following attribute applies only to [server-side-encryption][2]\:
2478
+ # The following attribute applies only to [server-side-encryption][2]:
2460
2479
  #
2461
2480
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
2462
2481
  # master key (CMK) for Amazon SNS or a custom CMK. For more
@@ -2466,9 +2485,10 @@ module Aws::SNS
2466
2485
  # * `SignatureVersion` – The signature version corresponds to the
2467
2486
  # hashing algorithm used while creating the signature of the
2468
2487
  # notifications, subscription confirmations, or unsubscribe
2469
- # confirmation messages sent by Amazon SNS.
2488
+ # confirmation messages sent by Amazon SNS. By default,
2489
+ # `SignatureVersion` is set to `1`.
2470
2490
  #
2471
- # The following attribute applies only to [FIFO topics][5]\:
2491
+ # The following attribute applies only to [FIFO topics][5]:
2472
2492
  #
2473
2493
  # * `ContentBasedDeduplication` – Enables content-based deduplication
2474
2494
  # for FIFO topics.
@@ -2854,7 +2874,7 @@ module Aws::SNS
2854
2874
  params: params,
2855
2875
  config: config)
2856
2876
  context[:gem_name] = 'aws-sdk-sns'
2857
- context[:gem_version] = '1.59.0'
2877
+ context[:gem_version] = '1.61.0'
2858
2878
  Seahorse::Client::Request.new(handlers, context)
2859
2879
  end
2860
2880
 
@@ -50,9 +50,6 @@ module Aws::SNS
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,42 +14,45 @@ module Aws::SNS
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
26
20
  end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://sns-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
32
23
  end
33
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
36
- return Aws::Endpoints::Endpoint.new(url: "https://sns.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://sns-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
37
31
  end
38
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
39
- return Aws::Endpoints::Endpoint.new(url: "https://sns.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
37
+ return Aws::Endpoints::Endpoint.new(url: "https://sns.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
40
+ return Aws::Endpoints::Endpoint.new(url: "https://sns.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
41
+ end
42
+ return Aws::Endpoints::Endpoint.new(url: "https://sns-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
40
43
  end
41
- return Aws::Endpoints::Endpoint.new(url: "https://sns-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
42
45
  end
43
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
44
- end
45
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
46
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
47
- return Aws::Endpoints::Endpoint.new(url: "https://sns.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
46
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
47
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
48
+ return Aws::Endpoints::Endpoint.new(url: "https://sns.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
49
+ end
50
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
48
51
  end
49
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
52
+ return Aws::Endpoints::Endpoint.new(url: "https://sns.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
50
53
  end
51
- return Aws::Endpoints::Endpoint.new(url: "https://sns.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
52
54
  end
55
+ raise ArgumentError, "Invalid Configuration: Missing Region"
53
56
  raise ArgumentError, 'No endpoint could be resolved'
54
57
 
55
58
  end
@@ -76,7 +76,9 @@ module Aws::SNS
76
76
  #
77
77
  # @return [self]
78
78
  def load
79
- resp = @client.get_platform_application_attributes(platform_application_arn: @arn)
79
+ resp = Aws::Plugins::UserAgent.feature('resource') do
80
+ @client.get_platform_application_attributes(platform_application_arn: @arn)
81
+ end
80
82
  @data = resp.data
81
83
  self
82
84
  end
@@ -128,7 +130,9 @@ module Aws::SNS
128
130
  # @return [PlatformEndpoint]
129
131
  def create_platform_endpoint(options = {})
130
132
  options = options.merge(platform_application_arn: @arn)
131
- resp = @client.create_platform_endpoint(options)
133
+ resp = Aws::Plugins::UserAgent.feature('resource') do
134
+ @client.create_platform_endpoint(options)
135
+ end
132
136
  PlatformEndpoint.new(
133
137
  arn: resp.data.endpoint_arn,
134
138
  client: @client
@@ -142,7 +146,9 @@ module Aws::SNS
142
146
  # @return [EmptyStructure]
143
147
  def delete(options = {})
144
148
  options = options.merge(platform_application_arn: @arn)
145
- resp = @client.delete_platform_application(options)
149
+ resp = Aws::Plugins::UserAgent.feature('resource') do
150
+ @client.delete_platform_application(options)
151
+ end
146
152
  resp.data
147
153
  end
148
154
 
@@ -221,7 +227,9 @@ module Aws::SNS
221
227
  # @return [EmptyStructure]
222
228
  def set_attributes(options = {})
223
229
  options = options.merge(platform_application_arn: @arn)
224
- resp = @client.set_platform_application_attributes(options)
230
+ resp = Aws::Plugins::UserAgent.feature('resource') do
231
+ @client.set_platform_application_attributes(options)
232
+ end
225
233
  resp.data
226
234
  end
227
235
 
@@ -235,7 +243,9 @@ module Aws::SNS
235
243
  def endpoints(options = {})
236
244
  batches = Enumerator.new do |y|
237
245
  options = options.merge(platform_application_arn: @arn)
238
- resp = @client.list_endpoints_by_platform_application(options)
246
+ resp = Aws::Plugins::UserAgent.feature('resource') do
247
+ @client.list_endpoints_by_platform_application(options)
248
+ end
239
249
  resp.each_page do |page|
240
250
  batch = []
241
251
  page.data.endpoints.each do |e|
@@ -72,7 +72,9 @@ module Aws::SNS
72
72
  #
73
73
  # @return [self]
74
74
  def load
75
- resp = @client.get_endpoint_attributes(endpoint_arn: @arn)
75
+ resp = Aws::Plugins::UserAgent.feature('resource') do
76
+ @client.get_endpoint_attributes(endpoint_arn: @arn)
77
+ end
76
78
  @data = resp.data
77
79
  self
78
80
  end
@@ -102,7 +104,9 @@ module Aws::SNS
102
104
  # @return [EmptyStructure]
103
105
  def delete(options = {})
104
106
  options = options.merge(endpoint_arn: @arn)
105
- resp = @client.delete_endpoint(options)
107
+ resp = Aws::Plugins::UserAgent.feature('resource') do
108
+ @client.delete_endpoint(options)
109
+ end
106
110
  resp.data
107
111
  end
108
112
 
@@ -245,7 +249,9 @@ module Aws::SNS
245
249
  # @return [Types::PublishResponse]
246
250
  def publish(options = {})
247
251
  options = options.merge(target_arn: @arn)
248
- resp = @client.publish(options)
252
+ resp = Aws::Plugins::UserAgent.feature('resource') do
253
+ @client.publish(options)
254
+ end
249
255
  resp.data
250
256
  end
251
257
 
@@ -277,7 +283,9 @@ module Aws::SNS
277
283
  # @return [EmptyStructure]
278
284
  def set_attributes(options = {})
279
285
  options = options.merge(endpoint_arn: @arn)
280
- resp = @client.set_endpoint_attributes(options)
286
+ resp = Aws::Plugins::UserAgent.feature('resource') do
287
+ @client.set_endpoint_attributes(options)
288
+ end
281
289
  resp.data
282
290
  end
283
291
 
@@ -61,7 +61,9 @@ module Aws::SNS
61
61
  # [1]: https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html
62
62
  # @return [PlatformApplication]
63
63
  def create_platform_application(options = {})
64
- resp = @client.create_platform_application(options)
64
+ resp = Aws::Plugins::UserAgent.feature('resource') do
65
+ @client.create_platform_application(options)
66
+ end
65
67
  PlatformApplication.new(
66
68
  arn: resp.data.platform_application_arn,
67
69
  client: @client
@@ -114,9 +116,16 @@ module Aws::SNS
114
116
  # hashing algorithm used while creating the signature of the
115
117
  # notifications, subscription confirmations, or unsubscribe
116
118
  # confirmation messages sent by Amazon SNS. By default,
117
- # `SignatureVersion` is set to 1.
119
+ # `SignatureVersion` is set to `1`.
120
+ #
121
+ # * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
122
+ # `TracingConfig` is set to `PassThrough`, and the topic passes
123
+ # through the tracing header it receives from an Amazon SNS publisher
124
+ # to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
125
+ # segment data to topic owner account if the sampled flag in the
126
+ # tracing header is true. This is only supported on standard topics.
118
127
  #
119
- # The following attribute applies only to [server-side encryption][1]\:
128
+ # The following attribute applies only to [server-side encryption][1]:
120
129
  #
121
130
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
122
131
  # master key (CMK) for Amazon SNS or a custom CMK. For more
@@ -125,7 +134,7 @@ module Aws::SNS
125
134
  #
126
135
  # ^
127
136
  #
128
- # The following attributes apply only to [FIFO topics][4]\:
137
+ # The following attributes apply only to [FIFO topics][4]:
129
138
  #
130
139
  # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
131
140
  #
@@ -169,7 +178,9 @@ module Aws::SNS
169
178
  # Length Constraints: Maximum length of 30,720.
170
179
  # @return [Topic]
171
180
  def create_topic(options = {})
172
- resp = @client.create_topic(options)
181
+ resp = Aws::Plugins::UserAgent.feature('resource') do
182
+ @client.create_topic(options)
183
+ end
173
184
  Topic.new(
174
185
  arn: resp.data.topic_arn,
175
186
  client: @client
@@ -194,7 +205,9 @@ module Aws::SNS
194
205
  # @return [PlatformApplication::Collection]
195
206
  def platform_applications(options = {})
196
207
  batches = Enumerator.new do |y|
197
- resp = @client.list_platform_applications(options)
208
+ resp = Aws::Plugins::UserAgent.feature('resource') do
209
+ @client.list_platform_applications(options)
210
+ end
198
211
  resp.each_page do |page|
199
212
  batch = []
200
213
  page.data.platform_applications.each do |p|
@@ -234,7 +247,9 @@ module Aws::SNS
234
247
  # @return [Subscription::Collection]
235
248
  def subscriptions(options = {})
236
249
  batches = Enumerator.new do |y|
237
- resp = @client.list_subscriptions(options)
250
+ resp = Aws::Plugins::UserAgent.feature('resource') do
251
+ @client.list_subscriptions(options)
252
+ end
238
253
  resp.each_page do |page|
239
254
  batch = []
240
255
  page.data.subscriptions.each do |s|
@@ -265,7 +280,9 @@ module Aws::SNS
265
280
  # @return [Topic::Collection]
266
281
  def topics(options = {})
267
282
  batches = Enumerator.new do |y|
268
- resp = @client.list_topics(options)
283
+ resp = Aws::Plugins::UserAgent.feature('resource') do
284
+ @client.list_topics(options)
285
+ end
269
286
  resp.each_page do |page|
270
287
  batch = []
271
288
  page.data.topics.each do |t|
@@ -119,7 +119,9 @@ module Aws::SNS
119
119
  #
120
120
  # @return [self]
121
121
  def load
122
- resp = @client.get_subscription_attributes(subscription_arn: @arn)
122
+ resp = Aws::Plugins::UserAgent.feature('resource') do
123
+ @client.get_subscription_attributes(subscription_arn: @arn)
124
+ end
123
125
  @data = resp.data
124
126
  self
125
127
  end
@@ -149,7 +151,9 @@ module Aws::SNS
149
151
  # @return [EmptyStructure]
150
152
  def delete(options = {})
151
153
  options = options.merge(subscription_arn: @arn)
152
- resp = @client.unsubscribe(options)
154
+ resp = Aws::Plugins::UserAgent.feature('resource') do
155
+ @client.unsubscribe(options)
156
+ end
153
157
  resp.data
154
158
  end
155
159
 
@@ -216,7 +220,9 @@ module Aws::SNS
216
220
  # @return [EmptyStructure]
217
221
  def set_attributes(options = {})
218
222
  options = options.merge(subscription_arn: @arn)
219
- resp = @client.set_subscription_attributes(options)
223
+ resp = Aws::Plugins::UserAgent.feature('resource') do
224
+ @client.set_subscription_attributes(options)
225
+ end
220
226
  resp.data
221
227
  end
222
228
 
@@ -51,8 +51,10 @@ module Aws::SNS
51
51
  # * `Policy` – The JSON serialization of the topic's access control
52
52
  # policy.
53
53
  #
54
- # * `SignatureVersion` – The version of the Amazon SNS signature used
55
- # for the topic.
54
+ # * `SignatureVersion` – The signature version corresponds to the
55
+ # hashing algorithm used while creating the signature of the
56
+ # notifications, subscription confirmations, or unsubscribe
57
+ # confirmation messages sent by Amazon SNS.
56
58
  #
57
59
  # * By default, `SignatureVersion` is set to **1**. The signature is a
58
60
  # Base64-encoded **SHA1withRSA** signature.
@@ -77,7 +79,14 @@ module Aws::SNS
77
79
  #
78
80
  # * `TopicArn` – The topic's ARN.
79
81
  #
80
- # The following attribute applies only to [server-side-encryption][1]\:
82
+ # * `TracingConfig` Tracing mode of an Amazon SNS topic. By default
83
+ # `TracingConfig` is set to `PassThrough`, and the topic passes
84
+ # through the tracing header it receives from an Amazon SNS publisher
85
+ # to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
86
+ # segment data to topic owner account if the sampled flag in the
87
+ # tracing header is true. This is only supported on standard topics.
88
+ #
89
+ # The following attribute applies only to [server-side-encryption][1]:
81
90
  #
82
91
  # * `KmsMasterKeyId` - The ID of an Amazon Web Services managed customer
83
92
  # master key (CMK) for Amazon SNS or a custom CMK. For more
@@ -86,7 +95,7 @@ module Aws::SNS
86
95
  #
87
96
  # ^
88
97
  #
89
- # The following attributes apply only to [FIFO topics][4]\:
98
+ # The following attributes apply only to [FIFO topics][4]:
90
99
  #
91
100
  # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
92
101
  #
@@ -132,7 +141,9 @@ module Aws::SNS
132
141
  #
133
142
  # @return [self]
134
143
  def load
135
- resp = @client.get_topic_attributes(topic_arn: @arn)
144
+ resp = Aws::Plugins::UserAgent.feature('resource') do
145
+ @client.get_topic_attributes(topic_arn: @arn)
146
+ end
136
147
  @data = resp.data
137
148
  self
138
149
  end
@@ -177,7 +188,9 @@ module Aws::SNS
177
188
  # @return [EmptyStructure]
178
189
  def add_permission(options = {})
179
190
  options = options.merge(topic_arn: @arn)
180
- resp = @client.add_permission(options)
191
+ resp = Aws::Plugins::UserAgent.feature('resource') do
192
+ @client.add_permission(options)
193
+ end
181
194
  resp.data
182
195
  end
183
196
 
@@ -199,7 +212,9 @@ module Aws::SNS
199
212
  # @return [Subscription]
200
213
  def confirm_subscription(options = {})
201
214
  options = options.merge(topic_arn: @arn)
202
- resp = @client.confirm_subscription(options)
215
+ resp = Aws::Plugins::UserAgent.feature('resource') do
216
+ @client.confirm_subscription(options)
217
+ end
203
218
  Subscription.new(
204
219
  arn: resp.data.subscription_arn,
205
220
  client: @client
@@ -213,7 +228,9 @@ module Aws::SNS
213
228
  # @return [EmptyStructure]
214
229
  def delete(options = {})
215
230
  options = options.merge(topic_arn: @arn)
216
- resp = @client.delete_topic(options)
231
+ resp = Aws::Plugins::UserAgent.feature('resource') do
232
+ @client.delete_topic(options)
233
+ end
217
234
  resp.data
218
235
  end
219
236
 
@@ -354,7 +371,9 @@ module Aws::SNS
354
371
  # @return [Types::PublishResponse]
355
372
  def publish(options = {})
356
373
  options = options.merge(topic_arn: @arn)
357
- resp = @client.publish(options)
374
+ resp = Aws::Plugins::UserAgent.feature('resource') do
375
+ @client.publish(options)
376
+ end
358
377
  resp.data
359
378
  end
360
379
 
@@ -369,7 +388,9 @@ module Aws::SNS
369
388
  # @return [EmptyStructure]
370
389
  def remove_permission(options = {})
371
390
  options = options.merge(topic_arn: @arn)
372
- resp = @client.remove_permission(options)
391
+ resp = Aws::Plugins::UserAgent.feature('resource') do
392
+ @client.remove_permission(options)
393
+ end
373
394
  resp.data
374
395
  end
375
396
 
@@ -399,6 +420,13 @@ module Aws::SNS
399
420
  # * `Policy` – The policy that defines who can access your topic. By
400
421
  # default, only the topic owner can publish or subscribe to the topic.
401
422
  #
423
+ # * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
424
+ # `TracingConfig` is set to `PassThrough`, and the topic passes
425
+ # through the tracing header it receives from an Amazon SNS publisher
426
+ # to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
427
+ # segment data to topic owner account if the sampled flag in the
428
+ # tracing header is true. This is only supported on standard topics.
429
+ #
402
430
  # * HTTP
403
431
  #
404
432
  # * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
@@ -491,7 +519,7 @@ module Aws::SNS
491
519
  #
492
520
  # </note>
493
521
  #
494
- # The following attribute applies only to [server-side-encryption][2]\:
522
+ # The following attribute applies only to [server-side-encryption][2]:
495
523
  #
496
524
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
497
525
  # master key (CMK) for Amazon SNS or a custom CMK. For more
@@ -501,9 +529,10 @@ module Aws::SNS
501
529
  # * `SignatureVersion` – The signature version corresponds to the
502
530
  # hashing algorithm used while creating the signature of the
503
531
  # notifications, subscription confirmations, or unsubscribe
504
- # confirmation messages sent by Amazon SNS.
532
+ # confirmation messages sent by Amazon SNS. By default,
533
+ # `SignatureVersion` is set to `1`.
505
534
  #
506
- # The following attribute applies only to [FIFO topics][5]\:
535
+ # The following attribute applies only to [FIFO topics][5]:
507
536
  #
508
537
  # * `ContentBasedDeduplication` – Enables content-based deduplication
509
538
  # for FIFO topics.
@@ -534,7 +563,9 @@ module Aws::SNS
534
563
  # @return [EmptyStructure]
535
564
  def set_attributes(options = {})
536
565
  options = options.merge(topic_arn: @arn)
537
- resp = @client.set_topic_attributes(options)
566
+ resp = Aws::Plugins::UserAgent.feature('resource') do
567
+ @client.set_topic_attributes(options)
568
+ end
538
569
  resp.data
539
570
  end
540
571
 
@@ -667,7 +698,9 @@ module Aws::SNS
667
698
  # @return [Subscription]
668
699
  def subscribe(options = {})
669
700
  options = options.merge(topic_arn: @arn)
670
- resp = @client.subscribe(options)
701
+ resp = Aws::Plugins::UserAgent.feature('resource') do
702
+ @client.subscribe(options)
703
+ end
671
704
  Subscription.new(
672
705
  arn: resp.data.subscription_arn,
673
706
  client: @client
@@ -684,7 +717,9 @@ module Aws::SNS
684
717
  def subscriptions(options = {})
685
718
  batches = Enumerator.new do |y|
686
719
  options = options.merge(topic_arn: @arn)
687
- resp = @client.list_subscriptions_by_topic(options)
720
+ resp = Aws::Plugins::UserAgent.feature('resource') do
721
+ @client.list_subscriptions_by_topic(options)
722
+ end
688
723
  resp.each_page do |page|
689
724
  batch = []
690
725
  page.data.subscriptions.each do |s|
@@ -363,10 +363,17 @@ module Aws::SNS
363
363
  # hashing algorithm used while creating the signature of the
364
364
  # notifications, subscription confirmations, or unsubscribe
365
365
  # confirmation messages sent by Amazon SNS. By default,
366
- # `SignatureVersion` is set to 1.
366
+ # `SignatureVersion` is set to `1`.
367
367
  #
368
- # The following attribute applies only to [server-side
369
- # encryption][1]\:
368
+ # * `TracingConfig` Tracing mode of an Amazon SNS topic. By default
369
+ # `TracingConfig` is set to `PassThrough`, and the topic passes
370
+ # through the tracing header it receives from an Amazon SNS
371
+ # publisher to its subscriptions. If set to `Active`, Amazon SNS
372
+ # will vend X-Ray segment data to topic owner account if the sampled
373
+ # flag in the tracing header is true. This is only supported on
374
+ # standard topics.
375
+ #
376
+ # The following attribute applies only to [server-side encryption][1]:
370
377
  #
371
378
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed
372
379
  # customer master key (CMK) for Amazon SNS or a custom CMK. For more
@@ -375,7 +382,7 @@ module Aws::SNS
375
382
  #
376
383
  # ^
377
384
  #
378
- # The following attributes apply only to [FIFO topics][4]\:
385
+ # The following attributes apply only to [FIFO topics][4]:
379
386
  #
380
387
  # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
381
388
  #
@@ -881,8 +888,10 @@ module Aws::SNS
881
888
  # * `Policy` – The JSON serialization of the topic's access control
882
889
  # policy.
883
890
  #
884
- # * `SignatureVersion` – The version of the Amazon SNS signature used
885
- # for the topic.
891
+ # * `SignatureVersion` – The signature version corresponds to the
892
+ # hashing algorithm used while creating the signature of the
893
+ # notifications, subscription confirmations, or unsubscribe
894
+ # confirmation messages sent by Amazon SNS.
886
895
  #
887
896
  # * By default, `SignatureVersion` is set to **1**. The signature is
888
897
  # a Base64-encoded **SHA1withRSA** signature.
@@ -907,8 +916,15 @@ module Aws::SNS
907
916
  #
908
917
  # * `TopicArn` – The topic's ARN.
909
918
  #
910
- # The following attribute applies only to
911
- # [server-side-encryption][1]\:
919
+ # * `TracingConfig` Tracing mode of an Amazon SNS topic. By default
920
+ # `TracingConfig` is set to `PassThrough`, and the topic passes
921
+ # through the tracing header it receives from an Amazon SNS
922
+ # publisher to its subscriptions. If set to `Active`, Amazon SNS
923
+ # will vend X-Ray segment data to topic owner account if the sampled
924
+ # flag in the tracing header is true. This is only supported on
925
+ # standard topics.
926
+ #
927
+ # The following attribute applies only to [server-side-encryption][1]:
912
928
  #
913
929
  # * `KmsMasterKeyId` - The ID of an Amazon Web Services managed
914
930
  # customer master key (CMK) for Amazon SNS or a custom CMK. For more
@@ -917,7 +933,7 @@ module Aws::SNS
917
933
  #
918
934
  # ^
919
935
  #
920
- # The following attributes apply only to [FIFO topics][4]\:
936
+ # The following attributes apply only to [FIFO topics][4]:
921
937
  #
922
938
  # * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
923
939
  #
@@ -2428,6 +2444,14 @@ module Aws::SNS
2428
2444
  # default, only the topic owner can publish or subscribe to the
2429
2445
  # topic.
2430
2446
  #
2447
+ # * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
2448
+ # `TracingConfig` is set to `PassThrough`, and the topic passes
2449
+ # through the tracing header it receives from an Amazon SNS
2450
+ # publisher to its subscriptions. If set to `Active`, Amazon SNS
2451
+ # will vend X-Ray segment data to topic owner account if the sampled
2452
+ # flag in the tracing header is true. This is only supported on
2453
+ # standard topics.
2454
+ #
2431
2455
  # * HTTP
2432
2456
  #
2433
2457
  # * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
@@ -2520,8 +2544,7 @@ module Aws::SNS
2520
2544
  #
2521
2545
  # </note>
2522
2546
  #
2523
- # The following attribute applies only to
2524
- # [server-side-encryption][2]\:
2547
+ # The following attribute applies only to [server-side-encryption][2]:
2525
2548
  #
2526
2549
  # * `KmsMasterKeyId` – The ID of an Amazon Web Services managed
2527
2550
  # customer master key (CMK) for Amazon SNS or a custom CMK. For more
@@ -2531,9 +2554,10 @@ module Aws::SNS
2531
2554
  # * `SignatureVersion` – The signature version corresponds to the
2532
2555
  # hashing algorithm used while creating the signature of the
2533
2556
  # notifications, subscription confirmations, or unsubscribe
2534
- # confirmation messages sent by Amazon SNS.
2557
+ # confirmation messages sent by Amazon SNS. By default,
2558
+ # `SignatureVersion` is set to `1`.
2535
2559
  #
2536
- # The following attribute applies only to [FIFO topics][5]\:
2560
+ # The following attribute applies only to [FIFO topics][5]:
2537
2561
  #
2538
2562
  # * `ContentBasedDeduplication` – Enables content-based deduplication
2539
2563
  # for FIFO topics.
data/lib/aws-sdk-sns.rb CHANGED
@@ -56,6 +56,6 @@ require_relative 'aws-sdk-sns/customizations'
56
56
  # @!group service
57
57
  module Aws::SNS
58
58
 
59
- GEM_VERSION = '1.59.0'
59
+ GEM_VERSION = '1.61.0'
60
60
 
61
61
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-sns
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.59.0
4
+ version: 1.61.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-01 00:00:00.000000000 Z
11
+ date: 2023-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.165.0
22
+ version: 3.174.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.165.0
32
+ version: 3.174.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement