aws-sdk-core 3.131.3 → 3.131.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 841c00d0f15577e794600c6d510e131c28c5daceaf682ea8f037b672600d2ba1
4
- data.tar.gz: 8c1036761b99ae9d06809e8382a3abf7c018852616a26bfb907981550b960b9f
3
+ metadata.gz: 9b3a0a1606fdb57030d18e8986ddf5d2899174ec65e02838dfc09ad67628440e
4
+ data.tar.gz: 51ad6b7092e78e0592421cc86febe762e9d9fdba964ecd11c87c19fec1612a2d
5
5
  SHA512:
6
- metadata.gz: 4fb0e66c9f849349f474881b161b81f5b07d6258998d741b12203a6814c79f029e70651c8da0aa364255e70ce89a1ed94a4e45376087e81ea4d37d391131138a
7
- data.tar.gz: 2ac018694538ba648287e3080ecd0e9bffcd350abc1f5a0a15f958a544b94d1f8d88ac245f20bd2708488b24e189137aeee40f8ae0e34b62c3be71cf197214ed
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.3
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-amz-trace-id')
12
+ unless context.http_request.headers.key?('x-amzn-trace-id')
13
13
  if ENV['AWS_LAMBDA_FUNCTION_NAME'] &&
14
- (trace_id = ENV['_X_AMZ_TRACE_ID'])
15
- context.http_request.headers['x-amz-trace-id'] = trace_id
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
- hash[member] = to_hash(value) unless value.nil?
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
- hash[key] = to_hash(value)
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
@@ -545,7 +545,7 @@ module Aws::SSO
545
545
  params: params,
546
546
  config: config)
547
547
  context[:gem_name] = 'aws-sdk-core'
548
- context[:gem_version] = '3.131.3'
548
+ context[:gem_version] = '3.131.6'
549
549
  Seahorse::Client::Request.new(handlers, context)
550
550
  end
551
551
 
data/lib/aws-sdk-sso.rb CHANGED
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sso/customizations'
50
50
  # @!group service
51
51
  module Aws::SSO
52
52
 
53
- GEM_VERSION = '3.131.3'
53
+ GEM_VERSION = '3.131.6'
54
54
 
55
55
  end
@@ -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.3'
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
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sts/customizations'
50
50
  # @!group service
51
51
  module Aws::STS
52
52
 
53
- GEM_VERSION = '3.131.3'
53
+ GEM_VERSION = '3.131.6'
54
54
 
55
55
  end
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.3
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-07-18 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath