aws-sdk-core 3.166.0 → 3.168.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/shared_config.rb +36 -8
- data/lib/aws-sdk-core/sso_credentials.rb +79 -44
- data/lib/aws-sdk-core/sso_token_provider.rb +2 -2
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +122 -122
- data/lib/aws-sdk-sts/endpoint_provider.rb +2 -2
- data/lib/aws-sdk-sts/types.rb +79 -69
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/h2/connection.rb +2 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a4dd2eca826a9e7e2691ae3617a046c7861951e597b2976a5a8d92c85a3029b
|
4
|
+
data.tar.gz: 28d8c99591cd0da107d3d38ef1a1941edebf56e1dab2a17f53a372bbb9f28032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bcf6c20074fff2e6eded6da89cfe2806a2bf439e5da8176e673918bbb8f09e6f8fe7aa9cb96973a5699d4f4d0b79f6e2763772c61ff9e3054418c44737b53b0
|
7
|
+
data.tar.gz: a84c1f410f5ff61e5aafbe2a92d2cde3690e22b12df5c4c10f6ae1a6e7b4264f46daa91bef758ef36ae215341826ae4d2f65762594051bf0d5ad576402dee5c7
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
3.168.0 (2022-11-17)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Updated Aws::STS::Client with the latest API changes.
|
8
|
+
|
9
|
+
3.167.0 (2022-11-09)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Ensure the stream_thread is not killed before H2 connection status is updated (#2779).
|
13
|
+
|
14
|
+
* Feature - Add token refresh support to `SSOCredentialProvider`.
|
15
|
+
|
4
16
|
3.166.0 (2022-10-26)
|
5
17
|
------------------
|
6
18
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
1
|
+
3.168.0
|
@@ -3,9 +3,10 @@
|
|
3
3
|
module Aws
|
4
4
|
# @api private
|
5
5
|
class SharedConfig
|
6
|
-
|
6
|
+
SSO_CREDENTIAL_PROFILE_KEYS = %w[sso_account_id sso_role_name].freeze
|
7
|
+
SSO_PROFILE_KEYS = %w[sso_session sso_start_url sso_region sso_account_id sso_role_name].freeze
|
7
8
|
SSO_TOKEN_PROFILE_KEYS = %w[sso_session].freeze
|
8
|
-
SSO_SESSION_KEYS = %w[sso_region]
|
9
|
+
SSO_SESSION_KEYS = %w[sso_region sso_start_url].freeze
|
9
10
|
|
10
11
|
|
11
12
|
# @return [String]
|
@@ -331,14 +332,41 @@ module Aws
|
|
331
332
|
def sso_credentials_from_profile(cfg, profile)
|
332
333
|
if @parsed_config &&
|
333
334
|
(prof_config = cfg[profile]) &&
|
334
|
-
!(prof_config.keys &
|
335
|
+
!(prof_config.keys & SSO_CREDENTIAL_PROFILE_KEYS).empty?
|
336
|
+
|
337
|
+
if sso_session_name = prof_config['sso_session']
|
338
|
+
sso_session = cfg["sso-session #{sso_session_name}"]
|
339
|
+
unless sso_session
|
340
|
+
raise ArgumentError,
|
341
|
+
"sso-session #{sso_session_name} must be defined in the config file. " \
|
342
|
+
"Referenced by profile #{profile}"
|
343
|
+
end
|
344
|
+
sso_region = sso_session['sso_region']
|
345
|
+
sso_start_url = sso_session['sso_start_url']
|
346
|
+
|
347
|
+
# validate sso_region and sso_start_url don't conflict if set on profile and session
|
348
|
+
if prof_config['sso_region'] && prof_config['sso_region'] != sso_region
|
349
|
+
raise ArgumentError,
|
350
|
+
"sso-session #{sso_session_name}'s sso_region (#{sso_region}) " \
|
351
|
+
"does not match the profile #{profile}'s sso_region (#{prof_config['sso_region']}'"
|
352
|
+
end
|
353
|
+
if prof_config['sso_start_url'] && prof_config['sso_start_url'] != sso_start_url
|
354
|
+
raise ArgumentError,
|
355
|
+
"sso-session #{sso_session_name}'s sso_start_url (#{sso_start_url}) " \
|
356
|
+
"does not match the profile #{profile}'s sso_start_url (#{prof_config['sso_start_url']}'"
|
357
|
+
end
|
358
|
+
else
|
359
|
+
sso_region = prof_config['sso_region']
|
360
|
+
sso_start_url = prof_config['sso_start_url']
|
361
|
+
end
|
335
362
|
|
336
363
|
SSOCredentials.new(
|
337
|
-
sso_start_url: prof_config['sso_start_url'],
|
338
|
-
sso_region: prof_config['sso_region'],
|
339
364
|
sso_account_id: prof_config['sso_account_id'],
|
340
|
-
sso_role_name: prof_config['sso_role_name']
|
341
|
-
|
365
|
+
sso_role_name: prof_config['sso_role_name'],
|
366
|
+
sso_session: prof_config['sso_session'],
|
367
|
+
sso_region: sso_region,
|
368
|
+
sso_start_url: prof_config['sso_start_url']
|
369
|
+
)
|
342
370
|
end
|
343
371
|
end
|
344
372
|
|
@@ -353,7 +381,7 @@ module Aws
|
|
353
381
|
sso_session = cfg["sso-session #{sso_session_name}"]
|
354
382
|
unless sso_session
|
355
383
|
raise ArgumentError,
|
356
|
-
"sso-session #{sso_session_name} must be defined in the config file."
|
384
|
+
"sso-session #{sso_session_name} must be defined in the config file." \
|
357
385
|
"Referenced by profile #{profile}"
|
358
386
|
end
|
359
387
|
|
@@ -3,24 +3,19 @@
|
|
3
3
|
module Aws
|
4
4
|
# An auto-refreshing credential provider that assumes a role via
|
5
5
|
# {Aws::SSO::Client#get_role_credentials} using a cached access
|
6
|
-
# token.
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
# access token generated and cached from `aws login` will also expire.
|
13
|
-
# Once this token expires, it will not be usable to refresh AWS credentials,
|
14
|
-
# and another token will be needed. The SDK does not manage refreshing of
|
15
|
-
# the token value, but this can be done by running `aws login` with the
|
16
|
-
# correct profile.
|
6
|
+
# token. When `sso_session` is specified, token refresh logic from
|
7
|
+
# {Aws::SSOTokenProvider} will be used to refresh the token if possible.
|
8
|
+
# This class does NOT implement the SSO login token flow - tokens
|
9
|
+
# must generated separately by running `aws login` from the
|
10
|
+
# AWS CLI with the correct profile. The `SSOCredentials` will
|
11
|
+
# auto-refresh the AWS credentials from SSO.
|
17
12
|
#
|
18
13
|
# # You must first run aws sso login --profile your-sso-profile
|
19
14
|
# sso_credentials = Aws::SSOCredentials.new(
|
20
15
|
# sso_account_id: '123456789',
|
21
16
|
# sso_role_name: "role_name",
|
22
17
|
# sso_region: "us-east-1",
|
23
|
-
#
|
18
|
+
# sso_session: 'my_sso_session'
|
24
19
|
# )
|
25
20
|
# ec2 = Aws::EC2::Client.new(credentials: sso_credentials)
|
26
21
|
#
|
@@ -35,7 +30,8 @@ module Aws
|
|
35
30
|
include RefreshingCredentials
|
36
31
|
|
37
32
|
# @api private
|
38
|
-
|
33
|
+
LEGACY_REQUIRED_OPTS = [:sso_start_url, :sso_account_id, :sso_region, :sso_role_name].freeze
|
34
|
+
TOKEN_PROVIDER_REQUIRED_OPTS = [:sso_session, :sso_account_id, :sso_region, :sso_role_name].freeze
|
39
35
|
|
40
36
|
# @api private
|
41
37
|
SSO_LOGIN_GUIDANCE = 'The SSO session associated with this profile has '\
|
@@ -45,17 +41,23 @@ module Aws
|
|
45
41
|
# @option options [required, String] :sso_account_id The AWS account ID
|
46
42
|
# that temporary AWS credentials will be resolved for
|
47
43
|
#
|
48
|
-
# @option options [required, String] :sso_region The AWS region where the
|
49
|
-
# SSO directory for the given sso_start_url is hosted.
|
50
|
-
#
|
51
44
|
# @option options [required, String] :sso_role_name The corresponding
|
52
45
|
# IAM role in the AWS account that temporary AWS credentials
|
53
46
|
# will be resolved for.
|
54
47
|
#
|
55
|
-
# @option options [required, String] :
|
56
|
-
#
|
48
|
+
# @option options [required, String] :sso_region The AWS region where the
|
49
|
+
# SSO directory for the given sso_start_url is hosted.
|
50
|
+
#
|
51
|
+
# @option options [String] :sso_session The SSO Token used for fetching
|
52
|
+
# the token. If provided, refresh logic from the {Aws::SSOTokenProvider}
|
53
|
+
# will be used.
|
54
|
+
#
|
55
|
+
# @option options [String] :sso_start_url (legacy profiles) If provided,
|
56
|
+
# legacy token fetch behavior will be used, which does not support
|
57
|
+
# token refreshing. The start URL is provided by the SSO
|
58
|
+
# service via the console and is the URL used to
|
57
59
|
# login to the SSO directory. This is also sometimes referred to as
|
58
|
-
# the "User Portal URL"
|
60
|
+
# the "User Portal URL".
|
59
61
|
#
|
60
62
|
# @option options [SSO::Client] :client Optional `SSO::Client`. If not
|
61
63
|
# provided, a client will be constructed.
|
@@ -65,27 +67,52 @@ module Aws
|
|
65
67
|
# with an instance of this object when
|
66
68
|
# AWS credentials are required and need to be refreshed.
|
67
69
|
def initialize(options = {})
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
70
|
+
options = options.select {|k, v| !v.nil? }
|
71
|
+
if (options[:sso_session])
|
72
|
+
missing_keys = TOKEN_PROVIDER_REQUIRED_OPTS.select { |k| options[k].nil? }
|
73
|
+
unless missing_keys.empty?
|
74
|
+
raise ArgumentError, "Missing required keys: #{missing_keys}"
|
75
|
+
end
|
76
|
+
@legacy = false
|
77
|
+
@sso_role_name = options.delete(:sso_role_name)
|
78
|
+
@sso_account_id = options.delete(:sso_account_id)
|
79
|
+
|
80
|
+
# if client has been passed, don't pass through to SSOTokenProvider
|
81
|
+
@client = options.delete(:client)
|
82
|
+
options.delete(:sso_start_url)
|
83
|
+
@token_provider = Aws::SSOTokenProvider.new(options.dup)
|
84
|
+
@sso_session = options.delete(:sso_session)
|
85
|
+
@sso_region = options.delete(:sso_region)
|
86
|
+
|
87
|
+
unless @client
|
88
|
+
client_opts = {}
|
89
|
+
options.each_pair { |k,v| client_opts[k] = v unless CLIENT_EXCLUDE_OPTIONS.include?(k) }
|
90
|
+
client_opts[:region] = @sso_region
|
91
|
+
client_opts[:credentials] = nil
|
92
|
+
@client = Aws::SSO::Client.new(client_opts)
|
93
|
+
end
|
94
|
+
else # legacy behavior
|
95
|
+
missing_keys = LEGACY_REQUIRED_OPTS.select { |k| options[k].nil? }
|
96
|
+
unless missing_keys.empty?
|
97
|
+
raise ArgumentError, "Missing required keys: #{missing_keys}"
|
98
|
+
end
|
99
|
+
@legacy = true
|
100
|
+
@sso_start_url = options.delete(:sso_start_url)
|
101
|
+
@sso_region = options.delete(:sso_region)
|
102
|
+
@sso_role_name = options.delete(:sso_role_name)
|
103
|
+
@sso_account_id = options.delete(:sso_account_id)
|
104
|
+
|
105
|
+
# validate we can read the token file
|
106
|
+
read_cached_token
|
107
|
+
|
108
|
+
client_opts = {}
|
109
|
+
options.each_pair { |k,v| client_opts[k] = v unless CLIENT_EXCLUDE_OPTIONS.include?(k) }
|
110
|
+
client_opts[:region] = @sso_region
|
111
|
+
client_opts[:credentials] = nil
|
112
|
+
|
113
|
+
@client = options[:client] || Aws::SSO::Client.new(client_opts)
|
72
114
|
end
|
73
115
|
|
74
|
-
@sso_start_url = options.delete(:sso_start_url)
|
75
|
-
@sso_region = options.delete(:sso_region)
|
76
|
-
@sso_role_name = options.delete(:sso_role_name)
|
77
|
-
@sso_account_id = options.delete(:sso_account_id)
|
78
|
-
|
79
|
-
# validate we can read the token file
|
80
|
-
read_cached_token
|
81
|
-
|
82
|
-
|
83
|
-
client_opts = {}
|
84
|
-
options.each_pair { |k,v| client_opts[k] = v unless CLIENT_EXCLUDE_OPTIONS.include?(k) }
|
85
|
-
client_opts[:region] = @sso_region
|
86
|
-
client_opts[:credentials] = nil
|
87
|
-
|
88
|
-
@client = options[:client] || Aws::SSO::Client.new(client_opts)
|
89
116
|
@async_refresh = true
|
90
117
|
super
|
91
118
|
end
|
@@ -111,12 +138,20 @@ module Aws
|
|
111
138
|
end
|
112
139
|
|
113
140
|
def refresh
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
141
|
+
c = if @legacy
|
142
|
+
cached_token = read_cached_token
|
143
|
+
@client.get_role_credentials(
|
144
|
+
account_id: @sso_account_id,
|
145
|
+
role_name: @sso_role_name,
|
146
|
+
access_token: cached_token['accessToken']
|
147
|
+
).role_credentials
|
148
|
+
else
|
149
|
+
@client.get_role_credentials(
|
150
|
+
account_id: @sso_account_id,
|
151
|
+
role_name: @sso_role_name,
|
152
|
+
access_token: @token_provider.token.token
|
153
|
+
).role_credentials
|
154
|
+
end
|
120
155
|
|
121
156
|
@credentials = Credentials.new(
|
122
157
|
c.access_key_id,
|
@@ -44,7 +44,7 @@ module Aws
|
|
44
44
|
super
|
45
45
|
end
|
46
46
|
|
47
|
-
# @return [
|
47
|
+
# @return [SSOOIDC::Client]
|
48
48
|
attr_reader :client
|
49
49
|
|
50
50
|
private
|
@@ -66,7 +66,7 @@ module Aws
|
|
66
66
|
resp = @client.create_token(
|
67
67
|
grant_type: 'refresh_token',
|
68
68
|
client_id: token_json['clientId'],
|
69
|
-
client_secret: token_json['
|
69
|
+
client_secret: token_json['clientSecret'],
|
70
70
|
refresh_token: token_json['refreshToken']
|
71
71
|
)
|
72
72
|
token_json['accessToken'] = resp.access_token
|
data/lib/aws-sdk-sso/client.rb
CHANGED
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -394,18 +394,18 @@ module Aws::STS
|
|
394
394
|
#
|
395
395
|
# (Optional) You can pass inline or managed [session policies][3] to
|
396
396
|
# this operation. You can pass a single JSON policy document to use as
|
397
|
-
# an inline session policy. You can also specify up to 10 managed
|
398
|
-
#
|
399
|
-
# use for both inline and managed session policies
|
400
|
-
# characters. Passing policies to this operation
|
401
|
-
# credentials. The resulting session's
|
402
|
-
# of the role's identity-based policy
|
403
|
-
# use the role's temporary
|
404
|
-
# Services API calls to access
|
405
|
-
# role. You cannot use session
|
406
|
-
#
|
407
|
-
#
|
408
|
-
# User Guide*.
|
397
|
+
# an inline session policy. You can also specify up to 10 managed policy
|
398
|
+
# Amazon Resource Names (ARNs) to use as managed session policies. The
|
399
|
+
# plaintext that you use for both inline and managed session policies
|
400
|
+
# can't exceed 2,048 characters. Passing policies to this operation
|
401
|
+
# returns new temporary credentials. The resulting session's
|
402
|
+
# permissions are the intersection of the role's identity-based policy
|
403
|
+
# and the session policies. You can use the role's temporary
|
404
|
+
# credentials in subsequent Amazon Web Services API calls to access
|
405
|
+
# resources in the account that owns the role. You cannot use session
|
406
|
+
# policies to grant more permissions than those allowed by the
|
407
|
+
# identity-based policy of the role that is being assumed. For more
|
408
|
+
# information, see [Session Policies][3] in the *IAM User Guide*.
|
409
409
|
#
|
410
410
|
# When you create a role, you create two policies: A role trust policy
|
411
411
|
# that specifies *who* can assume the role and a permissions policy that
|
@@ -519,12 +519,12 @@ module Aws::STS
|
|
519
519
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
520
520
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
521
521
|
#
|
522
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
523
|
-
#
|
524
|
-
# separate limit. Your request can fail for this limit
|
525
|
-
# plaintext meets the other requirements. The
|
526
|
-
# response element indicates by percentage how close
|
527
|
-
# tags for your request are to the upper size limit.
|
522
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
523
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
524
|
+
# format that has a separate limit. Your request can fail for this limit
|
525
|
+
# even if your plaintext meets the other requirements. The
|
526
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
527
|
+
# the policies and tags for your request are to the upper size limit.
|
528
528
|
#
|
529
529
|
# </note>
|
530
530
|
#
|
@@ -564,12 +564,12 @@ module Aws::STS
|
|
564
564
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
565
565
|
# characters.
|
566
566
|
#
|
567
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
568
|
-
#
|
569
|
-
# separate limit. Your request can fail for this limit
|
570
|
-
# plaintext meets the other requirements. The
|
571
|
-
# response element indicates by percentage how close
|
572
|
-
# tags for your request are to the upper size limit.
|
567
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
568
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
569
|
+
# format that has a separate limit. Your request can fail for this limit
|
570
|
+
# even if your plaintext meets the other requirements. The
|
571
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
572
|
+
# the policies and tags for your request are to the upper size limit.
|
573
573
|
#
|
574
574
|
# </note>
|
575
575
|
#
|
@@ -627,12 +627,12 @@ module Aws::STS
|
|
627
627
|
# can’t exceed 256 characters. For these and additional limits, see [IAM
|
628
628
|
# and STS Character Limits][2] in the *IAM User Guide*.
|
629
629
|
#
|
630
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
631
|
-
#
|
632
|
-
# separate limit. Your request can fail for this limit
|
633
|
-
# plaintext meets the other requirements. The
|
634
|
-
# response element indicates by percentage how close
|
635
|
-
# tags for your request are to the upper size limit.
|
630
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
631
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
632
|
+
# format that has a separate limit. Your request can fail for this limit
|
633
|
+
# even if your plaintext meets the other requirements. The
|
634
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
635
|
+
# the policies and tags for your request are to the upper size limit.
|
636
636
|
#
|
637
637
|
# </note>
|
638
638
|
#
|
@@ -895,18 +895,18 @@ module Aws::STS
|
|
895
895
|
#
|
896
896
|
# (Optional) You can pass inline or managed [session policies][6] to
|
897
897
|
# this operation. You can pass a single JSON policy document to use as
|
898
|
-
# an inline session policy. You can also specify up to 10 managed
|
899
|
-
#
|
900
|
-
# use for both inline and managed session policies
|
901
|
-
# characters. Passing policies to this operation
|
902
|
-
# credentials. The resulting session's
|
903
|
-
# of the role's identity-based policy
|
904
|
-
# use the role's temporary
|
905
|
-
# Services API calls to access
|
906
|
-
# role. You cannot use session
|
907
|
-
#
|
908
|
-
#
|
909
|
-
# User Guide*.
|
898
|
+
# an inline session policy. You can also specify up to 10 managed policy
|
899
|
+
# Amazon Resource Names (ARNs) to use as managed session policies. The
|
900
|
+
# plaintext that you use for both inline and managed session policies
|
901
|
+
# can't exceed 2,048 characters. Passing policies to this operation
|
902
|
+
# returns new temporary credentials. The resulting session's
|
903
|
+
# permissions are the intersection of the role's identity-based policy
|
904
|
+
# and the session policies. You can use the role's temporary
|
905
|
+
# credentials in subsequent Amazon Web Services API calls to access
|
906
|
+
# resources in the account that owns the role. You cannot use session
|
907
|
+
# policies to grant more permissions than those allowed by the
|
908
|
+
# identity-based policy of the role that is being assumed. For more
|
909
|
+
# information, see [Session Policies][6] in the *IAM User Guide*.
|
910
910
|
#
|
911
911
|
# Calling `AssumeRoleWithSAML` does not require the use of Amazon Web
|
912
912
|
# Services security credentials. The identity of the caller is validated
|
@@ -932,12 +932,12 @@ module Aws::STS
|
|
932
932
|
# characters. For these and additional limits, see [IAM and STS
|
933
933
|
# Character Limits][8] in the *IAM User Guide*.
|
934
934
|
#
|
935
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
936
|
-
#
|
937
|
-
# separate limit. Your request can fail for this limit
|
938
|
-
# plaintext meets the other requirements. The
|
939
|
-
# response element indicates by percentage how close
|
940
|
-
# tags for your request are to the upper size limit.
|
935
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
936
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
937
|
+
# format that has a separate limit. Your request can fail for this limit
|
938
|
+
# even if your plaintext meets the other requirements. The
|
939
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
940
|
+
# the policies and tags for your request are to the upper size limit.
|
941
941
|
#
|
942
942
|
# </note>
|
943
943
|
#
|
@@ -1023,12 +1023,12 @@ module Aws::STS
|
|
1023
1023
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
1024
1024
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
1025
1025
|
#
|
1026
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1027
|
-
#
|
1028
|
-
# separate limit. Your request can fail for this limit
|
1029
|
-
# plaintext meets the other requirements. The
|
1030
|
-
# response element indicates by percentage how close
|
1031
|
-
# tags for your request are to the upper size limit.
|
1026
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
1027
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
1028
|
+
# format that has a separate limit. Your request can fail for this limit
|
1029
|
+
# even if your plaintext meets the other requirements. The
|
1030
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
1031
|
+
# the policies and tags for your request are to the upper size limit.
|
1032
1032
|
#
|
1033
1033
|
# </note>
|
1034
1034
|
#
|
@@ -1068,12 +1068,12 @@ module Aws::STS
|
|
1068
1068
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
1069
1069
|
# characters.
|
1070
1070
|
#
|
1071
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1072
|
-
#
|
1073
|
-
# separate limit. Your request can fail for this limit
|
1074
|
-
# plaintext meets the other requirements. The
|
1075
|
-
# response element indicates by percentage how close
|
1076
|
-
# tags for your request are to the upper size limit.
|
1071
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
1072
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
1073
|
+
# format that has a separate limit. Your request can fail for this limit
|
1074
|
+
# even if your plaintext meets the other requirements. The
|
1075
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
1076
|
+
# the policies and tags for your request are to the upper size limit.
|
1077
1077
|
#
|
1078
1078
|
# </note>
|
1079
1079
|
#
|
@@ -1256,18 +1256,18 @@ module Aws::STS
|
|
1256
1256
|
#
|
1257
1257
|
# (Optional) You can pass inline or managed [session policies][10] to
|
1258
1258
|
# this operation. You can pass a single JSON policy document to use as
|
1259
|
-
# an inline session policy. You can also specify up to 10 managed
|
1260
|
-
#
|
1261
|
-
# use for both inline and managed session policies
|
1262
|
-
# characters. Passing policies to this operation
|
1263
|
-
# credentials. The resulting session's
|
1264
|
-
# of the role's identity-based policy
|
1265
|
-
# use the role's temporary
|
1266
|
-
# Services API calls to access
|
1267
|
-
# role. You cannot use session
|
1268
|
-
#
|
1269
|
-
#
|
1270
|
-
# User Guide*.
|
1259
|
+
# an inline session policy. You can also specify up to 10 managed policy
|
1260
|
+
# Amazon Resource Names (ARNs) to use as managed session policies. The
|
1261
|
+
# plaintext that you use for both inline and managed session policies
|
1262
|
+
# can't exceed 2,048 characters. Passing policies to this operation
|
1263
|
+
# returns new temporary credentials. The resulting session's
|
1264
|
+
# permissions are the intersection of the role's identity-based policy
|
1265
|
+
# and the session policies. You can use the role's temporary
|
1266
|
+
# credentials in subsequent Amazon Web Services API calls to access
|
1267
|
+
# resources in the account that owns the role. You cannot use session
|
1268
|
+
# policies to grant more permissions than those allowed by the
|
1269
|
+
# identity-based policy of the role that is being assumed. For more
|
1270
|
+
# information, see [Session Policies][10] in the *IAM User Guide*.
|
1271
1271
|
#
|
1272
1272
|
# **Tags**
|
1273
1273
|
#
|
@@ -1281,12 +1281,12 @@ module Aws::STS
|
|
1281
1281
|
# characters. For these and additional limits, see [IAM and STS
|
1282
1282
|
# Character Limits][12] in the *IAM User Guide*.
|
1283
1283
|
#
|
1284
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1285
|
-
#
|
1286
|
-
# separate limit. Your request can fail for this limit
|
1287
|
-
# plaintext meets the other requirements. The
|
1288
|
-
# response element indicates by percentage how close
|
1289
|
-
# tags for your request are to the upper size limit.
|
1284
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
1285
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
1286
|
+
# format that has a separate limit. Your request can fail for this limit
|
1287
|
+
# even if your plaintext meets the other requirements. The
|
1288
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
1289
|
+
# the policies and tags for your request are to the upper size limit.
|
1290
1290
|
#
|
1291
1291
|
# </note>
|
1292
1292
|
#
|
@@ -1410,12 +1410,12 @@ module Aws::STS
|
|
1410
1410
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
1411
1411
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
1412
1412
|
#
|
1413
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1414
|
-
#
|
1415
|
-
# separate limit. Your request can fail for this limit
|
1416
|
-
# plaintext meets the other requirements. The
|
1417
|
-
# response element indicates by percentage how close
|
1418
|
-
# tags for your request are to the upper size limit.
|
1413
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
1414
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
1415
|
+
# format that has a separate limit. Your request can fail for this limit
|
1416
|
+
# even if your plaintext meets the other requirements. The
|
1417
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
1418
|
+
# the policies and tags for your request are to the upper size limit.
|
1419
1419
|
#
|
1420
1420
|
# </note>
|
1421
1421
|
#
|
@@ -1455,12 +1455,12 @@ module Aws::STS
|
|
1455
1455
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
1456
1456
|
# characters.
|
1457
1457
|
#
|
1458
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1459
|
-
#
|
1460
|
-
# separate limit. Your request can fail for this limit
|
1461
|
-
# plaintext meets the other requirements. The
|
1462
|
-
# response element indicates by percentage how close
|
1463
|
-
# tags for your request are to the upper size limit.
|
1458
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
1459
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
1460
|
+
# format that has a separate limit. Your request can fail for this limit
|
1461
|
+
# even if your plaintext meets the other requirements. The
|
1462
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
1463
|
+
# the policies and tags for your request are to the upper size limit.
|
1464
1464
|
#
|
1465
1465
|
# </note>
|
1466
1466
|
#
|
@@ -1852,10 +1852,10 @@ module Aws::STS
|
|
1852
1852
|
#
|
1853
1853
|
# You must pass an inline or managed [session policy][6] to this
|
1854
1854
|
# operation. You can pass a single JSON policy document to use as an
|
1855
|
-
# inline session policy. You can also specify up to 10 managed
|
1856
|
-
# to use as managed session policies. The
|
1857
|
-
# both inline and managed session policies
|
1858
|
-
# characters.
|
1855
|
+
# inline session policy. You can also specify up to 10 managed policy
|
1856
|
+
# Amazon Resource Names (ARNs) to use as managed session policies. The
|
1857
|
+
# plaintext that you use for both inline and managed session policies
|
1858
|
+
# can't exceed 2,048 characters.
|
1859
1859
|
#
|
1860
1860
|
# Though the session policy parameters are optional, if you do not pass
|
1861
1861
|
# a policy, then the resulting federated user session has no
|
@@ -1934,8 +1934,8 @@ module Aws::STS
|
|
1934
1934
|
#
|
1935
1935
|
# You must pass an inline or managed [session policy][1] to this
|
1936
1936
|
# operation. You can pass a single JSON policy document to use as an
|
1937
|
-
# inline session policy. You can also specify up to 10 managed
|
1938
|
-
# to use as managed session policies.
|
1937
|
+
# inline session policy. You can also specify up to 10 managed policy
|
1938
|
+
# Amazon Resource Names (ARNs) to use as managed session policies.
|
1939
1939
|
#
|
1940
1940
|
# This parameter is optional. However, if you do not pass any session
|
1941
1941
|
# policies, then the resulting federated user session has no
|
@@ -1963,12 +1963,12 @@ module Aws::STS
|
|
1963
1963
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
1964
1964
|
# characters.
|
1965
1965
|
#
|
1966
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1967
|
-
#
|
1968
|
-
# separate limit. Your request can fail for this limit
|
1969
|
-
# plaintext meets the other requirements. The
|
1970
|
-
# response element indicates by percentage how close
|
1971
|
-
# tags for your request are to the upper size limit.
|
1966
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
1967
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
1968
|
+
# format that has a separate limit. Your request can fail for this limit
|
1969
|
+
# even if your plaintext meets the other requirements. The
|
1970
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
1971
|
+
# the policies and tags for your request are to the upper size limit.
|
1972
1972
|
#
|
1973
1973
|
# </note>
|
1974
1974
|
#
|
@@ -1983,13 +1983,13 @@ module Aws::STS
|
|
1983
1983
|
#
|
1984
1984
|
# You must pass an inline or managed [session policy][1] to this
|
1985
1985
|
# operation. You can pass a single JSON policy document to use as an
|
1986
|
-
# inline session policy. You can also specify up to 10 managed
|
1987
|
-
# to use as managed session policies. The
|
1988
|
-
# both inline and managed session policies
|
1989
|
-
# characters. You can provide up to 10 managed
|
1990
|
-
# information about ARNs, see [Amazon Resource
|
1991
|
-
# Web Services Service Namespaces][2] in the
|
1992
|
-
# Reference.
|
1986
|
+
# inline session policy. You can also specify up to 10 managed policy
|
1987
|
+
# Amazon Resource Names (ARNs) to use as managed session policies. The
|
1988
|
+
# plaintext that you use for both inline and managed session policies
|
1989
|
+
# can't exceed 2,048 characters. You can provide up to 10 managed
|
1990
|
+
# policy ARNs. For more information about ARNs, see [Amazon Resource
|
1991
|
+
# Names (ARNs) and Amazon Web Services Service Namespaces][2] in the
|
1992
|
+
# Amazon Web Services General Reference.
|
1993
1993
|
#
|
1994
1994
|
# This parameter is optional. However, if you do not pass any session
|
1995
1995
|
# policies, then the resulting federated user session has no
|
@@ -2010,12 +2010,12 @@ module Aws::STS
|
|
2010
2010
|
# are granted in addition to the permissions that are granted by the
|
2011
2011
|
# session policies.
|
2012
2012
|
#
|
2013
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
2014
|
-
#
|
2015
|
-
# separate limit. Your request can fail for this limit
|
2016
|
-
# plaintext meets the other requirements. The
|
2017
|
-
# response element indicates by percentage how close
|
2018
|
-
# tags for your request are to the upper size limit.
|
2013
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
2014
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
2015
|
+
# format that has a separate limit. Your request can fail for this limit
|
2016
|
+
# even if your plaintext meets the other requirements. The
|
2017
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
2018
|
+
# the policies and tags for your request are to the upper size limit.
|
2019
2019
|
#
|
2020
2020
|
# </note>
|
2021
2021
|
#
|
@@ -2043,12 +2043,12 @@ module Aws::STS
|
|
2043
2043
|
# can’t exceed 256 characters. For these and additional limits, see [IAM
|
2044
2044
|
# and STS Character Limits][2] in the *IAM User Guide*.
|
2045
2045
|
#
|
2046
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
2047
|
-
#
|
2048
|
-
# separate limit. Your request can fail for this limit
|
2049
|
-
# plaintext meets the other requirements. The
|
2050
|
-
# response element indicates by percentage how close
|
2051
|
-
# tags for your request are to the upper size limit.
|
2046
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
2047
|
+
# policy, managed policy ARNs, and session tags into a packed binary
|
2048
|
+
# format that has a separate limit. Your request can fail for this limit
|
2049
|
+
# even if your plaintext meets the other requirements. The
|
2050
|
+
# `PackedPolicySize` response element indicates by percentage how close
|
2051
|
+
# the policies and tags for your request are to the upper size limit.
|
2052
2052
|
#
|
2053
2053
|
# </note>
|
2054
2054
|
#
|
@@ -2316,7 +2316,7 @@ module Aws::STS
|
|
2316
2316
|
params: params,
|
2317
2317
|
config: config)
|
2318
2318
|
context[:gem_name] = 'aws-sdk-core'
|
2319
|
-
context[:gem_version] = '3.
|
2319
|
+
context[:gem_version] = '3.168.0'
|
2320
2320
|
Seahorse::Client::Request.new(handlers, context)
|
2321
2321
|
end
|
2322
2322
|
|
@@ -217,8 +217,8 @@ cGUiOiJ0cmVlIiwicnVsZXMiOlt7ImNvbmRpdGlvbnMiOlt7ImZuIjoic3Ry
|
|
217
217
|
aW5nRXF1YWxzIiwiYXJndiI6W3sicmVmIjoiUmVnaW9uIn0sImF3cy1nbG9i
|
218
218
|
YWwiXX1dLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczovL3N0cy5hbWF6b25h
|
219
219
|
d3MuY29tIiwicHJvcGVydGllcyI6eyJhdXRoU2NoZW1lcyI6W3sibmFtZSI6
|
220
|
-
|
221
|
-
|
220
|
+
InNpZ3Y0Iiwic2lnbmluZ1JlZ2lvbiI6InVzLWVhc3QtMSIsInNpZ25pbmdO
|
221
|
+
YW1lIjoic3RzIn1dfSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQi
|
222
222
|
fSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczov
|
223
223
|
L3N0cy57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJw
|
224
224
|
cm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQi
|
data/lib/aws-sdk-sts/types.rb
CHANGED
@@ -70,12 +70,13 @@ module Aws::STS
|
|
70
70
|
# Web Services Service Namespaces][1] in the Amazon Web Services
|
71
71
|
# General Reference.
|
72
72
|
#
|
73
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
74
|
-
#
|
75
|
-
# separate limit. Your request can fail for
|
76
|
-
# plaintext meets the other requirements. The
|
77
|
-
# response element indicates by percentage how
|
78
|
-
# tags for your request are to the upper size
|
73
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
74
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
75
|
+
# binary format that has a separate limit. Your request can fail for
|
76
|
+
# this limit even if your plaintext meets the other requirements. The
|
77
|
+
# `PackedPolicySize` response element indicates by percentage how
|
78
|
+
# close the policies and tags for your request are to the upper size
|
79
|
+
# limit.
|
79
80
|
#
|
80
81
|
# </note>
|
81
82
|
#
|
@@ -116,12 +117,13 @@ module Aws::STS
|
|
116
117
|
# include the tab (\\u0009), linefeed (\\u000A), and carriage return
|
117
118
|
# (\\u000D) characters.
|
118
119
|
#
|
119
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
120
|
-
#
|
121
|
-
# separate limit. Your request can fail for
|
122
|
-
# plaintext meets the other requirements. The
|
123
|
-
# response element indicates by percentage how
|
124
|
-
# tags for your request are to the upper size
|
120
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
121
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
122
|
+
# binary format that has a separate limit. Your request can fail for
|
123
|
+
# this limit even if your plaintext meets the other requirements. The
|
124
|
+
# `PackedPolicySize` response element indicates by percentage how
|
125
|
+
# close the policies and tags for your request are to the upper size
|
126
|
+
# limit.
|
125
127
|
#
|
126
128
|
# </note>
|
127
129
|
#
|
@@ -181,12 +183,13 @@ module Aws::STS
|
|
181
183
|
# values can’t exceed 256 characters. For these and additional limits,
|
182
184
|
# see [IAM and STS Character Limits][2] in the *IAM User Guide*.
|
183
185
|
#
|
184
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
185
|
-
#
|
186
|
-
# separate limit. Your request can fail for
|
187
|
-
# plaintext meets the other requirements. The
|
188
|
-
# response element indicates by percentage how
|
189
|
-
# tags for your request are to the upper size
|
186
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
187
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
188
|
+
# binary format that has a separate limit. Your request can fail for
|
189
|
+
# this limit even if your plaintext meets the other requirements. The
|
190
|
+
# `PackedPolicySize` response element indicates by percentage how
|
191
|
+
# close the policies and tags for your request are to the upper size
|
192
|
+
# limit.
|
190
193
|
#
|
191
194
|
# </note>
|
192
195
|
#
|
@@ -443,12 +446,13 @@ module Aws::STS
|
|
443
446
|
# Web Services Service Namespaces][1] in the Amazon Web Services
|
444
447
|
# General Reference.
|
445
448
|
#
|
446
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
447
|
-
#
|
448
|
-
# separate limit. Your request can fail for
|
449
|
-
# plaintext meets the other requirements. The
|
450
|
-
# response element indicates by percentage how
|
451
|
-
# tags for your request are to the upper size
|
449
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
450
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
451
|
+
# binary format that has a separate limit. Your request can fail for
|
452
|
+
# this limit even if your plaintext meets the other requirements. The
|
453
|
+
# `PackedPolicySize` response element indicates by percentage how
|
454
|
+
# close the policies and tags for your request are to the upper size
|
455
|
+
# limit.
|
452
456
|
#
|
453
457
|
# </note>
|
454
458
|
#
|
@@ -489,12 +493,13 @@ module Aws::STS
|
|
489
493
|
# include the tab (\\u0009), linefeed (\\u000A), and carriage return
|
490
494
|
# (\\u000D) characters.
|
491
495
|
#
|
492
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
493
|
-
#
|
494
|
-
# separate limit. Your request can fail for
|
495
|
-
# plaintext meets the other requirements. The
|
496
|
-
# response element indicates by percentage how
|
497
|
-
# tags for your request are to the upper size
|
496
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
497
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
498
|
+
# binary format that has a separate limit. Your request can fail for
|
499
|
+
# this limit even if your plaintext meets the other requirements. The
|
500
|
+
# `PackedPolicySize` response element indicates by percentage how
|
501
|
+
# close the policies and tags for your request are to the upper size
|
502
|
+
# limit.
|
498
503
|
#
|
499
504
|
# </note>
|
500
505
|
#
|
@@ -733,12 +738,13 @@ module Aws::STS
|
|
733
738
|
# Web Services Service Namespaces][1] in the Amazon Web Services
|
734
739
|
# General Reference.
|
735
740
|
#
|
736
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
737
|
-
#
|
738
|
-
# separate limit. Your request can fail for
|
739
|
-
# plaintext meets the other requirements. The
|
740
|
-
# response element indicates by percentage how
|
741
|
-
# tags for your request are to the upper size
|
741
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
742
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
743
|
+
# binary format that has a separate limit. Your request can fail for
|
744
|
+
# this limit even if your plaintext meets the other requirements. The
|
745
|
+
# `PackedPolicySize` response element indicates by percentage how
|
746
|
+
# close the policies and tags for your request are to the upper size
|
747
|
+
# limit.
|
742
748
|
#
|
743
749
|
# </note>
|
744
750
|
#
|
@@ -779,12 +785,13 @@ module Aws::STS
|
|
779
785
|
# include the tab (\\u0009), linefeed (\\u000A), and carriage return
|
780
786
|
# (\\u000D) characters.
|
781
787
|
#
|
782
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
783
|
-
#
|
784
|
-
# separate limit. Your request can fail for
|
785
|
-
# plaintext meets the other requirements. The
|
786
|
-
# response element indicates by percentage how
|
787
|
-
# tags for your request are to the upper size
|
788
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
789
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
790
|
+
# binary format that has a separate limit. Your request can fail for
|
791
|
+
# this limit even if your plaintext meets the other requirements. The
|
792
|
+
# `PackedPolicySize` response element indicates by percentage how
|
793
|
+
# close the policies and tags for your request are to the upper size
|
794
|
+
# limit.
|
788
795
|
#
|
789
796
|
# </note>
|
790
797
|
#
|
@@ -1187,8 +1194,8 @@ module Aws::STS
|
|
1187
1194
|
#
|
1188
1195
|
# You must pass an inline or managed [session policy][1] to this
|
1189
1196
|
# operation. You can pass a single JSON policy document to use as an
|
1190
|
-
# inline session policy. You can also specify up to 10 managed
|
1191
|
-
#
|
1197
|
+
# inline session policy. You can also specify up to 10 managed policy
|
1198
|
+
# Amazon Resource Names (ARNs) to use as managed session policies.
|
1192
1199
|
#
|
1193
1200
|
# This parameter is optional. However, if you do not pass any session
|
1194
1201
|
# policies, then the resulting federated user session has no
|
@@ -1216,12 +1223,13 @@ module Aws::STS
|
|
1216
1223
|
# include the tab (\\u0009), linefeed (\\u000A), and carriage return
|
1217
1224
|
# (\\u000D) characters.
|
1218
1225
|
#
|
1219
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
1220
|
-
#
|
1221
|
-
# separate limit. Your request can fail for
|
1222
|
-
# plaintext meets the other requirements. The
|
1223
|
-
# response element indicates by percentage how
|
1224
|
-
# tags for your request are to the upper size
|
1226
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
1227
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
1228
|
+
# binary format that has a separate limit. Your request can fail for
|
1229
|
+
# this limit even if your plaintext meets the other requirements. The
|
1230
|
+
# `PackedPolicySize` response element indicates by percentage how
|
1231
|
+
# close the policies and tags for your request are to the upper size
|
1232
|
+
# limit.
|
1225
1233
|
#
|
1226
1234
|
# </note>
|
1227
1235
|
#
|
@@ -1238,13 +1246,13 @@ module Aws::STS
|
|
1238
1246
|
#
|
1239
1247
|
# You must pass an inline or managed [session policy][1] to this
|
1240
1248
|
# operation. You can pass a single JSON policy document to use as an
|
1241
|
-
# inline session policy. You can also specify up to 10 managed
|
1242
|
-
#
|
1243
|
-
# use for both inline and managed session policies
|
1244
|
-
# characters. You can provide up to 10 managed
|
1245
|
-
# information about ARNs, see [Amazon Resource
|
1246
|
-
# Web Services Service Namespaces][2] in the
|
1247
|
-
# General Reference.
|
1249
|
+
# inline session policy. You can also specify up to 10 managed policy
|
1250
|
+
# Amazon Resource Names (ARNs) to use as managed session policies. The
|
1251
|
+
# plaintext that you use for both inline and managed session policies
|
1252
|
+
# can't exceed 2,048 characters. You can provide up to 10 managed
|
1253
|
+
# policy ARNs. For more information about ARNs, see [Amazon Resource
|
1254
|
+
# Names (ARNs) and Amazon Web Services Service Namespaces][2] in the
|
1255
|
+
# Amazon Web Services General Reference.
|
1248
1256
|
#
|
1249
1257
|
# This parameter is optional. However, if you do not pass any session
|
1250
1258
|
# policies, then the resulting federated user session has no
|
@@ -1265,12 +1273,13 @@ module Aws::STS
|
|
1265
1273
|
# are granted in addition to the permissions that are granted by the
|
1266
1274
|
# session policies.
|
1267
1275
|
#
|
1268
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
1269
|
-
#
|
1270
|
-
# separate limit. Your request can fail for
|
1271
|
-
# plaintext meets the other requirements. The
|
1272
|
-
# response element indicates by percentage how
|
1273
|
-
# tags for your request are to the upper size
|
1276
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
1277
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
1278
|
+
# binary format that has a separate limit. Your request can fail for
|
1279
|
+
# this limit even if your plaintext meets the other requirements. The
|
1280
|
+
# `PackedPolicySize` response element indicates by percentage how
|
1281
|
+
# close the policies and tags for your request are to the upper size
|
1282
|
+
# limit.
|
1274
1283
|
#
|
1275
1284
|
# </note>
|
1276
1285
|
#
|
@@ -1301,12 +1310,13 @@ module Aws::STS
|
|
1301
1310
|
# values can’t exceed 256 characters. For these and additional limits,
|
1302
1311
|
# see [IAM and STS Character Limits][2] in the *IAM User Guide*.
|
1303
1312
|
#
|
1304
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed
|
1305
|
-
#
|
1306
|
-
# separate limit. Your request can fail for
|
1307
|
-
# plaintext meets the other requirements. The
|
1308
|
-
# response element indicates by percentage how
|
1309
|
-
# tags for your request are to the upper size
|
1313
|
+
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline
|
1314
|
+
# session policy, managed policy ARNs, and session tags into a packed
|
1315
|
+
# binary format that has a separate limit. Your request can fail for
|
1316
|
+
# this limit even if your plaintext meets the other requirements. The
|
1317
|
+
# `PackedPolicySize` response element indicates by percentage how
|
1318
|
+
# close the policies and tags for your request are to the upper size
|
1319
|
+
# limit.
|
1310
1320
|
#
|
1311
1321
|
# </note>
|
1312
1322
|
#
|
data/lib/aws-sdk-sts.rb
CHANGED
@@ -104,7 +104,7 @@ module Seahorse
|
|
104
104
|
@mutex.synchronize {
|
105
105
|
return if @socket_thread
|
106
106
|
@socket_thread = Thread.new do
|
107
|
-
while !@socket.closed?
|
107
|
+
while @socket && !@socket.closed?
|
108
108
|
begin
|
109
109
|
data = @socket.read_nonblock(@chunk_size)
|
110
110
|
@h2_client << data
|
@@ -130,6 +130,7 @@ module Seahorse
|
|
130
130
|
self.close!
|
131
131
|
end
|
132
132
|
end
|
133
|
+
@socket_thread = nil
|
133
134
|
end
|
134
135
|
@socket_thread.abort_on_exception = true
|
135
136
|
}
|
@@ -142,10 +143,6 @@ module Seahorse
|
|
142
143
|
@socket.close
|
143
144
|
@socket = nil
|
144
145
|
end
|
145
|
-
if @socket_thread
|
146
|
-
Thread.kill(@socket_thread)
|
147
|
-
@socket_thread = nil
|
148
|
-
end
|
149
146
|
@status = :closed
|
150
147
|
}
|
151
148
|
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.
|
4
|
+
version: 3.168.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-
|
11
|
+
date: 2022-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|