aws-sdk-sns 1.24.0 → 1.29.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 +3 -1
- data/lib/aws-sdk-sns/client.rb +119 -93
- 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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 287a854cd0d72e977abcc32963f8d40ec6ba5c4b95124e884d33cb2a4c758101
|
4
|
+
data.tar.gz: c9d602b5b3a121c052bf358a4922288e802ba6ce97ddc95982fe4dbf4b67c168
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e69d5d4b49a28e50237f2ffac3c8aaa419682cd004bb21f82669538561ea8d9798bf5d3326b49cca40cce74d35ff7c96c8c966a59c22b679405e99baf117357
|
7
|
+
data.tar.gz: 85036ba044a0eaf7a0bb4ff42e73f899d4f1f577541fe09589399462057ca1ac16a089091cbf963d8ab5e246d211106e18866045184775a928ab9b2caa5113dc
|
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:
|
@@ -49,6 +51,6 @@ require_relative 'aws-sdk-sns/customizations'
|
|
49
51
|
# @service
|
50
52
|
module Aws::SNS
|
51
53
|
|
52
|
-
GEM_VERSION = '1.
|
54
|
+
GEM_VERSION = '1.29.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:
|
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
|
|
24
26
|
require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
25
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
26
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
|
+
require 'aws-sdk-core/plugins/http_checksum.rb'
|
27
30
|
require 'aws-sdk-core/plugins/signature_v4.rb'
|
28
31
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
29
32
|
|
@@ -69,6 +72,7 @@ module Aws::SNS
|
|
69
72
|
add_plugin(Aws::Plugins::ClientMetricsPlugin)
|
70
73
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
71
74
|
add_plugin(Aws::Plugins::TransferEncoding)
|
75
|
+
add_plugin(Aws::Plugins::HttpChecksum)
|
72
76
|
add_plugin(Aws::Plugins::SignatureV4)
|
73
77
|
add_plugin(Aws::Plugins::Protocols::Query)
|
74
78
|
|
@@ -161,7 +165,7 @@ module Aws::SNS
|
|
161
165
|
# @option options [String] :endpoint
|
162
166
|
# The client endpoint is normally constructed from the `:region`
|
163
167
|
# option. You should only configure an `:endpoint` when connecting
|
164
|
-
# to test endpoints. This should be a valid HTTP(S) URI.
|
168
|
+
# to test or custom endpoints. This should be a valid HTTP(S) URI.
|
165
169
|
#
|
166
170
|
# @option options [Integer] :endpoint_cache_max_entries (1000)
|
167
171
|
# Used for the maximum size limit of the LRU cache storing endpoints data
|
@@ -425,25 +429,34 @@ module Aws::SNS
|
|
425
429
|
end
|
426
430
|
|
427
431
|
# Creates a platform application object for one of the supported push
|
428
|
-
# notification services, such as APNS and
|
429
|
-
# mobile apps may register. You must
|
430
|
-
# PlatformCredential attributes when
|
431
|
-
# `CreatePlatformApplication` action.
|
432
|
-
#
|
433
|
-
# PlatformPrincipal
|
434
|
-
#
|
435
|
-
#
|
436
|
-
#
|
437
|
-
#
|
438
|
-
#
|
439
|
-
#
|
440
|
-
#
|
441
|
-
#
|
442
|
-
#
|
443
|
-
#
|
444
|
-
#
|
445
|
-
#
|
446
|
-
#
|
432
|
+
# notification services, such as APNS and GCM (Firebase Cloud
|
433
|
+
# Messaging), to which devices and mobile apps may register. You must
|
434
|
+
# specify `PlatformPrincipal` and `PlatformCredential` attributes when
|
435
|
+
# using the `CreatePlatformApplication` action.
|
436
|
+
#
|
437
|
+
# `PlatformPrincipal` and `PlatformCredential` are received from the
|
438
|
+
# notification service.
|
439
|
+
#
|
440
|
+
# * For `ADM`, `PlatformPrincipal` is `client id` and
|
441
|
+
# `PlatformCredential` is `client secret`.
|
442
|
+
#
|
443
|
+
# * For `Baidu`, `PlatformPrincipal` is `API key` and
|
444
|
+
# `PlatformCredential` is `secret key`.
|
445
|
+
#
|
446
|
+
# * For `APNS` and `APNS_SANDBOX`, `PlatformPrincipal` is `SSL
|
447
|
+
# certificate` and `PlatformCredential` is `private key`.
|
448
|
+
#
|
449
|
+
# * For `GCM` (Firebase Cloud Messaging), there is no
|
450
|
+
# `PlatformPrincipal` and the `PlatformCredential` is `API key`.
|
451
|
+
#
|
452
|
+
# * For `MPNS`, `PlatformPrincipal` is `TLS certificate` and
|
453
|
+
# `PlatformCredential` is `private key`.
|
454
|
+
#
|
455
|
+
# * For `WNS`, `PlatformPrincipal` is `Package Security Identifier` and
|
456
|
+
# `PlatformCredential` is `secret key`.
|
457
|
+
#
|
458
|
+
# You can use the returned `PlatformApplicationArn` as an attribute for
|
459
|
+
# the `CreatePlatformEndpoint` action.
|
447
460
|
#
|
448
461
|
# @option params [required, String] :name
|
449
462
|
# Application names must be made up of only uppercase and lowercase
|
@@ -452,7 +465,7 @@ module Aws::SNS
|
|
452
465
|
#
|
453
466
|
# @option params [required, String] :platform
|
454
467
|
# The following platforms are supported: ADM (Amazon Device Messaging),
|
455
|
-
# APNS (Apple Push Notification Service), APNS\_SANDBOX, and
|
468
|
+
# APNS (Apple Push Notification Service), APNS\_SANDBOX, and GCM
|
456
469
|
# (Firebase Cloud Messaging).
|
457
470
|
#
|
458
471
|
# @option params [required, Hash<String,String>] :attributes
|
@@ -490,16 +503,16 @@ module Aws::SNS
|
|
490
503
|
end
|
491
504
|
|
492
505
|
# Creates an endpoint for a device and mobile app on one of the
|
493
|
-
# supported push notification services, such as
|
494
|
-
# `CreatePlatformEndpoint` requires the
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
#
|
501
|
-
#
|
502
|
-
#
|
506
|
+
# supported push notification services, such as GCM (Firebase Cloud
|
507
|
+
# Messaging) and APNS. `CreatePlatformEndpoint` requires the
|
508
|
+
# `PlatformApplicationArn` that is returned from
|
509
|
+
# `CreatePlatformApplication`. You can use the returned `EndpointArn` to
|
510
|
+
# send a message to a mobile app or by the `Subscribe` action for
|
511
|
+
# subscription to a topic. The `CreatePlatformEndpoint` action is
|
512
|
+
# idempotent, so if the requester already owns an endpoint with the same
|
513
|
+
# device token and attributes, that endpoint's ARN is returned without
|
514
|
+
# creating a new endpoint. For more information, see [Using Amazon SNS
|
515
|
+
# Mobile Push Notifications][1].
|
503
516
|
#
|
504
517
|
# When using `CreatePlatformEndpoint` with Baidu, two attributes must be
|
505
518
|
# provided: ChannelId and UserId. The token field must also contain the
|
@@ -520,8 +533,8 @@ module Aws::SNS
|
|
520
533
|
# device. The specific name for Token will vary, depending on which
|
521
534
|
# notification service is being used. For example, when using APNS as
|
522
535
|
# the notification service, you need the device token. Alternatively,
|
523
|
-
# when using
|
524
|
-
# registration ID.
|
536
|
+
# when using GCM (Firebase Cloud Messaging) or ADM, the device token
|
537
|
+
# equivalent is called the registration ID.
|
525
538
|
#
|
526
539
|
# @option params [String] :custom_user_data
|
527
540
|
# Arbitrary user data to associate with the endpoint. Amazon SNS does
|
@@ -681,8 +694,9 @@ module Aws::SNS
|
|
681
694
|
end
|
682
695
|
|
683
696
|
# Deletes a platform application object for one of the supported push
|
684
|
-
# notification services, such as APNS and
|
685
|
-
# [Using Amazon SNS Mobile Push
|
697
|
+
# notification services, such as APNS and GCM (Firebase Cloud
|
698
|
+
# Messaging). For more information, see [Using Amazon SNS Mobile Push
|
699
|
+
# Notifications][1].
|
686
700
|
#
|
687
701
|
#
|
688
702
|
#
|
@@ -734,8 +748,9 @@ module Aws::SNS
|
|
734
748
|
end
|
735
749
|
|
736
750
|
# Retrieves the endpoint attributes for a device on one of the supported
|
737
|
-
# push notification services, such as
|
738
|
-
# information, see [Using Amazon SNS Mobile Push
|
751
|
+
# push notification services, such as GCM (Firebase Cloud Messaging) and
|
752
|
+
# APNS. For more information, see [Using Amazon SNS Mobile Push
|
753
|
+
# Notifications][1].
|
739
754
|
#
|
740
755
|
#
|
741
756
|
#
|
@@ -769,8 +784,9 @@ module Aws::SNS
|
|
769
784
|
end
|
770
785
|
|
771
786
|
# Retrieves the attributes of the platform application object for the
|
772
|
-
# supported push notification services, such as APNS and
|
773
|
-
# information, see [Using Amazon SNS Mobile
|
787
|
+
# supported push notification services, such as APNS and GCM (Firebase
|
788
|
+
# Cloud Messaging). For more information, see [Using Amazon SNS Mobile
|
789
|
+
# Push Notifications][1].
|
774
790
|
#
|
775
791
|
#
|
776
792
|
#
|
@@ -904,11 +920,11 @@ module Aws::SNS
|
|
904
920
|
end
|
905
921
|
|
906
922
|
# Lists the endpoints and endpoint attributes for devices in a supported
|
907
|
-
# push notification service, such as
|
908
|
-
# `ListEndpointsByPlatformApplication` are
|
909
|
-
# limited list of endpoints, up to 100. If
|
910
|
-
# available after the first page results, then a
|
911
|
-
# be returned. To receive the next page, you call
|
923
|
+
# push notification service, such as GCM (Firebase Cloud Messaging) and
|
924
|
+
# APNS. The results for `ListEndpointsByPlatformApplication` are
|
925
|
+
# paginated and return a limited list of endpoints, up to 100. If
|
926
|
+
# additional records are available after the first page results, then a
|
927
|
+
# NextToken string will be returned. To receive the next page, you call
|
912
928
|
# `ListEndpointsByPlatformApplication` again using the NextToken string
|
913
929
|
# received from the previous call. When there are no more records to
|
914
930
|
# return, NextToken will be null. For more information, see [Using
|
@@ -1003,14 +1019,15 @@ module Aws::SNS
|
|
1003
1019
|
end
|
1004
1020
|
|
1005
1021
|
# Lists the platform application objects for the supported push
|
1006
|
-
# notification services, such as APNS and
|
1007
|
-
# `ListPlatformApplications` are paginated
|
1008
|
-
# applications, up to 100. If additional
|
1009
|
-
# first page results, then a NextToken
|
1010
|
-
# receive the next page, you call
|
1011
|
-
# NextToken string received from
|
1012
|
-
#
|
1013
|
-
# see [Using Amazon SNS
|
1022
|
+
# notification services, such as APNS and GCM (Firebase Cloud
|
1023
|
+
# Messaging). The results for `ListPlatformApplications` are paginated
|
1024
|
+
# and return a limited list of applications, up to 100. If additional
|
1025
|
+
# records are available after the first page results, then a NextToken
|
1026
|
+
# string will be returned. To receive the next page, you call
|
1027
|
+
# `ListPlatformApplications` using the NextToken string received from
|
1028
|
+
# the previous call. When there are no more records to return,
|
1029
|
+
# `NextToken` will be null. For more information, see [Using Amazon SNS
|
1030
|
+
# Mobile Push Notifications][1].
|
1014
1031
|
#
|
1015
1032
|
# This action is throttled at 15 transactions per second (TPS).
|
1016
1033
|
#
|
@@ -1241,8 +1258,9 @@ module Aws::SNS
|
|
1241
1258
|
req.send_request(options)
|
1242
1259
|
end
|
1243
1260
|
|
1244
|
-
# Sends a message to an Amazon SNS topic
|
1245
|
-
#
|
1261
|
+
# Sends a message to an Amazon SNS topic, a text message (SMS message)
|
1262
|
+
# directly to a phone number, or a message to a mobile platform endpoint
|
1263
|
+
# (when you specify the `TargetArn`).
|
1246
1264
|
#
|
1247
1265
|
# If you send a message to a topic, Amazon SNS delivers the message to
|
1248
1266
|
# each endpoint that is subscribed to the topic. The format of the
|
@@ -1261,6 +1279,9 @@ module Aws::SNS
|
|
1261
1279
|
# For more information about formatting messages, see [Send Custom
|
1262
1280
|
# Platform-Specific Payloads in Messages to Mobile Devices][1].
|
1263
1281
|
#
|
1282
|
+
# You can publish messages only to topics and endpoints in the same AWS
|
1283
|
+
# Region.
|
1284
|
+
#
|
1264
1285
|
#
|
1265
1286
|
#
|
1266
1287
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-custommessage.html
|
@@ -1429,8 +1450,9 @@ module Aws::SNS
|
|
1429
1450
|
end
|
1430
1451
|
|
1431
1452
|
# Sets the attributes for an endpoint for a device on one of the
|
1432
|
-
# supported push notification services, such as
|
1433
|
-
# information, see [Using Amazon SNS
|
1453
|
+
# supported push notification services, such as GCM (Firebase Cloud
|
1454
|
+
# Messaging) and APNS. For more information, see [Using Amazon SNS
|
1455
|
+
# Mobile Push Notifications][1].
|
1434
1456
|
#
|
1435
1457
|
#
|
1436
1458
|
#
|
@@ -1478,11 +1500,11 @@ module Aws::SNS
|
|
1478
1500
|
end
|
1479
1501
|
|
1480
1502
|
# Sets the attributes of the platform application object for the
|
1481
|
-
# supported push notification services, such as APNS and
|
1482
|
-
# information, see [Using Amazon SNS Mobile
|
1483
|
-
# information on configuring attributes for
|
1484
|
-
# [Using Amazon SNS Application Attributes
|
1485
|
-
# Status][2].
|
1503
|
+
# supported push notification services, such as APNS and GCM (Firebase
|
1504
|
+
# Cloud Messaging). For more information, see [Using Amazon SNS Mobile
|
1505
|
+
# Push Notifications][1]. For information on configuring attributes for
|
1506
|
+
# message delivery status, see [Using Amazon SNS Application Attributes
|
1507
|
+
# for Message Delivery Status][2].
|
1486
1508
|
#
|
1487
1509
|
#
|
1488
1510
|
#
|
@@ -1497,26 +1519,27 @@ module Aws::SNS
|
|
1497
1519
|
# include the following:
|
1498
1520
|
#
|
1499
1521
|
# * `PlatformCredential` – The credential received from the notification
|
1500
|
-
# service. For APNS
|
1501
|
-
#
|
1502
|
-
# PlatformCredential is
|
1522
|
+
# service. For `APNS` and `APNS_SANDBOX`, `PlatformCredential` is
|
1523
|
+
# `private key`. For `GCM` (Firebase Cloud Messaging),
|
1524
|
+
# `PlatformCredential` is `API key`. For `ADM`, `PlatformCredential`
|
1525
|
+
# is `client secret`.
|
1503
1526
|
#
|
1504
1527
|
# * `PlatformPrincipal` – The principal received from the notification
|
1505
|
-
# service. For APNS
|
1506
|
-
# certificate
|
1507
|
-
# PlatformPrincipal is
|
1528
|
+
# service. For `APNS` and `APNS_SANDBOX`, `PlatformPrincipal` is `SSL
|
1529
|
+
# certificate`. For `GCM` (Firebase Cloud Messaging), there is no
|
1530
|
+
# `PlatformPrincipal`. For `ADM`, `PlatformPrincipal` is `client id`.
|
1508
1531
|
#
|
1509
|
-
# * `EventEndpointCreated` – Topic ARN to which EndpointCreated event
|
1510
|
-
# notifications
|
1532
|
+
# * `EventEndpointCreated` – Topic ARN to which `EndpointCreated` event
|
1533
|
+
# notifications are sent.
|
1511
1534
|
#
|
1512
|
-
# * `EventEndpointDeleted` – Topic ARN to which EndpointDeleted event
|
1513
|
-
# notifications
|
1535
|
+
# * `EventEndpointDeleted` – Topic ARN to which `EndpointDeleted` event
|
1536
|
+
# notifications are sent.
|
1514
1537
|
#
|
1515
|
-
# * `EventEndpointUpdated` – Topic ARN to which EndpointUpdate event
|
1516
|
-
# notifications
|
1538
|
+
# * `EventEndpointUpdated` – Topic ARN to which `EndpointUpdate` event
|
1539
|
+
# notifications are sent.
|
1517
1540
|
#
|
1518
|
-
# * `EventDeliveryFailure` – Topic ARN to which DeliveryFailure event
|
1519
|
-
# notifications
|
1541
|
+
# * `EventDeliveryFailure` – Topic ARN to which `DeliveryFailure` event
|
1542
|
+
# notifications are sent upon Direct Publish delivery failure
|
1520
1543
|
# (permanent) to one of the application's endpoints.
|
1521
1544
|
#
|
1522
1545
|
# * `SuccessFeedbackRoleArn` – IAM role ARN used to give Amazon SNS
|
@@ -1773,11 +1796,13 @@ module Aws::SNS
|
|
1773
1796
|
req.send_request(options)
|
1774
1797
|
end
|
1775
1798
|
|
1776
|
-
#
|
1777
|
-
#
|
1778
|
-
# owner must
|
1779
|
-
# the
|
1780
|
-
#
|
1799
|
+
# Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is
|
1800
|
+
# HTTP/S or email, or if the endpoint and the topic are not in the same
|
1801
|
+
# AWS account, the endpoint owner must the `ConfirmSubscription` action
|
1802
|
+
# to confirm the subscription.
|
1803
|
+
#
|
1804
|
+
# You call the `ConfirmSubscription` action with the token from the
|
1805
|
+
# subscription response. Confirmation tokens are valid for three days.
|
1781
1806
|
#
|
1782
1807
|
# This action is throttled at 100 transactions per second (TPS).
|
1783
1808
|
#
|
@@ -1809,11 +1834,11 @@ module Aws::SNS
|
|
1809
1834
|
# The endpoint that you want to receive notifications. Endpoints vary by
|
1810
1835
|
# protocol:
|
1811
1836
|
#
|
1812
|
-
# * For the `http` protocol, the endpoint is
|
1813
|
-
# `http://`
|
1837
|
+
# * For the `http` protocol, the (public) endpoint is a URL beginning
|
1838
|
+
# with `http://`
|
1814
1839
|
#
|
1815
|
-
# * For the `https` protocol, the endpoint is a URL beginning
|
1816
|
-
# `https://`
|
1840
|
+
# * For the `https` protocol, the (public) endpoint is a URL beginning
|
1841
|
+
# with `https://`
|
1817
1842
|
#
|
1818
1843
|
# * For the `email` protocol, the endpoint is an email address
|
1819
1844
|
#
|
@@ -1860,16 +1885,17 @@ module Aws::SNS
|
|
1860
1885
|
# Sets whether the response from the `Subscribe` request includes the
|
1861
1886
|
# subscription ARN, even if the subscription is not yet confirmed.
|
1862
1887
|
#
|
1863
|
-
# * If you
|
1864
|
-
#
|
1888
|
+
# * If you set this parameter to `true`, the response includes the ARN
|
1889
|
+
# in all cases, even if the subscription is not yet confirmed. In
|
1890
|
+
# addition to the ARN for confirmed subscriptions, the response also
|
1891
|
+
# includes the `pending subscription` ARN value for subscriptions that
|
1892
|
+
# aren't yet confirmed. A subscription becomes confirmed when the
|
1893
|
+
# subscriber calls the `ConfirmSubscription` action with a
|
1894
|
+
# confirmation token.
|
1895
|
+
#
|
1896
|
+
# ^
|
1865
1897
|
#
|
1866
|
-
# * If you don't have the subscription ARN returned, in addition to the
|
1867
|
-
# ARN for confirmed subscriptions, the response also includes the
|
1868
|
-
# `pending subscription` ARN value for subscriptions that aren't yet
|
1869
|
-
# confirmed. A subscription becomes confirmed when the subscriber
|
1870
|
-
# calls the `ConfirmSubscription` action with a confirmation token.
|
1871
1898
|
#
|
1872
|
-
# If you set this parameter to `true`, .
|
1873
1899
|
#
|
1874
1900
|
# The default value is `false`.
|
1875
1901
|
#
|
@@ -2030,7 +2056,7 @@ module Aws::SNS
|
|
2030
2056
|
params: params,
|
2031
2057
|
config: config)
|
2032
2058
|
context[:gem_name] = 'aws-sdk-sns'
|
2033
|
-
context[:gem_version] = '1.
|
2059
|
+
context[:gem_version] = '1.29.0'
|
2034
2060
|
Seahorse::Client::Request.new(handlers, context)
|
2035
2061
|
end
|
2036
2062
|
|
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
|