aws-sdk-sns 1.38.0 → 1.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +315 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-sns/client.rb +302 -47
- data/lib/aws-sdk-sns/client_api.rb +197 -1
- data/lib/aws-sdk-sns/errors.rb +70 -1
- data/lib/aws-sdk-sns/message_verifier.rb +11 -1
- data/lib/aws-sdk-sns/platform_application.rb +1 -1
- data/lib/aws-sdk-sns/platform_endpoint.rb +1 -1
- data/lib/aws-sdk-sns/resource.rb +9 -9
- data/lib/aws-sdk-sns/subscription.rb +4 -4
- data/lib/aws-sdk-sns/topic.rb +25 -26
- data/lib/aws-sdk-sns/types.rb +375 -47
- data/lib/aws-sdk-sns.rb +2 -2
- metadata +12 -10
data/lib/aws-sdk-sns/topic.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -43,7 +43,7 @@ module Aws::SNS
|
|
43
43
|
# * `DisplayName` – The human-readable name used in the `From` field for
|
44
44
|
# notifications to `email` and `email-json` endpoints.
|
45
45
|
#
|
46
|
-
# * `Owner` – The
|
46
|
+
# * `Owner` – The account ID of the topic's owner.
|
47
47
|
#
|
48
48
|
# * `Policy` – The JSON serialization of the topic's access control
|
49
49
|
# policy.
|
@@ -64,10 +64,10 @@ module Aws::SNS
|
|
64
64
|
#
|
65
65
|
# The following attribute applies only to [server-side-encryption][1]\:
|
66
66
|
#
|
67
|
-
# * `KmsMasterKeyId` - The ID of an
|
68
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
69
|
-
# Terms][2]. For more examples, see [KeyId][3]
|
70
|
-
# Management Service API Reference*.
|
67
|
+
# * `KmsMasterKeyId` - The ID of an Amazon Web Services managed customer
|
68
|
+
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
69
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
70
|
+
# in the *Key Management Service API Reference*.
|
71
71
|
#
|
72
72
|
# ^
|
73
73
|
#
|
@@ -88,8 +88,8 @@ module Aws::SNS
|
|
88
88
|
# the body of the message (but not the attributes of the message).
|
89
89
|
#
|
90
90
|
# (Optional) To override the generated value, you can specify a
|
91
|
-
# value for the
|
92
|
-
#
|
91
|
+
# value for the `MessageDeduplicationId` parameter for the `Publish`
|
92
|
+
# action.
|
93
93
|
#
|
94
94
|
#
|
95
95
|
#
|
@@ -151,9 +151,9 @@ module Aws::SNS
|
|
151
151
|
# @option options [required, String] :label
|
152
152
|
# A unique identifier for the new policy statement.
|
153
153
|
# @option options [required, Array<String>] :aws_account_id
|
154
|
-
# The
|
155
|
-
#
|
156
|
-
#
|
154
|
+
# The account IDs of the users (principals) who will be given access to
|
155
|
+
# the specified actions. The users must have account, but do not need to
|
156
|
+
# be signed up for this service.
|
157
157
|
# @option options [required, Array<String>] :action_name
|
158
158
|
# The action you want to allow for the specified principal(s).
|
159
159
|
#
|
@@ -176,10 +176,10 @@ module Aws::SNS
|
|
176
176
|
# Short-lived token sent to an endpoint during the `Subscribe` action.
|
177
177
|
# @option options [String] :authenticate_on_unsubscribe
|
178
178
|
# Disallows unauthenticated unsubscribes of the subscription. If the
|
179
|
-
# value of this parameter is `true` and the request has an
|
180
|
-
# signature, then only the topic owner and the subscription
|
181
|
-
# unsubscribe the endpoint. The unsubscribe action requires
|
182
|
-
# authentication.
|
179
|
+
# value of this parameter is `true` and the request has an Amazon Web
|
180
|
+
# Services signature, then only the topic owner and the subscription
|
181
|
+
# owner can unsubscribe the endpoint. The unsubscribe action requires
|
182
|
+
# Amazon Web Services authentication.
|
183
183
|
# @return [Subscription]
|
184
184
|
def confirm_subscription(options = {})
|
185
185
|
options = options.merge(topic_arn: @arn)
|
@@ -381,10 +381,10 @@ module Aws::SNS
|
|
381
381
|
#
|
382
382
|
# The following attribute applies only to [server-side-encryption][1]\:
|
383
383
|
#
|
384
|
-
# * `KmsMasterKeyId` – The ID of an
|
385
|
-
# (CMK) for Amazon SNS or a custom CMK. For more
|
386
|
-
# Terms][2]. For more examples, see [KeyId][3]
|
387
|
-
# Management Service API Reference*.
|
384
|
+
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
385
|
+
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
386
|
+
# information, see [Key Terms][2]. For more examples, see [KeyId][3]
|
387
|
+
# in the *Key Management Service API Reference*.
|
388
388
|
#
|
389
389
|
# ^
|
390
390
|
#
|
@@ -403,8 +403,8 @@ module Aws::SNS
|
|
403
403
|
# the body of the message (but not the attributes of the message).
|
404
404
|
#
|
405
405
|
# (Optional) To override the generated value, you can specify a
|
406
|
-
# value for the
|
407
|
-
#
|
406
|
+
# value for the `MessageDeduplicationId` parameter for the `Publish`
|
407
|
+
# action.
|
408
408
|
#
|
409
409
|
#
|
410
410
|
#
|
@@ -451,8 +451,7 @@ module Aws::SNS
|
|
451
451
|
# * `application` – delivery of JSON-encoded message to an EndpointArn
|
452
452
|
# for a mobile app and device
|
453
453
|
#
|
454
|
-
# * `lambda` – delivery of JSON-encoded message to an
|
455
|
-
# function
|
454
|
+
# * `lambda` – delivery of JSON-encoded message to an Lambda function
|
456
455
|
#
|
457
456
|
# * `firehose` – delivery of JSON-encoded message to an Amazon Kinesis
|
458
457
|
# Data Firehose delivery stream.
|
@@ -479,7 +478,7 @@ module Aws::SNS
|
|
479
478
|
# * For the `application` protocol, the endpoint is the EndpointArn of a
|
480
479
|
# mobile app and device.
|
481
480
|
#
|
482
|
-
# * For the `lambda` protocol, the endpoint is the ARN of an
|
481
|
+
# * For the `lambda` protocol, the endpoint is the ARN of an Lambda
|
483
482
|
# function.
|
484
483
|
#
|
485
484
|
# * For the `firehose` protocol, the endpoint is the ARN of an Amazon
|
@@ -488,7 +487,7 @@ module Aws::SNS
|
|
488
487
|
# A map of attributes with their corresponding values.
|
489
488
|
#
|
490
489
|
# The following lists the names, descriptions, and values of the special
|
491
|
-
# request parameters that the `
|
490
|
+
# request parameters that the `Subscribe` action uses:
|
492
491
|
#
|
493
492
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
494
493
|
# failed deliveries to HTTP/S endpoints.
|
@@ -526,7 +525,7 @@ module Aws::SNS
|
|
526
525
|
#
|
527
526
|
#
|
528
527
|
#
|
529
|
-
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-
|
528
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-firehose-as-subscriber.html
|
530
529
|
# @option options [Boolean] :return_subscription_arn
|
531
530
|
# Sets whether the response from the `Subscribe` request includes the
|
532
531
|
# subscription ARN, even if the subscription is not yet confirmed.
|