aws-sdk-sns 1.60.0 → 1.65.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +25 -5
- data/lib/aws-sdk-sns/endpoints.rb +1 -0
- data/lib/aws-sdk-sns/platform_application.rb +15 -5
- data/lib/aws-sdk-sns/platform_endpoint.rb +12 -4
- data/lib/aws-sdk-sns/resource.rb +17 -7
- data/lib/aws-sdk-sns/subscription.rb +9 -3
- data/lib/aws-sdk-sns/topic.rb +31 -13
- data/lib/aws-sdk-sns/types.rb +6 -9
- data/lib/aws-sdk-sns.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 486b036880845e6ec432cef26153886bc4e7e9ce2530c09d43fc82b0eb6f1d9a
|
4
|
+
data.tar.gz: 36e3823bf1939a9d2def41fb6765f0fba3d2995e50ccb2e21551b8b1ab2f0b8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf72198d146d72a21695da51edaba4fcf3aae5d42b3f568e6d5bd13091f3cc5c25be8edecdf43cdf00e04c7ae2b67553c0206ab79a3dfbeec2b6217fc93720a2
|
7
|
+
data.tar.gz: 8dea4cb88ebc03a333386a741703f999f60129905bc118df787319e3541abffa4697e9fa9a1ae70c802ad6e76d2041b0702130e51e792c2a34a01d104c3b869d
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.65.0 (2023-07-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.64.0 (2023-07-06)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.63.0 (2023-06-28)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.62.0 (2023-06-15)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
24
|
+
1.61.0 (2023-05-31)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
28
|
+
|
4
29
|
1.60.0 (2023-02-10)
|
5
30
|
------------------
|
6
31
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.65.0
|
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -28,6 +28,7 @@ require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
|
+
require 'aws-sdk-core/plugins/request_compression.rb'
|
31
32
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
33
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
34
|
require 'aws-sdk-core/plugins/sign.rb'
|
@@ -77,6 +78,7 @@ module Aws::SNS
|
|
77
78
|
add_plugin(Aws::Plugins::TransferEncoding)
|
78
79
|
add_plugin(Aws::Plugins::HttpChecksum)
|
79
80
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
81
|
+
add_plugin(Aws::Plugins::RequestCompression)
|
80
82
|
add_plugin(Aws::Plugins::DefaultsMode)
|
81
83
|
add_plugin(Aws::Plugins::RecursionDetection)
|
82
84
|
add_plugin(Aws::Plugins::Sign)
|
@@ -190,6 +192,10 @@ module Aws::SNS
|
|
190
192
|
# Set to true to disable SDK automatically adding host prefix
|
191
193
|
# to default service endpoint when available.
|
192
194
|
#
|
195
|
+
# @option options [Boolean] :disable_request_compression (false)
|
196
|
+
# When set to 'true' the request body will not be compressed
|
197
|
+
# for supported operations.
|
198
|
+
#
|
193
199
|
# @option options [String] :endpoint
|
194
200
|
# The client endpoint is normally constructed from the `:region`
|
195
201
|
# option. You should only configure an `:endpoint` when connecting
|
@@ -210,6 +216,10 @@ module Aws::SNS
|
|
210
216
|
# @option options [Boolean] :endpoint_discovery (false)
|
211
217
|
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
212
218
|
#
|
219
|
+
# @option options [Boolean] :ignore_configured_endpoint_urls
|
220
|
+
# Setting to true disables use of endpoint URLs provided via environment
|
221
|
+
# variables and the shared configuration file.
|
222
|
+
#
|
213
223
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
214
224
|
# The log formatter.
|
215
225
|
#
|
@@ -230,6 +240,11 @@ module Aws::SNS
|
|
230
240
|
# Used when loading credentials from the shared credentials file
|
231
241
|
# at HOME/.aws/credentials. When not specified, 'default' is used.
|
232
242
|
#
|
243
|
+
# @option options [Integer] :request_min_compression_size_bytes (10240)
|
244
|
+
# The minimum size in bytes that triggers compression for request
|
245
|
+
# bodies. The value must be non-negative integer value between 0
|
246
|
+
# and 10485780 bytes inclusive.
|
247
|
+
#
|
233
248
|
# @option options [Proc] :retry_backoff
|
234
249
|
# A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
|
235
250
|
# This option is only used in the `legacy` retry mode.
|
@@ -275,6 +290,11 @@ module Aws::SNS
|
|
275
290
|
# in the future.
|
276
291
|
#
|
277
292
|
#
|
293
|
+
# @option options [String] :sdk_ua_app_id
|
294
|
+
# A unique and opaque application ID that is appended to the
|
295
|
+
# User-Agent header as app/<sdk_ua_app_id>. It should have a
|
296
|
+
# maximum length of 50.
|
297
|
+
#
|
278
298
|
# @option options [String] :secret_access_key
|
279
299
|
#
|
280
300
|
# @option options [String] :session_token
|
@@ -739,7 +759,7 @@ module Aws::SNS
|
|
739
759
|
# segment data to topic owner account if the sampled flag in the
|
740
760
|
# tracing header is true. This is only supported on standard topics.
|
741
761
|
#
|
742
|
-
# The following attribute applies only to [server-side encryption][1]
|
762
|
+
# The following attribute applies only to [server-side encryption][1]:
|
743
763
|
#
|
744
764
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
745
765
|
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
@@ -748,7 +768,7 @@ module Aws::SNS
|
|
748
768
|
#
|
749
769
|
# ^
|
750
770
|
#
|
751
|
-
# The following attributes apply only to [FIFO topics][4]
|
771
|
+
# The following attributes apply only to [FIFO topics][4]:
|
752
772
|
#
|
753
773
|
# * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
|
754
774
|
#
|
@@ -2470,7 +2490,7 @@ module Aws::SNS
|
|
2470
2490
|
#
|
2471
2491
|
# </note>
|
2472
2492
|
#
|
2473
|
-
# The following attribute applies only to [server-side-encryption][2]
|
2493
|
+
# The following attribute applies only to [server-side-encryption][2]:
|
2474
2494
|
#
|
2475
2495
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
2476
2496
|
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
@@ -2483,7 +2503,7 @@ module Aws::SNS
|
|
2483
2503
|
# confirmation messages sent by Amazon SNS. By default,
|
2484
2504
|
# `SignatureVersion` is set to `1`.
|
2485
2505
|
#
|
2486
|
-
# The following attribute applies only to [FIFO topics][5]
|
2506
|
+
# The following attribute applies only to [FIFO topics][5]:
|
2487
2507
|
#
|
2488
2508
|
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
2489
2509
|
# for FIFO topics.
|
@@ -2869,7 +2889,7 @@ module Aws::SNS
|
|
2869
2889
|
params: params,
|
2870
2890
|
config: config)
|
2871
2891
|
context[:gem_name] = 'aws-sdk-sns'
|
2872
|
-
context[:gem_version] = '1.
|
2892
|
+
context[:gem_version] = '1.65.0'
|
2873
2893
|
Seahorse::Client::Request.new(handlers, context)
|
2874
2894
|
end
|
2875
2895
|
|
@@ -76,7 +76,9 @@ module Aws::SNS
|
|
76
76
|
#
|
77
77
|
# @return [self]
|
78
78
|
def load
|
79
|
-
resp =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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 =
|
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
|
|
data/lib/aws-sdk-sns/resource.rb
CHANGED
@@ -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 =
|
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
|
@@ -123,7 +125,7 @@ module Aws::SNS
|
|
123
125
|
# segment data to topic owner account if the sampled flag in the
|
124
126
|
# tracing header is true. This is only supported on standard topics.
|
125
127
|
#
|
126
|
-
# The following attribute applies only to [server-side encryption][1]
|
128
|
+
# The following attribute applies only to [server-side encryption][1]:
|
127
129
|
#
|
128
130
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
129
131
|
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
@@ -132,7 +134,7 @@ module Aws::SNS
|
|
132
134
|
#
|
133
135
|
# ^
|
134
136
|
#
|
135
|
-
# The following attributes apply only to [FIFO topics][4]
|
137
|
+
# The following attributes apply only to [FIFO topics][4]:
|
136
138
|
#
|
137
139
|
# * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
|
138
140
|
#
|
@@ -176,7 +178,9 @@ module Aws::SNS
|
|
176
178
|
# Length Constraints: Maximum length of 30,720.
|
177
179
|
# @return [Topic]
|
178
180
|
def create_topic(options = {})
|
179
|
-
resp =
|
181
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
182
|
+
@client.create_topic(options)
|
183
|
+
end
|
180
184
|
Topic.new(
|
181
185
|
arn: resp.data.topic_arn,
|
182
186
|
client: @client
|
@@ -201,7 +205,9 @@ module Aws::SNS
|
|
201
205
|
# @return [PlatformApplication::Collection]
|
202
206
|
def platform_applications(options = {})
|
203
207
|
batches = Enumerator.new do |y|
|
204
|
-
resp =
|
208
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
209
|
+
@client.list_platform_applications(options)
|
210
|
+
end
|
205
211
|
resp.each_page do |page|
|
206
212
|
batch = []
|
207
213
|
page.data.platform_applications.each do |p|
|
@@ -241,7 +247,9 @@ module Aws::SNS
|
|
241
247
|
# @return [Subscription::Collection]
|
242
248
|
def subscriptions(options = {})
|
243
249
|
batches = Enumerator.new do |y|
|
244
|
-
resp =
|
250
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
251
|
+
@client.list_subscriptions(options)
|
252
|
+
end
|
245
253
|
resp.each_page do |page|
|
246
254
|
batch = []
|
247
255
|
page.data.subscriptions.each do |s|
|
@@ -272,7 +280,9 @@ module Aws::SNS
|
|
272
280
|
# @return [Topic::Collection]
|
273
281
|
def topics(options = {})
|
274
282
|
batches = Enumerator.new do |y|
|
275
|
-
resp =
|
283
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
284
|
+
@client.list_topics(options)
|
285
|
+
end
|
276
286
|
resp.each_page do |page|
|
277
287
|
batch = []
|
278
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 =
|
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 =
|
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 =
|
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
|
|
data/lib/aws-sdk-sns/topic.rb
CHANGED
@@ -86,7 +86,7 @@ module Aws::SNS
|
|
86
86
|
# segment data to topic owner account if the sampled flag in the
|
87
87
|
# tracing header is true. This is only supported on standard topics.
|
88
88
|
#
|
89
|
-
# The following attribute applies only to [server-side-encryption][1]
|
89
|
+
# The following attribute applies only to [server-side-encryption][1]:
|
90
90
|
#
|
91
91
|
# * `KmsMasterKeyId` - The ID of an Amazon Web Services managed customer
|
92
92
|
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
@@ -95,7 +95,7 @@ module Aws::SNS
|
|
95
95
|
#
|
96
96
|
# ^
|
97
97
|
#
|
98
|
-
# The following attributes apply only to [FIFO topics][4]
|
98
|
+
# The following attributes apply only to [FIFO topics][4]:
|
99
99
|
#
|
100
100
|
# * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
|
101
101
|
#
|
@@ -141,7 +141,9 @@ module Aws::SNS
|
|
141
141
|
#
|
142
142
|
# @return [self]
|
143
143
|
def load
|
144
|
-
resp =
|
144
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
145
|
+
@client.get_topic_attributes(topic_arn: @arn)
|
146
|
+
end
|
145
147
|
@data = resp.data
|
146
148
|
self
|
147
149
|
end
|
@@ -186,7 +188,9 @@ module Aws::SNS
|
|
186
188
|
# @return [EmptyStructure]
|
187
189
|
def add_permission(options = {})
|
188
190
|
options = options.merge(topic_arn: @arn)
|
189
|
-
resp =
|
191
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
192
|
+
@client.add_permission(options)
|
193
|
+
end
|
190
194
|
resp.data
|
191
195
|
end
|
192
196
|
|
@@ -208,7 +212,9 @@ module Aws::SNS
|
|
208
212
|
# @return [Subscription]
|
209
213
|
def confirm_subscription(options = {})
|
210
214
|
options = options.merge(topic_arn: @arn)
|
211
|
-
resp =
|
215
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
216
|
+
@client.confirm_subscription(options)
|
217
|
+
end
|
212
218
|
Subscription.new(
|
213
219
|
arn: resp.data.subscription_arn,
|
214
220
|
client: @client
|
@@ -222,7 +228,9 @@ module Aws::SNS
|
|
222
228
|
# @return [EmptyStructure]
|
223
229
|
def delete(options = {})
|
224
230
|
options = options.merge(topic_arn: @arn)
|
225
|
-
resp =
|
231
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
232
|
+
@client.delete_topic(options)
|
233
|
+
end
|
226
234
|
resp.data
|
227
235
|
end
|
228
236
|
|
@@ -363,7 +371,9 @@ module Aws::SNS
|
|
363
371
|
# @return [Types::PublishResponse]
|
364
372
|
def publish(options = {})
|
365
373
|
options = options.merge(topic_arn: @arn)
|
366
|
-
resp =
|
374
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
375
|
+
@client.publish(options)
|
376
|
+
end
|
367
377
|
resp.data
|
368
378
|
end
|
369
379
|
|
@@ -378,7 +388,9 @@ module Aws::SNS
|
|
378
388
|
# @return [EmptyStructure]
|
379
389
|
def remove_permission(options = {})
|
380
390
|
options = options.merge(topic_arn: @arn)
|
381
|
-
resp =
|
391
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
392
|
+
@client.remove_permission(options)
|
393
|
+
end
|
382
394
|
resp.data
|
383
395
|
end
|
384
396
|
|
@@ -507,7 +519,7 @@ module Aws::SNS
|
|
507
519
|
#
|
508
520
|
# </note>
|
509
521
|
#
|
510
|
-
# The following attribute applies only to [server-side-encryption][2]
|
522
|
+
# The following attribute applies only to [server-side-encryption][2]:
|
511
523
|
#
|
512
524
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
513
525
|
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
@@ -520,7 +532,7 @@ module Aws::SNS
|
|
520
532
|
# confirmation messages sent by Amazon SNS. By default,
|
521
533
|
# `SignatureVersion` is set to `1`.
|
522
534
|
#
|
523
|
-
# The following attribute applies only to [FIFO topics][5]
|
535
|
+
# The following attribute applies only to [FIFO topics][5]:
|
524
536
|
#
|
525
537
|
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
526
538
|
# for FIFO topics.
|
@@ -551,7 +563,9 @@ module Aws::SNS
|
|
551
563
|
# @return [EmptyStructure]
|
552
564
|
def set_attributes(options = {})
|
553
565
|
options = options.merge(topic_arn: @arn)
|
554
|
-
resp =
|
566
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
567
|
+
@client.set_topic_attributes(options)
|
568
|
+
end
|
555
569
|
resp.data
|
556
570
|
end
|
557
571
|
|
@@ -684,7 +698,9 @@ module Aws::SNS
|
|
684
698
|
# @return [Subscription]
|
685
699
|
def subscribe(options = {})
|
686
700
|
options = options.merge(topic_arn: @arn)
|
687
|
-
resp =
|
701
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
702
|
+
@client.subscribe(options)
|
703
|
+
end
|
688
704
|
Subscription.new(
|
689
705
|
arn: resp.data.subscription_arn,
|
690
706
|
client: @client
|
@@ -701,7 +717,9 @@ module Aws::SNS
|
|
701
717
|
def subscriptions(options = {})
|
702
718
|
batches = Enumerator.new do |y|
|
703
719
|
options = options.merge(topic_arn: @arn)
|
704
|
-
resp =
|
720
|
+
resp = Aws::Plugins::UserAgent.feature('resource') do
|
721
|
+
@client.list_subscriptions_by_topic(options)
|
722
|
+
end
|
705
723
|
resp.each_page do |page|
|
706
724
|
batch = []
|
707
725
|
page.data.subscriptions.each do |s|
|
data/lib/aws-sdk-sns/types.rb
CHANGED
@@ -373,8 +373,7 @@ module Aws::SNS
|
|
373
373
|
# flag in the tracing header is true. This is only supported on
|
374
374
|
# standard topics.
|
375
375
|
#
|
376
|
-
# The following attribute applies only to [server-side
|
377
|
-
# encryption][1]\:
|
376
|
+
# The following attribute applies only to [server-side encryption][1]:
|
378
377
|
#
|
379
378
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed
|
380
379
|
# customer master key (CMK) for Amazon SNS or a custom CMK. For more
|
@@ -383,7 +382,7 @@ module Aws::SNS
|
|
383
382
|
#
|
384
383
|
# ^
|
385
384
|
#
|
386
|
-
# The following attributes apply only to [FIFO topics][4]
|
385
|
+
# The following attributes apply only to [FIFO topics][4]:
|
387
386
|
#
|
388
387
|
# * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
|
389
388
|
#
|
@@ -925,8 +924,7 @@ module Aws::SNS
|
|
925
924
|
# flag in the tracing header is true. This is only supported on
|
926
925
|
# standard topics.
|
927
926
|
#
|
928
|
-
# The following attribute applies only to
|
929
|
-
# [server-side-encryption][1]\:
|
927
|
+
# The following attribute applies only to [server-side-encryption][1]:
|
930
928
|
#
|
931
929
|
# * `KmsMasterKeyId` - The ID of an Amazon Web Services managed
|
932
930
|
# customer master key (CMK) for Amazon SNS or a custom CMK. For more
|
@@ -935,7 +933,7 @@ module Aws::SNS
|
|
935
933
|
#
|
936
934
|
# ^
|
937
935
|
#
|
938
|
-
# The following attributes apply only to [FIFO topics][4]
|
936
|
+
# The following attributes apply only to [FIFO topics][4]:
|
939
937
|
#
|
940
938
|
# * `FifoTopic` – When this is set to `true`, a FIFO topic is created.
|
941
939
|
#
|
@@ -2546,8 +2544,7 @@ module Aws::SNS
|
|
2546
2544
|
#
|
2547
2545
|
# </note>
|
2548
2546
|
#
|
2549
|
-
# The following attribute applies only to
|
2550
|
-
# [server-side-encryption][2]\:
|
2547
|
+
# The following attribute applies only to [server-side-encryption][2]:
|
2551
2548
|
#
|
2552
2549
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed
|
2553
2550
|
# customer master key (CMK) for Amazon SNS or a custom CMK. For more
|
@@ -2560,7 +2557,7 @@ module Aws::SNS
|
|
2560
2557
|
# confirmation messages sent by Amazon SNS. By default,
|
2561
2558
|
# `SignatureVersion` is set to `1`.
|
2562
2559
|
#
|
2563
|
-
# The following attribute applies only to [FIFO topics][5]
|
2560
|
+
# The following attribute applies only to [FIFO topics][5]:
|
2564
2561
|
#
|
2565
2562
|
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
2566
2563
|
# for FIFO topics.
|
data/lib/aws-sdk-sns.rb
CHANGED
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.
|
4
|
+
version: 1.65.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-
|
11
|
+
date: 2023-07-11 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.
|
22
|
+
version: 3.177.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.
|
32
|
+
version: 3.177.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|