aws-sdk-sns 1.41.0 → 1.42.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns.rb +1 -1
- data/lib/aws-sdk-sns/client.rb +89 -93
- data/lib/aws-sdk-sns/client_api.rb +5 -0
- data/lib/aws-sdk-sns/resource.rb +4 -4
- data/lib/aws-sdk-sns/subscription.rb +1 -1
- data/lib/aws-sdk-sns/topic.rb +19 -20
- data/lib/aws-sdk-sns/types.rb +43 -45
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e6bd0e3226161f8668fc5f8029e28815a084e1a98ed6ba412d91319717e1a5c
|
4
|
+
data.tar.gz: 3a74a6bae2dd0109b120037099ad01abf6e11c6977e3f97bec23fac4a18e0ac8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7c945b7bbf755e00545a107b920dd2750cbb586af864adeff573403d514446d68734b0b46929ce93463551a8fc66a3fea6eafddf8579acbcbd90032ae5c2515
|
7
|
+
data.tar.gz: e98a973b570dac970ac289657c443ae5003d6d7c64e52c16bc3142fe832ad952e0c460b78d59d66ad37ef056a013c6fd683a2b59e8491ec8bc79cc47c8fce904
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.42.0
|
data/lib/aws-sdk-sns.rb
CHANGED
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -328,7 +328,7 @@ module Aws::SNS
|
|
328
328
|
# @!group API Operations
|
329
329
|
|
330
330
|
# Adds a statement to a topic's access control policy, granting access
|
331
|
-
# for the specified
|
331
|
+
# for the specified accounts to the specified actions.
|
332
332
|
#
|
333
333
|
# @option params [required, String] :topic_arn
|
334
334
|
# The ARN of the topic whose access control policy you wish to modify.
|
@@ -337,9 +337,9 @@ module Aws::SNS
|
|
337
337
|
# A unique identifier for the new policy statement.
|
338
338
|
#
|
339
339
|
# @option params [required, Array<String>] :aws_account_id
|
340
|
-
# The
|
341
|
-
#
|
342
|
-
#
|
340
|
+
# The account IDs of the users (principals) who will be given access to
|
341
|
+
# the specified actions. The users must have account, but do not need to
|
342
|
+
# be signed up for this service.
|
343
343
|
#
|
344
344
|
# @option params [required, Array<String>] :action_name
|
345
345
|
# The action you want to allow for the specified principal(s).
|
@@ -413,10 +413,10 @@ module Aws::SNS
|
|
413
413
|
#
|
414
414
|
# @option params [String] :authenticate_on_unsubscribe
|
415
415
|
# Disallows unauthenticated unsubscribes of the subscription. If the
|
416
|
-
# value of this parameter is `true` and the request has an
|
417
|
-
# signature, then only the topic owner and the subscription
|
418
|
-
# unsubscribe the endpoint. The unsubscribe action requires
|
419
|
-
# authentication.
|
416
|
+
# value of this parameter is `true` and the request has an Amazon Web
|
417
|
+
# Services signature, then only the topic owner and the subscription
|
418
|
+
# owner can unsubscribe the endpoint. The unsubscribe action requires
|
419
|
+
# Amazon Web Services authentication.
|
420
420
|
#
|
421
421
|
# @return [Types::ConfirmSubscriptionResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
422
422
|
#
|
@@ -590,18 +590,17 @@ module Aws::SNS
|
|
590
590
|
req.send_request(options)
|
591
591
|
end
|
592
592
|
|
593
|
-
# Adds a destination phone number to an
|
594
|
-
#
|
593
|
+
# Adds a destination phone number to an account in the SMS sandbox and
|
594
|
+
# sends a one-time password (OTP) to that phone number.
|
595
595
|
#
|
596
|
-
# When you start using Amazon SNS to send SMS messages, your
|
597
|
-
#
|
598
|
-
#
|
599
|
-
#
|
600
|
-
#
|
601
|
-
#
|
602
|
-
#
|
603
|
-
#
|
604
|
-
# Guide*.
|
596
|
+
# When you start using Amazon SNS to send SMS messages, your account is
|
597
|
+
# in the *SMS sandbox*. The SMS sandbox provides a safe environment for
|
598
|
+
# you to try Amazon SNS features without risking your reputation as an
|
599
|
+
# SMS sender. While your account is in the SMS sandbox, you can use all
|
600
|
+
# of the features of Amazon SNS. However, you can send SMS messages only
|
601
|
+
# to verified destination phone numbers. For more information, including
|
602
|
+
# how to move out of the sandbox to send messages without restrictions,
|
603
|
+
# see [SMS sandbox][1] in the *Amazon SNS Developer Guide*.
|
605
604
|
#
|
606
605
|
#
|
607
606
|
#
|
@@ -635,14 +634,14 @@ module Aws::SNS
|
|
635
634
|
|
636
635
|
# Creates a topic to which notifications can be published. Users can
|
637
636
|
# create at most 100,000 standard topics (at most 1,000 FIFO topics).
|
638
|
-
# For more information, see [
|
639
|
-
#
|
640
|
-
# specified name, that topic's
|
641
|
-
# topic.
|
637
|
+
# For more information, see [Creating an Amazon SNS topic][1] in the
|
638
|
+
# *Amazon SNS Developer Guide*. This action is idempotent, so if the
|
639
|
+
# requester already owns a topic with the specified name, that topic's
|
640
|
+
# ARN is returned without creating a new topic.
|
642
641
|
#
|
643
642
|
#
|
644
643
|
#
|
645
|
-
# [1]:
|
644
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-create-topic.html
|
646
645
|
#
|
647
646
|
# @option params [required, String] :name
|
648
647
|
# The name of the topic you want to create.
|
@@ -673,10 +672,10 @@ module Aws::SNS
|
|
673
672
|
#
|
674
673
|
# The following attribute applies only to [server-side encryption][1]\:
|
675
674
|
#
|
676
|
-
# * `KmsMasterKeyId` – The ID of an
|
677
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
678
|
-
# Terms][2]. For more examples, see [KeyId][3]
|
679
|
-
# Management Service API Reference*.
|
675
|
+
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
676
|
+
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
677
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
678
|
+
# in the *Key Management Service API Reference*.
|
680
679
|
#
|
681
680
|
# ^
|
682
681
|
#
|
@@ -808,18 +807,17 @@ module Aws::SNS
|
|
808
807
|
req.send_request(options)
|
809
808
|
end
|
810
809
|
|
811
|
-
# Deletes an
|
812
|
-
#
|
810
|
+
# Deletes an account's verified or pending phone number from the SMS
|
811
|
+
# sandbox.
|
813
812
|
#
|
814
|
-
# When you start using Amazon SNS to send SMS messages, your
|
815
|
-
#
|
816
|
-
#
|
817
|
-
#
|
818
|
-
#
|
819
|
-
#
|
820
|
-
#
|
821
|
-
#
|
822
|
-
# Guide*.
|
813
|
+
# When you start using Amazon SNS to send SMS messages, your account is
|
814
|
+
# in the *SMS sandbox*. The SMS sandbox provides a safe environment for
|
815
|
+
# you to try Amazon SNS features without risking your reputation as an
|
816
|
+
# SMS sender. While your account is in the SMS sandbox, you can use all
|
817
|
+
# of the features of Amazon SNS. However, you can send SMS messages only
|
818
|
+
# to verified destination phone numbers. For more information, including
|
819
|
+
# how to move out of the sandbox to send messages without restrictions,
|
820
|
+
# see [SMS sandbox][1] in the *Amazon SNS Developer Guide*.
|
823
821
|
#
|
824
822
|
#
|
825
823
|
#
|
@@ -983,18 +981,17 @@ module Aws::SNS
|
|
983
981
|
req.send_request(options)
|
984
982
|
end
|
985
983
|
|
986
|
-
# Retrieves the SMS sandbox status for the calling
|
987
|
-
#
|
984
|
+
# Retrieves the SMS sandbox status for the calling account in the target
|
985
|
+
# Region.
|
988
986
|
#
|
989
|
-
# When you start using Amazon SNS to send SMS messages, your
|
990
|
-
#
|
991
|
-
#
|
992
|
-
#
|
993
|
-
#
|
994
|
-
#
|
995
|
-
#
|
996
|
-
#
|
997
|
-
# Guide*.
|
987
|
+
# When you start using Amazon SNS to send SMS messages, your account is
|
988
|
+
# in the *SMS sandbox*. The SMS sandbox provides a safe environment for
|
989
|
+
# you to try Amazon SNS features without risking your reputation as an
|
990
|
+
# SMS sender. While your account is in the SMS sandbox, you can use all
|
991
|
+
# of the features of Amazon SNS. However, you can send SMS messages only
|
992
|
+
# to verified destination phone numbers. For more information, including
|
993
|
+
# how to move out of the sandbox to send messages without restrictions,
|
994
|
+
# see [SMS sandbox][1] in the *Amazon SNS Developer Guide*.
|
998
995
|
#
|
999
996
|
#
|
1000
997
|
#
|
@@ -1133,8 +1130,8 @@ module Aws::SNS
|
|
1133
1130
|
req.send_request(options)
|
1134
1131
|
end
|
1135
1132
|
|
1136
|
-
# Lists the calling
|
1137
|
-
#
|
1133
|
+
# Lists the calling account's dedicated origination numbers and their
|
1134
|
+
# metadata. For more information about origination numbers, see
|
1138
1135
|
# [Origination numbers][1] in the *Amazon SNS Developer Guide*.
|
1139
1136
|
#
|
1140
1137
|
#
|
@@ -1203,6 +1200,8 @@ module Aws::SNS
|
|
1203
1200
|
# * {Types::ListPhoneNumbersOptedOutResponse#phone_numbers #phone_numbers} => Array<String>
|
1204
1201
|
# * {Types::ListPhoneNumbersOptedOutResponse#next_token #next_token} => String
|
1205
1202
|
#
|
1203
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
1204
|
+
#
|
1206
1205
|
# @example Request syntax with placeholder values
|
1207
1206
|
#
|
1208
1207
|
# resp = client.list_phone_numbers_opted_out({
|
@@ -1276,18 +1275,17 @@ module Aws::SNS
|
|
1276
1275
|
req.send_request(options)
|
1277
1276
|
end
|
1278
1277
|
|
1279
|
-
# Lists the calling
|
1280
|
-
#
|
1278
|
+
# Lists the calling account's current verified and pending destination
|
1279
|
+
# phone numbers in the SMS sandbox.
|
1281
1280
|
#
|
1282
|
-
# When you start using Amazon SNS to send SMS messages, your
|
1283
|
-
#
|
1284
|
-
#
|
1285
|
-
#
|
1286
|
-
#
|
1287
|
-
#
|
1288
|
-
#
|
1289
|
-
#
|
1290
|
-
# Guide*.
|
1281
|
+
# When you start using Amazon SNS to send SMS messages, your account is
|
1282
|
+
# in the *SMS sandbox*. The SMS sandbox provides a safe environment for
|
1283
|
+
# you to try Amazon SNS features without risking your reputation as an
|
1284
|
+
# SMS sender. While your account is in the SMS sandbox, you can use all
|
1285
|
+
# of the features of Amazon SNS. However, you can send SMS messages only
|
1286
|
+
# to verified destination phone numbers. For more information, including
|
1287
|
+
# how to move out of the sandbox to send messages without restrictions,
|
1288
|
+
# see [SMS sandbox][1] in the *Amazon SNS Developer Guide*.
|
1291
1289
|
#
|
1292
1290
|
#
|
1293
1291
|
#
|
@@ -1539,7 +1537,7 @@ module Aws::SNS
|
|
1539
1537
|
# For more information about formatting messages, see [Send Custom
|
1540
1538
|
# Platform-Specific Payloads in Messages to Mobile Devices][1].
|
1541
1539
|
#
|
1542
|
-
# You can publish messages only to topics and endpoints in the same
|
1540
|
+
# You can publish messages only to topics and endpoints in the same
|
1543
1541
|
# Region.
|
1544
1542
|
#
|
1545
1543
|
#
|
@@ -1953,7 +1951,7 @@ module Aws::SNS
|
|
1953
1951
|
# * Total number of parts
|
1954
1952
|
#
|
1955
1953
|
# To receive the report, the bucket must have a policy that allows the
|
1956
|
-
# Amazon SNS service
|
1954
|
+
# Amazon SNS service principal to perform the `s3:PutObject` and
|
1957
1955
|
# `s3:GetBucketLocation` actions.
|
1958
1956
|
#
|
1959
1957
|
# For an example bucket policy and usage report, see [Monitoring SMS
|
@@ -2077,10 +2075,10 @@ module Aws::SNS
|
|
2077
2075
|
#
|
2078
2076
|
# The following attribute applies only to [server-side-encryption][1]\:
|
2079
2077
|
#
|
2080
|
-
# * `KmsMasterKeyId` – The ID of an
|
2081
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
2082
|
-
# Terms][2]. For more examples, see [KeyId][3]
|
2083
|
-
# Management Service API Reference*.
|
2078
|
+
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
2079
|
+
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
2080
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
2081
|
+
# in the *Key Management Service API Reference*.
|
2084
2082
|
#
|
2085
2083
|
# ^
|
2086
2084
|
#
|
@@ -2134,8 +2132,8 @@ module Aws::SNS
|
|
2134
2132
|
|
2135
2133
|
# Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is
|
2136
2134
|
# HTTP/S or email, or if the endpoint and the topic are not in the same
|
2137
|
-
#
|
2138
|
-
#
|
2135
|
+
# account, the endpoint owner must run the `ConfirmSubscription` action
|
2136
|
+
# to confirm the subscription.
|
2139
2137
|
#
|
2140
2138
|
# You call the `ConfirmSubscription` action with the token from the
|
2141
2139
|
# subscription response. Confirmation tokens are valid for three days.
|
@@ -2163,8 +2161,7 @@ module Aws::SNS
|
|
2163
2161
|
# * `application` – delivery of JSON-encoded message to an EndpointArn
|
2164
2162
|
# for a mobile app and device
|
2165
2163
|
#
|
2166
|
-
# * `lambda` – delivery of JSON-encoded message to an
|
2167
|
-
# function
|
2164
|
+
# * `lambda` – delivery of JSON-encoded message to an Lambda function
|
2168
2165
|
#
|
2169
2166
|
# * `firehose` – delivery of JSON-encoded message to an Amazon Kinesis
|
2170
2167
|
# Data Firehose delivery stream.
|
@@ -2192,7 +2189,7 @@ module Aws::SNS
|
|
2192
2189
|
# * For the `application` protocol, the endpoint is the EndpointArn of a
|
2193
2190
|
# mobile app and device.
|
2194
2191
|
#
|
2195
|
-
# * For the `lambda` protocol, the endpoint is the ARN of an
|
2192
|
+
# * For the `lambda` protocol, the endpoint is the ARN of an Lambda
|
2196
2193
|
# function.
|
2197
2194
|
#
|
2198
2195
|
# * For the `firehose` protocol, the endpoint is the ARN of an Amazon
|
@@ -2202,7 +2199,7 @@ module Aws::SNS
|
|
2202
2199
|
# A map of attributes with their corresponding values.
|
2203
2200
|
#
|
2204
2201
|
# The following lists the names, descriptions, and values of the special
|
2205
|
-
# request parameters that the `
|
2202
|
+
# request parameters that the `Subscribe` action uses:
|
2206
2203
|
#
|
2207
2204
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
2208
2205
|
# failed deliveries to HTTP/S endpoints.
|
@@ -2301,9 +2298,9 @@ module Aws::SNS
|
|
2301
2298
|
# * A new tag with a key identical to that of an existing tag overwrites
|
2302
2299
|
# the existing tag.
|
2303
2300
|
#
|
2304
|
-
# * Tagging actions are limited to 10 TPS per
|
2305
|
-
#
|
2306
|
-
#
|
2301
|
+
# * Tagging actions are limited to 10 TPS per account, per Region. If
|
2302
|
+
# your application requires a higher throughput, file a [technical
|
2303
|
+
# support request][2].
|
2307
2304
|
#
|
2308
2305
|
#
|
2309
2306
|
#
|
@@ -2342,10 +2339,10 @@ module Aws::SNS
|
|
2342
2339
|
|
2343
2340
|
# Deletes a subscription. If the subscription requires authentication
|
2344
2341
|
# for deletion, only the owner of the subscription or the topic's owner
|
2345
|
-
# can unsubscribe, and an
|
2346
|
-
# `Unsubscribe` call does not require authentication and the
|
2347
|
-
# is not the subscription owner, a final cancellation message
|
2348
|
-
# delivered to the endpoint, so that the endpoint owner can easily
|
2342
|
+
# can unsubscribe, and an Amazon Web Services signature is required. If
|
2343
|
+
# the `Unsubscribe` call does not require authentication and the
|
2344
|
+
# requester is not the subscription owner, a final cancellation message
|
2345
|
+
# is delivered to the endpoint, so that the endpoint owner can easily
|
2349
2346
|
# resubscribe to the topic if the `Unsubscribe` request was unintended.
|
2350
2347
|
#
|
2351
2348
|
# This action is throttled at 100 transactions per second (TPS).
|
@@ -2402,17 +2399,16 @@ module Aws::SNS
|
|
2402
2399
|
end
|
2403
2400
|
|
2404
2401
|
# Verifies a destination phone number with a one-time password (OTP) for
|
2405
|
-
# the calling
|
2402
|
+
# the calling account.
|
2406
2403
|
#
|
2407
|
-
# When you start using Amazon SNS to send SMS messages, your
|
2408
|
-
#
|
2409
|
-
#
|
2410
|
-
#
|
2411
|
-
#
|
2412
|
-
#
|
2413
|
-
#
|
2414
|
-
#
|
2415
|
-
# Guide*.
|
2404
|
+
# When you start using Amazon SNS to send SMS messages, your account is
|
2405
|
+
# in the *SMS sandbox*. The SMS sandbox provides a safe environment for
|
2406
|
+
# you to try Amazon SNS features without risking your reputation as an
|
2407
|
+
# SMS sender. While your account is in the SMS sandbox, you can use all
|
2408
|
+
# of the features of Amazon SNS. However, you can send SMS messages only
|
2409
|
+
# to verified destination phone numbers. For more information, including
|
2410
|
+
# how to move out of the sandbox to send messages without restrictions,
|
2411
|
+
# see [SMS sandbox][1] in the *Amazon SNS Developer Guide*.
|
2416
2412
|
#
|
2417
2413
|
#
|
2418
2414
|
#
|
@@ -2456,7 +2452,7 @@ module Aws::SNS
|
|
2456
2452
|
params: params,
|
2457
2453
|
config: config)
|
2458
2454
|
context[:gem_name] = 'aws-sdk-sns'
|
2459
|
-
context[:gem_version] = '1.
|
2455
|
+
context[:gem_version] = '1.42.0'
|
2460
2456
|
Seahorse::Client::Request.new(handlers, context)
|
2461
2457
|
end
|
2462
2458
|
|
@@ -852,6 +852,11 @@ module Aws::SNS
|
|
852
852
|
o.errors << Shapes::ShapeRef.new(shape: InternalErrorException)
|
853
853
|
o.errors << Shapes::ShapeRef.new(shape: AuthorizationErrorException)
|
854
854
|
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterException)
|
855
|
+
o[:pager] = Aws::Pager.new(
|
856
|
+
tokens: {
|
857
|
+
"next_token" => "next_token"
|
858
|
+
}
|
859
|
+
)
|
855
860
|
end)
|
856
861
|
|
857
862
|
api.add_operation(:list_platform_applications, Seahorse::Model::Operation.new.tap do |o|
|
data/lib/aws-sdk-sns/resource.rb
CHANGED
@@ -111,10 +111,10 @@ module Aws::SNS
|
|
111
111
|
#
|
112
112
|
# The following attribute applies only to [server-side encryption][1]\:
|
113
113
|
#
|
114
|
-
# * `KmsMasterKeyId` – The ID of an
|
115
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
116
|
-
# Terms][2]. For more examples, see [KeyId][3]
|
117
|
-
# Management Service API Reference*.
|
114
|
+
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
115
|
+
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
116
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
117
|
+
# in the *Key Management Service API Reference*.
|
118
118
|
#
|
119
119
|
# ^
|
120
120
|
#
|
@@ -51,7 +51,7 @@ module Aws::SNS
|
|
51
51
|
# subscription. For more information, see [Amazon SNS Message
|
52
52
|
# Filtering][1] in the *Amazon SNS Developer Guide*.
|
53
53
|
#
|
54
|
-
# * `Owner` – The
|
54
|
+
# * `Owner` – The account ID of the subscription's owner.
|
55
55
|
#
|
56
56
|
# * `PendingConfirmation` – `true` if the subscription hasn't been
|
57
57
|
# confirmed. To confirm a pending subscription, call the
|
data/lib/aws-sdk-sns/topic.rb
CHANGED
@@ -43,7 +43,7 @@ module Aws::SNS
|
|
43
43
|
# * `DisplayName` – The human-readable name used in the `From` field for
|
44
44
|
# notifications to `email` and `email-json` endpoints.
|
45
45
|
#
|
46
|
-
# * `Owner` – The
|
46
|
+
# * `Owner` – The account ID of the topic's owner.
|
47
47
|
#
|
48
48
|
# * `Policy` – The JSON serialization of the topic's access control
|
49
49
|
# policy.
|
@@ -64,10 +64,10 @@ module Aws::SNS
|
|
64
64
|
#
|
65
65
|
# The following attribute applies only to [server-side-encryption][1]\:
|
66
66
|
#
|
67
|
-
# * `KmsMasterKeyId` - The ID of an
|
68
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
69
|
-
# Terms][2]. For more examples, see [KeyId][3]
|
70
|
-
# Management Service API Reference*.
|
67
|
+
# * `KmsMasterKeyId` - The ID of an Amazon Web Services managed customer
|
68
|
+
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
69
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
70
|
+
# in the *Key Management Service API Reference*.
|
71
71
|
#
|
72
72
|
# ^
|
73
73
|
#
|
@@ -151,9 +151,9 @@ module Aws::SNS
|
|
151
151
|
# @option options [required, String] :label
|
152
152
|
# A unique identifier for the new policy statement.
|
153
153
|
# @option options [required, Array<String>] :aws_account_id
|
154
|
-
# The
|
155
|
-
#
|
156
|
-
#
|
154
|
+
# The account IDs of the users (principals) who will be given access to
|
155
|
+
# the specified actions. The users must have account, but do not need to
|
156
|
+
# be signed up for this service.
|
157
157
|
# @option options [required, Array<String>] :action_name
|
158
158
|
# The action you want to allow for the specified principal(s).
|
159
159
|
#
|
@@ -176,10 +176,10 @@ module Aws::SNS
|
|
176
176
|
# Short-lived token sent to an endpoint during the `Subscribe` action.
|
177
177
|
# @option options [String] :authenticate_on_unsubscribe
|
178
178
|
# Disallows unauthenticated unsubscribes of the subscription. If the
|
179
|
-
# value of this parameter is `true` and the request has an
|
180
|
-
# signature, then only the topic owner and the subscription
|
181
|
-
# unsubscribe the endpoint. The unsubscribe action requires
|
182
|
-
# authentication.
|
179
|
+
# value of this parameter is `true` and the request has an Amazon Web
|
180
|
+
# Services signature, then only the topic owner and the subscription
|
181
|
+
# owner can unsubscribe the endpoint. The unsubscribe action requires
|
182
|
+
# Amazon Web Services authentication.
|
183
183
|
# @return [Subscription]
|
184
184
|
def confirm_subscription(options = {})
|
185
185
|
options = options.merge(topic_arn: @arn)
|
@@ -381,10 +381,10 @@ module Aws::SNS
|
|
381
381
|
#
|
382
382
|
# The following attribute applies only to [server-side-encryption][1]\:
|
383
383
|
#
|
384
|
-
# * `KmsMasterKeyId` – The ID of an
|
385
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
386
|
-
# Terms][2]. For more examples, see [KeyId][3]
|
387
|
-
# Management Service API Reference*.
|
384
|
+
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
385
|
+
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
386
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
387
|
+
# in the *Key Management Service API Reference*.
|
388
388
|
#
|
389
389
|
# ^
|
390
390
|
#
|
@@ -451,8 +451,7 @@ module Aws::SNS
|
|
451
451
|
# * `application` – delivery of JSON-encoded message to an EndpointArn
|
452
452
|
# for a mobile app and device
|
453
453
|
#
|
454
|
-
# * `lambda` – delivery of JSON-encoded message to an
|
455
|
-
# function
|
454
|
+
# * `lambda` – delivery of JSON-encoded message to an Lambda function
|
456
455
|
#
|
457
456
|
# * `firehose` – delivery of JSON-encoded message to an Amazon Kinesis
|
458
457
|
# Data Firehose delivery stream.
|
@@ -479,7 +478,7 @@ module Aws::SNS
|
|
479
478
|
# * For the `application` protocol, the endpoint is the EndpointArn of a
|
480
479
|
# mobile app and device.
|
481
480
|
#
|
482
|
-
# * For the `lambda` protocol, the endpoint is the ARN of an
|
481
|
+
# * For the `lambda` protocol, the endpoint is the ARN of an Lambda
|
483
482
|
# function.
|
484
483
|
#
|
485
484
|
# * For the `firehose` protocol, the endpoint is the ARN of an Amazon
|
@@ -488,7 +487,7 @@ module Aws::SNS
|
|
488
487
|
# A map of attributes with their corresponding values.
|
489
488
|
#
|
490
489
|
# The following lists the names, descriptions, and values of the special
|
491
|
-
# request parameters that the `
|
490
|
+
# request parameters that the `Subscribe` action uses:
|
492
491
|
#
|
493
492
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
494
493
|
# failed deliveries to HTTP/S endpoints.
|
data/lib/aws-sdk-sns/types.rb
CHANGED
@@ -29,9 +29,9 @@ module Aws::SNS
|
|
29
29
|
# @return [String]
|
30
30
|
#
|
31
31
|
# @!attribute [rw] aws_account_id
|
32
|
-
# The
|
33
|
-
#
|
34
|
-
#
|
32
|
+
# The account IDs of the users (principals) who will be given access
|
33
|
+
# to the specified actions. The users must have account, but do not
|
34
|
+
# need to be signed up for this service.
|
35
35
|
# @return [Array<String>]
|
36
36
|
#
|
37
37
|
# @!attribute [rw] action_name
|
@@ -141,10 +141,10 @@ module Aws::SNS
|
|
141
141
|
#
|
142
142
|
# @!attribute [rw] authenticate_on_unsubscribe
|
143
143
|
# Disallows unauthenticated unsubscribes of the subscription. If the
|
144
|
-
# value of this parameter is `true` and the request has an
|
145
|
-
# signature, then only the topic owner and the subscription
|
146
|
-
# unsubscribe the endpoint. The unsubscribe action requires
|
147
|
-
# authentication.
|
144
|
+
# value of this parameter is `true` and the request has an Amazon Web
|
145
|
+
# Services signature, then only the topic owner and the subscription
|
146
|
+
# owner can unsubscribe the endpoint. The unsubscribe action requires
|
147
|
+
# Amazon Web Services authentication.
|
148
148
|
# @return [String]
|
149
149
|
#
|
150
150
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ConfirmSubscriptionInput AWS API Documentation
|
@@ -377,10 +377,10 @@ module Aws::SNS
|
|
377
377
|
# The following attribute applies only to [server-side
|
378
378
|
# encryption][1]\:
|
379
379
|
#
|
380
|
-
# * `KmsMasterKeyId` – The ID of an
|
381
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
382
|
-
# [Key Terms][2]. For more examples, see [KeyId][3]
|
383
|
-
# Management Service API Reference*.
|
380
|
+
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed
|
381
|
+
# customer master key (CMK) for Amazon SNS or a custom CMK. For more
|
382
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
383
|
+
# in the *Key Management Service API Reference*.
|
384
384
|
#
|
385
385
|
# ^
|
386
386
|
#
|
@@ -564,9 +564,9 @@ module Aws::SNS
|
|
564
564
|
include Aws::Structure
|
565
565
|
end
|
566
566
|
|
567
|
-
# Indicates that the number of filter polices in your
|
568
|
-
#
|
569
|
-
#
|
567
|
+
# Indicates that the number of filter polices in your account exceeds
|
568
|
+
# the limit. To add more filter polices, submit an SNS Limit Increase
|
569
|
+
# case in the Amazon Web Services Support Center.
|
570
570
|
#
|
571
571
|
# @!attribute [rw] message
|
572
572
|
# @return [String]
|
@@ -784,7 +784,7 @@ module Aws::SNS
|
|
784
784
|
# subscription. For more information, see [Amazon SNS Message
|
785
785
|
# Filtering][1] in the *Amazon SNS Developer Guide*.
|
786
786
|
#
|
787
|
-
# * `Owner` – The
|
787
|
+
# * `Owner` – The account ID of the subscription's owner.
|
788
788
|
#
|
789
789
|
# * `PendingConfirmation` – `true` if the subscription hasn't been
|
790
790
|
# confirmed. To confirm a pending subscription, call the
|
@@ -869,7 +869,7 @@ module Aws::SNS
|
|
869
869
|
# * `DisplayName` – The human-readable name used in the `From` field
|
870
870
|
# for notifications to `email` and `email-json` endpoints.
|
871
871
|
#
|
872
|
-
# * `Owner` – The
|
872
|
+
# * `Owner` – The account ID of the topic's owner.
|
873
873
|
#
|
874
874
|
# * `Policy` – The JSON serialization of the topic's access control
|
875
875
|
# policy.
|
@@ -891,10 +891,10 @@ module Aws::SNS
|
|
891
891
|
# The following attribute applies only to
|
892
892
|
# [server-side-encryption][1]\:
|
893
893
|
#
|
894
|
-
# * `KmsMasterKeyId` - The ID of an
|
895
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
896
|
-
# [Key Terms][2]. For more examples, see [KeyId][3]
|
897
|
-
# Management Service API Reference*.
|
894
|
+
# * `KmsMasterKeyId` - The ID of an Amazon Web Services managed
|
895
|
+
# customer master key (CMK) for Amazon SNS or a custom CMK. For more
|
896
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
897
|
+
# in the *Key Management Service API Reference*.
|
898
898
|
#
|
899
899
|
# ^
|
900
900
|
#
|
@@ -1022,8 +1022,8 @@ module Aws::SNS
|
|
1022
1022
|
|
1023
1023
|
# The request was rejected because the state of the specified resource
|
1024
1024
|
# isn't valid for this request. For more information, see [How Key
|
1025
|
-
# State Affects Use of a Customer Master Key][1] in the *
|
1026
|
-
#
|
1025
|
+
# State Affects Use of a Customer Master Key][1] in the *Key Management
|
1026
|
+
# Service Developer Guide*.
|
1027
1027
|
#
|
1028
1028
|
#
|
1029
1029
|
#
|
@@ -1054,7 +1054,8 @@ module Aws::SNS
|
|
1054
1054
|
include Aws::Structure
|
1055
1055
|
end
|
1056
1056
|
|
1057
|
-
# The
|
1057
|
+
# The Amazon Web Services access key ID needs a subscription for the
|
1058
|
+
# service.
|
1058
1059
|
#
|
1059
1060
|
# @!attribute [rw] message
|
1060
1061
|
# @return [String]
|
@@ -1068,7 +1069,7 @@ module Aws::SNS
|
|
1068
1069
|
end
|
1069
1070
|
|
1070
1071
|
# The request was denied due to request throttling. For more information
|
1071
|
-
# about throttling, see [Limits][1] in the *
|
1072
|
+
# about throttling, see [Limits][1] in the *Key Management Service
|
1072
1073
|
# Developer Guide.*
|
1073
1074
|
#
|
1074
1075
|
#
|
@@ -1578,7 +1579,7 @@ module Aws::SNS
|
|
1578
1579
|
class OptInPhoneNumberResponse < Aws::EmptyStructure; end
|
1579
1580
|
|
1580
1581
|
# Indicates that the specified phone number opted out of receiving SMS
|
1581
|
-
# messages from your
|
1582
|
+
# messages from your account. You can't send SMS messages to phone
|
1582
1583
|
# numbers that opt out.
|
1583
1584
|
#
|
1584
1585
|
# @!attribute [rw] message
|
@@ -1916,15 +1917,14 @@ module Aws::SNS
|
|
1916
1917
|
|
1917
1918
|
# A verified or pending destination phone number in the SMS sandbox.
|
1918
1919
|
#
|
1919
|
-
# When you start using Amazon SNS to send SMS messages, your
|
1920
|
-
#
|
1921
|
-
#
|
1922
|
-
#
|
1923
|
-
#
|
1924
|
-
#
|
1925
|
-
#
|
1926
|
-
#
|
1927
|
-
# Guide*.
|
1920
|
+
# When you start using Amazon SNS to send SMS messages, your account is
|
1921
|
+
# in the *SMS sandbox*. The SMS sandbox provides a safe environment for
|
1922
|
+
# you to try Amazon SNS features without risking your reputation as an
|
1923
|
+
# SMS sender. While your account is in the SMS sandbox, you can use all
|
1924
|
+
# of the features of Amazon SNS. However, you can send SMS messages only
|
1925
|
+
# to verified destination phone numbers. For more information, including
|
1926
|
+
# how to move out of the sandbox to send messages without restrictions,
|
1927
|
+
# see [SMS sandbox][1] in the *Amazon SNS Developer Guide*.
|
1928
1928
|
#
|
1929
1929
|
#
|
1930
1930
|
#
|
@@ -2139,7 +2139,7 @@ module Aws::SNS
|
|
2139
2139
|
# * Total number of parts
|
2140
2140
|
#
|
2141
2141
|
# To receive the report, the bucket must have a policy that allows the
|
2142
|
-
# Amazon SNS service
|
2142
|
+
# Amazon SNS service principal to perform the `s3:PutObject` and
|
2143
2143
|
# `s3:GetBucketLocation` actions.
|
2144
2144
|
#
|
2145
2145
|
# For an example bucket policy and usage report, see [Monitoring SMS
|
@@ -2275,10 +2275,10 @@ module Aws::SNS
|
|
2275
2275
|
# The following attribute applies only to
|
2276
2276
|
# [server-side-encryption][1]\:
|
2277
2277
|
#
|
2278
|
-
# * `KmsMasterKeyId` – The ID of an
|
2279
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
2280
|
-
# [Key Terms][2]. For more examples, see [KeyId][3]
|
2281
|
-
# Management Service API Reference*.
|
2278
|
+
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed
|
2279
|
+
# customer master key (CMK) for Amazon SNS or a custom CMK. For more
|
2280
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
2281
|
+
# in the *Key Management Service API Reference*.
|
2282
2282
|
#
|
2283
2283
|
# ^
|
2284
2284
|
#
|
@@ -2375,8 +2375,7 @@ module Aws::SNS
|
|
2375
2375
|
# * `application` – delivery of JSON-encoded message to an EndpointArn
|
2376
2376
|
# for a mobile app and device
|
2377
2377
|
#
|
2378
|
-
# * `lambda` – delivery of JSON-encoded message to an
|
2379
|
-
# function
|
2378
|
+
# * `lambda` – delivery of JSON-encoded message to an Lambda function
|
2380
2379
|
#
|
2381
2380
|
# * `firehose` – delivery of JSON-encoded message to an Amazon Kinesis
|
2382
2381
|
# Data Firehose delivery stream.
|
@@ -2405,8 +2404,8 @@ module Aws::SNS
|
|
2405
2404
|
# * For the `application` protocol, the endpoint is the EndpointArn of
|
2406
2405
|
# a mobile app and device.
|
2407
2406
|
#
|
2408
|
-
# * For the `lambda` protocol, the endpoint is the ARN of an
|
2409
|
-
#
|
2407
|
+
# * For the `lambda` protocol, the endpoint is the ARN of an Lambda
|
2408
|
+
# function.
|
2410
2409
|
#
|
2411
2410
|
# * For the `firehose` protocol, the endpoint is the ARN of an Amazon
|
2412
2411
|
# Kinesis Data Firehose delivery stream.
|
@@ -2416,8 +2415,7 @@ module Aws::SNS
|
|
2416
2415
|
# A map of attributes with their corresponding values.
|
2417
2416
|
#
|
2418
2417
|
# The following lists the names, descriptions, and values of the
|
2419
|
-
# special request parameters that the `
|
2420
|
-
# uses:
|
2418
|
+
# special request parameters that the `Subscribe` action uses:
|
2421
2419
|
#
|
2422
2420
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
2423
2421
|
# failed deliveries to HTTP/S endpoints.
|
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.42.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: 2021-06
|
11
|
+
date: 2021-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|