aws-sdk-sns 1.59.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-sns/client.rb +18 -3
- data/lib/aws-sdk-sns/endpoint_parameters.rb +0 -3
- data/lib/aws-sdk-sns/endpoint_provider.rb +31 -28
- data/lib/aws-sdk-sns/resource.rb +8 -1
- data/lib/aws-sdk-sns/topic.rb +20 -3
- data/lib/aws-sdk-sns/types.rb +31 -4
- 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
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.60.0
|
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -730,7 +730,14 @@ 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
|
+
#
|
735
|
+
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
736
|
+
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
737
|
+
# through the tracing header it receives from an Amazon SNS publisher
|
738
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
739
|
+
# segment data to topic owner account if the sampled flag in the
|
740
|
+
# tracing header is true. This is only supported on standard topics.
|
734
741
|
#
|
735
742
|
# The following attribute applies only to [server-side encryption][1]\:
|
736
743
|
#
|
@@ -2364,6 +2371,13 @@ module Aws::SNS
|
|
2364
2371
|
# * `Policy` – The policy that defines who can access your topic. By
|
2365
2372
|
# default, only the topic owner can publish or subscribe to the topic.
|
2366
2373
|
#
|
2374
|
+
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
2375
|
+
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
2376
|
+
# through the tracing header it receives from an Amazon SNS publisher
|
2377
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
2378
|
+
# segment data to topic owner account if the sampled flag in the
|
2379
|
+
# tracing header is true. This is only supported on standard topics.
|
2380
|
+
#
|
2367
2381
|
# * HTTP
|
2368
2382
|
#
|
2369
2383
|
# * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
|
@@ -2466,7 +2480,8 @@ module Aws::SNS
|
|
2466
2480
|
# * `SignatureVersion` – The signature version corresponds to the
|
2467
2481
|
# hashing algorithm used while creating the signature of the
|
2468
2482
|
# notifications, subscription confirmations, or unsubscribe
|
2469
|
-
# confirmation messages sent by Amazon SNS.
|
2483
|
+
# confirmation messages sent by Amazon SNS. By default,
|
2484
|
+
# `SignatureVersion` is set to `1`.
|
2470
2485
|
#
|
2471
2486
|
# The following attribute applies only to [FIFO topics][5]\:
|
2472
2487
|
#
|
@@ -2854,7 +2869,7 @@ module Aws::SNS
|
|
2854
2869
|
params: params,
|
2855
2870
|
config: config)
|
2856
2871
|
context[:gem_name] = 'aws-sdk-sns'
|
2857
|
-
context[:gem_version] = '1.
|
2872
|
+
context[:gem_version] = '1.60.0'
|
2858
2873
|
Seahorse::Client::Request.new(handlers, context)
|
2859
2874
|
end
|
2860
2875
|
|
@@ -50,9 +50,6 @@ module Aws::SNS
|
|
50
50
|
|
51
51
|
def initialize(options = {})
|
52
52
|
self[:region] = options[:region]
|
53
|
-
if self[:region].nil?
|
54
|
-
raise ArgumentError, "Missing required EndpointParameter: :region"
|
55
|
-
end
|
56
53
|
self[:use_dual_stack] = options[:use_dual_stack]
|
57
54
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
58
55
|
if self[:use_dual_stack].nil?
|
@@ -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,7 +114,14 @@ 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
|
+
#
|
119
|
+
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
120
|
+
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
121
|
+
# through the tracing header it receives from an Amazon SNS publisher
|
122
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
123
|
+
# segment data to topic owner account if the sampled flag in the
|
124
|
+
# tracing header is true. This is only supported on standard topics.
|
118
125
|
#
|
119
126
|
# The following attribute applies only to [server-side encryption][1]\:
|
120
127
|
#
|
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.
|
@@ -77,6 +79,13 @@ module Aws::SNS
|
|
77
79
|
#
|
78
80
|
# * `TopicArn` – The topic's ARN.
|
79
81
|
#
|
82
|
+
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
83
|
+
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
84
|
+
# through the tracing header it receives from an Amazon SNS publisher
|
85
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
86
|
+
# segment data to topic owner account if the sampled flag in the
|
87
|
+
# tracing header is true. This is only supported on standard topics.
|
88
|
+
#
|
80
89
|
# The following attribute applies only to [server-side-encryption][1]\:
|
81
90
|
#
|
82
91
|
# * `KmsMasterKeyId` - The ID of an Amazon Web Services managed customer
|
@@ -399,6 +408,13 @@ module Aws::SNS
|
|
399
408
|
# * `Policy` – The policy that defines who can access your topic. By
|
400
409
|
# default, only the topic owner can publish or subscribe to the topic.
|
401
410
|
#
|
411
|
+
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
412
|
+
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
413
|
+
# through the tracing header it receives from an Amazon SNS publisher
|
414
|
+
# to its subscriptions. If set to `Active`, Amazon SNS will vend X-Ray
|
415
|
+
# segment data to topic owner account if the sampled flag in the
|
416
|
+
# tracing header is true. This is only supported on standard topics.
|
417
|
+
#
|
402
418
|
# * HTTP
|
403
419
|
#
|
404
420
|
# * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
|
@@ -501,7 +517,8 @@ module Aws::SNS
|
|
501
517
|
# * `SignatureVersion` – The signature version corresponds to the
|
502
518
|
# hashing algorithm used while creating the signature of the
|
503
519
|
# notifications, subscription confirmations, or unsubscribe
|
504
|
-
# confirmation messages sent by Amazon SNS.
|
520
|
+
# confirmation messages sent by Amazon SNS. By default,
|
521
|
+
# `SignatureVersion` is set to `1`.
|
505
522
|
#
|
506
523
|
# The following attribute applies only to [FIFO topics][5]\:
|
507
524
|
#
|
data/lib/aws-sdk-sns/types.rb
CHANGED
@@ -363,7 +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
|
+
#
|
368
|
+
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
369
|
+
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
370
|
+
# through the tracing header it receives from an Amazon SNS
|
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.
|
367
375
|
#
|
368
376
|
# The following attribute applies only to [server-side
|
369
377
|
# encryption][1]\:
|
@@ -881,8 +889,10 @@ module Aws::SNS
|
|
881
889
|
# * `Policy` – The JSON serialization of the topic's access control
|
882
890
|
# policy.
|
883
891
|
#
|
884
|
-
# * `SignatureVersion` – The version
|
885
|
-
#
|
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.
|
886
896
|
#
|
887
897
|
# * By default, `SignatureVersion` is set to **1**. The signature is
|
888
898
|
# a Base64-encoded **SHA1withRSA** signature.
|
@@ -907,6 +917,14 @@ module Aws::SNS
|
|
907
917
|
#
|
908
918
|
# * `TopicArn` – The topic's ARN.
|
909
919
|
#
|
920
|
+
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
921
|
+
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
922
|
+
# through the tracing header it receives from an Amazon SNS
|
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.
|
927
|
+
#
|
910
928
|
# The following attribute applies only to
|
911
929
|
# [server-side-encryption][1]\:
|
912
930
|
#
|
@@ -2428,6 +2446,14 @@ module Aws::SNS
|
|
2428
2446
|
# default, only the topic owner can publish or subscribe to the
|
2429
2447
|
# topic.
|
2430
2448
|
#
|
2449
|
+
# * `TracingConfig` – Tracing mode of an Amazon SNS topic. By default
|
2450
|
+
# `TracingConfig` is set to `PassThrough`, and the topic passes
|
2451
|
+
# through the tracing header it receives from an Amazon SNS
|
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
|
+
#
|
2431
2457
|
# * HTTP
|
2432
2458
|
#
|
2433
2459
|
# * `HTTPSuccessFeedbackRoleArn` – Indicates successful message
|
@@ -2531,7 +2557,8 @@ module Aws::SNS
|
|
2531
2557
|
# * `SignatureVersion` – The signature version corresponds to the
|
2532
2558
|
# hashing algorithm used while creating the signature of the
|
2533
2559
|
# notifications, subscription confirmations, or unsubscribe
|
2534
|
-
# confirmation messages sent by Amazon SNS.
|
2560
|
+
# confirmation messages sent by Amazon SNS. By default,
|
2561
|
+
# `SignatureVersion` is set to `1`.
|
2535
2562
|
#
|
2536
2563
|
# The following attribute applies only to [FIFO topics][5]\:
|
2537
2564
|
#
|
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-02-
|
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
|