aws-sdk-core 3.105.0 → 3.109.2

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: b8c1b16aa96c3d7072aebb8d050d1ef7ebd252f8830b6113f86787e5db08ad65
4
- data.tar.gz: 7044562082f62c1a3c635a358f920ed120353fbd0625e7377e2dd0c16538a248
3
+ metadata.gz: 56d8c2bdc45f83da27d3846c9d2f153f54c0dda5d13365151b930aa2c2af436d
4
+ data.tar.gz: 534c9b31de25091aa51133a4cb0f8ab7525df1db9e65a7f952608906717c854a
5
5
  SHA512:
6
- metadata.gz: 1c1d2546c9d2cb8ec8d6545339d5a6ce25afff4dfde771ab9c211e9e11a52d0f5badce17d495ab15211d0a8d39fa8cfd5f9de89b76240d149b2b7da6b307fb1c
7
- data.tar.gz: 90522abd2e2839712d101baaccdcf42017063b6d7b8412eb2625b1e751faa8fa0b3c1fc06a547fd92b798fe55f85d5135b24900136fcc8d64fce42ad8bb3c79c
6
+ metadata.gz: fb63f647b67abf71593157c03d3243afe70dc6315232a15dc138513e79707adb85e87c0981a081e6d46c1e035c3dad645699f020c82ba4bfdb0eb77d2a821661
7
+ data.tar.gz: b9310cfcaee9621271fe0747c974d496d374cb95093a4a1fdd3f29ce3c902a5573fbf69fe6ad2ff2f8c77269965a363cbf166a5f2d37230fe8a9a86db29a0c13
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.105.0
1
+ 3.109.2
@@ -75,5 +75,18 @@ module Aws
75
75
  def to_s
76
76
  "arn:#{partition}:#{service}:#{region}:#{account_id}:#{resource}"
77
77
  end
78
+
79
+ # Return the ARN as a hash
80
+ #
81
+ # @return [Hash]
82
+ def to_h
83
+ {
84
+ partition: @partition,
85
+ service: @service,
86
+ region: @region,
87
+ account_id: @account_id,
88
+ resource: @resource
89
+ }
90
+ end
78
91
  end
79
92
  end
@@ -16,10 +16,10 @@ module Aws
16
16
  # @param [Aws::Structure] data
17
17
  def initialize(context, message, data = Aws::EmptyStructure.new)
18
18
  @code = self.class.code
19
- @message = message if message && !message.empty?
20
19
  @context = context
21
20
  @data = data
22
- super(message)
21
+ @message = message && !message.empty? ? message : self.class
22
+ super(@message)
23
23
  end
24
24
 
25
25
  # @return [String]
@@ -2,14 +2,14 @@
2
2
 
3
3
  module Aws
4
4
  module Json
5
- class OjEngine
5
+ class JSONEngine
6
6
 
7
7
  def self.load(json)
8
- Oj.load(json)
8
+ JSON.load(json)
9
9
  end
10
10
 
11
11
  def self.dump(value)
12
- Oj.dump(value)
12
+ JSON.dump(value)
13
13
  end
14
14
 
15
15
  end
@@ -2,14 +2,14 @@
2
2
 
3
3
  module Aws
4
4
  module Json
5
- class JSONEngine
5
+ class OjEngine
6
6
 
7
7
  def self.load(json)
8
- JSON.load(json)
8
+ Oj.load(json)
9
9
  end
10
10
 
11
11
  def self.dump(value)
12
- JSON.dump(value)
12
+ Oj.dump(value)
13
13
  end
14
14
 
15
15
  end
@@ -49,8 +49,8 @@ module Aws
49
49
  module PageableResponse
50
50
 
51
51
  def self.extended(base)
52
- base.send(:extend, Enumerable)
53
- base.send(:extend, UnsafeEnumerableMethods)
52
+ base.extend Enumerable
53
+ base.extend UnsafeEnumerableMethods
54
54
  base.instance_variable_set("@last_page", nil)
55
55
  base.instance_variable_set("@more_results", nil)
56
56
  end
@@ -15,17 +15,18 @@ to default service endpoint when available.
15
15
  )
16
16
 
17
17
  def add_handlers(handlers, config)
18
- if config.regional_endpoint && !config.disable_host_prefix_injection
19
- handlers.add(Handler, priority: 90)
20
- end
18
+ handlers.add(Handler, priority: 10)
21
19
  end
22
20
 
23
21
  class Handler < Seahorse::Client::Handler
24
22
 
