aws-sdk-sns 1.29.0 → 1.33.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 -2
- data/lib/aws-sdk-sns/client.rb +29 -17
- data/lib/aws-sdk-sns/message_verifier.rb +22 -5
- data/lib/aws-sdk-sns/topic.rb +6 -9
- data/lib/aws-sdk-sns/types.rb +7 -9
- 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: b390099af9da27241a7bf31dacae9567b22709ce5428a166dade893121da02f4
|
4
|
+
data.tar.gz: 20a343e906d29214f10b5545749a7b0e8bc887b18c032de04d0f78268e3fc5f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5bbbf8d705ed1e0ef3ece707714b51ea192d3076f9a38222e8869ec496b8f52ecb364d0a75052e195c02a59a76cea6618fcf9f907e45e9075a74e751fb4d095
|
7
|
+
data.tar.gz: 860ec6364dd8da8f7ca890afaa3af60b75d60f40aff464fe5e681bc8a437a9452fc19f77f20192a10b58d9c9b524fe1bed9c15fc627bf961cd103c2acadaddc2
|
data/lib/aws-sdk-sns.rb
CHANGED
@@ -7,6 +7,7 @@
|
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
10
|
+
|
10
11
|
require 'aws-sdk-core'
|
11
12
|
require 'aws-sigv4'
|
12
13
|
|
@@ -48,9 +49,9 @@ require_relative 'aws-sdk-sns/customizations'
|
|
48
49
|
#
|
49
50
|
# See {Errors} for more information.
|
50
51
|
#
|
51
|
-
#
|
52
|
+
# @!group service
|
52
53
|
module Aws::SNS
|
53
54
|
|
54
|
-
GEM_VERSION = '1.
|
55
|
+
GEM_VERSION = '1.33.0'
|
55
56
|
|
56
57
|
end
|
data/lib/aws-sdk-sns/client.rb
CHANGED
@@ -85,13 +85,28 @@ module Aws::SNS
|
|
85
85
|
# * `Aws::Credentials` - Used for configuring static, non-refreshing
|
86
86
|
# credentials.
|
87
87
|
#
|
88
|
+
# * `Aws::SharedCredentials` - Used for loading static credentials from a
|
89
|
+
# shared file, such as `~/.aws/config`.
|
90
|
+
#
|
91
|
+
# * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
|
92
|
+
#
|
93
|
+
# * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
|
94
|
+
# assume a role after providing credentials via the web.
|
95
|
+
#
|
96
|
+
# * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
|
97
|
+
# access token generated from `aws login`.
|
98
|
+
#
|
99
|
+
# * `Aws::ProcessCredentials` - Used for loading credentials from a
|
100
|
+
# process that outputs to stdout.
|
101
|
+
#
|
88
102
|
# * `Aws::InstanceProfileCredentials` - Used for loading credentials
|
89
103
|
# from an EC2 IMDS on an EC2 instance.
|
90
104
|
#
|
91
|
-
# * `Aws::
|
92
|
-
#
|
105
|
+
# * `Aws::ECSCredentials` - Used for loading credentials from
|
106
|
+
# instances running in ECS.
|
93
107
|
#
|
94
|
-
# * `Aws::
|
108
|
+
# * `Aws::CognitoIdentityCredentials` - Used for loading credentials
|
109
|
+
# from the Cognito Identity service.
|
95
110
|
#
|
96
111
|
# When `:credentials` are not configured directly, the following
|
97
112
|
# locations will be searched for credentials:
|
@@ -101,10 +116,10 @@ module Aws::SNS
|
|
101
116
|
# * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
|
102
117
|
# * `~/.aws/credentials`
|
103
118
|
# * `~/.aws/config`
|
104
|
-
# * EC2 IMDS instance profile - When used by default, the timeouts
|
105
|
-
# very aggressive. Construct and pass an instance of
|
106
|
-
# `Aws::InstanceProfileCredentails`
|
107
|
-
# timeouts.
|
119
|
+
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
120
|
+
# are very aggressive. Construct and pass an instance of
|
121
|
+
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
122
|
+
# enable retries and extended timeouts.
|
108
123
|
#
|
109
124
|
# @option options [required, String] :region
|
110
125
|
# The AWS region to connect to. The configured `:region` is
|
@@ -1885,15 +1900,12 @@ module Aws::SNS
|
|
1885
1900
|
# Sets whether the response from the `Subscribe` request includes the
|
1886
1901
|
# subscription ARN, even if the subscription is not yet confirmed.
|
1887
1902
|
#
|
1888
|
-
#
|
1889
|
-
#
|
1890
|
-
#
|
1891
|
-
#
|
1892
|
-
#
|
1893
|
-
#
|
1894
|
-
# confirmation token.
|
1895
|
-
#
|
1896
|
-
# ^
|
1903
|
+
# If you set this parameter to `true`, the response includes the ARN in
|
1904
|
+
# all cases, even if the subscription is not yet confirmed. In addition
|
1905
|
+
# to the ARN for confirmed subscriptions, the response also includes the
|
1906
|
+
# `pending subscription` ARN value for subscriptions that aren't yet
|
1907
|
+
# confirmed. A subscription becomes confirmed when the subscriber calls
|
1908
|
+
# the `ConfirmSubscription` action with a confirmation token.
|
1897
1909
|
#
|
1898
1910
|
#
|
1899
1911
|
#
|
@@ -2056,7 +2068,7 @@ module Aws::SNS
|
|
2056
2068
|
params: params,
|
2057
2069
|
config: config)
|
2058
2070
|
context[:gem_name] = 'aws-sdk-sns'
|
2059
|
-
context[:gem_version] = '1.
|
2071
|
+
context[:gem_version] = '1.33.0'
|
2060
2072
|
Seahorse::Client::Request.new(handlers, context)
|
2061
2073
|
end
|
2062
2074
|
|
@@ -6,7 +6,6 @@ require 'base64'
|
|
6
6
|
|
7
7
|
module Aws
|
8
8
|
module SNS
|
9
|
-
|
10
9
|
# A utility class that can be used to verify the authenticity of messages
|
11
10
|
# sent by Amazon SNS.
|
12
11
|
#
|
@@ -33,16 +32,20 @@ module Aws
|
|
33
32
|
'Timestamp',
|
34
33
|
'Token',
|
35
34
|
'TopicArn',
|
36
|
-
'Type'
|
35
|
+
'Type'
|
37
36
|
].freeze
|
38
37
|
|
39
38
|
# @api private
|
40
39
|
AWS_HOSTNAMES = [
|
41
40
|
/^sns\.[a-zA-Z0-9\-]{3,}\.amazonaws\.com(\.cn)?$/
|
42
|
-
]
|
41
|
+
].freeze
|
43
42
|
|
44
|
-
|
43
|
+
# @param [Hash] http_options Supported options to be passed to Net::HTTP.
|
44
|
+
# @option http_options [String] :http_proxy A proxy to send
|
45
|
+
# requests through. Formatted like 'http://proxy.com:123'.
|
46
|
+
def initialize(http_options = {})
|
45
47
|
@cached_pems = {}
|
48
|
+
@http_proxy = http_options[:http_proxy]
|
46
49
|
end
|
47
50
|
|
48
51
|
# @param [String<JSON>] message_body
|
@@ -151,7 +154,11 @@ module Aws
|
|
151
154
|
end
|
152
155
|
|
153
156
|
def https_get(uri, failed_attempts = 0)
|
154
|
-
|
157
|
+
args = []
|
158
|
+
args << uri.host
|
159
|
+
args << uri.port
|
160
|
+
args += http_proxy_parts
|
161
|
+
http = Net::HTTP.new(*args.compact)
|
155
162
|
http.use_ssl = true
|
156
163
|
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
|
157
164
|
http.start
|
@@ -168,6 +175,16 @@ module Aws
|
|
168
175
|
raise VerificationError, error.message
|
169
176
|
end
|
170
177
|
|
178
|
+
def http_proxy_parts
|
179
|
+
# empty string if not configured, URI parts return nil
|
180
|
+
http_proxy = URI.parse(@http_proxy.to_s)
|
181
|
+
[
|
182
|
+
http_proxy.host,
|
183
|
+
http_proxy.port,
|
184
|
+
(http_proxy.user && CGI.unescape(http_proxy.user)),
|
185
|
+
(http_proxy.password && CGI.unescape(http_proxy.password))
|
186
|
+
]
|
187
|
+
end
|
171
188
|
end
|
172
189
|
end
|
173
190
|
end
|
data/lib/aws-sdk-sns/topic.rb
CHANGED
@@ -437,15 +437,12 @@ module Aws::SNS
|
|
437
437
|
# Sets whether the response from the `Subscribe` request includes the
|
438
438
|
# subscription ARN, even if the subscription is not yet confirmed.
|
439
439
|
#
|
440
|
-
#
|
441
|
-
#
|
442
|
-
#
|
443
|
-
#
|
444
|
-
#
|
445
|
-
#
|
446
|
-
# confirmation token.
|
447
|
-
#
|
448
|
-
# ^
|
440
|
+
# If you set this parameter to `true`, the response includes the ARN in
|
441
|
+
# all cases, even if the subscription is not yet confirmed. In addition
|
442
|
+
# to the ARN for confirmed subscriptions, the response also includes the
|
443
|
+
# `pending subscription` ARN value for subscriptions that aren't yet
|
444
|
+
# confirmed. A subscription becomes confirmed when the subscriber calls
|
445
|
+
# the `ConfirmSubscription` action with a confirmation token.
|
449
446
|
#
|
450
447
|
#
|
451
448
|
#
|
data/lib/aws-sdk-sns/types.rb
CHANGED
@@ -2033,15 +2033,13 @@ module Aws::SNS
|
|
2033
2033
|
# Sets whether the response from the `Subscribe` request includes the
|
2034
2034
|
# subscription ARN, even if the subscription is not yet confirmed.
|
2035
2035
|
#
|
2036
|
-
#
|
2037
|
-
#
|
2038
|
-
#
|
2039
|
-
#
|
2040
|
-
#
|
2041
|
-
#
|
2042
|
-
#
|
2043
|
-
#
|
2044
|
-
# ^
|
2036
|
+
# If you set this parameter to `true`, the response includes the ARN
|
2037
|
+
# in all cases, even if the subscription is not yet confirmed. In
|
2038
|
+
# addition to the ARN for confirmed subscriptions, the response also
|
2039
|
+
# includes the `pending subscription` ARN value for subscriptions that
|
2040
|
+
# aren't yet confirmed. A subscription becomes confirmed when the
|
2041
|
+
# subscriber calls the `ConfirmSubscription` action with a
|
2042
|
+
# confirmation token.
|
2045
2043
|
#
|
2046
2044
|
#
|
2047
2045
|
#
|
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.33.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: 2020-08
|
11
|
+
date: 2020-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.109.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.109.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|