aws-sdk-core 3.159.0 → 3.161.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: dff266555aa0d9f307a13cec1a22d32ca3c3b0210e384d3c00823dcf5caeec0d
4
- data.tar.gz: e81c2da1c51ad5689612e9ebb6e73711dbbe0218da6fa685682da681643bb61a
3
+ metadata.gz: 9f80c034045a5d3ec2ebced77055d7a4a1189a7141075b82d118c897b73ae455
4
+ data.tar.gz: 5127aef8e36b506b035c80801097cd4bee2c2be087b7b8e93f4183756e6cf1bb
5
5
  SHA512:
6
- metadata.gz: 5fb4a8c5eeadf9ca8f7191e875a48649e11500cab94dfbd652bc215ce30dc390d0c19f8fa3834c6526c7232c8ff0c0241de8758678aed6307fddfd28c78f8e09
7
- data.tar.gz: c2b65a09b76f4ec4ff7d5ec9af3354ff52fe4040f6212a783d17c055c8c950eff4fc08bde600f52d755907ddbcd62f46e36b3c5877e8bf6353d9be0790fa3d06
6
+ metadata.gz: f65452454d6b28279cf7c5d700f74f199cdbe7ea3d077ee58d3f7d08c4428c427be41f3c959f7ebdb9c2ad475d21fc23114698c7d4bcf2020c2847a977d5af9a
7
+ data.tar.gz: 03d512ded9784ba77982a03229f544026427b45ba9cbd9ade52f3f76e224d111bd8643fb29912581d6a857d08eb184d4919e8d2daaabc2d23bc0e32fc434222e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.161.0 (2022-10-18)
5
+ ------------------
6
+
7
+ * Feature - Support AwsQueryCompatible trait to read error code from x-amzn-query-error header.
8
+
9
+ 3.160.0 (2022-10-13)
10
+ ------------------
11
+
12
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
13
+
4
14
  3.159.0 (2022-10-07)
5
15
  ------------------
6
16
 
@@ -9,7 +19,7 @@ Unreleased Changes
9
19
  3.158.1 (2022-10-06)
10
20
  ------------------
11
21
 
12
- * Issue - Ensure that the ReadCallbackIO is always unwrapped (#2761).
22
+ * Issue - Ensure that the ReadCallbackIO is always unwrapped (#2761).
13
23
 
14
24
  3.158.0 (2022-09-30)
15
25
  ------------------
@@ -139,12 +149,13 @@ Unreleased Changes
139
149
  * Feature - Updated Aws::SSO::Client with the latest API changes.
140
150
 
141
151
  * Feature - Add support for Bearer Token Authentication and TokenProviders.
152
+
142
153
  * Issue - Validate that `_X_AMZN_TRACE_ID` ENV value contains only valid, non-control characters.
143
154
 
144
155
  3.133.0 (2022-08-22)
145
156
  ------------------
146
157
 
147
- * Feature - Moved functionality from `aws-sdk-ssoidc` into core.
158
+ * Feature - Moved functionality from `aws-sdk-ssooidc` into core.
148
159
 
149
160
  3.132.0 (2022-08-08)
150
161
  ------------------
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.159.0
1
+ 3.161.0
@@ -26,7 +26,11 @@ module Aws
26
26
  end
27
27
 
28
28
  def error_code(json, context)
29
- code = json['__type']
29
+ code = if aws_query_error?(context)
30
+ context.http_response.headers['x-amzn-query-error'].split(';')[0]
31
+ else
32
+ json['__type']
33
+ end
30
34
  code ||= json['code']
31
35
  code ||= context.http_response.headers['x-amzn-errortype']
32
36
  if code
@@ -36,6 +40,11 @@ module Aws
36
40
  end
37
41
  end
38
42
 
43
+ def aws_query_error?(context)
44
+ context.config.api.metadata['awsQueryCompatible'] &&
45
+ context.http_response.headers['x-amzn-query-error']
46
+ end
47
+
39
48
  def error_message(code, json)
40
49
  if code == 'RequestEntityTooLarge'
41
50
  'Request body must be less than 1 MB'
@@ -568,7 +568,7 @@ module Aws::SSO
568
568
  params: params,
569
569
  config: config)
570
570
  context[:gem_name] = 'aws-sdk-core'
571
- context[:gem_version] = '3.159.0'
571
+ context[:gem_version] = '3.161.0'
572
572
  Seahorse::Client::Request.new(handlers, context)
573
573
  end
574
574
 
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.159.0'
53
+ GEM_VERSION = '3.161.0'
54
54
 
55
55
  end
@@ -564,7 +564,7 @@ module Aws::SSOOIDC
564
564
  params: params,
565
565
  config: config)
566
566
  context[:gem_name] = 'aws-sdk-core'
567
- context[:gem_version] = '3.158.1'
567
+ context[:gem_version] = '3.160.0'
568
568
  Seahorse::Client::Request.new(handlers, context)
569
569
  end
570
570
 
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-ssooidc/customizations'
50
50
  # @!group service
51
51
  module Aws::SSOOIDC
52
52
 
53
- GEM_VERSION = '3.158.1'
53
+ GEM_VERSION = '3.160.0'
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.159.0'
2302
+ context[:gem_version] = '3.161.0'
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.159.0'
53
+ GEM_VERSION = '3.161.0'
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.159.0
4
+ version: 3.161.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: 2022-10-07 00:00:00.000000000 Z
11
+ date: 2022-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath