aws-sdk-sns 1.25.1 → 1.30.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/lib/aws-sdk-sns.rb +4 -2
- data/lib/aws-sdk-sns/client.rb +138 -99
- data/lib/aws-sdk-sns/client_api.rb +2 -0
- data/lib/aws-sdk-sns/customizations.rb +2 -0
- data/lib/aws-sdk-sns/errors.rb +2 -0
- data/lib/aws-sdk-sns/message_verifier.rb +2 -0
- data/lib/aws-sdk-sns/platform_application.rb +19 -16
- data/lib/aws-sdk-sns/platform_endpoint.rb +2 -0
- data/lib/aws-sdk-sns/resource.rb +3 -1
- data/lib/aws-sdk-sns/subscription.rb +8 -1
- data/lib/aws-sdk-sns/topic.rb +16 -13
- data/lib/aws-sdk-sns/types.rb +122 -33
- 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: 7e668714dc4d73930de81431ca74a1450d96645a4c28d9c1c597f6266e4dc484
|
4
|
+
data.tar.gz: 468f0a09f42d130fb172a3a012898322eb3e18cd3bf516c843d9866ab7da8f2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4864308e82b91bbe2df517c69b327cafc56671c7437f34071e4c60e109a8e945e8df601ca5619596c839a44ee4856b0b30f8faa502643a295a1e10a1a042717
|
7
|
+
data.tar.gz: f11d25301facbaf4836fedd3d3b022cac89232389875fc466dbc078cde1c1ad7ff95c1a7dcdf56b670f29551716ed704cd6d0dd8a69902aa6755f74cf36ab158
|
data/lib/aws-sdk-sns.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -46,9 +48,9 @@ require_relative 'aws-sdk-sns/customizations'
|
|
46
48
|
#
|
47
49
|
# See {Errors} for more information.
|
48
50
|
#
|
49
|
-
#
|
51
|
+
# @!group service
|
50
52
|
module Aws::SNS
|
51
53
|
|
52
|
-
GEM_VERSION = '1.
|
54
|
+
GEM_VERSION = '1.30.0'
|
53
55
|
|
54
56
|
end
|
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -83,13 +85,28 @@ module Aws::SNS
|
|
83
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
84
86
|
# credentials.
|
85
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
86
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
87
103
|
# from an EC2 IMDS on an EC2 instance.
|
88
104
|
#
|
89
|
-
# * `Aws::
|
90
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
91
107
|
#
|
92
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
93
110
|
#
|
94
111
|
# When `:credentials` are not configured directly, the following
|
95
112
|
# locations will be searched for credentials:
|
@@ -99,10 +116,10 @@ module Aws::SNS
|
|
99
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
100
117
|
# * `~/.aws/credentials`
|
101
118
|
# * `~/.aws/config`
|
102
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
103
|
-
# very aggressive. Construct and pass an instance of
|
104
|
-
# `Aws::InstanceProfileCredentails`
|
105
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
106
123
|
#
|
107
124
|
# @option options [required, String] :region
|
108
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -427,25 +444,34 @@ module Aws::SNS
|
|
427
444
|
end
|
428
445
|
|
429
446
|
# Creates a platform application object for one of the supported push
|
430
|
-
# notification services, such as APNS and
|
431
|
-
# mobile apps may register. You must
|
432
|
-
# PlatformCredential attributes when
|
433
|
-
# `CreatePlatformApplication` action.
|
434
|
-
#
|
435
|
-
# PlatformPrincipal
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
440
|
-
#
|
441
|
-
#
|
442
|
-
#
|
443
|
-
#
|
444
|
-
#
|
445
|
-
#
|
446
|
-
#
|
447
|
-
#
|
448
|
-
#
|
447
|
+
# notification services, such as APNS and GCM (Firebase Cloud
|
448
|
+
# Messaging), to which devices and mobile apps may register. You must
|
449
|
+
# specify `PlatformPrincipal` and `PlatformCredential` attributes when
|
450
|
+
# using the `CreatePlatformApplication` action.
|
451
|
+
#
|
452
|
+
# `PlatformPrincipal` and `PlatformCredential` are received from the
|
453
|
+
# notification service.
|
454
|
+
#
|
455
|
+
# * For `ADM`, `PlatformPrincipal` is `client id` and
|
456
|
+
# `PlatformCredential` is `client secret`.
|
457
|
+
#
|
458
|
+
# * For `Baidu`, `PlatformPrincipal` is `API key` and
|
459
|
+
# `PlatformCredential` is `secret key`.
|
460
|
+
#
|
461
|
+
# * For `APNS` and `APNS_SANDBOX`, `PlatformPrincipal` is `SSL
|
462
|
+
# certificate` and `PlatformCredential` is `private key`.
|
463
|
+
#
|
464
|
+
# * For `GCM` (Firebase Cloud Messaging), there is no
|
465
|
+
# `PlatformPrincipal` and the `PlatformCredential` is `API key`.
|
466
|
+
#
|
467
|
+
# * For `MPNS`, `PlatformPrincipal` is `TLS certificate` and
|
468
|
+
# `PlatformCredential` is `private key`.
|
469
|
+
#
|
470
|
+
# * For `WNS`, `PlatformPrincipal` is `Package Security Identifier` and
|
471
|
+
# `PlatformCredential` is `secret key`.
|
472
|
+
#
|
473
|
+
# You can use the returned `PlatformApplicationArn` as an attribute for
|
474
|
+
# the `CreatePlatformEndpoint` action.
|
449
475
|
#
|
450
476
|
# @option params [required, String] :name
|
451
477
|
# Application names must be made up of only uppercase and lowercase
|
@@ -454,7 +480,7 @@ module Aws::SNS
|
|
454
480
|
#
|
455
481
|
# @option params [required, String] :platform
|
456
482
|
# The following platforms are supported: ADM (Amazon Device Messaging),
|
457
|
-
# APNS (Apple Push Notification Service), APNS\_SANDBOX, and
|
483
|
+
# APNS (Apple Push Notification Service), APNS\_SANDBOX, and GCM
|
458
484
|
# (Firebase Cloud Messaging).
|
459
485
|
#
|
460
486
|
# @option params [required, Hash<String,String>] :attributes
|
@@ -492,16 +518,16 @@ module Aws::SNS
|
|
492
518
|
end
|
493
519
|
|
494
520
|
# Creates an endpoint for a device and mobile app on one of the
|
495
|
-
# supported push notification services, such as
|
496
|
-
# `CreatePlatformEndpoint` requires the
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
#
|
501
|
-
#
|
502
|
-
#
|
503
|
-
#
|
504
|
-
#
|
521
|
+
# supported push notification services, such as GCM (Firebase Cloud
|
522
|
+
# Messaging) and APNS. `CreatePlatformEndpoint` requires the
|
523
|
+
# `PlatformApplicationArn` that is returned from
|
524
|
+
# `CreatePlatformApplication`. You can use the returned `EndpointArn` to
|
525
|
+
# send a message to a mobile app or by the `Subscribe` action for
|
526
|
+
# subscription to a topic. The `CreatePlatformEndpoint` action is
|
527
|
+
# idempotent, so if the requester already owns an endpoint with the same
|
528
|
+
# device token and attributes, that endpoint's ARN is returned without
|
529
|
+
# creating a new endpoint. For more information, see [Using Amazon SNS
|
530
|
+
# Mobile Push Notifications][1].
|
505
531
|
#
|
506
532
|
# When using `CreatePlatformEndpoint` with Baidu, two attributes must be
|
507
533
|
# provided: ChannelId and UserId. The token field must also contain the
|
@@ -522,8 +548,8 @@ module Aws::SNS
|
|
522
548
|
# device. The specific name for Token will vary, depending on which
|
523
549
|
# notification service is being used. For example, when using APNS as
|
524
550
|
# the notification service, you need the device token. Alternatively,
|
525
|
-
# when using
|
526
|
-
# registration ID.
|
551
|
+
# when using GCM (Firebase Cloud Messaging) or ADM, the device token
|
552
|
+
# equivalent is called the registration ID.
|
527
553
|
#
|
528
554
|
# @option params [String] :custom_user_data
|
529
555
|
# Arbitrary user data to associate with the endpoint. Amazon SNS does
|
@@ -683,8 +709,9 @@ module Aws::SNS
|
|
683
709
|
end
|
684
710
|
|
685
711
|
# Deletes a platform application object for one of the supported push
|
686
|
-
# notification services, such as APNS and
|
687
|
-
# [Using Amazon SNS Mobile Push
|
712
|
+
# notification services, such as APNS and GCM (Firebase Cloud
|
713
|
+
# Messaging). For more information, see [Using Amazon SNS Mobile Push
|
714
|
+
# Notifications][1].
|
688
715
|
#
|
689
716
|
#
|
690
717
|
#
|
@@ -736,8 +763,9 @@ module Aws::SNS
|
|
736
763
|
end
|
737
764
|
|
738
765
|
# Retrieves the endpoint attributes for a device on one of the supported
|
739
|
-
# push notification services, such as
|
740
|
-
# information, see [Using Amazon SNS Mobile Push
|
766
|
+
# push notification services, such as GCM (Firebase Cloud Messaging) and
|
767
|
+
# APNS. For more information, see [Using Amazon SNS Mobile Push
|
768
|
+
# Notifications][1].
|
741
769
|
#
|
742
770
|
#
|
743
771
|
#
|
@@ -771,8 +799,9 @@ module Aws::SNS
|
|
771
799
|
end
|
772
800
|
|
773
801
|
# Retrieves the attributes of the platform application object for the
|
774
|
-
# supported push notification services, such as APNS and
|
775
|
-
# information, see [Using Amazon SNS Mobile
|
802
|
+
# supported push notification services, such as APNS and GCM (Firebase
|
803
|
+
# Cloud Messaging). For more information, see [Using Amazon SNS Mobile
|
804
|
+
# Push Notifications][1].
|
776
805
|
#
|
777
806
|
#
|
778
807
|
#
|
@@ -906,11 +935,11 @@ module Aws::SNS
|
|
906
935
|
end
|
907
936
|
|
908
937
|
# Lists the endpoints and endpoint attributes for devices in a supported
|
909
|
-
# push notification service, such as
|
910
|
-
# `ListEndpointsByPlatformApplication` are
|
911
|
-
# limited list of endpoints, up to 100. If
|
912
|
-
# available after the first page results, then a
|
913
|
-
# be returned. To receive the next page, you call
|
938
|
+
# push notification service, such as GCM (Firebase Cloud Messaging) and
|
939
|
+
# APNS. The results for `ListEndpointsByPlatformApplication` are
|
940
|
+
# paginated and return a limited list of endpoints, up to 100. If
|
941
|
+
# additional records are available after the first page results, then a
|
942
|
+
# NextToken string will be returned. To receive the next page, you call
|
914
943
|
# `ListEndpointsByPlatformApplication` again using the NextToken string
|
915
944
|
# received from the previous call. When there are no more records to
|
916
945
|
# return, NextToken will be null. For more information, see [Using
|
@@ -1005,14 +1034,15 @@ module Aws::SNS
|
|
1005
1034
|
end
|
1006
1035
|
|
1007
1036
|
# Lists the platform application objects for the supported push
|
1008
|
-
# notification services, such as APNS and
|
1009
|
-
# `ListPlatformApplications` are paginated
|
1010
|
-
# applications, up to 100. If additional
|
1011
|
-
# first page results, then a NextToken
|
1012
|
-
# receive the next page, you call
|
1013
|
-
# NextToken string received from
|
1014
|
-
#
|
1015
|
-
# see [Using Amazon SNS
|
1037
|
+
# notification services, such as APNS and GCM (Firebase Cloud
|
1038
|
+
# Messaging). The results for `ListPlatformApplications` are paginated
|
1039
|
+
# and return a limited list of applications, up to 100. If additional
|
1040
|
+
# records are available after the first page results, then a NextToken
|
1041
|
+
# string will be returned. To receive the next page, you call
|
1042
|
+
# `ListPlatformApplications` using the NextToken string received from
|
1043
|
+
# the previous call. When there are no more records to return,
|
1044
|
+
# `NextToken` will be null. For more information, see [Using Amazon SNS
|
1045
|
+
# Mobile Push Notifications][1].
|
1016
1046
|
#
|
1017
1047
|
# This action is throttled at 15 transactions per second (TPS).
|
1018
1048
|
#
|
@@ -1243,8 +1273,9 @@ module Aws::SNS
|
|
1243
1273
|
req.send_request(options)
|
1244
1274
|
end
|
1245
1275
|
|
1246
|
-
# Sends a message to an Amazon SNS topic
|
1247
|
-
#
|
1276
|
+
# Sends a message to an Amazon SNS topic, a text message (SMS message)
|
1277
|
+
# directly to a phone number, or a message to a mobile platform endpoint
|
1278
|
+
# (when you specify the `TargetArn`).
|
1248
1279
|
#
|
1249
1280
|
# If you send a message to a topic, Amazon SNS delivers the message to
|
1250
1281
|
# each endpoint that is subscribed to the topic. The format of the
|
@@ -1263,6 +1294,9 @@ module Aws::SNS
|
|
1263
1294
|
# For more information about formatting messages, see [Send Custom
|
1264
1295
|
# Platform-Specific Payloads in Messages to Mobile Devices][1].
|
1265
1296
|
#
|
1297
|
+
# You can publish messages only to topics and endpoints in the same AWS
|
1298
|
+
# Region.
|
1299
|
+
#
|
1266
1300
|
#
|
1267
1301
|
#
|
1268
1302
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-custommessage.html
|
@@ -1431,8 +1465,9 @@ module Aws::SNS
|
|
1431
1465
|
end
|
1432
1466
|
|
1433
1467
|
# Sets the attributes for an endpoint for a device on one of the
|
1434
|
-
# supported push notification services, such as
|
1435
|
-
# information, see [Using Amazon SNS
|
1468
|
+
# supported push notification services, such as GCM (Firebase Cloud
|
1469
|
+
# Messaging) and APNS. For more information, see [Using Amazon SNS
|
1470
|
+
# Mobile Push Notifications][1].
|
1436
1471
|
#
|
1437
1472
|
#
|
1438
1473
|
#
|
@@ -1480,11 +1515,11 @@ module Aws::SNS
|
|
1480
1515
|
end
|
1481
1516
|
|
1482
1517
|
# Sets the attributes of the platform application object for the
|
1483
|
-
# supported push notification services, such as APNS and
|
1484
|
-
# information, see [Using Amazon SNS Mobile
|
1485
|
-
# information on configuring attributes for
|
1486
|
-
# [Using Amazon SNS Application Attributes
|
1487
|
-
# Status][2].
|
1518
|
+
# supported push notification services, such as APNS and GCM (Firebase
|
1519
|
+
# Cloud Messaging). For more information, see [Using Amazon SNS Mobile
|
1520
|
+
# Push Notifications][1]. For information on configuring attributes for
|
1521
|
+
# message delivery status, see [Using Amazon SNS Application Attributes
|
1522
|
+
# for Message Delivery Status][2].
|
1488
1523
|
#
|
1489
1524
|
#
|
1490
1525
|
#
|
@@ -1499,26 +1534,27 @@ module Aws::SNS
|
|
1499
1534
|
# include the following:
|
1500
1535
|
#
|
1501
1536
|
# * `PlatformCredential` – The credential received from the notification
|
1502
|
-
# service. For APNS
|
1503
|
-
#
|
1504
|
-
# PlatformCredential is
|
1537
|
+
# service. For `APNS` and `APNS_SANDBOX`, `PlatformCredential` is
|
1538
|
+
# `private key`. For `GCM` (Firebase Cloud Messaging),
|
1539
|
+
# `PlatformCredential` is `API key`. For `ADM`, `PlatformCredential`
|
1540
|
+
# is `client secret`.
|
1505
1541
|
#
|
1506
1542
|
# * `PlatformPrincipal` – The principal received from the notification
|
1507
|
-
# service. For APNS
|
1508
|
-
# certificate
|
1509
|
-
# PlatformPrincipal is
|
1543
|
+
# service. For `APNS` and `APNS_SANDBOX`, `PlatformPrincipal` is `SSL
|
1544
|
+
# certificate`. For `GCM` (Firebase Cloud Messaging), there is no
|
1545
|
+
# `PlatformPrincipal`. For `ADM`, `PlatformPrincipal` is `client id`.
|
1510
1546
|
#
|
1511
|
-
# * `EventEndpointCreated` – Topic ARN to which EndpointCreated event
|
1512
|
-
# notifications
|
1547
|
+
# * `EventEndpointCreated` – Topic ARN to which `EndpointCreated` event
|
1548
|
+
# notifications are sent.
|
1513
1549
|
#
|
1514
|
-
# * `EventEndpointDeleted` – Topic ARN to which EndpointDeleted event
|
1515
|
-
# notifications
|
1550
|
+
# * `EventEndpointDeleted` – Topic ARN to which `EndpointDeleted` event
|
1551
|
+
# notifications are sent.
|
1516
1552
|
#
|
1517
|
-
# * `EventEndpointUpdated` – Topic ARN to which EndpointUpdate event
|
1518
|
-
# notifications
|
1553
|
+
# * `EventEndpointUpdated` – Topic ARN to which `EndpointUpdate` event
|
1554
|
+
# notifications are sent.
|
1519
1555
|
#
|
1520
|
-
# * `EventDeliveryFailure` – Topic ARN to which DeliveryFailure event
|
1521
|
-
# notifications
|
1556
|
+
# * `EventDeliveryFailure` – Topic ARN to which `DeliveryFailure` event
|
1557
|
+
# notifications are sent upon Direct Publish delivery failure
|
1522
1558
|
# (permanent) to one of the application's endpoints.
|
1523
1559
|
#
|
1524
1560
|
# * `SuccessFeedbackRoleArn` – IAM role ARN used to give Amazon SNS
|
@@ -1775,11 +1811,13 @@ module Aws::SNS
|
|
1775
1811
|
req.send_request(options)
|
1776
1812
|
end
|
1777
1813
|
|
1778
|
-
#
|
1779
|
-
#
|
1780
|
-
# owner must
|
1781
|
-
# the
|
1782
|
-
#
|
1814
|
+
# Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is
|
1815
|
+
# HTTP/S or email, or if the endpoint and the topic are not in the same
|
1816
|
+
# AWS account, the endpoint owner must the `ConfirmSubscription` action
|
1817
|
+
# to confirm the subscription.
|
1818
|
+
#
|
1819
|
+
# You call the `ConfirmSubscription` action with the token from the
|
1820
|
+
# subscription response. Confirmation tokens are valid for three days.
|
1783
1821
|
#
|
1784
1822
|
# This action is throttled at 100 transactions per second (TPS).
|
1785
1823
|
#
|
@@ -1811,11 +1849,11 @@ module Aws::SNS
|
|
1811
1849
|
# The endpoint that you want to receive notifications. Endpoints vary by
|
1812
1850
|
# protocol:
|
1813
1851
|
#
|
1814
|
-
# * For the `http` protocol, the endpoint is
|
1815
|
-
# `http://`
|
1852
|
+
# * For the `http` protocol, the (public) endpoint is a URL beginning
|
1853
|
+
# with `http://`
|
1816
1854
|
#
|
1817
|
-
# * For the `https` protocol, the endpoint is a URL beginning
|
1818
|
-
# `https://`
|
1855
|
+
# * For the `https` protocol, the (public) endpoint is a URL beginning
|
1856
|
+
# with `https://`
|
1819
1857
|
#
|
1820
1858
|
# * For the `email` protocol, the endpoint is an email address
|
1821
1859
|
#
|
@@ -1862,16 +1900,17 @@ module Aws::SNS
|
|
1862
1900
|
# Sets whether the response from the `Subscribe` request includes the
|
1863
1901
|
# subscription ARN, even if the subscription is not yet confirmed.
|
1864
1902
|
#
|
1865
|
-
# * If you
|
1866
|
-
#
|
1903
|
+
# * If you set this parameter to `true`, the response includes the ARN
|
1904
|
+
# in all cases, even if the subscription is not yet confirmed. In
|
1905
|
+
# addition to the ARN for confirmed subscriptions, the response also
|
1906
|
+
# includes the `pending subscription` ARN value for subscriptions that
|
1907
|
+
# aren't yet confirmed. A subscription becomes confirmed when the
|
1908
|
+
# subscriber calls the `ConfirmSubscription` action with a
|
1909
|
+
# confirmation token.
|
1910
|
+
#
|
1911
|
+
# ^
|
1867
1912
|
#
|
1868
|
-
# * If you don't have the subscription ARN returned, in addition to the
|
1869
|
-
# ARN for confirmed subscriptions, the response also includes the
|
1870
|
-
# `pending subscription` ARN value for subscriptions that aren't yet
|
1871
|
-
# confirmed. A subscription becomes confirmed when the subscriber
|
1872
|
-
# calls the `ConfirmSubscription` action with a confirmation token.
|
1873
1913
|
#
|
1874
|
-
# If you set this parameter to `true`, .
|
1875
1914
|
#
|
1876
1915
|
# The default value is `false`.
|
1877
1916
|
#
|
@@ -2032,7 +2071,7 @@ module Aws::SNS
|
|
2032
2071
|
params: params,
|
2033
2072
|
config: config)
|
2034
2073
|
context[:gem_name] = 'aws-sdk-sns'
|
2035
|
-
context[:gem_version] = '1.
|
2074
|
+
context[:gem_version] = '1.30.0'
|
2036
2075
|
Seahorse::Client::Request.new(handlers, context)
|
2037
2076
|
end
|
2038
2077
|
|
data/lib/aws-sdk-sns/errors.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# WARNING ABOUT GENERATED CODE
|
2
4
|
#
|
3
5
|
# This file is generated. See the contributing guide for more information:
|
@@ -103,8 +105,8 @@ module Aws::SNS
|
|
103
105
|
# device. The specific name for Token will vary, depending on which
|
104
106
|
# notification service is being used. For example, when using APNS as
|
105
107
|
# the notification service, you need the device token. Alternatively,
|
106
|
-
# when using
|
107
|
-
# registration ID.
|
108
|
+
# when using GCM (Firebase Cloud Messaging) or ADM, the device token
|
109
|
+
# equivalent is called the registration ID.
|
108
110
|
# @option options [String] :custom_user_data
|
109
111
|
# Arbitrary user data to associate with the endpoint. Amazon SNS does
|
110
112
|
# not use this data. The data must be in UTF-8 format and less than 2KB.
|
@@ -148,26 +150,27 @@ module Aws::SNS
|
|
148
150
|
# include the following:
|
149
151
|
#
|
150
152
|
# * `PlatformCredential` – The credential received from the notification
|
151
|
-
# service. For APNS
|
152
|
-
#
|
153
|
-
# PlatformCredential is
|
153
|
+
# service. For `APNS` and `APNS_SANDBOX`, `PlatformCredential` is
|
154
|
+
# `private key`. For `GCM` (Firebase Cloud Messaging),
|
155
|
+
# `PlatformCredential` is `API key`. For `ADM`, `PlatformCredential`
|
156
|
+
# is `client secret`.
|
154
157
|
#
|
155
158
|
# * `PlatformPrincipal` – The principal received from the notification
|
156
|
-
# service. For APNS
|
157
|
-
# certificate
|
158
|
-
# PlatformPrincipal is
|
159
|
+
# service. For `APNS` and `APNS_SANDBOX`, `PlatformPrincipal` is `SSL
|
160
|
+
# certificate`. For `GCM` (Firebase Cloud Messaging), there is no
|
161
|
+
# `PlatformPrincipal`. For `ADM`, `PlatformPrincipal` is `client id`.
|
159
162
|
#
|
160
|
-
# * `EventEndpointCreated` – Topic ARN to which EndpointCreated event
|
161
|
-
# notifications
|
163
|
+
# * `EventEndpointCreated` – Topic ARN to which `EndpointCreated` event
|
164
|
+
# notifications are sent.
|
162
165
|
#
|
163
|
-
# * `EventEndpointDeleted` – Topic ARN to which EndpointDeleted event
|
164
|
-
# notifications
|
166
|
+
# * `EventEndpointDeleted` – Topic ARN to which `EndpointDeleted` event
|
167
|
+
# notifications are sent.
|
165
168
|
#
|
166
|
-
# * `EventEndpointUpdated` – Topic ARN to which EndpointUpdate event
|
167
|
-
# notifications
|
169
|
+
# * `EventEndpointUpdated` – Topic ARN to which `EndpointUpdate` event
|
170
|
+
# notifications are sent.
|
168
171
|
#
|
169
|
-
# * `EventDeliveryFailure` – Topic ARN to which DeliveryFailure event
|
170
|
-
# notifications
|
172
|
+
# * `EventDeliveryFailure` – Topic ARN to which `DeliveryFailure` event
|
173
|
+
# notifications are sent upon Direct Publish delivery failure
|
171
174
|
# (permanent) to one of the application's endpoints.
|
172
175
|
#
|
173
176
|
# * `SuccessFeedbackRoleArn` – IAM role ARN used to give Amazon SNS
|