25
23
  def call(context)
26
- endpoint_trait = context.operation.endpoint_pattern
27
- if endpoint_trait && !endpoint_trait.empty?
28
- _apply_endpoint_trait(context, endpoint_trait)
24
+ if context.config.regional_endpoint &&
25
+ !context.config.disable_host_prefix_injection
26
+ endpoint_trait = context.operation.endpoint_pattern
27
+ if endpoint_trait && !endpoint_trait.empty?
28
+ _apply_endpoint_trait(context, endpoint_trait)
29
+ end
29
30
  end
30
31
  @handler.call(context)
31
32
  end
@@ -38,7 +38,7 @@ to test or custom endpoints. This should be a valid HTTP(S) URI.
38
38
  end
39
39
 
40
40
  # check region is a valid RFC host label
41
- unless cfg.region =~ /^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{,63}(?<!-)$/
41
+ unless Seahorse::Util.host_label?(cfg.region)
42
42
  raise Errors::InvalidRegionError
43
43
  end
44
44
 
@@ -160,6 +160,7 @@ module Aws
160
160
 
161
161
  config_reader(
162
162
  :region,
163
+ :ca_bundle,
163
164
  :credential_process,
164
165
  :endpoint_discovery_enabled,
165
166
  :max_attempts,
@@ -5,7 +5,7 @@ module Aws
5
5
  module Protocols
6
6
  class RestJson < Rest
7
7
 
8
- def body_for(_, _, rules, data)
8
+ def body_for(_a, _b, rules, data)
9
9
  if eventstream?(rules)
10
10
  encode_eventstream_response(rules, data, Aws::Json::Builder)
11
11
  else
@@ -5,8 +5,6 @@ module Aws
5
5
  module Protocols
6
6
  class RestXml < Rest
7
7
 
8
- include Seahorse::Model::Shapes
9
-
10
8
  def body_for(api, operation, rules, data)
11
9
  if eventstream?(rules)
12
10
  encode_eventstream_response(rules, data, Xml::Builder)
@@ -48,7 +48,7 @@ module Aws
48
48
  end
49
49
 
50
50
  def list(name, ref, values)
51
- if ref.shape.flattened
51
+ if ref[:flattened] || ref.shape.flattened
52
52
  values.each do |value|
53
53
  member(ref.shape.member.location_name || name, ref.shape.member, value)
54
54
  end
@@ -7,8 +7,11 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
- require 'aws-sdk-core'
11
- require 'aws-sigv4'
10
+
11
+ unless Module.const_defined?(:Aws)
12
+ require 'aws-sdk-core'
13
+ require 'aws-sigv4'
14
+ end
12
15
 
13
16
  require_relative 'aws-sdk-sso/types'
14
17
  require_relative 'aws-sdk-sso/client_api'
@@ -47,6 +50,6 @@ require_relative 'aws-sdk-sso/customizations'
47
50
  # @!group service
48
51
  module Aws::SSO
49
52
 
50
- GEM_VERSION = '3.105.0'
53
+ GEM_VERSION = '3.109.2'
51
54
 
52
55
  end
@@ -523,7 +523,7 @@ module Aws::SSO
523
523
  params: params,
524
524
  config: config)
525
525
  context[:gem_name] = 'aws-sdk-core'
526
- context[:gem_version] = '3.105.0'
526
+ context[:gem_version] = '3.109.2'
527
527
  Seahorse::Client::Request.new(handlers, context)
528
528
  end
529
529
 
@@ -8,6 +8,7 @@
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
10
 
11
+
11
12
  require_relative 'aws-sdk-sts/types'
12
13
  require_relative 'aws-sdk-sts/client_api'
13
14
  require_relative 'aws-sdk-sts/client'
@@ -45,6 +46,6 @@ require_relative 'aws-sdk-sts/customizations'
45
46
  # @!group service
46
47
  module Aws::STS
47
48
 
48
- GEM_VERSION = '3.105.0'
49
+ GEM_VERSION = '3.109.2'
49
50
 
50
51
  end
@@ -1278,7 +1278,7 @@ module Aws::STS
1278
1278
  # [15]: http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes
1279
1279
  # [16]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual.html
1280
1280
  # [17]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity
1281
- # [18]: https://web-identity-federation-playground.s3.amazonaws.com/index.html
1281
+ # [18]: https://aws.amazon.com/blogs/aws/the-aws-web-identity-federation-playground/
1282
1282
  # [19]: http://aws.amazon.com/articles/web-identity-federation-with-mobile-applications
