aws-sdk-sns 1.44.0 → 1.47.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7a0eb87b4db23738baa3befd0cd2ecb1e32eb48de9f376f66aca05411646193f
4
- data.tar.gz: ffc6314ade82dac7b2e37f2e1224cf7365595ed55a6519e4302ceaccd94cf4fe
3
+ metadata.gz: c94a5d0b6fa6e212959aec808ec9a1f6605b4ba78b339d0152902f160ad5a045
4
+ data.tar.gz: ea49e66409d5dae5958425d39f6b19d5cfc0bc19c7001de7abfe33ef968fc409
5
5
  SHA512:
6
- metadata.gz: 79ca666e79cf948938f9549ab174ba9ed35b6b3ea051ab1de7ff93e7315e7274d14750fee4ba139c78649615db075ddfa59ee8949a932db88b54b9cd200a8459
7
- data.tar.gz: b08597a79f60af12ba4e85a437126b417760ae2f8d5e1ed453fa11736c827282a57691d80a9893964b05aeed7d41cb7a5fe8faae751ea04b9649aa0c40cde6d6
6
+ metadata.gz: 120bb1ebb7f4f241f9c4658cd7595658f5fb19cc5d415fd557ec3c639f1d2ccf56293d2abaf1c7cb44c677dacb0ec40028720c9548043aeb45e412700cfb01e8
7
+ data.tar.gz: 95aa7691b27c904bdb9971291085d4fb289da782d3d31ef1d81c7699d615197051bec1c3e943a08301c873019f5071ea567214f17514b1e8b2dd76160c6fa903
data/CHANGELOG.md CHANGED
@@ -1,6 +1,26 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.47.0 (2021-11-04)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.46.0 (2021-10-18)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.45.1 (2021-10-15)
15
+ ------------------
16
+
17
+ * Issue - Add additional validation to the SNS SigningCert.
18
+
19
+ 1.45.0 (2021-09-01)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
4
24
  1.44.0 (2021-07-30)
5
25
  ------------------
6
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.47.0
@@ -275,6 +275,15 @@ module Aws::SNS
275
275
  # ** Please note ** When response stubbing is enabled, no HTTP
276
276
  # requests are made, and retries are disabled.
277
277
  #
278
+ # @option options [Boolean] :use_dualstack_endpoint
279
+ # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
280
+ # will be used if available.
281
+ #
282
+ # @option options [Boolean] :use_fips_endpoint
283
+ # When set to `true`, fips compatible endpoints will be used if available.
284
+ # When a `fips` region is used, the region is normalized and this config
285
+ # is set to `true`.
286
+ #
278
287
  # @option options [Boolean] :validate_params (true)
279
288
  # When `true`, request parameters are validated before
280
289
  # sending the request.
@@ -2452,7 +2461,7 @@ module Aws::SNS
2452
2461
  params: params,
2453
2462
  config: config)
2454
2463
  context[:gem_name] = 'aws-sdk-sns'
2455
- context[:gem_version] = '1.44.0'
2464
+ context[:gem_version] = '1.47.0'
2456
2465
  Seahorse::Client::Request.new(handlers, context)
2457
2466
  end
2458
2467
 
@@ -123,7 +123,9 @@ module Aws
123
123
 
124
124
  def download_pem(uri)
125
125
  verify_uri!(uri)
126
- https_get(uri)
126
+ pem = https_get(uri)
127
+ verify_pem_format!(pem)
128
+ pem
127
129
  end
128
130
 
129
131
  def verify_uri!(uri)
@@ -153,6 +155,14 @@ module Aws
153
155
  end
154
156
  end
155
157
 
158
+ def verify_pem_format!(pem)
159
+ cert_regex = /\A[\s]*-----BEGIN [A-Z]+-----\n[A-Za-z\d+\/\n]+[=]{0,2}\n-----END [A-Z]+-----[\s]*\Z/
160
+ unless pem =~ cert_regex
161
+ msg = 'The certificate does not match expected X509 PEM format.'
162
+ raise VerificationError, msg
163
+ end
164
+ end
165
+
156
166
  def https_get(uri, failed_attempts = 0)
157
167
  args = []
158
168
  args << uri.host
data/lib/aws-sdk-sns.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-sns/customizations'
52
52
  # @!group service
53
53
  module Aws::SNS
54
54
 
55
- GEM_VERSION = '1.44.0'
55
+ GEM_VERSION = '1.47.0'
56
56
 
57
57
  end
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.44.0
4
+ version: 1.47.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: 2021-07-30 00:00:00.000000000 Z
11
+ date: 2021-11-04 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.119.0
22
+ version: 3.122.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.119.0
32
+ version: 3.122.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
- version: '0'
84
+ version: '2.3'
85
85
  required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="