aws-sdk-core 3.131.3 → 3.131.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-core/pageable_response.rb +7 -0
- data/lib/aws-sdk-core/plugins/recursion_detection.rb +3 -3
- data/lib/aws-sdk-core/shared_config.rb +2 -0
- data/lib/aws-sdk-core/structure.rb +6 -4
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/aws-sdk-sts.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: 9b3a0a1606fdb57030d18e8986ddf5d2899174ec65e02838dfc09ad67628440e
|
4
|
+
data.tar.gz: 51ad6b7092e78e0592421cc86febe762e9d9fdba964ecd11c87c19fec1612a2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6cd8764970b7568c809a7480fb7c04eebac3e8a08e4994dc56cc34372bb446cf6464e0ce5d8d60d4eaa2c52871a189b12480921472b14868f79246588fc16a73
|
7
|
+
data.tar.gz: f15793cc9b4c973c3c31971e0d9ea44811a698cff738add7601e3afb462a7718d99cef502c25e5d5bb347e6a2ab468c6d5a9bb3439021c39d97cec3660e94847
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,26 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
3.131.6 (2022-08-03)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Fix typo in `RecursionDetection`, change amz to amzn in header and env name.
|
8
|
+
|
9
|
+
3.131.5 (2022-07-28)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Fix `to_json` usage in nested hashes by defining `as_json` (#2733).
|
13
|
+
|
14
|
+
3.131.4 (2022-07-27)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Issue - Fix `to_json` usage on pageable responses when using Rails (#2733).
|
18
|
+
* Issue - Use `expand_path` on credential/config paths in SharedConfig (#2735).
|
19
|
+
|
4
20
|
3.131.3 (2022-07-18)
|
5
21
|
------------------
|
6
22
|
|
7
|
-
* Issue - Add support for serializing shapes on the body with `jsonvalue` members.
|
23
|
+
* Issue - Add support for serializing shapes on the body with `jsonvalue` members.
|
8
24
|
|
9
25
|
3.131.2 (2022-06-20)
|
10
26
|
------------------
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.131.
|
1
|
+
3.131.6
|
@@ -146,6 +146,13 @@ module Aws
|
|
146
146
|
data.to_h
|
147
147
|
end
|
148
148
|
|
149
|
+
def as_json(_options = {})
|
150
|
+
data.to_h(data, as_json: true)
|
151
|
+
end
|
152
|
+
|
153
|
+
def to_json(options = {})
|
154
|
+
as_json.to_json(options)
|
155
|
+
end
|
149
156
|
end
|
150
157
|
|
151
158
|
# The actual decorator module implementation. It is in a distinct module
|
@@ -9,10 +9,10 @@ module Aws
|
|
9
9
|
class Handler < Seahorse::Client::Handler
|
10
10
|
def call(context)
|
11
11
|
|
12
|
-
unless context.http_request.headers.key?('x-
|
12
|
+
unless context.http_request.headers.key?('x-amzn-trace-id')
|
13
13
|
if ENV['AWS_LAMBDA_FUNCTION_NAME'] &&
|
14
|
-
(trace_id = ENV['
|
15
|
-
context.http_request.headers['x-
|
14
|
+
(trace_id = ENV['_X_AMZN_TRACE_ID'])
|
15
|
+
context.http_request.headers['x-amzn-trace-id'] = trace_id
|
16
16
|
end
|
17
17
|
end
|
18
18
|
@handler.call(context)
|
@@ -51,10 +51,12 @@ module Aws
|
|
51
51
|
@config_enabled = options[:config_enabled]
|
52
52
|
@credentials_path = options[:credentials_path] ||
|
53
53
|
determine_credentials_path
|
54
|
+
@credentials_path = File.expand_path(@credentials_path) if @credentials_path
|
54
55
|
@parsed_credentials = {}
|
55
56
|
load_credentials_file if loadable?(@credentials_path)
|
56
57
|
if @config_enabled
|
57
58
|
@config_path = options[:config_path] || determine_config_path
|
59
|
+
@config_path = File.expand_path(@config_path) if @config_path
|
58
60
|
load_config_file if loadable?(@config_path)
|
59
61
|
end
|
60
62
|
end
|
@@ -28,18 +28,20 @@ module Aws
|
|
28
28
|
# in stdlib Struct.
|
29
29
|
#
|
30
30
|
# @return [Hash]
|
31
|
-
def to_h(obj = self)
|
31
|
+
def to_h(obj = self, options = {})
|
32
32
|
case obj
|
33
33
|
when Struct
|
34
34
|
obj.each_pair.with_object({}) do |(member, value), hash|
|
35
|
-
|
35
|
+
member = member.to_s if options[:as_json]
|
36
|
+
hash[member] = to_hash(value, options) unless value.nil?
|
36
37
|
end
|
37
38
|
when Hash
|
38
39
|
obj.each.with_object({}) do |(key, value), hash|
|
39
|
-
|
40
|
+
key = key.to_s if options[:as_json]
|
41
|
+
hash[key] = to_hash(value, options)
|
40
42
|
end
|
41
43
|
when Array
|
42
|
-
obj.collect { |value| to_hash(value) }
|
44
|
+
obj.collect { |value| to_hash(value, options) }
|
43
45
|
else
|
44
46
|
obj
|
45
47
|
end
|
data/lib/aws-sdk-sso/client.rb
CHANGED
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -2299,7 +2299,7 @@ module Aws::STS
|
|
2299
2299
|
params: params,
|
2300
2300
|
config: config)
|
2301
2301
|
context[:gem_name] = 'aws-sdk-core'
|
2302
|
-
context[:gem_version] = '3.131.
|
2302
|
+
context[:gem_version] = '3.131.6'
|
2303
2303
|
Seahorse::Client::Request.new(handlers, context)
|
2304
2304
|
end
|
2305
2305
|
|
data/lib/aws-sdk-sts.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.131.
|
4
|
+
version: 3.131.6
|
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: 2022-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|