aws-sdk-core 3.109.2 → 3.109.3

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: 56d8c2bdc45f83da27d3846c9d2f153f54c0dda5d13365151b930aa2c2af436d
4
- data.tar.gz: 534c9b31de25091aa51133a4cb0f8ab7525df1db9e65a7f952608906717c854a
3
+ metadata.gz: 8343548d8f2f52d44dfff78d0cb4352f4772da218b63504253a7728e7f4c98e6
4
+ data.tar.gz: ebfa775cd61e2010dadac50769b8008f5efa4a3d77e55169700ffdf1efb98479
5
5
  SHA512:
6
- metadata.gz: fb63f647b67abf71593157c03d3243afe70dc6315232a15dc138513e79707adb85e87c0981a081e6d46c1e035c3dad645699f020c82ba4bfdb0eb77d2a821661
7
- data.tar.gz: b9310cfcaee9621271fe0747c974d496d374cb95093a4a1fdd3f29ce3c902a5573fbf69fe6ad2ff2f8c77269965a363cbf166a5f2d37230fe8a9a86db29a0c13
6
+ metadata.gz: 6c3b21518f83c3b1428e3fc7d92a734de29375cd817bf67b9778ed31f71471e3945a74bfcad5d990873c61d83f025071b92c625fdd29fed60f3f58e4d320fc1a
7
+ data.tar.gz: a6bc1af014df7e22e151693ccc17de0d04655b9d49c50728c912c1c4c9f04453384158152012cebe71aeab8502f65b4304103aef6ef8f97b1c802ab211e6aabc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.109.2
1
+ 3.109.3
@@ -4,11 +4,11 @@ module Aws
4
4
  # An auto-refreshing credential provider that works by assuming a
5
5
  # role via {Aws::SSO::Client#get_role_credentials} using a cached access
6
6
  # token. This class does NOT implement the SSO login token flow - tokens
7
- # must generated and refreshed separately by running `aws login` with the
8
- # correct profile.
7
+ # must generated and refreshed separately by running `aws login` from the
8
+ # AWS CLI with the correct profile.
9
9
  #
10
10
  # For more background on AWS SSO see the official
11
- # [what is SSO](https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html]
11
+ # {what is SSO}[https://docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html]
12
12
  # page.
13
13
  #
14
14
  # ## Refreshing Credentials from SSO
@@ -20,13 +20,29 @@ module Aws
20
20
  # and another token will be needed. The SDK does not manage refreshing of
21
21
  # the token value, but this can be done by running `aws login` with the
22
22
  # correct profile.
23
+ #
24
+ #
25
+ # # You must first run aws sso login --profile your-sso-profile
26
+ # sso_credentials = Aws::SSOCredentials.new(
27
+ # sso_account_id: '123456789',
28
+ # sso_role_name: "role_name",
29
+ # sso_region: "us-east-1",
30
+ # sso_start_url: 'https://your-start-url.awsapps.com/start'
31
+ # )
32
+ #
33
+ # ec2 = Aws::EC2::Client.new(credentials: sso_credentials)
34
+ #
35
+ # If you omit `:client` option, a new {SSO::Client} object will be
36
+ # constructed.
23
37
  class SSOCredentials
24
38
 
25
39
  include CredentialProvider
26
40
  include RefreshingCredentials
27
41
 
42
+ # @api private
28
43
  SSO_REQUIRED_OPTS = [:sso_account_id, :sso_region, :sso_role_name, :sso_start_url].freeze
29
44
 
45
+ # @api private
30
46
  SSO_LOGIN_GUIDANCE = 'The SSO session associated with this profile has '\
31
47
  'expired or is otherwise invalid. To refresh this SSO session run '\
32
48
  'aws sso login with the corresponding profile.'.freeze
@@ -45,7 +61,7 @@ module Aws
45
61
  # provided by the SSO service via the console and is the URL used to
46
62
  # login to the SSO directory. This is also sometimes referred to as
47
63
  # the "User Portal URL"
48
-
64
+ #
49
65
  # @option options [SSO::Client] :client Optional `SSO::Client`. If not
50
66
  # provided, a client will be constructed.
51
67
  def initialize(options = {})
@@ -65,11 +81,11 @@ module Aws
65
81
 
66
82
  options[:region] = @sso_region
67
83
  options[:credentials] = nil
68
- @client = options[:client] || SSO::Client.new(options)
84
+ @client = options[:client] || Aws::SSO::Client.new(options)
69
85
  super
70
86
  end
71
87
 
72
- # @return [STS::Client]
88
+ # @return [SSO::Client]
73
89
  attr_reader :client
74
90
 
75
91
  private
@@ -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.109.2'
53
+ GEM_VERSION = '3.109.3'
54
54
 
55
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.109.2'
526
+ context[:gem_version] = '3.109.3'
527
527
  Seahorse::Client::Request.new(handlers, context)
528
528
  end
529
529
 
@@ -46,6 +46,6 @@ require_relative 'aws-sdk-sts/customizations'
46
46
  # @!group service
47
47
  module Aws::STS
48
48
 
49
- GEM_VERSION = '3.109.2'
49
+ GEM_VERSION = '3.109.3'
50
50
 
51
51
  end
@@ -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.109.2'
2207
+ context[:gem_version] = '3.109.3'
2208
2208
  Seahorse::Client::Request.new(handlers, context)
2209
2209
  end
2210
2210
 
@@ -27,7 +27,6 @@ module Seahorse
27
27
  private
28
28
 
29
29
  def add_event_listeners(context, target)
30
- handler = self
31
30
  context.http_response.on_headers(200..299) do
32
31
  # In a fresh response body will be a StringIO
33
32
  # However, when a request is retried we may have
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.109.2
4
+ version: 3.109.3
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-11-04 00:00:00.000000000 Z
11
+ date: 2020-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath