aws-sdk-sns 1.45.1 → 1.49.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 +20 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +226 -85
- data/lib/aws-sdk-sns/client_api.rb +89 -0
- data/lib/aws-sdk-sns/errors.rb +80 -0
- data/lib/aws-sdk-sns/platform_application.rb +44 -7
- data/lib/aws-sdk-sns/platform_endpoint.rb +3 -3
- data/lib/aws-sdk-sns/subscription.rb +2 -1
- data/lib/aws-sdk-sns/topic.rb +8 -7
- data/lib/aws-sdk-sns/types.rb +433 -38
- 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: edf881e174aae2432578dac202afea54b0aea42670ffc3aff58cfa57484f8835
|
4
|
+
data.tar.gz: 4ec58fd61dfd6473cfab21da09121dd6c7dd08809115d746b84e184946a27094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 036e5993709e76e6fc13e95862ae35fe7ee367588158df3f1f59375d6da02aa833a5ca253edf27325321ae44a57f5216f080b259e1f6d87468804be9d94fb1d2
|
7
|
+
data.tar.gz: 8d0edf4f18b22dd9c59fa428efbeab3c5b35ad86e703c6bda535b5376d82d9607702f5c1ad4e46b1030cb2b5ea431fd6719febdcfc6dee2d1e4010d3ba1615a6
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.49.0 (2021-11-30)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.48.0 (2021-11-17)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Amazon SNS introduces the PublishBatch API, which enables customers to publish up to 10 messages per API request. The new API is valid for Standard and FIFO topics.
|
13
|
+
|
14
|
+
1.47.0 (2021-11-04)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
1.46.0 (2021-10-18)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
23
|
+
|
4
24
|
1.45.1 (2021-10-15)
|
5
25
|
------------------
|
6
26
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.49.0
|
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -119,7 +119,9 @@ module Aws::SNS
|
|
119
119
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
120
|
# are very aggressive. Construct and pass an instance of
|
121
121
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
-
# enable retries and extended timeouts.
|
122
|
+
# enable retries and extended timeouts. Instance profile credential
|
123
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
124
|
+
# to true.
|
123
125
|
#
|
124
126
|
# @option options [required, String] :region
|
125
127
|
# The AWS region to connect to. The configured `:region` is
|
@@ -275,6 +277,15 @@ module Aws::SNS
|
|
275
277
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
276
278
|
# requests are made, and retries are disabled.
|
277
279
|
#
|
280
|
+
# @option options [Boolean] :use_dualstack_endpoint
|
281
|
+
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
282
|
+
# will be used if available.
|
283
|
+
#
|
284
|
+
# @option options [Boolean] :use_fips_endpoint
|
285
|
+
# When set to `true`, fips compatible endpoints will be used if available.
|
286
|
+
# When a `fips` region is used, the region is normalized and this config
|
287
|
+
# is set to `true`.
|
288
|
+
#
|
278
289
|
# @option options [Boolean] :validate_params (true)
|
279
290
|
# When `true`, request parameters are validated before
|
280
291
|
# sending the request.
|
@@ -328,7 +339,8 @@ module Aws::SNS
|
|
328
339
|
# @!group API Operations
|
329
340
|
|
330
341
|
# Adds a statement to a topic's access control policy, granting access
|
331
|
-
# for the specified accounts to the specified
|
342
|
+
# for the specified Amazon Web Services accounts to the specified
|
343
|
+
# actions.
|
332
344
|
#
|
333
345
|
# @option params [required, String] :topic_arn
|
334
346
|
# The ARN of the topic whose access control policy you wish to modify.
|
@@ -337,9 +349,10 @@ module Aws::SNS
|
|
337
349
|
# A unique identifier for the new policy statement.
|
338
350
|
#
|
339
351
|
# @option params [required, Array<String>] :aws_account_id
|
340
|
-
# The account IDs of the users (principals) who will
|
341
|
-
# the specified actions. The users must have
|
342
|
-
# be signed up for this
|
352
|
+
# The Amazon Web Services account IDs of the users (principals) who will
|
353
|
+
# be given access to the specified actions. The users must have Amazon
|
354
|
+
# Web Services account, but do not need to be signed up for this
|
355
|
+
# service.
|
343
356
|
#
|
344
357
|
# @option params [required, Array<String>] :action_name
|
345
358
|
# The action you want to allow for the specified principal(s).
|
@@ -367,8 +380,8 @@ module Aws::SNS
|
|
367
380
|
end
|
368
381
|
|
369
382
|
# Accepts a phone number and indicates whether the phone holder has
|
370
|
-
# opted out of receiving SMS messages from your
|
371
|
-
# SMS messages to a number that is opted out.
|
383
|
+
# opted out of receiving SMS messages from your Amazon Web Services
|
384
|
+
# account. You cannot send SMS messages to a number that is opted out.
|
372
385
|
#
|
373
386
|
# To resume sending messages, you can opt in the number by using the
|
374
387
|
# `OptInPhoneNumber` action.
|
@@ -458,8 +471,13 @@ module Aws::SNS
|
|
458
471
|
# * For `Baidu`, `PlatformPrincipal` is `API key` and
|
459
472
|
# `PlatformCredential` is `secret key`.
|
460
473
|
#
|
461
|
-
# * For `APNS` and `APNS_SANDBOX
|
462
|
-
# certificate` and `PlatformCredential` is
|
474
|
+
# * For `APNS` and `APNS_SANDBOX` using certificate credentials,
|
475
|
+
# `PlatformPrincipal` is `SSL certificate` and `PlatformCredential` is
|
476
|
+
# `private key`.
|
477
|
+
#
|
478
|
+
# * For `APNS` and `APNS_SANDBOX` using token credentials,
|
479
|
+
# `PlatformPrincipal` is `signing key ID` and `PlatformCredential` is
|
480
|
+
# `signing key`.
|
463
481
|
#
|
464
482
|
# * For `GCM` (Firebase Cloud Messaging), there is no
|
465
483
|
# `PlatformPrincipal` and the `PlatformCredential` is `API key`.
|
@@ -590,17 +608,19 @@ module Aws::SNS
|
|
590
608
|
req.send_request(options)
|
591
609
|
end
|
592
610
|
|
593
|
-
# Adds a destination phone number to an
|
594
|
-
# sends a one-time password (OTP) to that phone
|
611
|
+
# Adds a destination phone number to an Amazon Web Services account in
|
612
|
+
# the SMS sandbox and sends a one-time password (OTP) to that phone
|
613
|
+
# number.
|
595
614
|
#
|
596
|
-
# When you start using Amazon SNS to send SMS messages, your
|
597
|
-
# in the *SMS sandbox*. The SMS sandbox provides a
|
598
|
-
# you to try Amazon SNS features without risking
|
599
|
-
# SMS sender. While your
|
600
|
-
#
|
601
|
-
#
|
602
|
-
#
|
603
|
-
#
|
615
|
+
# When you start using Amazon SNS to send SMS messages, your Amazon Web
|
616
|
+
# Services account is in the *SMS sandbox*. The SMS sandbox provides a
|
617
|
+
# safe environment for you to try Amazon SNS features without risking
|
618
|
+
# your reputation as an SMS sender. While your Amazon Web Services
|
619
|
+
# account is in the SMS sandbox, you can use all of the features of
|
620
|
+
# Amazon SNS. However, you can send SMS messages only to verified
|
621
|
+
# destination phone numbers. For more information, including how to move
|
622
|
+
# out of the sandbox to send messages without restrictions, see [SMS
|
623
|
+
# sandbox][1] in the *Amazon SNS Developer Guide*.
|
604
624
|
#
|
605
625
|
#
|
606
626
|
#
|
@@ -807,17 +827,18 @@ module Aws::SNS
|
|
807
827
|
req.send_request(options)
|
808
828
|
end
|
809
829
|
|
810
|
-
# Deletes an account's verified or pending phone
|
811
|
-
# sandbox.
|
830
|
+
# Deletes an Amazon Web Services account's verified or pending phone
|
831
|
+
# number from the SMS sandbox.
|
812
832
|
#
|
813
|
-
# When you start using Amazon SNS to send SMS messages, your
|
814
|
-
# in the *SMS sandbox*. The SMS sandbox provides a
|
815
|
-
# you to try Amazon SNS features without risking
|
816
|
-
# SMS sender. While your
|
817
|
-
#
|
818
|
-
#
|
819
|
-
#
|
820
|
-
#
|
833
|
+
# When you start using Amazon SNS to send SMS messages, your Amazon Web
|
834
|
+
# Services account is in the *SMS sandbox*. The SMS sandbox provides a
|
835
|
+
# safe environment for you to try Amazon SNS features without risking
|
836
|
+
# your reputation as an SMS sender. While your Amazon Web Services
|
837
|
+
# account is in the SMS sandbox, you can use all of the features of
|
838
|
+
# Amazon SNS. However, you can send SMS messages only to verified
|
839
|
+
# destination phone numbers. For more information, including how to move
|
840
|
+
# out of the sandbox to send messages without restrictions, see [SMS
|
841
|
+
# sandbox][1] in the *Amazon SNS Developer Guide*.
|
821
842
|
#
|
822
843
|
#
|
823
844
|
#
|
@@ -940,7 +961,8 @@ module Aws::SNS
|
|
940
961
|
req.send_request(options)
|
941
962
|
end
|
942
963
|
|
943
|
-
# Returns the settings for sending SMS messages from your
|
964
|
+
# Returns the settings for sending SMS messages from your Amazon Web
|
965
|
+
# Services account.
|
944
966
|
#
|
945
967
|
# These settings are set with the `SetSMSAttributes` action.
|
946
968
|
#
|
@@ -981,17 +1003,18 @@ module Aws::SNS
|
|
981
1003
|
req.send_request(options)
|
982
1004
|
end
|
983
1005
|
|
984
|
-
# Retrieves the SMS sandbox status for the calling
|
985
|
-
# Region.
|
1006
|
+
# Retrieves the SMS sandbox status for the calling Amazon Web Services
|
1007
|
+
# account in the target Amazon Web Services Region.
|
986
1008
|
#
|
987
|
-
# When you start using Amazon SNS to send SMS messages, your
|
988
|
-
# in the *SMS sandbox*. The SMS sandbox provides a
|
989
|
-
# you to try Amazon SNS features without risking
|
990
|
-
# SMS sender. While your
|
991
|
-
#
|
992
|
-
#
|
993
|
-
#
|
994
|
-
#
|
1009
|
+
# When you start using Amazon SNS to send SMS messages, your Amazon Web
|
1010
|
+
# Services account is in the *SMS sandbox*. The SMS sandbox provides a
|
1011
|
+
# safe environment for you to try Amazon SNS features without risking
|
1012
|
+
# your reputation as an SMS sender. While your Amazon Web Services
|
1013
|
+
# account is in the SMS sandbox, you can use all of the features of
|
1014
|
+
# Amazon SNS. However, you can send SMS messages only to verified
|
1015
|
+
# destination phone numbers. For more information, including how to move
|
1016
|
+
# out of the sandbox to send messages without restrictions, see [SMS
|
1017
|
+
# sandbox][1] in the *Amazon SNS Developer Guide*.
|
995
1018
|
#
|
996
1019
|
#
|
997
1020
|
#
|
@@ -1130,9 +1153,10 @@ module Aws::SNS
|
|
1130
1153
|
req.send_request(options)
|
1131
1154
|
end
|
1132
1155
|
|
1133
|
-
# Lists the calling account's dedicated origination
|
1134
|
-
# metadata. For more information about origination
|
1135
|
-
# [Origination numbers][1] in the *Amazon SNS Developer
|
1156
|
+
# Lists the calling Amazon Web Services account's dedicated origination
|
1157
|
+
# numbers and their metadata. For more information about origination
|
1158
|
+
# numbers, see [Origination numbers][1] in the *Amazon SNS Developer
|
1159
|
+
# Guide*.
|
1136
1160
|
#
|
1137
1161
|
#
|
1138
1162
|
#
|
@@ -1275,17 +1299,18 @@ module Aws::SNS
|
|
1275
1299
|
req.send_request(options)
|
1276
1300
|
end
|
1277
1301
|
|
1278
|
-
# Lists the calling account's current verified and
|
1279
|
-
# phone numbers in the SMS sandbox.
|
1302
|
+
# Lists the calling Amazon Web Services account's current verified and
|
1303
|
+
# pending destination phone numbers in the SMS sandbox.
|
1280
1304
|
#
|
1281
|
-
# When you start using Amazon SNS to send SMS messages, your
|
1282
|
-
# in the *SMS sandbox*. The SMS sandbox provides a
|
1283
|
-
# you to try Amazon SNS features without risking
|
1284
|
-
# SMS sender. While your
|
1285
|
-
#
|
1286
|
-
#
|
1287
|
-
#
|
1288
|
-
#
|
1305
|
+
# When you start using Amazon SNS to send SMS messages, your Amazon Web
|
1306
|
+
# Services account is in the *SMS sandbox*. The SMS sandbox provides a
|
1307
|
+
# safe environment for you to try Amazon SNS features without risking
|
1308
|
+
# your reputation as an SMS sender. While your Amazon Web Services
|
1309
|
+
# account is in the SMS sandbox, you can use all of the features of
|
1310
|
+
# Amazon SNS. However, you can send SMS messages only to verified
|
1311
|
+
# destination phone numbers. For more information, including how to move
|
1312
|
+
# out of the sandbox to send messages without restrictions, see [SMS
|
1313
|
+
# sandbox][1] in the *Amazon SNS Developer Guide*.
|
1289
1314
|
#
|
1290
1315
|
#
|
1291
1316
|
#
|
@@ -1525,10 +1550,10 @@ module Aws::SNS
|
|
1525
1550
|
# message depends on the notification protocol for each subscribed
|
1526
1551
|
# endpoint.
|
1527
1552
|
#
|
1528
|
-
# When a `messageId` is returned, the message
|
1529
|
-
#
|
1553
|
+
# When a `messageId` is returned, the message is saved and Amazon SNS
|
1554
|
+
# immediately deliverers it to subscribers.
|
1530
1555
|
#
|
1531
|
-
# To use the `Publish` action for
|
1556
|
+
# To use the `Publish` action for publishing a message to a mobile
|
1532
1557
|
# endpoint, such as an app on a Kindle device or mobile phone, you must
|
1533
1558
|
# specify the EndpointArn for the TargetArn parameter. The EndpointArn
|
1534
1559
|
# is returned when making a call with the `CreatePlatformEndpoint`
|
@@ -1538,7 +1563,7 @@ module Aws::SNS
|
|
1538
1563
|
# Platform-Specific Payloads in Messages to Mobile Devices][1].
|
1539
1564
|
#
|
1540
1565
|
# You can publish messages only to topics and endpoints in the same
|
1541
|
-
# Region.
|
1566
|
+
# Amazon Web Services Region.
|
1542
1567
|
#
|
1543
1568
|
#
|
1544
1569
|
#
|
@@ -1649,7 +1674,7 @@ module Aws::SNS
|
|
1649
1674
|
# @option params [String] :message_deduplication_id
|
1650
1675
|
# This parameter applies only to FIFO (first-in-first-out) topics. The
|
1651
1676
|
# `MessageDeduplicationId` can contain up to 128 alphanumeric characters
|
1652
|
-
# (a-z, A-Z, 0-9) and punctuation ``
|
1677
|
+
# `(a-z, A-Z, 0-9)` and punctuation ``
|
1653
1678
|
# (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
1654
1679
|
#
|
1655
1680
|
# Every message must have a unique `MessageDeduplicationId`, which is a
|
@@ -1664,8 +1689,8 @@ module Aws::SNS
|
|
1664
1689
|
#
|
1665
1690
|
# @option params [String] :message_group_id
|
1666
1691
|
# This parameter applies only to FIFO (first-in-first-out) topics. The
|
1667
|
-
# `MessageGroupId` can contain up to 128 alphanumeric characters (a-z,
|
1668
|
-
# A-Z, 0-9) and punctuation `` (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
1692
|
+
# `MessageGroupId` can contain up to 128 alphanumeric characters `(a-z,
|
1693
|
+
# A-Z, 0-9)` and punctuation `` (!"#$%&'()*+,-./:;<=>?@[\]^_`\{|\}~) ``.
|
1669
1694
|
#
|
1670
1695
|
# The `MessageGroupId` is a tag that specifies that a message belongs to
|
1671
1696
|
# a specific message group. Messages that belong to the same message
|
@@ -1712,6 +1737,92 @@ module Aws::SNS
|
|
1712
1737
|
req.send_request(options)
|
1713
1738
|
end
|
1714
1739
|
|
1740
|
+
# Publishes up to ten messages to the specified topic. This is a batch
|
1741
|
+
# version of `Publish`. For FIFO topics, multiple messages within a
|
1742
|
+
# single batch are published in the order they are sent, and messages
|
1743
|
+
# are deduplicated within the batch and across batches for 5 minutes.
|
1744
|
+
#
|
1745
|
+
# The result of publishing each message is reported individually in the
|
1746
|
+
# response. Because the batch request can result in a combination of
|
1747
|
+
# successful and unsuccessful actions, you should check for batch errors
|
1748
|
+
# even when the call returns an HTTP status code of `200`.
|
1749
|
+
#
|
1750
|
+
# The maximum allowed individual message size and the maximum total
|
1751
|
+
# payload size (the sum of the individual lengths of all of the batched
|
1752
|
+
# messages) are both 256 KB (262,144 bytes).
|
1753
|
+
#
|
1754
|
+
# Some actions take lists of parameters. These lists are specified using
|
1755
|
+
# the `param.n` notation. Values of `n` are integers starting from 1.
|
1756
|
+
# For example, a parameter list with two elements looks like this:
|
1757
|
+
#
|
1758
|
+
# &AttributeName.1=first
|
1759
|
+
#
|
1760
|
+
# &AttributeName.2=second
|
1761
|
+
#
|
1762
|
+
# If you send a batch message to a topic, Amazon SNS publishes the batch
|
1763
|
+
# message to each endpoint that is subscribed to the topic. The format
|
1764
|
+
# of the batch message depends on the notification protocol for each
|
1765
|
+
# subscribed endpoint.
|
1766
|
+
#
|
1767
|
+
# When a `messageId` is returned, the batch message is saved and Amazon
|
1768
|
+
# SNS immediately delivers the message to subscribers.
|
1769
|
+
#
|
1770
|
+
# @option params [required, String] :topic_arn
|
1771
|
+
# The Amazon resource name (ARN) of the topic you want to batch publish
|
1772
|
+
# to.
|
1773
|
+
#
|
1774
|
+
# @option params [required, Array<Types::PublishBatchRequestEntry>] :publish_batch_request_entries
|
1775
|
+
# A list of `PublishBatch` request entries to be sent to the SNS topic.
|
1776
|
+
#
|
1777
|
+
# @return [Types::PublishBatchResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1778
|
+
#
|
1779
|
+
# * {Types::PublishBatchResponse#successful #successful} => Array<Types::PublishBatchResultEntry>
|
1780
|
+
# * {Types::PublishBatchResponse#failed #failed} => Array<Types::BatchResultErrorEntry>
|
1781
|
+
#
|
1782
|
+
# @example Request syntax with placeholder values
|
1783
|
+
#
|
1784
|
+
# resp = client.publish_batch({
|
1785
|
+
# topic_arn: "topicARN", # required
|
1786
|
+
# publish_batch_request_entries: [ # required
|
1787
|
+
# {
|
1788
|
+
# id: "String", # required
|
1789
|
+
# message: "message", # required
|
1790
|
+
# subject: "subject",
|
1791
|
+
# message_structure: "messageStructure",
|
1792
|
+
# message_attributes: {
|
1793
|
+
# "String" => {
|
1794
|
+
# data_type: "String", # required
|
1795
|
+
# string_value: "String",
|
1796
|
+
# binary_value: "data",
|
1797
|
+
# },
|
1798
|
+
# },
|
1799
|
+
# message_deduplication_id: "String",
|
1800
|
+
# message_group_id: "String",
|
1801
|
+
# },
|
1802
|
+
# ],
|
1803
|
+
# })
|
1804
|
+
#
|
1805
|
+
# @example Response structure
|
1806
|
+
#
|
1807
|
+
# resp.successful #=> Array
|
1808
|
+
# resp.successful[0].id #=> String
|
1809
|
+
# resp.successful[0].message_id #=> String
|
1810
|
+
# resp.successful[0].sequence_number #=> String
|
1811
|
+
# resp.failed #=> Array
|
1812
|
+
# resp.failed[0].id #=> String
|
1813
|
+
# resp.failed[0].code #=> String
|
1814
|
+
# resp.failed[0].message #=> String
|
1815
|
+
# resp.failed[0].sender_fault #=> Boolean
|
1816
|
+
#
|
1817
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/PublishBatch AWS API Documentation
|
1818
|
+
#
|
1819
|
+
# @overload publish_batch(params = {})
|
1820
|
+
# @param [Hash] params ({})
|
1821
|
+
def publish_batch(params = {}, options = {})
|
1822
|
+
req = build_request(:publish_batch, params)
|
1823
|
+
req.send_request(options)
|
1824
|
+
end
|
1825
|
+
|
1715
1826
|
# Removes a statement from a topic's access control policy.
|
1716
1827
|
#
|
1717
1828
|
# @option params [required, String] :topic_arn
|
@@ -1808,15 +1919,34 @@ module Aws::SNS
|
|
1808
1919
|
# include the following:
|
1809
1920
|
#
|
1810
1921
|
# * `PlatformCredential` – The credential received from the notification
|
1811
|
-
# service.
|
1812
|
-
#
|
1813
|
-
#
|
1814
|
-
#
|
1922
|
+
# service.
|
1923
|
+
#
|
1924
|
+
# * For ADM, `PlatformCredential`is client secret.
|
1925
|
+
#
|
1926
|
+
# * For Apple Services using certificate credentials,
|
1927
|
+
# `PlatformCredential` is private key.
|
1928
|
+
#
|
1929
|
+
# * For Apple Services using token credentials, `PlatformCredential`
|
1930
|
+
# is signing key.
|
1931
|
+
#
|
1932
|
+
# * For GCM (Firebase Cloud Messaging), `PlatformCredential` is API
|
1933
|
+
# key.
|
1934
|
+
# ^
|
1815
1935
|
#
|
1816
1936
|
# * `PlatformPrincipal` – The principal received from the notification
|
1817
|
-
# service.
|
1818
|
-
#
|
1819
|
-
#
|
1937
|
+
# service.
|
1938
|
+
#
|
1939
|
+
# * For ADM, `PlatformPrincipal`is client id.
|
1940
|
+
#
|
1941
|
+
# * For Apple Services using certificate credentials,
|
1942
|
+
# `PlatformPrincipal` is SSL certificate.
|
1943
|
+
#
|
1944
|
+
# * For Apple Services using token credentials, `PlatformPrincipal` is
|
1945
|
+
# signing key ID.
|
1946
|
+
#
|
1947
|
+
# * For GCM (Firebase Cloud Messaging), there is no
|
1948
|
+
# `PlatformPrincipal`.
|
1949
|
+
# ^
|
1820
1950
|
#
|
1821
1951
|
# * `EventEndpointCreated` – Topic ARN to which `EndpointCreated` event
|
1822
1952
|
# notifications are sent.
|
@@ -1840,6 +1970,15 @@ module Aws::SNS
|
|
1840
1970
|
# * `SuccessFeedbackSampleRate` – Sample rate percentage (0-100) of
|
1841
1971
|
# successfully delivered messages.
|
1842
1972
|
#
|
1973
|
+
# The following attributes only apply to `APNs` token-based
|
1974
|
+
# authentication:
|
1975
|
+
#
|
1976
|
+
# * `ApplePlatformTeamID` – The identifier that's assigned to your
|
1977
|
+
# Apple developer account team.
|
1978
|
+
#
|
1979
|
+
# * `ApplePlatformBundleID` – The bundle identifier that's assigned to
|
1980
|
+
# your iOS app.
|
1981
|
+
#
|
1843
1982
|
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1844
1983
|
#
|
1845
1984
|
# @example Request syntax with placeholder values
|
@@ -1879,8 +2018,9 @@ module Aws::SNS
|
|
1879
2018
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sms_publish-to-phone.html
|
1880
2019
|
#
|
1881
2020
|
# @option params [required, Hash<String,String>] :attributes
|
1882
|
-
# The default settings for sending SMS messages from your
|
1883
|
-
# can set values for the following attribute
|
2021
|
+
# The default settings for sending SMS messages from your Amazon Web
|
2022
|
+
# Services account. You can set values for the following attribute
|
2023
|
+
# names:
|
1884
2024
|
#
|
1885
2025
|
# `MonthlySpendLimit` – The maximum amount in USD that you are willing
|
1886
2026
|
# to spend each month to send SMS messages. When Amazon SNS determines
|
@@ -1931,7 +2071,7 @@ module Aws::SNS
|
|
1931
2071
|
# daily SMS usage reports from Amazon SNS. Each day, Amazon SNS will
|
1932
2072
|
# deliver a usage report as a CSV file to the bucket. The report
|
1933
2073
|
# includes the following information for each SMS message that was
|
1934
|
-
# successfully delivered by your account:
|
2074
|
+
# successfully delivered by your Amazon Web Services account:
|
1935
2075
|
#
|
1936
2076
|
# * Time that the message was published (in UTC)
|
1937
2077
|
#
|
@@ -2132,8 +2272,8 @@ module Aws::SNS
|
|
2132
2272
|
|
2133
2273
|
# Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is
|
2134
2274
|
# HTTP/S or email, or if the endpoint and the topic are not in the same
|
2135
|
-
# account, the endpoint owner must run the
|
2136
|
-
# to confirm the subscription.
|
2275
|
+
# Amazon Web Services account, the endpoint owner must run the
|
2276
|
+
# `ConfirmSubscription` action to confirm the subscription.
|
2137
2277
|
#
|
2138
2278
|
# You call the `ConfirmSubscription` action with the token from the
|
2139
2279
|
# subscription response. Confirmation tokens are valid for three days.
|
@@ -2298,9 +2438,9 @@ module Aws::SNS
|
|
2298
2438
|
# * A new tag with a key identical to that of an existing tag overwrites
|
2299
2439
|
# the existing tag.
|
2300
2440
|
#
|
2301
|
-
# * Tagging actions are limited to 10 TPS per
|
2302
|
-
#
|
2303
|
-
# support request][2].
|
2441
|
+
# * Tagging actions are limited to 10 TPS per Amazon Web Services
|
2442
|
+
# account, per Amazon Web Services Region. If your application
|
2443
|
+
# requires a higher throughput, file a [technical support request][2].
|
2304
2444
|
#
|
2305
2445
|
#
|
2306
2446
|
#
|
@@ -2399,16 +2539,17 @@ module Aws::SNS
|
|
2399
2539
|
end
|
2400
2540
|
|
2401
2541
|
# Verifies a destination phone number with a one-time password (OTP) for
|
2402
|
-
# the calling account.
|
2542
|
+
# the calling Amazon Web Services account.
|
2403
2543
|
#
|
2404
|
-
# When you start using Amazon SNS to send SMS messages, your
|
2405
|
-
# in the *SMS sandbox*. The SMS sandbox provides a
|
2406
|
-
# you to try Amazon SNS features without risking
|
2407
|
-
# SMS sender. While your
|
2408
|
-
#
|
2409
|
-
#
|
2410
|
-
#
|
2411
|
-
#
|
2544
|
+
# When you start using Amazon SNS to send SMS messages, your Amazon Web
|
2545
|
+
# Services account is in the *SMS sandbox*. The SMS sandbox provides a
|
2546
|
+
# safe environment for you to try Amazon SNS features without risking
|
2547
|
+
# your reputation as an SMS sender. While your Amazon Web Services
|
2548
|
+
# account is in the SMS sandbox, you can use all of the features of
|
2549
|
+
# Amazon SNS. However, you can send SMS messages only to verified
|
2550
|
+
# destination phone numbers. For more information, including how to move
|
2551
|
+
# out of the sandbox to send messages without restrictions, see [SMS
|
2552
|
+
# sandbox][1] in the *Amazon SNS Developer Guide*.
|
2412
2553
|
#
|
2413
2554
|
#
|
2414
2555
|
#
|
@@ -2452,7 +2593,7 @@ module Aws::SNS
|
|
2452
2593
|
params: params,
|
2453
2594
|
config: config)
|
2454
2595
|
context[:gem_name] = 'aws-sdk-sns'
|
2455
|
-
context[:gem_version] = '1.
|
2596
|
+
context[:gem_version] = '1.49.0'
|
2456
2597
|
Seahorse::Client::Request.new(handlers, context)
|
2457
2598
|
end
|
2458
2599
|
|