aws-sdk-sns 1.23.0 → 1.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-sns.rb +3 -1
- data/lib/aws-sdk-sns/client.rb +160 -100
- 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 +23 -2
- data/lib/aws-sdk-sns/subscription.rb +8 -1
- data/lib/aws-sdk-sns/topic.rb +31 -14
- data/lib/aws-sdk-sns/types.rb +159 -35
- 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: 45b8acdaa8ab119ccffadab846b65abd4c95c10d4721cf74a5ff3f6ab601f2bf
|
4
|
+
data.tar.gz: f289d6e41b035a989bf9c6a7eea842d29914ea012572d293b04c3c2a92bf6d59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4efacd88554360f4ab4a1f08589b4ee5a8794f9a77eb470f3a0c9f5859ab0cf87944cf5772e5d9e27f8e753795c4eda5749b5224c1f3758c1c03ea84a38ff1b
|
7
|
+
data.tar.gz: 391eb3b717fec77c7e07fa22ca56126c426b7dc5d2dd39d76ca30ae456bb2e62b15af6f3a036ee345a485819717d0fcf39e6ef90812e926480cbec0783e04294
|
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.28.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
|
@@ -176,7 +180,7 @@ module Aws::SNS
|
|
176
180
|
# requests fetching endpoints information. Defaults to 60 sec.
|
177
181
|
#
|
178
182
|
# @option options [Boolean] :endpoint_discovery (false)
|
179
|
-
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
183
|
+
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
180
184
|
#
|
181
185
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
182
186
|
# The log formatter.
|
@@ -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
|
@@ -563,10 +576,11 @@ module Aws::SNS
|
|
563
576
|
end
|
564
577
|
|
565
578
|
# Creates a topic to which notifications can be published. Users can
|
566
|
-
# create at most 100,000 topics
|
567
|
-
# [https://aws.amazon.com/sns][1]. This action
|
568
|
-
# requester already owns a topic with the
|
569
|
-
# ARN is returned without creating a new
|
579
|
+
# create at most 100,000 standard topics (at most 1,000 FIFO topics).
|
580
|
+
# For more information, see [https://aws.amazon.com/sns][1]. This action
|
581
|
+
# is idempotent, so if the requester already owns a topic with the
|
582
|
+
# specified name, that topic's ARN is returned without creating a new
|
583
|
+
# topic.
|
570
584
|
#
|
571
585
|
#
|
572
586
|
#
|
@@ -579,6 +593,9 @@ module Aws::SNS
|
|
579
593
|
# lowercase ASCII letters, numbers, underscores, and hyphens, and must
|
580
594
|
# be between 1 and 256 characters long.
|
581
595
|
#
|
596
|
+
# For a FIFO (first-in-first-out) topic, the name must end with the
|
597
|
+
# `.fifo` suffix.
|
598
|
+
#
|
582
599
|
# @option params [Hash<String,String>] :attributes
|
583
600
|
# A map of attributes with their corresponding values.
|
584
601
|
#
|
@@ -591,18 +608,34 @@ module Aws::SNS
|
|
591
608
|
# * `DisplayName` – The display name to use for a topic with SMS
|
592
609
|
# subscriptions.
|
593
610
|
#
|
611
|
+
# * `FifoTopic` – Set to true to create a FIFO topic.
|
612
|
+
#
|
594
613
|
# * `Policy` – The policy that defines who can access your topic. By
|
595
614
|
# default, only the topic owner can publish or subscribe to the topic.
|
596
615
|
#
|
597
616
|
# The following attribute applies only to [server-side-encryption][1]\:
|
598
617
|
#
|
599
|
-
# * `KmsMasterKeyId`
|
618
|
+
# * `KmsMasterKeyId` – The ID of an AWS-managed customer master key
|
600
619
|
# (CMK) for Amazon SNS or a custom CMK. For more information, see [Key
|
601
620
|
# Terms][2]. For more examples, see [KeyId][3] in the *AWS Key
|
602
621
|
# Management Service API Reference*.
|
603
622
|
#
|
604
623
|
# ^
|
605
624
|
#
|
625
|
+
# The following attribute applies only to FIFO topics:
|
626
|
+
#
|
627
|
+
# * `ContentBasedDeduplication` – Enables content-based deduplication.
|
628
|
+
# Amazon SNS uses a SHA-256 hash to generate the
|
629
|
+
# `MessageDeduplicationId` using the body of the message (but not the
|
630
|
+
# attributes of the message).
|
631
|
+
#
|
632
|
+
# * When `ContentBasedDeduplication` is in effect, messages with
|
633
|
+
# identical content sent within the deduplication interval are treated
|
634
|
+
# as duplicates and only one copy of the message is delivered.
|
635
|
+
#
|
636
|
+
# * If the queue has `ContentBasedDeduplication` set, your
|
637
|
+
# `MessageDeduplicationId` overrides the generated one.
|
638
|
+
#
|
606
639
|
#
|
607
640
|
#
|
608
641
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
@@ -681,8 +714,9 @@ module Aws::SNS
|
|
681
714
|
end
|
682
715
|
|
683
716
|
# Deletes a platform application object for one of the supported push
|
684
|
-
# notification services, such as APNS and
|
685
|
-
# [Using Amazon SNS Mobile Push
|
717
|
+
# notification services, such as APNS and GCM (Firebase Cloud
|
718
|
+
# Messaging). For more information, see [Using Amazon SNS Mobile Push
|
719
|
+
# Notifications][1].
|
686
720
|
#
|
687
721
|
#
|
688
722
|
#
|
@@ -734,8 +768,9 @@ module Aws::SNS
|
|
734
768
|
end
|
735
769
|
|
736
770
|
# 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
|
771
|
+
# push notification services, such as GCM (Firebase Cloud Messaging) and
|
772
|
+
# APNS. For more information, see [Using Amazon SNS Mobile Push
|
773
|
+
# Notifications][1].
|
739
774
|
#
|
740
775
|
#
|
741
776
|
#
|
@@ -769,8 +804,9 @@ module Aws::SNS
|
|
769
804
|
end
|
770
805
|
|
771
806
|
# 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
|
807
|
+
# supported push notification services, such as APNS and GCM (Firebase
|
808
|
+
# Cloud Messaging). For more information, see [Using Amazon SNS Mobile
|
809
|
+
# Push Notifications][1].
|
774
810
|
#
|
775
811
|
#
|
776
812
|
#
|
@@ -904,11 +940,11 @@ module Aws::SNS
|
|
904
940
|
end
|
905
941
|
|
906
942
|
# 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
|
943
|
+
# push notification service, such as GCM (Firebase Cloud Messaging) and
|
944
|
+
# APNS. The results for `ListEndpointsByPlatformApplication` are
|
945
|
+
# paginated and return a limited list of endpoints, up to 100. If
|
946
|
+
# additional records are available after the first page results, then a
|
947
|
+
# NextToken string will be returned. To receive the next page, you call
|
912
948
|
# `ListEndpointsByPlatformApplication` again using the NextToken string
|
913
949
|
# received from the previous call. When there are no more records to
|
914
950
|
# return, NextToken will be null. For more information, see [Using
|
@@ -1003,14 +1039,15 @@ module Aws::SNS
|
|
1003
1039
|
end
|
1004
1040
|
|
1005
1041
|
# 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
|
1042
|
+
# notification services, such as APNS and GCM (Firebase Cloud
|
1043
|
+
# Messaging). The results for `ListPlatformApplications` are paginated
|
1044
|
+
# and return a limited list of applications, up to 100. If additional
|
1045
|
+
# records are available after the first page results, then a NextToken
|
1046
|
+
# string will be returned. To receive the next page, you call
|
1047
|
+
# `ListPlatformApplications` using the NextToken string received from
|
1048
|
+
# the previous call. When there are no more records to return,
|
1049
|
+
# `NextToken` will be null. For more information, see [Using Amazon SNS
|
1050
|
+
# Mobile Push Notifications][1].
|
1014
1051
|
#
|
1015
1052
|
# This action is throttled at 15 transactions per second (TPS).
|
1016
1053
|
#
|
@@ -1241,8 +1278,9 @@ module Aws::SNS
|
|
1241
1278
|
req.send_request(options)
|
1242
1279
|
end
|
1243
1280
|
|
1244
|
-
# Sends a message to an Amazon SNS topic
|
1245
|
-
#
|
1281
|
+
# Sends a message to an Amazon SNS topic, a text message (SMS message)
|
1282
|
+
# directly to a phone number, or a message to a mobile platform endpoint
|
1283
|
+
# (when you specify the `TargetArn`).
|
1246
1284
|
#
|
1247
1285
|
# If you send a message to a topic, Amazon SNS delivers the message to
|
1248
1286
|
# each endpoint that is subscribed to the topic. The format of the
|
@@ -1261,6 +1299,9 @@ module Aws::SNS
|
|
1261
1299
|
# For more information about formatting messages, see [Send Custom
|
1262
1300
|
# Platform-Specific Payloads in Messages to Mobile Devices][1].
|
1263
1301
|
#
|
1302
|
+
# You can publish messages only to topics and endpoints in the same AWS
|
1303
|
+
# Region.
|
1304
|
+
#
|
1264
1305
|
#
|
1265
1306
|
#
|
1266
1307
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/mobile-push-send-custommessage.html
|
@@ -1429,8 +1470,9 @@ module Aws::SNS
|
|
1429
1470
|
end
|
1430
1471
|
|
1431
1472
|
# 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
|
1473
|
+
# supported push notification services, such as GCM (Firebase Cloud
|
1474
|
+
# Messaging) and APNS. For more information, see [Using Amazon SNS
|
1475
|
+
# Mobile Push Notifications][1].
|
1434
1476
|
#
|
1435
1477
|
#
|
1436
1478
|
#
|
@@ -1478,11 +1520,11 @@ module Aws::SNS
|
|
1478
1520
|
end
|
1479
1521
|
|
1480
1522
|
# 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].
|
1523
|
+
# supported push notification services, such as APNS and GCM (Firebase
|
1524
|
+
# Cloud Messaging). For more information, see [Using Amazon SNS Mobile
|
1525
|
+
# Push Notifications][1]. For information on configuring attributes for
|
1526
|
+
# message delivery status, see [Using Amazon SNS Application Attributes
|
1527
|
+
# for Message Delivery Status][2].
|
1486
1528
|
#
|
1487
1529
|
#
|
1488
1530
|
#
|
@@ -1497,26 +1539,27 @@ module Aws::SNS
|
|
1497
1539
|
# include the following:
|
1498
1540
|
#
|
1499
1541
|
# * `PlatformCredential` – The credential received from the notification
|
1500
|
-
# service. For APNS
|
1501
|
-
#
|
1502
|
-
# PlatformCredential is
|
1542
|
+
# service. For `APNS` and `APNS_SANDBOX`, `PlatformCredential` is
|
1543
|
+
# `private key`. For `GCM` (Firebase Cloud Messaging),
|
1544
|
+
# `PlatformCredential` is `API key`. For `ADM`, `PlatformCredential`
|
1545
|
+
# is `client secret`.
|
1503
1546
|
#
|
1504
1547
|
# * `PlatformPrincipal` – The principal received from the notification
|
1505
|
-
# service. For APNS
|
1506
|
-
# certificate
|
1507
|
-
# PlatformPrincipal is
|
1548
|
+
# service. For `APNS` and `APNS_SANDBOX`, `PlatformPrincipal` is `SSL
|
1549
|
+
# certificate`. For `GCM` (Firebase Cloud Messaging), there is no
|
1550
|
+
# `PlatformPrincipal`. For `ADM`, `PlatformPrincipal` is `client id`.
|
1508
1551
|
#
|
1509
|
-
# * `EventEndpointCreated` – Topic ARN to which EndpointCreated event
|
1510
|
-
# notifications
|
1552
|
+
# * `EventEndpointCreated` – Topic ARN to which `EndpointCreated` event
|
1553
|
+
# notifications are sent.
|
1511
1554
|
#
|
1512
|
-
# * `EventEndpointDeleted` – Topic ARN to which EndpointDeleted event
|
1513
|
-
# notifications
|
1555
|
+
# * `EventEndpointDeleted` – Topic ARN to which `EndpointDeleted` event
|
1556
|
+
# notifications are sent.
|
1514
1557
|
#
|
1515
|
-
# * `EventEndpointUpdated` – Topic ARN to which EndpointUpdate event
|
1516
|
-
# notifications
|
1558
|
+
# * `EventEndpointUpdated` – Topic ARN to which `EndpointUpdate` event
|
1559
|
+
# notifications are sent.
|
1517
1560
|
#
|
1518
|
-
# * `EventDeliveryFailure` – Topic ARN to which DeliveryFailure event
|
1519
|
-
# notifications
|
1561
|
+
# * `EventDeliveryFailure` – Topic ARN to which `DeliveryFailure` event
|
1562
|
+
# notifications are sent upon Direct Publish delivery failure
|
1520
1563
|
# (permanent) to one of the application's endpoints.
|
1521
1564
|
#
|
1522
1565
|
# * `SuccessFeedbackRoleArn` – IAM role ARN used to give Amazon SNS
|
@@ -1738,13 +1781,27 @@ module Aws::SNS
|
|
1738
1781
|
#
|
1739
1782
|
# The following attribute applies only to [server-side-encryption][1]\:
|
1740
1783
|
#
|
1741
|
-
# * `KmsMasterKeyId`
|
1784
|
+
# * `KmsMasterKeyId` – The ID of an AWS-managed customer master key
|
1742
1785
|
# (CMK) for Amazon SNS or a custom CMK. For more information, see [Key
|
1743
1786
|
# Terms][2]. For more examples, see [KeyId][3] in the *AWS Key
|
1744
1787
|
# Management Service API Reference*.
|
1745
1788
|
#
|
1746
1789
|
# ^
|
1747
1790
|
#
|
1791
|
+
# The following attribute applies only to FIFO topics:
|
1792
|
+
#
|
1793
|
+
# * `ContentBasedDeduplication` – Enables content-based deduplication.
|
1794
|
+
# Amazon SNS uses a SHA-256 hash to generate the
|
1795
|
+
# `MessageDeduplicationId` using the body of the message (but not the
|
1796
|
+
# attributes of the message).
|
1797
|
+
#
|
1798
|
+
# * When `ContentBasedDeduplication` is in effect, messages with
|
1799
|
+
# identical content sent within the deduplication interval are treated
|
1800
|
+
# as duplicates and only one copy of the message is delivered.
|
1801
|
+
#
|
1802
|
+
# * If the queue has `ContentBasedDeduplication` set, your
|
1803
|
+
# `MessageDeduplicationId` overrides the generated one.
|
1804
|
+
#
|
1748
1805
|
#
|
1749
1806
|
#
|
1750
1807
|
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
@@ -1773,11 +1830,13 @@ module Aws::SNS
|
|
1773
1830
|
req.send_request(options)
|
1774
1831
|
end
|
1775
1832
|
|
1776
|
-
#
|
1777
|
-
#
|
1778
|
-
# owner must
|
1779
|
-
# the
|
1780
|
-
#
|
1833
|
+
# Subscribes an endpoint to an Amazon SNS topic. If the endpoint type is
|
1834
|
+
# HTTP/S or email, or if the endpoint and the topic are not in the same
|
1835
|
+
# AWS account, the endpoint owner must the `ConfirmSubscription` action
|
1836
|
+
# to confirm the subscription.
|
1837
|
+
#
|
1838
|
+
# You call the `ConfirmSubscription` action with the token from the
|
1839
|
+
# subscription response. Confirmation tokens are valid for three days.
|
1781
1840
|
#
|
1782
1841
|
# This action is throttled at 100 transactions per second (TPS).
|
1783
1842
|
#
|
@@ -1809,11 +1868,11 @@ module Aws::SNS
|
|
1809
1868
|
# The endpoint that you want to receive notifications. Endpoints vary by
|
1810
1869
|
# protocol:
|
1811
1870
|
#
|
1812
|
-
# * For the `http` protocol, the endpoint is
|
1813
|
-
# `http://`
|
1871
|
+
# * For the `http` protocol, the (public) endpoint is a URL beginning
|
1872
|
+
# with `http://`
|
1814
1873
|
#
|
1815
|
-
# * For the `https` protocol, the endpoint is a URL beginning
|
1816
|
-
# `https://`
|
1874
|
+
# * For the `https` protocol, the (public) endpoint is a URL beginning
|
1875
|
+
# with `https://`
|
1817
1876
|
#
|
1818
1877
|
# * For the `email` protocol, the endpoint is an email address
|
1819
1878
|
#
|
@@ -1860,16 +1919,17 @@ module Aws::SNS
|
|
1860
1919
|
# Sets whether the response from the `Subscribe` request includes the
|
1861
1920
|
# subscription ARN, even if the subscription is not yet confirmed.
|
1862
1921
|
#
|
1863
|
-
# * If you
|
1864
|
-
#
|
1922
|
+
# * If you set this parameter to `true`, the response includes the ARN
|
1923
|
+
# in all cases, even if the subscription is not yet confirmed. In
|
1924
|
+
# addition to the ARN for confirmed subscriptions, the response also
|
1925
|
+
# includes the `pending subscription` ARN value for subscriptions that
|
1926
|
+
# aren't yet confirmed. A subscription becomes confirmed when the
|
1927
|
+
# subscriber calls the `ConfirmSubscription` action with a
|
1928
|
+
# confirmation token.
|
1929
|
+
#
|
1930
|
+
# ^
|
1865
1931
|
#
|
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
1932
|
#
|
1872
|
-
# If you set this parameter to `true`, .
|
1873
1933
|
#
|
1874
1934
|
# The default value is `false`.
|
1875
1935
|
#
|
@@ -2030,7 +2090,7 @@ module Aws::SNS
|
|
2030
2090
|
params: params,
|
2031
2091
|
config: config)
|
2032
2092
|
context[:gem_name] = 'aws-sdk-sns'
|
2033
|
-
context[:gem_version] = '1.
|
2093
|
+
context[:gem_version] = '1.28.0'
|
2034
2094
|
Seahorse::Client::Request.new(handlers, context)
|
2035
2095
|
end
|
2036
2096
|
|