aws-sdk-core 3.104.3 → 3.109.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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'
@@ -42,9 +43,9 @@ require_relative 'aws-sdk-sts/customizations'
42
43
  #
43
44
  # See {Errors} for more information.
44
45
  #
45
- # @service
46
+ # @!group service
46
47
  module Aws::STS
47
48
 
48
- GEM_VERSION = '3.104.3'
49
+ GEM_VERSION = '3.109.0'
49
50
 
50
51
  end
@@ -87,13 +87,28 @@ module Aws::STS
87
87
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
88
88
  # credentials.
89
89
  #
90
+ # * `Aws::SharedCredentials` - Used for loading static credentials from a
91
+ # shared file, such as `~/.aws/config`.
92
+ #
93
+ # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
94
+ #
95
+ # * `Aws::AssumeRoleWebIdentityCredentials` - Used when you need to
96
+ # assume a role after providing credentials via the web.
97
+ #
98
+ # * `Aws::SSOCredentials` - Used for loading credentials from AWS SSO using an
99
+ # access token generated from `aws login`.
100
+ #
101
+ # * `Aws::ProcessCredentials` - Used for loading credentials from a
102
+ # process that outputs to stdout.
103
+ #
90
104
  # * `Aws::InstanceProfileCredentials` - Used for loading credentials
91
105
  # from an EC2 IMDS on an EC2 instance.
92
106
  #
93
- # * `Aws::SharedCredentials` - Used for loading credentials from a
94
- # shared file, such as `~/.aws/config`.
107
+ # * `Aws::ECSCredentials` - Used for loading credentials from
108
+ # instances running in ECS.
95
109
  #
96
- # * `Aws::AssumeRoleCredentials` - Used when you need to assume a role.
110
+ # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
111
+ # from the Cognito Identity service.
97
112
  #
98
113
  # When `:credentials` are not configured directly, the following
99
114
  # locations will be searched for credentials:
@@ -103,10 +118,10 @@ module Aws::STS
103
118
  # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
104
119
  # * `~/.aws/credentials`
105
120
  # * `~/.aws/config`
106
- # * EC2 IMDS instance profile - When used by default, the timeouts are
107
- # very aggressive. Construct and pass an instance of
108
- # `Aws::InstanceProfileCredentails` to enable retries and extended
109
- # timeouts.
121
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts
122
+ # are very aggressive. Construct and pass an instance of
123
+ # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
124
+ # enable retries and extended timeouts.
110
125
  #
111
126
  # @option options [required, String] :region
112
127
  # The AWS region to connect to. The configured `:region` is
@@ -1263,7 +1278,7 @@ module Aws::STS
1263
1278
  # [15]: http://openid.net/specs/openid-connect-core-1_0.html#SubjectIDTypes
1264
1279
  # [16]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc_manual.html
1265
1280
  # [17]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html#api_assumerolewithwebidentity
1266
- # [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/
1267
1282
  # [19]: http://aws.amazon.com/articles/web-identity-federation-with-mobile-applications
1268
1283
  #
1269
1284
  # @option params [required, String] :role_arn
@@ -2189,7 +2204,7 @@ module Aws::STS
2189
2204
  params: params,
2190
2205
  config: config)
2191
2206
  context[:gem_name] = 'aws-sdk-core'
2192
- context[:gem_version] = '3.104.3'
2207
+ context[:gem_version] = '3.109.0'
2193
2208
  Seahorse::Client::Request.new(handlers, context)
2194
2209
  end
2195
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
 
@@ -171,10 +171,9 @@ module Seahorse
171
171
  # seconds to wait when opening an HTTP session before raising a
172
172
  # `Timeout::Error`.
173
173
  #
174
- # @option options [Integer] :http_read_timeout (60) The default
175
- # number of seconds to wait for response data. This value can
176
- # safely be set
177
- # per-request on the session yielded by {#session_for}.
174
+ # @option options [Float] :http_read_timeout (60) The default
175
+ # number of seconds to wait for response data. This value can be
176
+ # safely set per-request on the session yielded by {#session_for}.
178
177
  #
179
178
  # @option options [Float] :http_idle_timeout (5) The number of
180
179
  # seconds a connection is allowed to sit idle before it is
@@ -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.104.3
4
+ version: 3.109.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: 2020-07-23 00:00:00.000000000 Z
11
+ date: 2020-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -188,6 +188,7 @@ files:
188
188
  - lib/aws-sdk-core/rest/response/status_code.rb
189
189
  - lib/aws-sdk-core/shared_config.rb
190
190
  - lib/aws-sdk-core/shared_credentials.rb
191
+ - lib/aws-sdk-core/sso_credentials.rb
191
192
  - lib/aws-sdk-core/structure.rb
192
193
  - lib/aws-sdk-core/stubbing/data_applicator.rb
193
194
  - lib/aws-sdk-core/stubbing/empty_stub.rb
@@ -221,6 +222,14 @@ files:
221
222
  - lib/aws-sdk-core/xml/parser/frame.rb
222
223
  - lib/aws-sdk-core/xml/parser/parsing_error.rb
223
224
  - lib/aws-sdk-core/xml/parser/stack.rb
225
+ - lib/aws-sdk-sso.rb
226
+ - lib/aws-sdk-sso/client.rb
227
+ - lib/aws-sdk-sso/client_api.rb
228
+ - lib/aws-sdk-sso/customizations.rb
229
+ - lib/aws-sdk-sso/errors.rb
230
+ - lib/aws-sdk-sso/plugins/content_type.rb
231
+ - lib/aws-sdk-sso/resource.rb
232
+ - lib/aws-sdk-sso/types.rb
224
233
  - lib/aws-sdk-sts.rb
225
234
  - lib/aws-sdk-sts/client.rb
226
235
  - lib/aws-sdk-sts/client_api.rb