aws-sdk-core 3.166.0 → 3.168.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a81b60918988fd7ee9366d79ced7e41bae6f7f2e55cffe4a0e5eb1cc1cd9c9c3
4
- data.tar.gz: 5facaa68ef59e079763525a392996dfdce6495e0c187a5b001df78be71648abb
3
+ metadata.gz: 9a4dd2eca826a9e7e2691ae3617a046c7861951e597b2976a5a8d92c85a3029b
4
+ data.tar.gz: 28d8c99591cd0da107d3d38ef1a1941edebf56e1dab2a17f53a372bbb9f28032
5
5
  SHA512:
6
- metadata.gz: b3ee6e89b330461fd71923488bbc657a4f359d2e082e7ea9d5300279234843ce20a59b2a22620f282e252dc89c8d9c3b18fcfe7206898fe8f8ed6af2ce5fff81
7
- data.tar.gz: 5ffab77f4bf826684b99ffda8dd6877be3382bcfe70816147f25fb1d13349c14c66b923dd45bf5510e81c569ce46f0f3967f478a061df802332c5b3f2a5059e9
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.166.0
1
+ 3.168.0
@@ -3,9 +3,10 @@
3
3
  module Aws
4
4
  # @api private
5
5
  class SharedConfig
6
- SSO_PROFILE_KEYS = %w[sso_start_url sso_region sso_account_id sso_role_name].freeze
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 & SSO_PROFILE_KEYS).empty?
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. This class does NOT implement the SSO login token flow - tokens
7
- # must generated and refreshed separately by running `aws login` from the
8
- # AWS CLI with the correct profile.
9
- #
10
- # The `SSOCredentials` will auto-refresh the AWS credentials from SSO. In
11
- # addition to AWS credentials expiring after a given amount of time, the
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
- # sso_start_url: 'https://your-start-url.awsapps.com/start'
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
- SSO_REQUIRED_OPTS = [:sso_account_id, :sso_region, :sso_role_name, :sso_start_url].freeze
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] :sso_start_url The start URL is
56
- # provided by the SSO service via the console and is the URL used to
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
- missing_keys = SSO_REQUIRED_OPTS.select { |k| options[k].nil? }
70
- unless missing_keys.empty?
71
- raise ArgumentError, "Missing required keys: #{missing_keys}"
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
- cached_token = read_cached_token
115
- c = @client.get_role_credentials(
116
- account_id: @sso_account_id,
117
- role_name: @sso_role_name,
118
- access_token: cached_token['accessToken']
119
- ).role_credentials
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 [SSO::Client]
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['client_secret'],
69
+ client_secret: token_json['clientSecret'],
70
70
  refresh_token: token_json['refreshToken']
71
71
  )
72
72
  token_json['accessToken'] = resp.access_token
@@ -585,7 +585,7 @@ module Aws::SSO
585
585
  params: params,
586
586
  config: config)
587
587
  context[:gem_name] = 'aws-sdk-core'
588
- context[:gem_version] = '3.166.0'
588
+ context[:gem_version] = '3.168.0'
589
589
  Seahorse::Client::Request.new(handlers, context)
590
590
  end
591
591
 
data/lib/aws-sdk-sso.rb CHANGED
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-sso/customizations'
54
54
  # @!group service
55
55
  module Aws::SSO
56
56
 
57
- GEM_VERSION = '3.166.0'
57
+ GEM_VERSION = '3.168.0'
58
58
 
59
59
  end
@@ -581,7 +581,7 @@ module Aws::SSOOIDC
581
581
  params: params,
582
582
  config: config)
583
583
  context[:gem_name] = 'aws-sdk-core'
584
- context[:gem_version] = '3.166.0'
584
+ context[:gem_version] = '3.168.0'
585
585
  Seahorse::Client::Request.new(handlers, context)
586
586
  end
587
587
 
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-ssooidc/customizations'
54
54
  # @!group service
55
55
  module Aws::SSOOIDC
56
56
 
57
- GEM_VERSION = '3.166.0'
57
+ GEM_VERSION = '3.168.0'
58
58
 
59
59
  end
@@ -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
- # policies to use as managed session policies. The plaintext that you
399
- # use for both inline and managed session policies can't exceed 2,048
400
- # characters. Passing policies to this operation returns new temporary
401
- # credentials. The resulting session's permissions are the intersection
402
- # of the role's identity-based policy and the session policies. You can
403
- # use the role's temporary credentials in subsequent Amazon Web
404
- # Services API calls to access resources in the account that owns the
405
- # role. You cannot use session policies to grant more permissions than
406
- # those allowed by the identity-based policy of the role that is being
407
- # assumed. For more information, see [Session Policies][3] in the *IAM
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
- # policies and session tags into a packed binary format that has a
524
- # separate limit. Your request can fail for this limit even if your
525
- # plaintext meets the other requirements. The `PackedPolicySize`
526
- # response element indicates by percentage how close the policies and
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
- # policies and session tags into a packed binary format that has a
569
- # separate limit. Your request can fail for this limit even if your
570
- # plaintext meets the other requirements. The `PackedPolicySize`
571
- # response element indicates by percentage how close the policies and
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
- # policies and session tags into a packed binary format that has a
632
- # separate limit. Your request can fail for this limit even if your
633
- # plaintext meets the other requirements. The `PackedPolicySize`
634
- # response element indicates by percentage how close the policies and
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
- # policies to use as managed session policies. The plaintext that you
900
- # use for both inline and managed session policies can't exceed 2,048
901
- # characters. Passing policies to this operation returns new temporary
902
- # credentials. The resulting session's permissions are the intersection
903
- # of the role's identity-based policy and the session policies. You can
904
- # use the role's temporary credentials in subsequent Amazon Web
905
- # Services API calls to access resources in the account that owns the
906
- # role. You cannot use session policies to grant more permissions than
907
- # those allowed by the identity-based policy of the role that is being
908
- # assumed. For more information, see [Session Policies][6] in the *IAM
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
- # policies and session tags into a packed binary format that has a
937
- # separate limit. Your request can fail for this limit even if your
938
- # plaintext meets the other requirements. The `PackedPolicySize`
939
- # response element indicates by percentage how close the policies and
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
- # policies and session tags into a packed binary format that has a
1028
- # separate limit. Your request can fail for this limit even if your
1029
- # plaintext meets the other requirements. The `PackedPolicySize`
1030
- # response element indicates by percentage how close the policies and
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
- # policies and session tags into a packed binary format that has a
1073
- # separate limit. Your request can fail for this limit even if your
1074
- # plaintext meets the other requirements. The `PackedPolicySize`
1075
- # response element indicates by percentage how close the policies and
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
- # policies to use as managed session policies. The plaintext that you
1261
- # use for both inline and managed session policies can't exceed 2,048
1262
- # characters. Passing policies to this operation returns new temporary
1263
- # credentials. The resulting session's permissions are the intersection
1264
- # of the role's identity-based policy and the session policies. You can
1265
- # use the role's temporary credentials in subsequent Amazon Web
1266
- # Services API calls to access resources in the account that owns the
1267
- # role. You cannot use session policies to grant more permissions than
1268
- # those allowed by the identity-based policy of the role that is being
1269
- # assumed. For more information, see [Session Policies][10] in the *IAM
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
- # policies and session tags into a packed binary format that has a
1286
- # separate limit. Your request can fail for this limit even if your
1287
- # plaintext meets the other requirements. The `PackedPolicySize`
1288
- # response element indicates by percentage how close the policies and
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
- # policies and session tags into a packed binary format that has a
1415
- # separate limit. Your request can fail for this limit even if your
1416
- # plaintext meets the other requirements. The `PackedPolicySize`
1417
- # response element indicates by percentage how close the policies and
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
- # policies and session tags into a packed binary format that has a
1460
- # separate limit. Your request can fail for this limit even if your
1461
- # plaintext meets the other requirements. The `PackedPolicySize`
1462
- # response element indicates by percentage how close the policies and
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 policies
1856
- # to use as managed session policies. The plaintext that you use for
1857
- # both inline and managed session policies can't exceed 2,048
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 policies
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
- # policies and session tags into a packed binary format that has a
1968
- # separate limit. Your request can fail for this limit even if your
1969
- # plaintext meets the other requirements. The `PackedPolicySize`
1970
- # response element indicates by percentage how close the policies and
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 policies
1987
- # to use as managed session policies. The plaintext that you use for
1988
- # both inline and managed session policies can't exceed 2,048
1989
- # characters. You can provide up to 10 managed policy ARNs. For more
1990
- # information about ARNs, see [Amazon Resource Names (ARNs) and Amazon
1991
- # Web Services Service Namespaces][2] in the Amazon Web Services General
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
- # policies and session tags into a packed binary format that has a
2015
- # separate limit. Your request can fail for this limit even if your
2016
- # plaintext meets the other requirements. The `PackedPolicySize`
2017
- # response element indicates by percentage how close the policies and
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
- # policies and session tags into a packed binary format that has a
2048
- # separate limit. Your request can fail for this limit even if your
2049
- # plaintext meets the other requirements. The `PackedPolicySize`
2050
- # response element indicates by percentage how close the policies and
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.166.0'
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
- InNpZ3Y0Iiwic2lnbmluZ05hbWUiOiJzdHMiLCJzaWduaW5nUmVnaW9uIjoi
221
- dXMtZWFzdC0xIn1dfSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQi
220
+ InNpZ3Y0Iiwic2lnbmluZ1JlZ2lvbiI6InVzLWVhc3QtMSIsInNpZ25pbmdO
221
+ YW1lIjoic3RzIn1dfSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQi
222
222
  fSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJodHRwczov
223
223
  L3N0cy57UmVnaW9ufS57UGFydGl0aW9uUmVzdWx0I2Ruc1N1ZmZpeH0iLCJw
224
224
  cm9wZXJ0aWVzIjp7fSwiaGVhZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQi
@@ -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 session
74
- # policies and session tags into a packed binary format that has a
75
- # separate limit. Your request can fail for this limit even if your
76
- # plaintext meets the other requirements. The `PackedPolicySize`
77
- # response element indicates by percentage how close the policies and
78
- # tags for your request are to the upper size limit.
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 session
120
- # policies and session tags into a packed binary format that has a
121
- # separate limit. Your request can fail for this limit even if your
122
- # plaintext meets the other requirements. The `PackedPolicySize`
123
- # response element indicates by percentage how close the policies and
124
- # tags for your request are to the upper size limit.
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 session
185
- # policies and session tags into a packed binary format that has a
186
- # separate limit. Your request can fail for this limit even if your
187
- # plaintext meets the other requirements. The `PackedPolicySize`
188
- # response element indicates by percentage how close the policies and
189
- # tags for your request are to the upper size limit.
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 session
447
- # policies and session tags into a packed binary format that has a
448
- # separate limit. Your request can fail for this limit even if your
449
- # plaintext meets the other requirements. The `PackedPolicySize`
450
- # response element indicates by percentage how close the policies and
451
- # tags for your request are to the upper size limit.
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 session
493
- # policies and session tags into a packed binary format that has a
494
- # separate limit. Your request can fail for this limit even if your
495
- # plaintext meets the other requirements. The `PackedPolicySize`
496
- # response element indicates by percentage how close the policies and
497
- # tags for your request are to the upper size limit.
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 session
737
- # policies and session tags into a packed binary format that has a
738
- # separate limit. Your request can fail for this limit even if your
739
- # plaintext meets the other requirements. The `PackedPolicySize`
740
- # response element indicates by percentage how close the policies and
741
- # tags for your request are to the upper size limit.
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 session
783
- # policies and session tags into a packed binary format that has a
784
- # separate limit. Your request can fail for this limit even if your
785
- # plaintext meets the other requirements. The `PackedPolicySize`
786
- # response element indicates by percentage how close the policies and
787
- # tags for your request are to the upper size limit.
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
- # policies to use as managed session policies.
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 session
1220
- # policies and session tags into a packed binary format that has a
1221
- # separate limit. Your request can fail for this limit even if your
1222
- # plaintext meets the other requirements. The `PackedPolicySize`
1223
- # response element indicates by percentage how close the policies and
1224
- # tags for your request are to the upper size limit.
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
- # policies to use as managed session policies. The plaintext that you
1243
- # use for both inline and managed session policies can't exceed 2,048
1244
- # characters. You can provide up to 10 managed policy ARNs. For more
1245
- # information about ARNs, see [Amazon Resource Names (ARNs) and Amazon
1246
- # Web Services Service Namespaces][2] in the Amazon Web Services
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 session
1269
- # policies and session tags into a packed binary format that has a
1270
- # separate limit. Your request can fail for this limit even if your
1271
- # plaintext meets the other requirements. The `PackedPolicySize`
1272
- # response element indicates by percentage how close the policies and
1273
- # tags for your request are to the upper size limit.
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 session
1305
- # policies and session tags into a packed binary format that has a
1306
- # separate limit. Your request can fail for this limit even if your
1307
- # plaintext meets the other requirements. The `PackedPolicySize`
1308
- # response element indicates by percentage how close the policies and
1309
- # tags for your request are to the upper size limit.
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
@@ -54,6 +54,6 @@ require_relative 'aws-sdk-sts/customizations'
54
54
  # @!group service
55
55
  module Aws::STS
56
56
 
57
- GEM_VERSION = '3.166.0'
57
+ GEM_VERSION = '3.168.0'
58
58
 
59
59
  end
@@ -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.166.0
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-10-26 00:00:00.000000000 Z
11
+ date: 2022-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath