aws-sdk-core 3.130.2 → 3.136.0
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 +4 -4
- data/CHANGELOG.md +65 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-core/assume_role_credentials.rb +5 -10
- data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +6 -7
- data/lib/aws-sdk-core/ecs_credentials.rb +5 -0
- data/lib/aws-sdk-core/errors.rb +13 -0
- data/lib/aws-sdk-core/instance_profile_credentials.rb +5 -0
- data/lib/aws-sdk-core/pageable_response.rb +7 -0
- data/lib/aws-sdk-core/plugins/bearer_authorization.rb +67 -0
- data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +34 -6
- data/lib/aws-sdk-core/plugins/recursion_detection.rb +12 -3
- data/lib/aws-sdk-core/plugins/signature_v4.rb +12 -7
- data/lib/aws-sdk-core/process_credentials.rb +6 -9
- data/lib/aws-sdk-core/refreshing_token.rb +71 -0
- data/lib/aws-sdk-core/rest/handler.rb +1 -1
- data/lib/aws-sdk-core/shared_config.rb +43 -0
- data/lib/aws-sdk-core/sso_credentials.rb +8 -12
- data/lib/aws-sdk-core/sso_token_provider.rb +134 -0
- data/lib/aws-sdk-core/static_token_provider.rb +14 -0
- data/lib/aws-sdk-core/structure.rb +6 -4
- data/lib/aws-sdk-core/token.rb +31 -0
- data/lib/aws-sdk-core/token_provider.rb +15 -0
- data/lib/aws-sdk-core/token_provider_chain.rb +51 -0
- data/lib/aws-sdk-core/xml/error_handler.rb +7 -0
- data/lib/aws-sdk-core.rb +10 -0
- data/lib/aws-sdk-sso/client.rb +42 -14
- data/lib/aws-sdk-sso/types.rb +29 -20
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +574 -0
- data/lib/aws-sdk-ssooidc/client_api.rb +216 -0
- data/lib/aws-sdk-ssooidc/customizations.rb +1 -0
- data/lib/aws-sdk-ssooidc/errors.rb +290 -0
- data/lib/aws-sdk-ssooidc/resource.rb +26 -0
- data/lib/aws-sdk-ssooidc/types.rb +498 -0
- data/lib/aws-sdk-ssooidc.rb +55 -0
- data/lib/aws-sdk-sts/client.rb +14 -5
- data/lib/aws-sdk-sts.rb +1 -1
- metadata +24 -4
@@ -0,0 +1,134 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Aws
|
4
|
+
class SSOTokenProvider
|
5
|
+
|
6
|
+
include TokenProvider
|
7
|
+
include RefreshingToken
|
8
|
+
|
9
|
+
# @api private
|
10
|
+
SSO_REQUIRED_OPTS = [:sso_region, :sso_session].freeze
|
11
|
+
|
12
|
+
# @api private
|
13
|
+
SSO_LOGIN_GUIDANCE = 'The SSO session associated with this profile has '\
|
14
|
+
'expired or is otherwise invalid. To refresh this SSO session run '\
|
15
|
+
'aws sso login with the corresponding profile.'.freeze
|
16
|
+
|
17
|
+
# @option options [required, String] :sso_region The AWS region where the
|
18
|
+
# SSO directory for the given sso_start_url is hosted.
|
19
|
+
#
|
20
|
+
# @option options [required, String] :sso_session The SSO Session used to
|
21
|
+
# for fetching this token.
|
22
|
+
#
|
23
|
+
# @option options [SSOOIDC::Client] :client Optional `SSOOIDC::Client`. If not
|
24
|
+
# provided, a client will be constructed.
|
25
|
+
#
|
26
|
+
# @option options [Callable] before_refresh Proc called before
|
27
|
+
# credentials are refreshed. `before_refresh` is called
|
28
|
+
# with an instance of this object when
|
29
|
+
# AWS credentials are required and need to be refreshed.
|
30
|
+
def initialize(options = {})
|
31
|
+
|
32
|
+
missing_keys = SSO_REQUIRED_OPTS.select { |k| options[k].nil? }
|
33
|
+
unless missing_keys.empty?
|
34
|
+
raise ArgumentError, "Missing required keys: #{missing_keys}"
|
35
|
+
end
|
36
|
+
|
37
|
+
@sso_session = options.delete(:sso_session)
|
38
|
+
@sso_region = options.delete(:sso_region)
|
39
|
+
|
40
|
+
options[:region] = @sso_region
|
41
|
+
options[:credentials] = nil
|
42
|
+
@client = options[:client] || Aws::SSOOIDC::Client.new(options)
|
43
|
+
|
44
|
+
super
|
45
|
+
end
|
46
|
+
|
47
|
+
# @return [SSO::Client]
|
48
|
+
attr_reader :client
|
49
|
+
|
50
|
+
private
|
51
|
+
|
52
|
+
def refresh
|
53
|
+
# token is valid and not in refresh window - do not refresh it.
|
54
|
+
return if @token && @token.expiration && !near_expiration?
|
55
|
+
|
56
|
+
# token may not exist or is out of the expiration window
|
57
|
+
# attempt to refresh from disk first (another process/application may have refreshed already)
|
58
|
+
token_json = read_cached_token
|
59
|
+
@token = Token.new(token_json['accessToken'], token_json['expiresAt'])
|
60
|
+
return if @token && @token.expiration && !near_expiration?
|
61
|
+
|
62
|
+
# The token is expired and needs to be refreshed
|
63
|
+
if can_refresh_token?(token_json)
|
64
|
+
begin
|
65
|
+
current_time = Time.now
|
66
|
+
resp = @client.create_token(
|
67
|
+
grant_type: 'refresh_token',
|
68
|
+
client_id: token_json['clientId'],
|
69
|
+
client_secret: token_json['client_secret'],
|
70
|
+
refresh_token: token_json['refreshToken']
|
71
|
+
)
|
72
|
+
token_json['accessToken'] = resp.access_token
|
73
|
+
token_json['expiresAt'] = current_time + resp.expires_in
|
74
|
+
@token = Token.new(token_json['accessToken'], token_json['expiresAt'])
|
75
|
+
|
76
|
+
if resp.refresh_token
|
77
|
+
token_json['refreshToken'] = resp.refresh_token
|
78
|
+
else
|
79
|
+
token_json.delete('refreshToken')
|
80
|
+
end
|
81
|
+
|
82
|
+
update_token_cache(token_json)
|
83
|
+
rescue
|
84
|
+
# refresh has failed, continue attempting to use the token if its not hard expired
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
if !@token.expiration || @token.expiration < Time.now
|
89
|
+
# Token is hard expired, raise an exception
|
90
|
+
raise Errors::InvalidSSOToken, 'Token is invalid and failed to refresh.'
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
def read_cached_token
|
95
|
+
cached_token = Json.load(File.read(sso_cache_file))
|
96
|
+
# validation
|
97
|
+
unless cached_token['accessToken'] && cached_token['expiresAt']
|
98
|
+
raise ArgumentError, 'Missing required field(s)'
|
99
|
+
end
|
100
|
+
cached_token['expiresAt'] = Time.parse(cached_token['expiresAt'])
|
101
|
+
cached_token
|
102
|
+
rescue Errno::ENOENT, Aws::Json::ParseError, ArgumentError
|
103
|
+
raise Errors::InvalidSSOToken, SSO_LOGIN_GUIDANCE
|
104
|
+
end
|
105
|
+
|
106
|
+
def update_token_cache(token_json)
|
107
|
+
cached_token = token_json.dup
|
108
|
+
cached_token['expiresAt'] = cached_token['expiresAt'].iso8601
|
109
|
+
File.write(sso_cache_file, Json.dump(cached_token))
|
110
|
+
end
|
111
|
+
|
112
|
+
def sso_cache_file
|
113
|
+
sso_session_sha1 = OpenSSL::Digest::SHA1.hexdigest(@sso_session.encode('utf-8'))
|
114
|
+
File.join(Dir.home, '.aws', 'sso', 'cache', "#{sso_session_sha1}.json")
|
115
|
+
rescue ArgumentError
|
116
|
+
# Dir.home raises ArgumentError when ENV['home'] is not set
|
117
|
+
raise ArgumentError, "Unable to load sso_cache_file: ENV['HOME'] is not set."
|
118
|
+
end
|
119
|
+
|
120
|
+
# return true if all required fields are present
|
121
|
+
# return false if registrationExpiresAt exists and is later than now
|
122
|
+
def can_refresh_token?(token_json)
|
123
|
+
if token_json['clientId'] &&
|
124
|
+
token_json['clientSecret'] &&
|
125
|
+
token_json['refreshToken']
|
126
|
+
|
127
|
+
return !token_json['registrationExpiresAt'] ||
|
128
|
+
Time.parse(token_json['registrationExpiresAt']) > Time.now
|
129
|
+
else
|
130
|
+
false
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Aws
|
4
|
+
class StaticTokenProvider
|
5
|
+
|
6
|
+
include TokenProvider
|
7
|
+
|
8
|
+
# @param [String] token
|
9
|
+
# @param [Time] expiration
|
10
|
+
def initialize(token, expiration=nil)
|
11
|
+
@token = Token.new(token, expiration)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
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
|
-
|
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
|
-
|
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
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Aws
|
4
|
+
class Token
|
5
|
+
|
6
|
+
# @param [String] token
|
7
|
+
# @param [Time] expiration
|
8
|
+
def initialize(token, expiration=nil)
|
9
|
+
@token = token
|
10
|
+
@expiration = expiration
|
11
|
+
end
|
12
|
+
|
13
|
+
# @return [String, nil]
|
14
|
+
attr_reader :token
|
15
|
+
|
16
|
+
# @return [Time, nil]
|
17
|
+
attr_reader :expiration
|
18
|
+
|
19
|
+
# @return [Boolean] Returns `true` if token is set
|
20
|
+
def set?
|
21
|
+
!token.nil? && !token.empty?
|
22
|
+
end
|
23
|
+
|
24
|
+
# Removing the token from the default inspect string.
|
25
|
+
# @api private
|
26
|
+
def inspect
|
27
|
+
"#<#{self.class.name} token=[FILTERED]> expiration=#{expiration}>"
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Aws
|
4
|
+
# @api private
|
5
|
+
class TokenProviderChain
|
6
|
+
def initialize(config = nil)
|
7
|
+
@config = config
|
8
|
+
end
|
9
|
+
|
10
|
+
# @return [TokenProvider, nil]
|
11
|
+
def resolve
|
12
|
+
providers.each do |method_name, options|
|
13
|
+
provider = send(method_name, options.merge(config: @config))
|
14
|
+
return provider if provider && provider.set?
|
15
|
+
end
|
16
|
+
nil
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
def providers
|
22
|
+
[
|
23
|
+
[:static_profile_sso_token, {}],
|
24
|
+
[:sso_token, {}]
|
25
|
+
]
|
26
|
+
end
|
27
|
+
|
28
|
+
def static_profile_sso_token(options)
|
29
|
+
if Aws.shared_config.config_enabled? && options[:config] && options[:config].profile
|
30
|
+
Aws.shared_config.sso_token_from_config(
|
31
|
+
profile: options[:config].profile
|
32
|
+
)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
def sso_token(options)
|
38
|
+
profile_name = determine_profile_name(options)
|
39
|
+
if Aws.shared_config.config_enabled?
|
40
|
+
Aws.shared_config.sso_token_from_config(profile: profile_name)
|
41
|
+
end
|
42
|
+
rescue Errors::NoSuchProfileError
|
43
|
+
nil
|
44
|
+
end
|
45
|
+
|
46
|
+
def determine_profile_name(options)
|
47
|
+
(options[:config] && options[:config].profile) || ENV['AWS_PROFILE'] || ENV['AWS_DEFAULT_PROFILE'] || 'default'
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
end
|
@@ -24,6 +24,7 @@ module Aws
|
|
24
24
|
else
|
25
25
|
code, message, data = extract_error(body, context)
|
26
26
|
end
|
27
|
+
context[:request_id] = request_id(body)
|
27
28
|
errors_module = context.client.class.errors_module
|
28
29
|
error_class = errors_module.error_class(code).new(context, message, data)
|
29
30
|
error_class
|
@@ -94,6 +95,12 @@ module Aws
|
|
94
95
|
end
|
95
96
|
end
|
96
97
|
|
98
|
+
def request_id(body)
|
99
|
+
if matches = body.match(/<RequestId>(.+?)<\/RequestId>/m)
|
100
|
+
matches[1]
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
97
104
|
def unescape(str)
|
98
105
|
CGI.unescapeHTML(str)
|
99
106
|
end
|
data/lib/aws-sdk-core.rb
CHANGED
@@ -20,6 +20,15 @@ require_relative 'aws-sdk-core/shared_credentials'
|
|
20
20
|
require_relative 'aws-sdk-core/process_credentials'
|
21
21
|
require_relative 'aws-sdk-core/sso_credentials'
|
22
22
|
|
23
|
+
# tokens and token providers
|
24
|
+
require_relative 'aws-sdk-core/token'
|
25
|
+
require_relative 'aws-sdk-core/token_provider'
|
26
|
+
require_relative 'aws-sdk-core/static_token_provider'
|
27
|
+
require_relative 'aws-sdk-core/refreshing_token'
|
28
|
+
require_relative 'aws-sdk-core/sso_token_provider'
|
29
|
+
require_relative 'aws-sdk-core/token_provider_chain'
|
30
|
+
require_relative 'aws-sdk-core/plugins/bearer_authorization'
|
31
|
+
|
23
32
|
# client modules
|
24
33
|
|
25
34
|
require_relative 'aws-sdk-core/client_stubs'
|
@@ -99,6 +108,7 @@ require_relative 'aws-sdk-sts'
|
|
99
108
|
|
100
109
|
# aws-sdk-sso is included to support Aws::SSOCredentials
|
101
110
|
require_relative 'aws-sdk-sso'
|
111
|
+
require_relative 'aws-sdk-ssooidc'
|
102
112
|
|
103
113
|
module Aws
|
104
114
|
|
data/lib/aws-sdk-sso/client.rb
CHANGED
@@ -358,11 +358,13 @@ module Aws::SSO
|
|
358
358
|
# The friendly name of the role that is assigned to the user.
|
359
359
|
#
|
360
360
|
# @option params [required, String] :account_id
|
361
|
-
# The identifier for the
|
361
|
+
# The identifier for the Amazon Web Services account that is assigned to
|
362
|
+
# the user.
|
362
363
|
#
|
363
364
|
# @option params [required, String] :access_token
|
364
365
|
# The token issued by the `CreateToken` API call. For more information,
|
365
|
-
# see [CreateToken][1] in the *
|
366
|
+
# see [CreateToken][1] in the *Amazon Web Services SSO OIDC API
|
367
|
+
# Reference Guide*.
|
366
368
|
#
|
367
369
|
#
|
368
370
|
#
|
@@ -396,7 +398,8 @@ module Aws::SSO
|
|
396
398
|
req.send_request(options)
|
397
399
|
end
|
398
400
|
|
399
|
-
# Lists all roles that are assigned to the user for a given
|
401
|
+
# Lists all roles that are assigned to the user for a given Amazon Web
|
402
|
+
# Services account.
|
400
403
|
#
|
401
404
|
# @option params [String] :next_token
|
402
405
|
# The page token from the previous response output when you request
|
@@ -407,14 +410,16 @@ module Aws::SSO
|
|
407
410
|
#
|
408
411
|
# @option params [required, String] :access_token
|
409
412
|
# The token issued by the `CreateToken` API call. For more information,
|
410
|
-
# see [CreateToken][1] in the *
|
413
|
+
# see [CreateToken][1] in the *Amazon Web Services SSO OIDC API
|
414
|
+
# Reference Guide*.
|
411
415
|
#
|
412
416
|
#
|
413
417
|
#
|
414
418
|
# [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html
|
415
419
|
#
|
416
420
|
# @option params [required, String] :account_id
|
417
|
-
# The identifier for the
|
421
|
+
# The identifier for the Amazon Web Services account that is assigned to
|
422
|
+
# the user.
|
418
423
|
#
|
419
424
|
# @return [Types::ListAccountRolesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
420
425
|
#
|
@@ -448,10 +453,11 @@ module Aws::SSO
|
|
448
453
|
req.send_request(options)
|
449
454
|
end
|
450
455
|
|
451
|
-
# Lists all
|
452
|
-
# assigned by the administrator of the
|
453
|
-
# see [Assign User Access][1] in the
|
454
|
-
# operation returns a
|
456
|
+
# Lists all Amazon Web Services accounts assigned to the user. These
|
457
|
+
# Amazon Web Services accounts are assigned by the administrator of the
|
458
|
+
# account. For more information, see [Assign User Access][1] in the
|
459
|
+
# *Amazon Web Services SSO User Guide*. This operation returns a
|
460
|
+
# paginated response.
|
455
461
|
#
|
456
462
|
#
|
457
463
|
#
|
@@ -466,7 +472,8 @@ module Aws::SSO
|
|
466
472
|
#
|
467
473
|
# @option params [required, String] :access_token
|
468
474
|
# The token issued by the `CreateToken` API call. For more information,
|
469
|
-
# see [CreateToken][1] in the *
|
475
|
+
# see [CreateToken][1] in the *Amazon Web Services SSO OIDC API
|
476
|
+
# Reference Guide*.
|
470
477
|
#
|
471
478
|
#
|
472
479
|
#
|
@@ -504,12 +511,33 @@ module Aws::SSO
|
|
504
511
|
req.send_request(options)
|
505
512
|
end
|
506
513
|
|
507
|
-
# Removes the
|
508
|
-
# the
|
514
|
+
# Removes the locally stored SSO tokens from the client-side cache and
|
515
|
+
# sends an API call to the Amazon Web Services SSO service to invalidate
|
516
|
+
# the corresponding server-side Amazon Web Services SSO sign in session.
|
517
|
+
#
|
518
|
+
# <note markdown="1"> If a user uses Amazon Web Services SSO to access the AWS CLI, the
|
519
|
+
# user’s Amazon Web Services SSO sign in session is used to obtain an
|
520
|
+
# IAM session, as specified in the corresponding Amazon Web Services SSO
|
521
|
+
# permission set. More specifically, Amazon Web Services SSO assumes an
|
522
|
+
# IAM role in the target account on behalf of the user, and the
|
523
|
+
# corresponding temporary Amazon Web Services credentials are returned
|
524
|
+
# to the client.
|
525
|
+
#
|
526
|
+
# After user logout, any existing IAM role sessions that were created by
|
527
|
+
# using Amazon Web Services SSO permission sets continue based on the
|
528
|
+
# duration configured in the permission set. For more information, see
|
529
|
+
# [User authentications][1] in the *Amazon Web Services SSO User Guide*.
|
530
|
+
#
|
531
|
+
# </note>
|
532
|
+
#
|
533
|
+
#
|
534
|
+
#
|
535
|
+
# [1]: https://docs.aws.amazon.com/singlesignon/latest/userguide/authconcept.html
|
509
536
|
#
|
510
537
|
# @option params [required, String] :access_token
|
511
538
|
# The token issued by the `CreateToken` API call. For more information,
|
512
|
-
# see [CreateToken][1] in the *
|
539
|
+
# see [CreateToken][1] in the *Amazon Web Services SSO OIDC API
|
540
|
+
# Reference Guide*.
|
513
541
|
#
|
514
542
|
#
|
515
543
|
#
|
@@ -545,7 +573,7 @@ module Aws::SSO
|
|
545
573
|
params: params,
|
546
574
|
config: config)
|
547
575
|
context[:gem_name] = 'aws-sdk-core'
|
548
|
-
context[:gem_version] = '3.
|
576
|
+
context[:gem_version] = '3.136.0'
|
549
577
|
Seahorse::Client::Request.new(handlers, context)
|
550
578
|
end
|
551
579
|
|
data/lib/aws-sdk-sso/types.rb
CHANGED
@@ -10,18 +10,21 @@
|
|
10
10
|
module Aws::SSO
|
11
11
|
module Types
|
12
12
|
|
13
|
-
# Provides information about your
|
13
|
+
# Provides information about your Amazon Web Services account.
|
14
14
|
#
|
15
15
|
# @!attribute [rw] account_id
|
16
|
-
# The identifier of the
|
16
|
+
# The identifier of the Amazon Web Services account that is assigned
|
17
|
+
# to the user.
|
17
18
|
# @return [String]
|
18
19
|
#
|
19
20
|
# @!attribute [rw] account_name
|
20
|
-
# The display name of the
|
21
|
+
# The display name of the Amazon Web Services account that is assigned
|
22
|
+
# to the user.
|
21
23
|
# @return [String]
|
22
24
|
#
|
23
25
|
# @!attribute [rw] email_address
|
24
|
-
# The email address of the
|
26
|
+
# The email address of the Amazon Web Services account that is
|
27
|
+
# assigned to the user.
|
25
28
|
# @return [String]
|
26
29
|
#
|
27
30
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/AccountInfo AWS API Documentation
|
@@ -48,13 +51,14 @@ module Aws::SSO
|
|
48
51
|
# @return [String]
|
49
52
|
#
|
50
53
|
# @!attribute [rw] account_id
|
51
|
-
# The identifier for the
|
54
|
+
# The identifier for the Amazon Web Services account that is assigned
|
55
|
+
# to the user.
|
52
56
|
# @return [String]
|
53
57
|
#
|
54
58
|
# @!attribute [rw] access_token
|
55
59
|
# The token issued by the `CreateToken` API call. For more
|
56
|
-
# information, see [CreateToken][1] in the *
|
57
|
-
# Guide*.
|
60
|
+
# information, see [CreateToken][1] in the *Amazon Web Services SSO
|
61
|
+
# OIDC API Reference Guide*.
|
58
62
|
#
|
59
63
|
#
|
60
64
|
#
|
@@ -118,8 +122,8 @@ module Aws::SSO
|
|
118
122
|
#
|
119
123
|
# @!attribute [rw] access_token
|
120
124
|
# The token issued by the `CreateToken` API call. For more
|
121
|
-
# information, see [CreateToken][1] in the *
|
122
|
-
# Guide*.
|
125
|
+
# information, see [CreateToken][1] in the *Amazon Web Services SSO
|
126
|
+
# OIDC API Reference Guide*.
|
123
127
|
#
|
124
128
|
#
|
125
129
|
#
|
@@ -127,7 +131,8 @@ module Aws::SSO
|
|
127
131
|
# @return [String]
|
128
132
|
#
|
129
133
|
# @!attribute [rw] account_id
|
130
|
-
# The identifier for the
|
134
|
+
# The identifier for the Amazon Web Services account that is assigned
|
135
|
+
# to the user.
|
131
136
|
# @return [String]
|
132
137
|
#
|
133
138
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRolesRequest AWS API Documentation
|
@@ -179,8 +184,8 @@ module Aws::SSO
|
|
179
184
|
#
|
180
185
|
# @!attribute [rw] access_token
|
181
186
|
# The token issued by the `CreateToken` API call. For more
|
182
|
-
# information, see [CreateToken][1] in the *
|
183
|
-
# Guide*.
|
187
|
+
# information, see [CreateToken][1] in the *Amazon Web Services SSO
|
188
|
+
# OIDC API Reference Guide*.
|
184
189
|
#
|
185
190
|
#
|
186
191
|
#
|
@@ -224,8 +229,8 @@ module Aws::SSO
|
|
224
229
|
#
|
225
230
|
# @!attribute [rw] access_token
|
226
231
|
# The token issued by the `CreateToken` API call. For more
|
227
|
-
# information, see [CreateToken][1] in the *
|
228
|
-
# Guide*.
|
232
|
+
# information, see [CreateToken][1] in the *Amazon Web Services SSO
|
233
|
+
# OIDC API Reference Guide*.
|
229
234
|
#
|
230
235
|
#
|
231
236
|
#
|
@@ -259,7 +264,8 @@ module Aws::SSO
|
|
259
264
|
# @!attribute [rw] access_key_id
|
260
265
|
# The identifier used for the temporary security credentials. For more
|
261
266
|
# information, see [Using Temporary Security Credentials to Request
|
262
|
-
# Access to
|
267
|
+
# Access to Amazon Web Services Resources][1] in the *Amazon Web
|
268
|
+
# Services IAM User Guide*.
|
263
269
|
#
|
264
270
|
#
|
265
271
|
#
|
@@ -268,8 +274,9 @@ module Aws::SSO
|
|
268
274
|
#
|
269
275
|
# @!attribute [rw] secret_access_key
|
270
276
|
# The key that is used to sign the request. For more information, see
|
271
|
-
# [Using Temporary Security Credentials to Request Access to
|
272
|
-
# Resources][1] in the *
|
277
|
+
# [Using Temporary Security Credentials to Request Access to Amazon
|
278
|
+
# Web Services Resources][1] in the *Amazon Web Services IAM User
|
279
|
+
# Guide*.
|
273
280
|
#
|
274
281
|
#
|
275
282
|
#
|
@@ -278,8 +285,9 @@ module Aws::SSO
|
|
278
285
|
#
|
279
286
|
# @!attribute [rw] session_token
|
280
287
|
# The token used for temporary credentials. For more information, see
|
281
|
-
# [Using Temporary Security Credentials to Request Access to
|
282
|
-
# Resources][1] in the *
|
288
|
+
# [Using Temporary Security Credentials to Request Access to Amazon
|
289
|
+
# Web Services Resources][1] in the *Amazon Web Services IAM User
|
290
|
+
# Guide*.
|
283
291
|
#
|
284
292
|
#
|
285
293
|
#
|
@@ -308,7 +316,8 @@ module Aws::SSO
|
|
308
316
|
# @return [String]
|
309
317
|
#
|
310
318
|
# @!attribute [rw] account_id
|
311
|
-
# The identifier of the
|
319
|
+
# The identifier of the Amazon Web Services account assigned to the
|
320
|
+
# user.
|
312
321
|
# @return [String]
|
313
322
|
#
|
314
323
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/RoleInfo AWS API Documentation
|