1283
1283
  #
1284
1284
  # @option params [required, String] :role_arn
@@ -2204,7 +2204,7 @@ module Aws::STS
2204
2204
  params: params,
2205
2205
  config: config)
2206
2206
  context[:gem_name] = 'aws-sdk-core'
2207
- context[:gem_version] = '3.105.0'
2207
+ context[:gem_version] = '3.109.2'
2208
2208
  Seahorse::Client::Request.new(handlers, context)
2209
2209
  end
2210
2210
 
@@ -255,6 +255,7 @@ module Aws::STS
255
255
  o.errors << Shapes::ShapeRef.new(shape: MalformedPolicyDocumentException)
256
256
  o.errors << Shapes::ShapeRef.new(shape: PackedPolicyTooLargeException)
257
257
  o.errors << Shapes::ShapeRef.new(shape: RegionDisabledException)
258
+ o.errors << Shapes::ShapeRef.new(shape: ExpiredTokenException)
258
259
  end)
259
260
 
260
261
  api.add_operation(:assume_role_with_saml, Seahorse::Model::Operation.new.tap do |o|
@@ -479,7 +479,7 @@ module Aws::STS
479
479
  :policy_arns,
480
480
  :policy,
481
481
  :duration_seconds)
482
- SENSITIVE = [:saml_assertion]
482
+ SENSITIVE = []
483
483
  include Aws::Structure
484
484
  end
485
485
 
@@ -730,7 +730,7 @@ module Aws::STS
730
730
  :policy_arns,
731
731
  :policy,
732
732
  :duration_seconds)
733
- SENSITIVE = [:web_identity_token]
733
+ SENSITIVE = []
734
734
  include Aws::Structure
735
735
  end
736
736
 
@@ -28,11 +28,14 @@ Defaults to `true`, raises errors if exist when #wait or #join! is called upon a
28
28
  DOCS
29
29
 
30
30
  # SSL Context
31
- option(:ssl_ca_bundle, default: nil, doc_type: String, docstring: <<-DOCS)
31
+ option(:ssl_ca_bundle, default: nil, doc_type: String, docstring: <<-DOCS) do |cfg|
32
32
  Full path to the SSL certificate authority bundle file that should be used when
33
33
  verifying peer certificates. If you do not pass `:ssl_ca_directory` or `:ssl_ca_bundle`
34
34
  the system default will be used if available.
35
35
  DOCS
36
+ ENV['AWS_CA_BUNDLE'] ||
37
+ Aws.shared_config.ca_bundle(profile: cfg.profile) if cfg.respond_to?(:profile)
38
+ end
36
39
 
37
40
  option(:ssl_ca_directory, default: nil, doc_type: String, docstring: <<-DOCS)
38
41
  Full path of the directory that contains the unbundled SSL certificate authority
@@ -21,7 +21,10 @@ module Seahorse
21
21
 
22
22
  option(:ssl_verify_peer, default: true, doc_type: 'Boolean', docstring: '')
23
23
 
24
- option(:ssl_ca_bundle, default: nil, doc_type: String, docstring: '')
24
+ option(:ssl_ca_bundle, doc_type: String, docstring: '') do |cfg|
25
+ ENV['AWS_CA_BUNDLE'] ||
26
+ Aws.shared_config.ca_bundle(profile: cfg.profile) if cfg.respond_to?(:profile)
27
+ end
25
28
 
26
29
  option(:ssl_ca_directory, default: nil, doc_type: String, docstring: '')
27
30
 
@@ -6,7 +6,6 @@ module Seahorse
6
6
  # @api private
7
7
  module Util
8
8
  class << self
9
-
10
9
  def uri_escape(string)
11
10
  CGI.escape(string.to_s.encode('UTF-8')).gsub('+', '%20').gsub('%7E', '~')
12
11
  end
@@ -15,6 +14,12 @@ module Seahorse
15
14
  path.gsub(/[^\/]+/) { |part| uri_escape(part) }
16
15
  end
17
16
 
17
+ # Checks for a valid host label
18
+ # @see https://tools.ietf.org/html/rfc3986#section-3.2.2
19
+ # @see https://tools.ietf.org/html/rfc1123#page-13
20
+ def host_label?(str)
21
+ str =~ /^(?!-)[a-zA-Z0-9-]{1,63}(?<!-)$/
22
+ end
18
23
  end
19
24
  end
20
25
  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.105.0
4
+ version: 3.109.2
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-25 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath