aws-sdk-sns 1.58.0 → 1.60.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +112 -14
- data/lib/aws-sdk-sns/endpoint_provider.rb +31 -28
- data/lib/aws-sdk-sns/resource.rb +2 -2
- data/lib/aws-sdk-sns/topic.rb +114 -14
- data/lib/aws-sdk-sns/types.rb +125 -25
- data/lib/aws-sdk-sns.rb +1 -1
- 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: 34622e6ec3f2ddc83c0acd26af55107e8064fe244d5782c9ee3185d9beefd8da
|
4
|
+
data.tar.gz: d7079d68ac0a9af6505ec04e8d1a081ec58538236f9e08f5f734a26837db7c19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0b14856b47ac52e3be0b9f0eac5e0e6fb7e0a9b41ea0c98ecc0db63607e55c8a85cb7d29636b0ca32bc30ae9379041a5554c3497cb6d0faae71e94fed9fbc0e
|
7
|
+
data.tar.gz: d07976b97868bef8bdce7d52b7b7bf10bc7200e2a9db8137beedb494345d6091c1d940ec85d93809ab57caea2ee3080f4a5b4e522515b3ce854373fb732d9f76
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.60.0 (2023-02-10)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds support for SNS X-Ray active tracing as well as other updates.
|
8
|
+
|
9
|
+
1.59.0 (2023-02-01)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Additional attributes added for set-topic-attributes.
|
13
|
+
|
4
14
|
1.58.0 (2023-01-18)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.60.0
|
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -730,12 +730,12 @@ module Aws::SNS
|
|
730
730
|
# hashing algorithm used while creating the signature of the
|
731
731
|
# notifications, subscription confirmations, or unsubscribe
|
732
732
|
# confirmation messages sent by Amazon SNS. By default,
|
733
|
-
# `SignatureVersion` is set to 1
|
733
|
+
# `SignatureVersion` is set to `1`.
|
734
734
|
#
|
735
735
|
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
736
736
|
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
737
737
|
# through the tracing header it receives from an Amazon SNS publisher
|
738
|
-
# to its subscriptions. If set to Active
|
738
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
739
739
|
# segment data to topic owner account if the sampled flag in the
|
740
740
|
# tracing header is true. This is only supported on standard topics.
|
741
741
|
#
|
@@ -2358,6 +2358,10 @@ module Aws::SNS
|
|
2358
2358
|
# The following lists the names, descriptions, and values of the special
|
2359
2359
|
# request parameters that the `SetTopicAttributes` action uses:
|
2360
2360
|
#
|
2361
|
+
# * `ApplicationSuccessFeedbackRoleArn` – Indicates failed message
|
2362
|
+
# delivery status for an Amazon SNS topic that is subscribed to a
|
2363
|
+
# platform application endpoint.
|
2364
|
+
#
|
2361
2365
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
2362
2366
|
# failed deliveries to HTTP/S endpoints.
|
2363
2367
|
#
|
@@ -2370,23 +2374,116 @@ module Aws::SNS
|
|
2370
2374
|
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
2371
2375
|
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
2372
2376
|
# through the tracing header it receives from an Amazon SNS publisher
|
2373
|
-
# to its subscriptions. If set to Active
|
2377
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
2374
2378
|
# segment data to topic owner account if the sampled flag in the
|
2375
2379
|
# tracing header is true. This is only supported on standard topics.
|
2376
2380
|
#
|
2377
|
-
#
|
2381
|
+
# * HTTP
|
2382
|
+
#
|
2383
|
+
# * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
|
2384
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2385
|
+
# HTTP endpoint.
|
2386
|
+
#
|
2387
|
+
# * `HTTPSuccessFeedbackSampleRate` – Indicates percentage of
|
2388
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2389
|
+
# subscribed to an HTTP endpoint.
|
2390
|
+
#
|
2391
|
+
# * `HTTPFailureFeedbackRoleArn` – Indicates failed message delivery
|
2392
|
+
# status for an Amazon SNS topic that is subscribed to an HTTP
|
2393
|
+
# endpoint.
|
2394
|
+
#
|
2395
|
+
# * Amazon Kinesis Data Firehose
|
2396
|
+
#
|
2397
|
+
# * `FirehoseSuccessFeedbackRoleArn` – Indicates successful message
|
2398
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2399
|
+
# Amazon Kinesis Data Firehose endpoint.
|
2400
|
+
#
|
2401
|
+
# * `FirehoseSuccessFeedbackSampleRate` – Indicates percentage of
|
2402
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2403
|
+
# subscribed to an Amazon Kinesis Data Firehose endpoint.
|
2404
|
+
#
|
2405
|
+
# * `FirehoseFailureFeedbackRoleArn` – Indicates failed message
|
2406
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2407
|
+
# Amazon Kinesis Data Firehose endpoint.
|
2408
|
+
#
|
2409
|
+
# * Lambda
|
2410
|
+
#
|
2411
|
+
# * `LambdaSuccessFeedbackRoleArn` – Indicates successful message
|
2412
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2413
|
+
# Lambda endpoint.
|
2414
|
+
#
|
2415
|
+
# * `LambdaSuccessFeedbackSampleRate` – Indicates percentage of
|
2416
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2417
|
+
# subscribed to an Lambda endpoint.
|
2418
|
+
#
|
2419
|
+
# * `LambdaFailureFeedbackRoleArn` – Indicates failed message delivery
|
2420
|
+
# status for an Amazon SNS topic that is subscribed to an Lambda
|
2421
|
+
# endpoint.
|
2422
|
+
#
|
2423
|
+
# * Platform application endpoint
|
2424
|
+
#
|
2425
|
+
# * `ApplicationSuccessFeedbackRoleArn` – Indicates successful message
|
2426
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2427
|
+
# Amazon Web Services application endpoint.
|
2428
|
+
#
|
2429
|
+
# * `ApplicationSuccessFeedbackSampleRate` – Indicates percentage of
|
2430
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2431
|
+
# subscribed to an Amazon Web Services application endpoint.
|
2432
|
+
#
|
2433
|
+
# * `ApplicationFailureFeedbackRoleArn` – Indicates failed message
|
2434
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2435
|
+
# Amazon Web Services application endpoint.
|
2436
|
+
#
|
2437
|
+
# <note markdown="1"> In addition to being able to configure topic attributes for message
|
2438
|
+
# delivery status of notification messages sent to Amazon SNS
|
2439
|
+
# application endpoints, you can also configure application attributes
|
2440
|
+
# for the delivery status of push notification messages sent to push
|
2441
|
+
# notification services.
|
2442
|
+
#
|
2443
|
+
# For example, For more information, see [Using Amazon SNS Application
|
2444
|
+
# Attributes for Message Delivery Status][1].
|
2445
|
+
#
|
2446
|
+
# </note>
|
2447
|
+
#
|
2448
|
+
# * Amazon SQS
|
2449
|
+
#
|
2450
|
+
# * `SQSSuccessFeedbackRoleArn` – Indicates successful message
|
2451
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2452
|
+
# Amazon SQS endpoint.
|
2453
|
+
#
|
2454
|
+
# * `SQSSuccessFeedbackSampleRate` – Indicates percentage of
|
2455
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2456
|
+
# subscribed to an Amazon SQS endpoint.
|
2457
|
+
#
|
2458
|
+
# * `SQSFailureFeedbackRoleArn` – Indicates failed message delivery
|
2459
|
+
# status for an Amazon SNS topic that is subscribed to an Amazon SQS
|
2460
|
+
# endpoint.
|
2461
|
+
#
|
2462
|
+
# <note markdown="1"> The <ENDPOINT>SuccessFeedbackRoleArn and
|
2463
|
+
# <ENDPOINT>FailureFeedbackRoleArn attributes are used to give
|
2464
|
+
# Amazon SNS write access to use CloudWatch Logs on your behalf. The
|
2465
|
+
# <ENDPOINT>SuccessFeedbackSampleRate attribute is for specifying
|
2466
|
+
# the sample rate percentage (0-100) of successfully delivered messages.
|
2467
|
+
# After you configure the <ENDPOINT>FailureFeedbackRoleArn
|
2468
|
+
# attribute, then all failed message deliveries generate CloudWatch
|
2469
|
+
# Logs.
|
2470
|
+
#
|
2471
|
+
# </note>
|
2472
|
+
#
|
2473
|
+
# The following attribute applies only to [server-side-encryption][2]\:
|
2378
2474
|
#
|
2379
2475
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
2380
2476
|
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
2381
|
-
# information, see [Key Terms][
|
2477
|
+
# information, see [Key Terms][3]. For more examples, see [KeyId][4]
|
2382
2478
|
# in the *Key Management Service API Reference*.
|
2383
2479
|
#
|
2384
2480
|
# * `SignatureVersion` – The signature version corresponds to the
|
2385
2481
|
# hashing algorithm used while creating the signature of the
|
2386
2482
|
# notifications, subscription confirmations, or unsubscribe
|
2387
|
-
# confirmation messages sent by Amazon SNS.
|
2483
|
+
# confirmation messages sent by Amazon SNS. By default,
|
2484
|
+
# `SignatureVersion` is set to `1`.
|
2388
2485
|
#
|
2389
|
-
# The following attribute applies only to [FIFO topics][
|
2486
|
+
# The following attribute applies only to [FIFO topics][5]\:
|
2390
2487
|
#
|
2391
2488
|
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
2392
2489
|
# for FIFO topics.
|
@@ -2394,7 +2491,7 @@ module Aws::SNS
|
|
2394
2491
|
# * By default, `ContentBasedDeduplication` is set to `false`. If you
|
2395
2492
|
# create a FIFO topic and this attribute is `false`, you must
|
2396
2493
|
# specify a value for the `MessageDeduplicationId` parameter for the
|
2397
|
-
# [Publish][
|
2494
|
+
# [Publish][6] action.
|
2398
2495
|
#
|
2399
2496
|
# * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
|
2400
2497
|
# uses a SHA-256 hash to generate the `MessageDeduplicationId` using
|
@@ -2406,11 +2503,12 @@ module Aws::SNS
|
|
2406
2503
|
#
|
2407
2504
|
#
|
2408
2505
|
#
|
2409
|
-
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-
|
2410
|
-
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
2411
|
-
# [3]: https://docs.aws.amazon.com/
|
2412
|
-
# [4]: https://docs.aws.amazon.com/
|
2413
|
-
# [5]: https://docs.aws.amazon.com/sns/latest/
|
2506
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
|
2507
|
+
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
2508
|
+
# [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
|
2509
|
+
# [4]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
2510
|
+
# [5]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
|
2511
|
+
# [6]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
2414
2512
|
#
|
2415
2513
|
# @option params [String] :attribute_value
|
2416
2514
|
# The new value for the attribute.
|
@@ -2771,7 +2869,7 @@ module Aws::SNS
|
|
2771
2869
|
params: params,
|
2772
2870
|
config: config)
|
2773
2871
|
context[:gem_name] = 'aws-sdk-sns'
|
2774
|
-
context[:gem_version] = '1.
|
2872
|
+
context[:gem_version] = '1.60.0'
|
2775
2873
|
Seahorse::Client::Request.new(handlers, context)
|
2776
2874
|
end
|
2777
2875
|
|
@@ -14,42 +14,45 @@ module Aws::SNS
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
|
-
if
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
|
-
end
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
24
|
-
end
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
26
20
|
end
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
28
|
-
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://sns-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
30
|
-
end
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
21
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
32
23
|
end
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
25
|
+
end
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://sns-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
37
31
|
end
|
38
|
-
|
39
|
-
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
|
+
end
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
36
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
|
37
|
+
return Aws::Endpoints::Endpoint.new(url: "https://sns.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
38
|
+
end
|
39
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
40
|
+
return Aws::Endpoints::Endpoint.new(url: "https://sns.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
41
|
+
end
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://sns-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
40
43
|
end
|
41
|
-
|
44
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
42
45
|
end
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
46
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
47
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
48
|
+
return Aws::Endpoints::Endpoint.new(url: "https://sns.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
49
|
+
end
|
50
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
48
51
|
end
|
49
|
-
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://sns.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
50
53
|
end
|
51
|
-
return Aws::Endpoints::Endpoint.new(url: "https://sns.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
52
54
|
end
|
55
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
53
56
|
raise ArgumentError, 'No endpoint could be resolved'
|
54
57
|
|
55
58
|
end
|
data/lib/aws-sdk-sns/resource.rb
CHANGED
@@ -114,12 +114,12 @@ module Aws::SNS
|
|
114
114
|
# hashing algorithm used while creating the signature of the
|
115
115
|
# notifications, subscription confirmations, or unsubscribe
|
116
116
|
# confirmation messages sent by Amazon SNS. By default,
|
117
|
-
# `SignatureVersion` is set to 1
|
117
|
+
# `SignatureVersion` is set to `1`.
|
118
118
|
#
|
119
119
|
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
120
120
|
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
121
121
|
# through the tracing header it receives from an Amazon SNS publisher
|
122
|
-
# to its subscriptions. If set to Active
|
122
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
123
123
|
# segment data to topic owner account if the sampled flag in the
|
124
124
|
# tracing header is true. This is only supported on standard topics.
|
125
125
|
#
|
data/lib/aws-sdk-sns/topic.rb
CHANGED
@@ -51,8 +51,10 @@ module Aws::SNS
|
|
51
51
|
# * `Policy` – The JSON serialization of the topic's access control
|
52
52
|
# policy.
|
53
53
|
#
|
54
|
-
# * `SignatureVersion` – The version
|
55
|
-
#
|
54
|
+
# * `SignatureVersion` – The signature version corresponds to the
|
55
|
+
# hashing algorithm used while creating the signature of the
|
56
|
+
# notifications, subscription confirmations, or unsubscribe
|
57
|
+
# confirmation messages sent by Amazon SNS.
|
56
58
|
#
|
57
59
|
# * By default, `SignatureVersion` is set to **1**. The signature is a
|
58
60
|
# Base64-encoded **SHA1withRSA** signature.
|
@@ -80,7 +82,7 @@ module Aws::SNS
|
|
80
82
|
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
81
83
|
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
82
84
|
# through the tracing header it receives from an Amazon SNS publisher
|
83
|
-
# to its subscriptions. If set to Active
|
85
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
84
86
|
# segment data to topic owner account if the sampled flag in the
|
85
87
|
# tracing header is true. This is only supported on standard topics.
|
86
88
|
#
|
@@ -393,6 +395,10 @@ module Aws::SNS
|
|
393
395
|
# The following lists the names, descriptions, and values of the special
|
394
396
|
# request parameters that the `SetTopicAttributes` action uses:
|
395
397
|
#
|
398
|
+
# * `ApplicationSuccessFeedbackRoleArn` – Indicates failed message
|
399
|
+
# delivery status for an Amazon SNS topic that is subscribed to a
|
400
|
+
# platform application endpoint.
|
401
|
+
#
|
396
402
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
397
403
|
# failed deliveries to HTTP/S endpoints.
|
398
404
|
#
|
@@ -405,23 +411,116 @@ module Aws::SNS
|
|
405
411
|
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
406
412
|
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
407
413
|
# through the tracing header it receives from an Amazon SNS publisher
|
408
|
-
# to its subscriptions. If set to Active
|
414
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
409
415
|
# segment data to topic owner account if the sampled flag in the
|
410
416
|
# tracing header is true. This is only supported on standard topics.
|
411
417
|
#
|
412
|
-
#
|
418
|
+
# * HTTP
|
419
|
+
#
|
420
|
+
# * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
|
421
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
422
|
+
# HTTP endpoint.
|
423
|
+
#
|
424
|
+
# * `HTTPSuccessFeedbackSampleRate` – Indicates percentage of
|
425
|
+
# successful messages to sample for an Amazon SNS topic that is
|
426
|
+
# subscribed to an HTTP endpoint.
|
427
|
+
#
|
428
|
+
# * `HTTPFailureFeedbackRoleArn` – Indicates failed message delivery
|
429
|
+
# status for an Amazon SNS topic that is subscribed to an HTTP
|
430
|
+
# endpoint.
|
431
|
+
#
|
432
|
+
# * Amazon Kinesis Data Firehose
|
433
|
+
#
|
434
|
+
# * `FirehoseSuccessFeedbackRoleArn` – Indicates successful message
|
435
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
436
|
+
# Amazon Kinesis Data Firehose endpoint.
|
437
|
+
#
|
438
|
+
# * `FirehoseSuccessFeedbackSampleRate` – Indicates percentage of
|
439
|
+
# successful messages to sample for an Amazon SNS topic that is
|
440
|
+
# subscribed to an Amazon Kinesis Data Firehose endpoint.
|
441
|
+
#
|
442
|
+
# * `FirehoseFailureFeedbackRoleArn` – Indicates failed message
|
443
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
444
|
+
# Amazon Kinesis Data Firehose endpoint.
|
445
|
+
#
|
446
|
+
# * Lambda
|
447
|
+
#
|
448
|
+
# * `LambdaSuccessFeedbackRoleArn` – Indicates successful message
|
449
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
450
|
+
# Lambda endpoint.
|
451
|
+
#
|
452
|
+
# * `LambdaSuccessFeedbackSampleRate` – Indicates percentage of
|
453
|
+
# successful messages to sample for an Amazon SNS topic that is
|
454
|
+
# subscribed to an Lambda endpoint.
|
455
|
+
#
|
456
|
+
# * `LambdaFailureFeedbackRoleArn` – Indicates failed message delivery
|
457
|
+
# status for an Amazon SNS topic that is subscribed to an Lambda
|
458
|
+
# endpoint.
|
459
|
+
#
|
460
|
+
# * Platform application endpoint
|
461
|
+
#
|
462
|
+
# * `ApplicationSuccessFeedbackRoleArn` – Indicates successful message
|
463
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
464
|
+
# Amazon Web Services application endpoint.
|
465
|
+
#
|
466
|
+
# * `ApplicationSuccessFeedbackSampleRate` – Indicates percentage of
|
467
|
+
# successful messages to sample for an Amazon SNS topic that is
|
468
|
+
# subscribed to an Amazon Web Services application endpoint.
|
469
|
+
#
|
470
|
+
# * `ApplicationFailureFeedbackRoleArn` – Indicates failed message
|
471
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
472
|
+
# Amazon Web Services application endpoint.
|
473
|
+
#
|
474
|
+
# <note markdown="1"> In addition to being able to configure topic attributes for message
|
475
|
+
# delivery status of notification messages sent to Amazon SNS
|
476
|
+
# application endpoints, you can also configure application attributes
|
477
|
+
# for the delivery status of push notification messages sent to push
|
478
|
+
# notification services.
|
479
|
+
#
|
480
|
+
# For example, For more information, see [Using Amazon SNS Application
|
481
|
+
# Attributes for Message Delivery Status][1].
|
482
|
+
#
|
483
|
+
# </note>
|
484
|
+
#
|
485
|
+
# * Amazon SQS
|
486
|
+
#
|
487
|
+
# * `SQSSuccessFeedbackRoleArn` – Indicates successful message
|
488
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
489
|
+
# Amazon SQS endpoint.
|
490
|
+
#
|
491
|
+
# * `SQSSuccessFeedbackSampleRate` – Indicates percentage of
|
492
|
+
# successful messages to sample for an Amazon SNS topic that is
|
493
|
+
# subscribed to an Amazon SQS endpoint.
|
494
|
+
#
|
495
|
+
# * `SQSFailureFeedbackRoleArn` – Indicates failed message delivery
|
496
|
+
# status for an Amazon SNS topic that is subscribed to an Amazon SQS
|
497
|
+
# endpoint.
|
498
|
+
#
|
499
|
+
# <note markdown="1"> The <ENDPOINT>SuccessFeedbackRoleArn and
|
500
|
+
# <ENDPOINT>FailureFeedbackRoleArn attributes are used to give
|
501
|
+
# Amazon SNS write access to use CloudWatch Logs on your behalf. The
|
502
|
+
# <ENDPOINT>SuccessFeedbackSampleRate attribute is for specifying
|
503
|
+
# the sample rate percentage (0-100) of successfully delivered messages.
|
504
|
+
# After you configure the <ENDPOINT>FailureFeedbackRoleArn
|
505
|
+
# attribute, then all failed message deliveries generate CloudWatch
|
506
|
+
# Logs.
|
507
|
+
#
|
508
|
+
# </note>
|
509
|
+
#
|
510
|
+
# The following attribute applies only to [server-side-encryption][2]\:
|
413
511
|
#
|
414
512
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed customer
|
415
513
|
# master key (CMK) for Amazon SNS or a custom CMK. For more
|
416
|
-
# information, see [Key Terms][
|
514
|
+
# information, see [Key Terms][3]. For more examples, see [KeyId][4]
|
417
515
|
# in the *Key Management Service API Reference*.
|
418
516
|
#
|
419
517
|
# * `SignatureVersion` – The signature version corresponds to the
|
420
518
|
# hashing algorithm used while creating the signature of the
|
421
519
|
# notifications, subscription confirmations, or unsubscribe
|
422
|
-
# confirmation messages sent by Amazon SNS.
|
520
|
+
# confirmation messages sent by Amazon SNS. By default,
|
521
|
+
# `SignatureVersion` is set to `1`.
|
423
522
|
#
|
424
|
-
# The following attribute applies only to [FIFO topics][
|
523
|
+
# The following attribute applies only to [FIFO topics][5]\:
|
425
524
|
#
|
426
525
|
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
427
526
|
# for FIFO topics.
|
@@ -429,7 +528,7 @@ module Aws::SNS
|
|
429
528
|
# * By default, `ContentBasedDeduplication` is set to `false`. If you
|
430
529
|
# create a FIFO topic and this attribute is `false`, you must
|
431
530
|
# specify a value for the `MessageDeduplicationId` parameter for the
|
432
|
-
# [Publish][
|
531
|
+
# [Publish][6] action.
|
433
532
|
#
|
434
533
|
# * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
|
435
534
|
# uses a SHA-256 hash to generate the `MessageDeduplicationId` using
|
@@ -441,11 +540,12 @@ module Aws::SNS
|
|
441
540
|
#
|
442
541
|
#
|
443
542
|
#
|
444
|
-
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-
|
445
|
-
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
446
|
-
# [3]: https://docs.aws.amazon.com/
|
447
|
-
# [4]: https://docs.aws.amazon.com/
|
448
|
-
# [5]: https://docs.aws.amazon.com/sns/latest/
|
543
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
|
544
|
+
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
545
|
+
# [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
|
546
|
+
# [4]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
547
|
+
# [5]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
|
548
|
+
# [6]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
449
549
|
# @option options [String] :attribute_value
|
450
550
|
# The new value for the attribute.
|
451
551
|
# @return [EmptyStructure]
|
data/lib/aws-sdk-sns/types.rb
CHANGED
@@ -363,15 +363,15 @@ module Aws::SNS
|
|
363
363
|
# hashing algorithm used while creating the signature of the
|
364
364
|
# notifications, subscription confirmations, or unsubscribe
|
365
365
|
# confirmation messages sent by Amazon SNS. By default,
|
366
|
-
# `SignatureVersion` is set to 1
|
366
|
+
# `SignatureVersion` is set to `1`.
|
367
367
|
#
|
368
368
|
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
369
369
|
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
370
370
|
# through the tracing header it receives from an Amazon SNS
|
371
|
-
# publisher to its subscriptions. If set to Active
|
372
|
-
# vend X-Ray segment data to topic owner account if the sampled
|
373
|
-
# in the tracing header is true. This is only supported on
|
374
|
-
# topics.
|
371
|
+
# publisher to its subscriptions. If set to `Active`, Amazon SNS
|
372
|
+
# will vend X-Ray segment data to topic owner account if the sampled
|
373
|
+
# flag in the tracing header is true. This is only supported on
|
374
|
+
# standard topics.
|
375
375
|
#
|
376
376
|
# The following attribute applies only to [server-side
|
377
377
|
# encryption][1]\:
|
@@ -889,8 +889,10 @@ module Aws::SNS
|
|
889
889
|
# * `Policy` – The JSON serialization of the topic's access control
|
890
890
|
# policy.
|
891
891
|
#
|
892
|
-
# * `SignatureVersion` – The version
|
893
|
-
#
|
892
|
+
# * `SignatureVersion` – The signature version corresponds to the
|
893
|
+
# hashing algorithm used while creating the signature of the
|
894
|
+
# notifications, subscription confirmations, or unsubscribe
|
895
|
+
# confirmation messages sent by Amazon SNS.
|
894
896
|
#
|
895
897
|
# * By default, `SignatureVersion` is set to **1**. The signature is
|
896
898
|
# a Base64-encoded **SHA1withRSA** signature.
|
@@ -918,10 +920,10 @@ module Aws::SNS
|
|
918
920
|
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
919
921
|
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
920
922
|
# through the tracing header it receives from an Amazon SNS
|
921
|
-
# publisher to its subscriptions. If set to Active
|
922
|
-
# vend X-Ray segment data to topic owner account if the sampled
|
923
|
-
# in the tracing header is true. This is only supported on
|
924
|
-
# topics.
|
923
|
+
# publisher to its subscriptions. If set to `Active`, Amazon SNS
|
924
|
+
# will vend X-Ray segment data to topic owner account if the sampled
|
925
|
+
# flag in the tracing header is true. This is only supported on
|
926
|
+
# standard topics.
|
925
927
|
#
|
926
928
|
# The following attribute applies only to
|
927
929
|
# [server-side-encryption][1]\:
|
@@ -2430,6 +2432,10 @@ module Aws::SNS
|
|
2430
2432
|
# special request parameters that the `SetTopicAttributes` action
|
2431
2433
|
# uses:
|
2432
2434
|
#
|
2435
|
+
# * `ApplicationSuccessFeedbackRoleArn` – Indicates failed message
|
2436
|
+
# delivery status for an Amazon SNS topic that is subscribed to a
|
2437
|
+
# platform application endpoint.
|
2438
|
+
#
|
2433
2439
|
# * `DeliveryPolicy` – The policy that defines how Amazon SNS retries
|
2434
2440
|
# failed deliveries to HTTP/S endpoints.
|
2435
2441
|
#
|
@@ -2443,25 +2449,118 @@ module Aws::SNS
|
|
2443
2449
|
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
2444
2450
|
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
2445
2451
|
# through the tracing header it receives from an Amazon SNS
|
2446
|
-
# publisher to its subscriptions. If set to Active
|
2447
|
-
# vend X-Ray segment data to topic owner account if the sampled
|
2448
|
-
# in the tracing header is true. This is only supported on
|
2449
|
-
# topics.
|
2452
|
+
# publisher to its subscriptions. If set to `Active`, Amazon SNS
|
2453
|
+
# will vend X-Ray segment data to topic owner account if the sampled
|
2454
|
+
# flag in the tracing header is true. This is only supported on
|
2455
|
+
# standard topics.
|
2456
|
+
#
|
2457
|
+
# * HTTP
|
2458
|
+
#
|
2459
|
+
# * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
|
2460
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2461
|
+
# HTTP endpoint.
|
2462
|
+
#
|
2463
|
+
# * `HTTPSuccessFeedbackSampleRate` – Indicates percentage of
|
2464
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2465
|
+
# subscribed to an HTTP endpoint.
|
2466
|
+
#
|
2467
|
+
# * `HTTPFailureFeedbackRoleArn` – Indicates failed message delivery
|
2468
|
+
# status for an Amazon SNS topic that is subscribed to an HTTP
|
2469
|
+
# endpoint.
|
2470
|
+
#
|
2471
|
+
# * Amazon Kinesis Data Firehose
|
2472
|
+
#
|
2473
|
+
# * `FirehoseSuccessFeedbackRoleArn` – Indicates successful message
|
2474
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2475
|
+
# Amazon Kinesis Data Firehose endpoint.
|
2476
|
+
#
|
2477
|
+
# * `FirehoseSuccessFeedbackSampleRate` – Indicates percentage of
|
2478
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2479
|
+
# subscribed to an Amazon Kinesis Data Firehose endpoint.
|
2480
|
+
#
|
2481
|
+
# * `FirehoseFailureFeedbackRoleArn` – Indicates failed message
|
2482
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2483
|
+
# Amazon Kinesis Data Firehose endpoint.
|
2484
|
+
#
|
2485
|
+
# * Lambda
|
2486
|
+
#
|
2487
|
+
# * `LambdaSuccessFeedbackRoleArn` – Indicates successful message
|
2488
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2489
|
+
# Lambda endpoint.
|
2490
|
+
#
|
2491
|
+
# * `LambdaSuccessFeedbackSampleRate` – Indicates percentage of
|
2492
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2493
|
+
# subscribed to an Lambda endpoint.
|
2494
|
+
#
|
2495
|
+
# * `LambdaFailureFeedbackRoleArn` – Indicates failed message
|
2496
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2497
|
+
# Lambda endpoint.
|
2498
|
+
#
|
2499
|
+
# * Platform application endpoint
|
2500
|
+
#
|
2501
|
+
# * `ApplicationSuccessFeedbackRoleArn` – Indicates successful
|
2502
|
+
# message delivery status for an Amazon SNS topic that is
|
2503
|
+
# subscribed to an Amazon Web Services application endpoint.
|
2504
|
+
#
|
2505
|
+
# * `ApplicationSuccessFeedbackSampleRate` – Indicates percentage of
|
2506
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2507
|
+
# subscribed to an Amazon Web Services application endpoint.
|
2508
|
+
#
|
2509
|
+
# * `ApplicationFailureFeedbackRoleArn` – Indicates failed message
|
2510
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2511
|
+
# Amazon Web Services application endpoint.
|
2512
|
+
#
|
2513
|
+
# <note markdown="1"> In addition to being able to configure topic attributes for
|
2514
|
+
# message delivery status of notification messages sent to Amazon
|
2515
|
+
# SNS application endpoints, you can also configure application
|
2516
|
+
# attributes for the delivery status of push notification messages
|
2517
|
+
# sent to push notification services.
|
2518
|
+
#
|
2519
|
+
# For example, For more information, see [Using Amazon SNS
|
2520
|
+
# Application Attributes for Message Delivery Status][1].
|
2521
|
+
#
|
2522
|
+
# </note>
|
2523
|
+
#
|
2524
|
+
# * Amazon SQS
|
2525
|
+
#
|
2526
|
+
# * `SQSSuccessFeedbackRoleArn` – Indicates successful message
|
2527
|
+
# delivery status for an Amazon SNS topic that is subscribed to an
|
2528
|
+
# Amazon SQS endpoint.
|
2529
|
+
#
|
2530
|
+
# * `SQSSuccessFeedbackSampleRate` – Indicates percentage of
|
2531
|
+
# successful messages to sample for an Amazon SNS topic that is
|
2532
|
+
# subscribed to an Amazon SQS endpoint.
|
2533
|
+
#
|
2534
|
+
# * `SQSFailureFeedbackRoleArn` – Indicates failed message delivery
|
2535
|
+
# status for an Amazon SNS topic that is subscribed to an Amazon
|
2536
|
+
# SQS endpoint.
|
2537
|
+
#
|
2538
|
+
# <note markdown="1"> The <ENDPOINT>SuccessFeedbackRoleArn and
|
2539
|
+
# <ENDPOINT>FailureFeedbackRoleArn attributes are used to give
|
2540
|
+
# Amazon SNS write access to use CloudWatch Logs on your behalf. The
|
2541
|
+
# <ENDPOINT>SuccessFeedbackSampleRate attribute is for
|
2542
|
+
# specifying the sample rate percentage (0-100) of successfully
|
2543
|
+
# delivered messages. After you configure the
|
2544
|
+
# <ENDPOINT>FailureFeedbackRoleArn attribute, then all failed
|
2545
|
+
# message deliveries generate CloudWatch Logs.
|
2546
|
+
#
|
2547
|
+
# </note>
|
2450
2548
|
#
|
2451
2549
|
# The following attribute applies only to
|
2452
|
-
# [server-side-encryption][
|
2550
|
+
# [server-side-encryption][2]\:
|
2453
2551
|
#
|
2454
2552
|
# * `KmsMasterKeyId` – The ID of an Amazon Web Services managed
|
2455
2553
|
# customer master key (CMK) for Amazon SNS or a custom CMK. For more
|
2456
|
-
# information, see [Key Terms][
|
2554
|
+
# information, see [Key Terms][3]. For more examples, see [KeyId][4]
|
2457
2555
|
# in the *Key Management Service API Reference*.
|
2458
2556
|
#
|
2459
2557
|
# * `SignatureVersion` – The signature version corresponds to the
|
2460
2558
|
# hashing algorithm used while creating the signature of the
|
2461
2559
|
# notifications, subscription confirmations, or unsubscribe
|
2462
|
-
# confirmation messages sent by Amazon SNS.
|
2560
|
+
# confirmation messages sent by Amazon SNS. By default,
|
2561
|
+
# `SignatureVersion` is set to `1`.
|
2463
2562
|
#
|
2464
|
-
# The following attribute applies only to [FIFO topics][
|
2563
|
+
# The following attribute applies only to [FIFO topics][5]\:
|
2465
2564
|
#
|
2466
2565
|
# * `ContentBasedDeduplication` – Enables content-based deduplication
|
2467
2566
|
# for FIFO topics.
|
@@ -2469,7 +2568,7 @@ module Aws::SNS
|
|
2469
2568
|
# * By default, `ContentBasedDeduplication` is set to `false`. If
|
2470
2569
|
# you create a FIFO topic and this attribute is `false`, you must
|
2471
2570
|
# specify a value for the `MessageDeduplicationId` parameter for
|
2472
|
-
# the [Publish][
|
2571
|
+
# the [Publish][6] action.
|
2473
2572
|
#
|
2474
2573
|
# * When you set `ContentBasedDeduplication` to `true`, Amazon SNS
|
2475
2574
|
# uses a SHA-256 hash to generate the `MessageDeduplicationId`
|
@@ -2482,11 +2581,12 @@ module Aws::SNS
|
|
2482
2581
|
#
|
2483
2582
|
#
|
2484
2583
|
#
|
2485
|
-
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-
|
2486
|
-
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
2487
|
-
# [3]: https://docs.aws.amazon.com/
|
2488
|
-
# [4]: https://docs.aws.amazon.com/
|
2489
|
-
# [5]: https://docs.aws.amazon.com/sns/latest/
|
2584
|
+
# [1]: https://docs.aws.amazon.com/sns/latest/dg/sns-msg-status.html
|
2585
|
+
# [2]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html
|
2586
|
+
# [3]: https://docs.aws.amazon.com/sns/latest/dg/sns-server-side-encryption.html#sse-key-terms
|
2587
|
+
# [4]: https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html#API_DescribeKey_RequestParameters
|
2588
|
+
# [5]: https://docs.aws.amazon.com/sns/latest/dg/sns-fifo-topics.html
|
2589
|
+
# [6]: https://docs.aws.amazon.com/sns/latest/api/API_Publish.html
|
2490
2590
|
# @return [String]
|
2491
2591
|
#
|
2492
2592
|
# @!attribute [rw] attribute_value
|
data/lib/aws-sdk-sns.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-sns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.60.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|