aws-sdk-sns 1.75.0 → 1.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +25 -28
- data/lib/aws-sdk-sns/client_api.rb +2 -0
- data/lib/aws-sdk-sns/platform_application.rb +5 -5
- data/lib/aws-sdk-sns/platform_endpoint.rb +6 -7
- data/lib/aws-sdk-sns/resource.rb +6 -6
- data/lib/aws-sdk-sns/subscription.rb +15 -17
- data/lib/aws-sdk-sns/topic.rb +17 -19
- data/lib/aws-sdk-sns/types.rb +22 -23
- 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: f8052f2e801d8718791670cb9dc1143b2174aba07f235dddfccdbc3808312796
|
4
|
+
data.tar.gz: afcdba89a06e9ae37f490dc05ec6ad56cde6119433b32bf54049334f2fdf2980
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f7ff98e7db86dc18bd00d1fd4bf62e634f9d14245d873ad03021257364472b1caf476fe0d5c003f45a6b86a72cdb61e998dcc35d32998afb448b1615220d32a
|
7
|
+
data.tar.gz: 547f429b0fd886a25ae9d704f7344a476027b4c00652be2e037f05c5c433f87015af408ec664be1437532bd9b9563a169fc05e6d45ff9dfec544f2a37dfbb3c8
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.77.0 (2024-06-06)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Doc-only update for SNS. These changes include customer-reported issues and TXC3 updates.
|
8
|
+
|
9
|
+
1.76.0 (2024-06-05)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
4
14
|
1.75.0 (2024-05-13)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.77.0
|
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -546,20 +546,20 @@ module Aws::SNS
|
|
546
546
|
# `PlatformPrincipal` and `PlatformCredential` are received from the
|
547
547
|
# notification service.
|
548
548
|
#
|
549
|
-
# * For
|
550
|
-
#
|
549
|
+
# * For ADM, `PlatformPrincipal` is `client id` and `PlatformCredential`
|
550
|
+
# is `client secret`.
|
551
551
|
#
|
552
|
-
# * For
|
553
|
-
# `PlatformCredential` is `secret key`.
|
554
|
-
#
|
555
|
-
# * For `APNS` and `APNS_SANDBOX` using certificate credentials,
|
552
|
+
# * For APNS and `APNS_SANDBOX` using certificate credentials,
|
556
553
|
# `PlatformPrincipal` is `SSL certificate` and `PlatformCredential` is
|
557
554
|
# `private key`.
|
558
555
|
#
|
559
|
-
# * For
|
556
|
+
# * For APNS and `APNS_SANDBOX` using token credentials,
|
560
557
|
# `PlatformPrincipal` is `signing key ID` and `PlatformCredential` is
|
561
558
|
# `signing key`.
|
562
559
|
#
|
560
|
+
# * For Baidu, `PlatformPrincipal` is `API key` and `PlatformCredential`
|
561
|
+
# is `secret key`.
|
562
|
+
#
|
563
563
|
# * For GCM (Firebase Cloud Messaging) using key credentials, there is
|
564
564
|
# no `PlatformPrincipal`. The `PlatformCredential` is `API key`.
|
565
565
|
#
|
@@ -570,10 +570,10 @@ module Aws::SNS
|
|
570
570
|
# format the file correctly, Amazon SNS recommends using the following
|
571
571
|
# command: `` SERVICE_JSON=`jq @json <<< cat service.json` ``.
|
572
572
|
#
|
573
|
-
# * For
|
573
|
+
# * For MPNS, `PlatformPrincipal` is `TLS certificate` and
|
574
574
|
# `PlatformCredential` is `private key`.
|
575
575
|
#
|
576
|
-
# * For
|
576
|
+
# * For WNS, `PlatformPrincipal` is `Package Security Identifier` and
|
577
577
|
# `PlatformCredential` is `secret key`.
|
578
578
|
#
|
579
579
|
# You can use the returned `PlatformApplicationArn` as an attribute for
|
@@ -765,7 +765,7 @@ module Aws::SNS
|
|
765
765
|
# @option params [Hash<String,String>] :attributes
|
766
766
|
# A map of attributes with their corresponding values.
|
767
767
|
#
|
768
|
-
# The following lists
|
768
|
+
# The following lists names, descriptions, and values of the special
|
769
769
|
# request parameters that the `CreateTopic` action uses:
|
770
770
|
#
|
771
771
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
@@ -1801,9 +1801,8 @@ module Aws::SNS
|
|
1801
1801
|
# is delivered to email endpoints. This field will also be included, if
|
1802
1802
|
# present, in the standard JSON messages delivered to other endpoints.
|
1803
1803
|
#
|
1804
|
-
# Constraints: Subjects must be
|
1805
|
-
#
|
1806
|
-
# characters; and must be less than 100 characters long.
|
1804
|
+
# Constraints: Subjects must be UTF-8 text with no line breaks or
|
1805
|
+
# control characters, and less than 100 characters long.
|
1807
1806
|
#
|
1808
1807
|
# @option params [String] :message_structure
|
1809
1808
|
# Set `MessageStructure` to `json` if you want to send a different
|
@@ -2368,20 +2367,19 @@ module Aws::SNS
|
|
2368
2367
|
# service that powers the subscribed endpoint becomes unavailable) are
|
2369
2368
|
# held in the dead-letter queue for further analysis or reprocessing.
|
2370
2369
|
#
|
2371
|
-
# The following attribute applies only to Amazon
|
2372
|
-
#
|
2370
|
+
# The following attribute applies only to Amazon Data Firehose delivery
|
2371
|
+
# stream subscriptions:
|
2373
2372
|
#
|
2374
2373
|
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
2375
2374
|
# following:
|
2376
2375
|
#
|
2377
|
-
# * Permission to write to the
|
2376
|
+
# * Permission to write to the Firehose delivery stream
|
2378
2377
|
#
|
2379
2378
|
# * Amazon SNS listed as a trusted entity
|
2380
2379
|
#
|
2381
|
-
# Specifying a valid ARN for this attribute is required for
|
2382
|
-
#
|
2383
|
-
#
|
2384
|
-
# *Amazon SNS Developer Guide*.
|
2380
|
+
# Specifying a valid ARN for this attribute is required for Firehose
|
2381
|
+
# delivery stream subscriptions. For more information, see [Fanout to
|
2382
|
+
# Firehose delivery streams][1] in the *Amazon SNS Developer Guide*.
|
2385
2383
|
#
|
2386
2384
|
#
|
2387
2385
|
#
|
@@ -2698,20 +2696,19 @@ module Aws::SNS
|
|
2698
2696
|
# service that powers the subscribed endpoint becomes unavailable) are
|
2699
2697
|
# held in the dead-letter queue for further analysis or reprocessing.
|
2700
2698
|
#
|
2701
|
-
# The following attribute applies only to Amazon
|
2702
|
-
#
|
2699
|
+
# The following attribute applies only to Amazon Data Firehose delivery
|
2700
|
+
# stream subscriptions:
|
2703
2701
|
#
|
2704
2702
|
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
2705
2703
|
# following:
|
2706
2704
|
#
|
2707
|
-
# * Permission to write to the
|
2705
|
+
# * Permission to write to the Firehose delivery stream
|
2708
2706
|
#
|
2709
2707
|
# * Amazon SNS listed as a trusted entity
|
2710
2708
|
#
|
2711
|
-
# Specifying a valid ARN for this attribute is required for
|
2712
|
-
#
|
2713
|
-
#
|
2714
|
-
# *Amazon SNS Developer Guide*.
|
2709
|
+
# Specifying a valid ARN for this attribute is required for Firehose
|
2710
|
+
# delivery stream subscriptions. For more information, see [Fanout to
|
2711
|
+
# Firehose delivery streams][1] in the *Amazon SNS Developer Guide*.
|
2715
2712
|
#
|
2716
2713
|
# The following attributes apply only to [FIFO topics][2]:
|
2717
2714
|
#
|
@@ -2959,7 +2956,7 @@ module Aws::SNS
|
|
2959
2956
|
params: params,
|
2960
2957
|
config: config)
|
2961
2958
|
context[:gem_name] = 'aws-sdk-sns'
|
2962
|
-
context[:gem_version] = '1.
|
2959
|
+
context[:gem_version] = '1.77.0'
|
2963
2960
|
Seahorse::Client::Request.new(handlers, context)
|
2964
2961
|
end
|
2965
2962
|
|
@@ -665,8 +665,10 @@ module Aws::SNS
|
|
665
665
|
|
666
666
|
api.metadata = {
|
667
667
|
"apiVersion" => "2010-03-31",
|
668
|
+
"auth" => ["aws.auth#sigv4"],
|
668
669
|
"endpointPrefix" => "sns",
|
669
670
|
"protocol" => "query",
|
671
|
+
"protocols" => ["query"],
|
670
672
|
"serviceAbbreviation" => "Amazon SNS",
|
671
673
|
"serviceFullName" => "Amazon Simple Notification Service",
|
672
674
|
"serviceId" => "SNS",
|
@@ -84,7 +84,7 @@ module Aws::SNS
|
|
84
84
|
#
|
85
85
|
# @return [self]
|
86
86
|
def load
|
87
|
-
resp = Aws::Plugins::UserAgent.
|
87
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
88
88
|
@client.get_platform_application_attributes(platform_application_arn: @arn)
|
89
89
|
end
|
90
90
|
@data = resp.data
|
@@ -138,7 +138,7 @@ module Aws::SNS
|
|
138
138
|
# @return [PlatformEndpoint]
|
139
139
|
def create_platform_endpoint(options = {})
|
140
140
|
options = options.merge(platform_application_arn: @arn)
|
141
|
-
resp = Aws::Plugins::UserAgent.
|
141
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
142
142
|
@client.create_platform_endpoint(options)
|
143
143
|
end
|
144
144
|
PlatformEndpoint.new(
|
@@ -154,7 +154,7 @@ module Aws::SNS
|
|
154
154
|
# @return [EmptyStructure]
|
155
155
|
def delete(options = {})
|
156
156
|
options = options.merge(platform_application_arn: @arn)
|
157
|
-
resp = Aws::Plugins::UserAgent.
|
157
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
158
158
|
@client.delete_platform_application(options)
|
159
159
|
end
|
160
160
|
resp.data
|
@@ -243,7 +243,7 @@ module Aws::SNS
|
|
243
243
|
# @return [EmptyStructure]
|
244
244
|
def set_attributes(options = {})
|
245
245
|
options = options.merge(platform_application_arn: @arn)
|
246
|
-
resp = Aws::Plugins::UserAgent.
|
246
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
247
247
|
@client.set_platform_application_attributes(options)
|
248
248
|
end
|
249
249
|
resp.data
|
@@ -259,7 +259,7 @@ module Aws::SNS
|
|
259
259
|
def endpoints(options = {})
|
260
260
|
batches = Enumerator.new do |y|
|
261
261
|
options = options.merge(platform_application_arn: @arn)
|
262
|
-
resp = Aws::Plugins::UserAgent.
|
262
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
263
263
|
@client.list_endpoints_by_platform_application(options)
|
264
264
|
end
|
265
265
|
resp.each_page do |page|
|
@@ -72,7 +72,7 @@ module Aws::SNS
|
|
72
72
|
#
|
73
73
|
# @return [self]
|
74
74
|
def load
|
75
|
-
resp = Aws::Plugins::UserAgent.
|
75
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
76
76
|
@client.get_endpoint_attributes(endpoint_arn: @arn)
|
77
77
|
end
|
78
78
|
@data = resp.data
|
@@ -104,7 +104,7 @@ module Aws::SNS
|
|
104
104
|
# @return [EmptyStructure]
|
105
105
|
def delete(options = {})
|
106
106
|
options = options.merge(endpoint_arn: @arn)
|
107
|
-
resp = Aws::Plugins::UserAgent.
|
107
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
108
108
|
@client.delete_endpoint(options)
|
109
109
|
end
|
110
110
|
resp.data
|
@@ -200,9 +200,8 @@ module Aws::SNS
|
|
200
200
|
# is delivered to email endpoints. This field will also be included, if
|
201
201
|
# present, in the standard JSON messages delivered to other endpoints.
|
202
202
|
#
|
203
|
-
# Constraints: Subjects must be
|
204
|
-
#
|
205
|
-
# characters; and must be less than 100 characters long.
|
203
|
+
# Constraints: Subjects must be UTF-8 text with no line breaks or
|
204
|
+
# control characters, and less than 100 characters long.
|
206
205
|
# @option options [String] :message_structure
|
207
206
|
# Set `MessageStructure` to `json` if you want to send a different
|
208
207
|
# message for each protocol. For example, using one publish action, you
|
@@ -249,7 +248,7 @@ module Aws::SNS
|
|
249
248
|
# @return [Types::PublishResponse]
|
250
249
|
def publish(options = {})
|
251
250
|
options = options.merge(target_arn: @arn)
|
252
|
-
resp = Aws::Plugins::UserAgent.
|
251
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
253
252
|
@client.publish(options)
|
254
253
|
end
|
255
254
|
resp.data
|
@@ -283,7 +282,7 @@ module Aws::SNS
|
|
283
282
|
# @return [EmptyStructure]
|
284
283
|
def set_attributes(options = {})
|
285
284
|
options = options.merge(endpoint_arn: @arn)
|
286
|
-
resp = Aws::Plugins::UserAgent.
|
285
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
287
286
|
@client.set_endpoint_attributes(options)
|
288
287
|
end
|
289
288
|
resp.data
|
data/lib/aws-sdk-sns/resource.rb
CHANGED
@@ -62,7 +62,7 @@ module Aws::SNS
|
|
62
62
|
# [1]: https://docs.aws.amazon.com/sns/latest/api/API_SetPlatformApplicationAttributes.html
|
63
63
|
# @return [PlatformApplication]
|
64
64
|
def create_platform_application(options = {})
|
65
|
-
resp = Aws::Plugins::UserAgent.
|
65
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
66
66
|
@client.create_platform_application(options)
|
67
67
|
end
|
68
68
|
PlatformApplication.new(
|
@@ -99,7 +99,7 @@ module Aws::SNS
|
|
99
99
|
# @option options [Hash<String,String>] :attributes
|
100
100
|
# A map of attributes with their corresponding values.
|
101
101
|
#
|
102
|
-
# The following lists
|
102
|
+
# The following lists names, descriptions, and values of the special
|
103
103
|
# request parameters that the `CreateTopic` action uses:
|
104
104
|
#
|
105
105
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
@@ -185,7 +185,7 @@ module Aws::SNS
|
|
185
185
|
# Length Constraints: Maximum length of 30,720.
|
186
186
|
# @return [Topic]
|
187
187
|
def create_topic(options = {})
|
188
|
-
resp = Aws::Plugins::UserAgent.
|
188
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
189
189
|
@client.create_topic(options)
|
190
190
|
end
|
191
191
|
Topic.new(
|
@@ -212,7 +212,7 @@ module Aws::SNS
|
|
212
212
|
# @return [PlatformApplication::Collection]
|
213
213
|
def platform_applications(options = {})
|
214
214
|
batches = Enumerator.new do |y|
|
215
|
-
resp = Aws::Plugins::UserAgent.
|
215
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
216
216
|
@client.list_platform_applications(options)
|
217
217
|
end
|
218
218
|
resp.each_page do |page|
|
@@ -254,7 +254,7 @@ module Aws::SNS
|
|
254
254
|
# @return [Subscription::Collection]
|
255
255
|
def subscriptions(options = {})
|
256
256
|
batches = Enumerator.new do |y|
|
257
|
-
resp = Aws::Plugins::UserAgent.
|
257
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
258
258
|
@client.list_subscriptions(options)
|
259
259
|
end
|
260
260
|
resp.each_page do |page|
|
@@ -287,7 +287,7 @@ module Aws::SNS
|
|
287
287
|
# @return [Topic::Collection]
|
288
288
|
def topics(options = {})
|
289
289
|
batches = Enumerator.new do |y|
|
290
|
-
resp = Aws::Plugins::UserAgent.
|
290
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
291
291
|
@client.list_topics(options)
|
292
292
|
end
|
293
293
|
resp.each_page do |page|
|
@@ -81,20 +81,19 @@ module Aws::SNS
|
|
81
81
|
#
|
82
82
|
# * `TopicArn` – The topic ARN that the subscription is associated with.
|
83
83
|
#
|
84
|
-
# The following attribute applies only to Amazon
|
85
|
-
#
|
84
|
+
# The following attribute applies only to Amazon Data Firehose delivery
|
85
|
+
# stream subscriptions:
|
86
86
|
#
|
87
87
|
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
88
88
|
# following:
|
89
89
|
#
|
90
|
-
# * Permission to write to the
|
90
|
+
# * Permission to write to the Firehose delivery stream
|
91
91
|
#
|
92
92
|
# * Amazon SNS listed as a trusted entity
|
93
93
|
#
|
94
|
-
# Specifying a valid ARN for this attribute is required for
|
95
|
-
#
|
96
|
-
#
|
97
|
-
# *Amazon SNS Developer Guide*.
|
94
|
+
# Specifying a valid ARN for this attribute is required for Firehose
|
95
|
+
# delivery stream subscriptions. For more information, see [Fanout to
|
96
|
+
# Firehose delivery streams][2] in the *Amazon SNS Developer Guide*.
|
98
97
|
#
|
99
98
|
#
|
100
99
|
#
|
@@ -119,7 +118,7 @@ module Aws::SNS
|
|
119
118
|
#
|
120
119
|
# @return [self]
|
121
120
|
def load
|
122
|
-
resp = Aws::Plugins::UserAgent.
|
121
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
123
122
|
@client.get_subscription_attributes(subscription_arn: @arn)
|
124
123
|
end
|
125
124
|
@data = resp.data
|
@@ -151,7 +150,7 @@ module Aws::SNS
|
|
151
150
|
# @return [EmptyStructure]
|
152
151
|
def delete(options = {})
|
153
152
|
options = options.merge(subscription_arn: @arn)
|
154
|
-
resp = Aws::Plugins::UserAgent.
|
153
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
155
154
|
@client.unsubscribe(options)
|
156
155
|
end
|
157
156
|
resp.data
|
@@ -197,20 +196,19 @@ module Aws::SNS
|
|
197
196
|
# service that powers the subscribed endpoint becomes unavailable) are
|
198
197
|
# held in the dead-letter queue for further analysis or reprocessing.
|
199
198
|
#
|
200
|
-
# The following attribute applies only to Amazon
|
201
|
-
#
|
199
|
+
# The following attribute applies only to Amazon Data Firehose delivery
|
200
|
+
# stream subscriptions:
|
202
201
|
#
|
203
202
|
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
204
203
|
# following:
|
205
204
|
#
|
206
|
-
# * Permission to write to the
|
205
|
+
# * Permission to write to the Firehose delivery stream
|
207
206
|
#
|
208
207
|
# * Amazon SNS listed as a trusted entity
|
209
208
|
#
|
210
|
-
# Specifying a valid ARN for this attribute is required for
|
211
|
-
#
|
212
|
-
#
|
213
|
-
# *Amazon SNS Developer Guide*.
|
209
|
+
# Specifying a valid ARN for this attribute is required for Firehose
|
210
|
+
# delivery stream subscriptions. For more information, see [Fanout to
|
211
|
+
# Firehose delivery streams][1] in the *Amazon SNS Developer Guide*.
|
214
212
|
#
|
215
213
|
#
|
216
214
|
#
|
@@ -220,7 +218,7 @@ module Aws::SNS
|
|
220
218
|
# @return [EmptyStructure]
|
221
219
|
def set_attributes(options = {})
|
222
220
|
options = options.merge(subscription_arn: @arn)
|
223
|
-
resp = Aws::Plugins::UserAgent.
|
221
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
224
222
|
@client.set_subscription_attributes(options)
|
225
223
|
end
|
226
224
|
resp.data
|
data/lib/aws-sdk-sns/topic.rb
CHANGED
@@ -141,7 +141,7 @@ module Aws::SNS
|
|
141
141
|
#
|
142
142
|
# @return [self]
|
143
143
|
def load
|
144
|
-
resp = Aws::Plugins::UserAgent.
|
144
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
145
145
|
@client.get_topic_attributes(topic_arn: @arn)
|
146
146
|
end
|
147
147
|
@data = resp.data
|
@@ -188,7 +188,7 @@ module Aws::SNS
|
|
188
188
|
# @return [EmptyStructure]
|
189
189
|
def add_permission(options = {})
|
190
190
|
options = options.merge(topic_arn: @arn)
|
191
|
-
resp = Aws::Plugins::UserAgent.
|
191
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
192
192
|
@client.add_permission(options)
|
193
193
|
end
|
194
194
|
resp.data
|
@@ -212,7 +212,7 @@ module Aws::SNS
|
|
212
212
|
# @return [Subscription]
|
213
213
|
def confirm_subscription(options = {})
|
214
214
|
options = options.merge(topic_arn: @arn)
|
215
|
-
resp = Aws::Plugins::UserAgent.
|
215
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
216
216
|
@client.confirm_subscription(options)
|
217
217
|
end
|
218
218
|
Subscription.new(
|
@@ -228,7 +228,7 @@ module Aws::SNS
|
|
228
228
|
# @return [EmptyStructure]
|
229
229
|
def delete(options = {})
|
230
230
|
options = options.merge(topic_arn: @arn)
|
231
|
-
resp = Aws::Plugins::UserAgent.
|
231
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
232
232
|
@client.delete_topic(options)
|
233
233
|
end
|
234
234
|
resp.data
|
@@ -322,9 +322,8 @@ module Aws::SNS
|
|
322
322
|
# is delivered to email endpoints. This field will also be included, if
|
323
323
|
# present, in the standard JSON messages delivered to other endpoints.
|
324
324
|
#
|
325
|
-
# Constraints: Subjects must be
|
326
|
-
#
|
327
|
-
# characters; and must be less than 100 characters long.
|
325
|
+
# Constraints: Subjects must be UTF-8 text with no line breaks or
|
326
|
+
# control characters, and less than 100 characters long.
|
328
327
|
# @option options [String] :message_structure
|
329
328
|
# Set `MessageStructure` to `json` if you want to send a different
|
330
329
|
# message for each protocol. For example, using one publish action, you
|
@@ -371,7 +370,7 @@ module Aws::SNS
|
|
371
370
|
# @return [Types::PublishResponse]
|
372
371
|
def publish(options = {})
|
373
372
|
options = options.merge(topic_arn: @arn)
|
374
|
-
resp = Aws::Plugins::UserAgent.
|
373
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
375
374
|
@client.publish(options)
|
376
375
|
end
|
377
376
|
resp.data
|
@@ -388,7 +387,7 @@ module Aws::SNS
|
|
388
387
|
# @return [EmptyStructure]
|
389
388
|
def remove_permission(options = {})
|
390
389
|
options = options.merge(topic_arn: @arn)
|
391
|
-
resp = Aws::Plugins::UserAgent.
|
390
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
392
391
|
@client.remove_permission(options)
|
393
392
|
end
|
394
393
|
resp.data
|
@@ -563,7 +562,7 @@ module Aws::SNS
|
|
563
562
|
# @return [EmptyStructure]
|
564
563
|
def set_attributes(options = {})
|
565
564
|
options = options.merge(topic_arn: @arn)
|
566
|
-
resp = Aws::Plugins::UserAgent.
|
565
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
567
566
|
@client.set_topic_attributes(options)
|
568
567
|
end
|
569
568
|
resp.data
|
@@ -663,20 +662,19 @@ module Aws::SNS
|
|
663
662
|
# service that powers the subscribed endpoint becomes unavailable) are
|
664
663
|
# held in the dead-letter queue for further analysis or reprocessing.
|
665
664
|
#
|
666
|
-
# The following attribute applies only to Amazon
|
667
|
-
#
|
665
|
+
# The following attribute applies only to Amazon Data Firehose delivery
|
666
|
+
# stream subscriptions:
|
668
667
|
#
|
669
668
|
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
670
669
|
# following:
|
671
670
|
#
|
672
|
-
# * Permission to write to the
|
671
|
+
# * Permission to write to the Firehose delivery stream
|
673
672
|
#
|
674
673
|
# * Amazon SNS listed as a trusted entity
|
675
674
|
#
|
676
|
-
# Specifying a valid ARN for this attribute is required for
|
677
|
-
#
|
678
|
-
#
|
679
|
-
# *Amazon SNS Developer Guide*.
|
675
|
+
# Specifying a valid ARN for this attribute is required for Firehose
|
676
|
+
# delivery stream subscriptions. For more information, see [Fanout to
|
677
|
+
# Firehose delivery streams][1] in the *Amazon SNS Developer Guide*.
|
680
678
|
#
|
681
679
|
# The following attributes apply only to [FIFO topics][2]:
|
682
680
|
#
|
@@ -720,7 +718,7 @@ module Aws::SNS
|
|
720
718
|
# @return [Subscription]
|
721
719
|
def subscribe(options = {})
|
722
720
|
options = options.merge(topic_arn: @arn)
|
723
|
-
resp = Aws::Plugins::UserAgent.
|
721
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
724
722
|
@client.subscribe(options)
|
725
723
|
end
|
726
724
|
Subscription.new(
|
@@ -739,7 +737,7 @@ module Aws::SNS
|
|
739
737
|
def subscriptions(options = {})
|
740
738
|
batches = Enumerator.new do |y|
|
741
739
|
options = options.merge(topic_arn: @arn)
|
742
|
-
resp = Aws::Plugins::UserAgent.
|
740
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
743
741
|
@client.list_subscriptions_by_topic(options)
|
744
742
|
end
|
745
743
|
resp.each_page do |page|
|
data/lib/aws-sdk-sns/types.rb
CHANGED
@@ -345,8 +345,8 @@ module Aws::SNS
|
|
345
345
|
# @!attribute [rw] attributes
|
346
346
|
# A map of attributes with their corresponding values.
|
347
347
|
#
|
348
|
-
# The following lists
|
349
|
-
#
|
348
|
+
# The following lists names, descriptions, and values of the special
|
349
|
+
# request parameters that the `CreateTopic` action uses:
|
350
350
|
#
|
351
351
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
352
352
|
# failed deliveries to HTTP/S endpoints.
|
@@ -839,20 +839,20 @@ module Aws::SNS
|
|
839
839
|
# * `TopicArn` – The topic ARN that the subscription is associated
|
840
840
|
# with.
|
841
841
|
#
|
842
|
-
# The following attribute applies only to Amazon
|
842
|
+
# The following attribute applies only to Amazon Data Firehose
|
843
843
|
# delivery stream subscriptions:
|
844
844
|
#
|
845
845
|
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
846
846
|
# following:
|
847
847
|
#
|
848
|
-
# * Permission to write to the
|
848
|
+
# * Permission to write to the Firehose delivery stream
|
849
849
|
#
|
850
850
|
# * Amazon SNS listed as a trusted entity
|
851
851
|
#
|
852
|
-
# Specifying a valid ARN for this attribute is required for
|
853
|
-
#
|
854
|
-
#
|
855
|
-
#
|
852
|
+
# Specifying a valid ARN for this attribute is required for Firehose
|
853
|
+
# delivery stream subscriptions. For more information, see [Fanout
|
854
|
+
# to Firehose delivery streams][2] in the *Amazon SNS Developer
|
855
|
+
# Guide*.
|
856
856
|
#
|
857
857
|
#
|
858
858
|
#
|
@@ -1960,9 +1960,8 @@ module Aws::SNS
|
|
1960
1960
|
# included, if present, in the standard JSON messages delivered to
|
1961
1961
|
# other endpoints.
|
1962
1962
|
#
|
1963
|
-
# Constraints: Subjects must be
|
1964
|
-
#
|
1965
|
-
# characters; and must be less than 100 characters long.
|
1963
|
+
# Constraints: Subjects must be UTF-8 text with no line breaks or
|
1964
|
+
# control characters, and less than 100 characters long.
|
1966
1965
|
# @return [String]
|
1967
1966
|
#
|
1968
1967
|
# @!attribute [rw] message_structure
|
@@ -2436,20 +2435,20 @@ module Aws::SNS
|
|
2436
2435
|
# unavailable) are held in the dead-letter queue for further
|
2437
2436
|
# analysis or reprocessing.
|
2438
2437
|
#
|
2439
|
-
# The following attribute applies only to Amazon
|
2438
|
+
# The following attribute applies only to Amazon Data Firehose
|
2440
2439
|
# delivery stream subscriptions:
|
2441
2440
|
#
|
2442
2441
|
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
2443
2442
|
# following:
|
2444
2443
|
#
|
2445
|
-
# * Permission to write to the
|
2444
|
+
# * Permission to write to the Firehose delivery stream
|
2446
2445
|
#
|
2447
2446
|
# * Amazon SNS listed as a trusted entity
|
2448
2447
|
#
|
2449
|
-
# Specifying a valid ARN for this attribute is required for
|
2450
|
-
#
|
2451
|
-
#
|
2452
|
-
#
|
2448
|
+
# Specifying a valid ARN for this attribute is required for Firehose
|
2449
|
+
# delivery stream subscriptions. For more information, see [Fanout
|
2450
|
+
# to Firehose delivery streams][1] in the *Amazon SNS Developer
|
2451
|
+
# Guide*.
|
2453
2452
|
#
|
2454
2453
|
#
|
2455
2454
|
#
|
@@ -2761,20 +2760,20 @@ module Aws::SNS
|
|
2761
2760
|
# unavailable) are held in the dead-letter queue for further
|
2762
2761
|
# analysis or reprocessing.
|
2763
2762
|
#
|
2764
|
-
# The following attribute applies only to Amazon
|
2763
|
+
# The following attribute applies only to Amazon Data Firehose
|
2765
2764
|
# delivery stream subscriptions:
|
2766
2765
|
#
|
2767
2766
|
# * `SubscriptionRoleArn` – The ARN of the IAM role that has the
|
2768
2767
|
# following:
|
2769
2768
|
#
|
2770
|
-
# * Permission to write to the
|
2769
|
+
# * Permission to write to the Firehose delivery stream
|
2771
2770
|
#
|
2772
2771
|
# * Amazon SNS listed as a trusted entity
|
2773
2772
|
#
|
2774
|
-
# Specifying a valid ARN for this attribute is required for
|
2775
|
-
#
|
2776
|
-
#
|
2777
|
-
#
|
2773
|
+
# Specifying a valid ARN for this attribute is required for Firehose
|
2774
|
+
# delivery stream subscriptions. For more information, see [Fanout
|
2775
|
+
# to Firehose delivery streams][1] in the *Amazon SNS Developer
|
2776
|
+
# Guide*.
|
2778
2777
|
#
|
2779
2778
|
# The following attributes apply only to [FIFO topics][2]:
|
2780
2779
|
#
|
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.77.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: 2024-
|
11
|
+
date: 2024-06-06 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.197.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.197.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|