aws-sdk-core 3.131.1 → 3.168.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +244 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/arn.rb +13 -0
- data/lib/aws-sdk-core/binary/encode_handler.rb +12 -1
- data/lib/aws-sdk-core/endpoints/condition.rb +36 -0
- data/lib/aws-sdk-core/endpoints/endpoint.rb +17 -0
- data/lib/aws-sdk-core/endpoints/endpoint_rule.rb +71 -0
- data/lib/aws-sdk-core/endpoints/error_rule.rb +37 -0
- data/lib/aws-sdk-core/endpoints/function.rb +75 -0
- data/lib/aws-sdk-core/endpoints/matchers.rb +127 -0
- data/lib/aws-sdk-core/endpoints/reference.rb +26 -0
- data/lib/aws-sdk-core/endpoints/rule.rb +20 -0
- data/lib/aws-sdk-core/endpoints/rule_set.rb +47 -0
- data/lib/aws-sdk-core/endpoints/rules_provider.rb +32 -0
- data/lib/aws-sdk-core/endpoints/templater.rb +52 -0
- data/lib/aws-sdk-core/endpoints/tree_rule.rb +40 -0
- data/lib/aws-sdk-core/endpoints/url.rb +59 -0
- data/lib/aws-sdk-core/endpoints.rb +74 -0
- data/lib/aws-sdk-core/errors.rb +13 -0
- data/lib/aws-sdk-core/json/error_handler.rb +10 -1
- data/lib/aws-sdk-core/pageable_response.rb +7 -0
- data/lib/aws-sdk-core/plugins/bearer_authorization.rb +67 -0
- data/lib/aws-sdk-core/plugins/credentials_configuration.rb +24 -0
- data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +6 -2
- data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +34 -6
- data/lib/aws-sdk-core/plugins/recursion_detection.rb +14 -3
- data/lib/aws-sdk-core/plugins/regional_endpoint.rb +5 -0
- data/lib/aws-sdk-core/plugins/sign.rb +190 -0
- data/lib/aws-sdk-core/plugins/signature_v2.rb +1 -0
- data/lib/aws-sdk-core/plugins/signature_v4.rb +13 -7
- data/lib/aws-sdk-core/refreshing_token.rb +71 -0
- data/lib/aws-sdk-core/rest/handler.rb +1 -1
- data/lib/aws-sdk-core/rest/request/headers.rb +2 -6
- data/lib/aws-sdk-core/shared_config.rb +76 -5
- data/lib/aws-sdk-core/sso_credentials.rb +79 -44
- data/lib/aws-sdk-core/sso_token_provider.rb +135 -0
- data/lib/aws-sdk-core/static_token_provider.rb +14 -0
- data/lib/aws-sdk-core/structure.rb +6 -4
- data/lib/aws-sdk-core/token.rb +31 -0
- data/lib/aws-sdk-core/token_provider.rb +15 -0
- data/lib/aws-sdk-core/token_provider_chain.rb +51 -0
- data/lib/aws-sdk-core/xml/error_handler.rb +7 -0
- data/lib/aws-sdk-core.rb +14 -0
- data/lib/aws-sdk-sso/client.rb +51 -11
- data/lib/aws-sdk-sso/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-sso/endpoint_provider.rb +112 -0
- data/lib/aws-sdk-sso/endpoints.rb +71 -0
- data/lib/aws-sdk-sso/plugins/endpoints.rb +76 -0
- data/lib/aws-sdk-sso/types.rb +8 -8
- data/lib/aws-sdk-sso.rb +5 -1
- data/lib/aws-sdk-ssooidc/client.rb +606 -0
- data/lib/aws-sdk-ssooidc/client_api.rb +216 -0
- data/lib/aws-sdk-ssooidc/customizations.rb +1 -0
- data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +66 -0
- data/lib/aws-sdk-ssooidc/endpoint_provider.rb +111 -0
- data/lib/aws-sdk-ssooidc/endpoints.rb +57 -0
- data/lib/aws-sdk-ssooidc/errors.rb +290 -0
- data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +74 -0
- data/lib/aws-sdk-ssooidc/resource.rb +26 -0
- data/lib/aws-sdk-ssooidc/types.rb +534 -0
- data/lib/aws-sdk-ssooidc.rb +59 -0
- data/lib/aws-sdk-sts/client.rb +141 -124
- data/lib/aws-sdk-sts/endpoint_parameters.rb +78 -0
- data/lib/aws-sdk-sts/endpoint_provider.rb +229 -0
- data/lib/aws-sdk-sts/endpoints.rb +135 -0
- data/lib/aws-sdk-sts/plugins/endpoints.rb +84 -0
- data/lib/aws-sdk-sts/presigner.rb +13 -15
- data/lib/aws-sdk-sts/types.rb +79 -69
- data/lib/aws-sdk-sts.rb +5 -1
- data/lib/seahorse/client/async_base.rb +0 -1
- data/lib/seahorse/client/configuration.rb +2 -2
- data/lib/seahorse/client/h2/connection.rb +2 -5
- data/lib/seahorse/client/plugins/request_callback.rb +9 -9
- data/lib/seahorse/util.rb +4 -0
- metadata +47 -6
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
|
|
30
30
|
require 'aws-sdk-core/plugins/checksum_algorithm.rb'
|
31
31
|
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
32
32
|
require 'aws-sdk-core/plugins/recursion_detection.rb'
|
33
|
-
require 'aws-sdk-core/plugins/
|
33
|
+
require 'aws-sdk-core/plugins/sign.rb'
|
34
34
|
require 'aws-sdk-core/plugins/protocols/query.rb'
|
35
35
|
require 'aws-sdk-sts/plugins/sts_regional_endpoints.rb'
|
36
36
|
|
@@ -80,9 +80,10 @@ module Aws::STS
|
|
80
80
|
add_plugin(Aws::Plugins::ChecksumAlgorithm)
|
81
81
|
add_plugin(Aws::Plugins::DefaultsMode)
|
82
82
|
add_plugin(Aws::Plugins::RecursionDetection)
|
83
|
-
add_plugin(Aws::Plugins::
|
83
|
+
add_plugin(Aws::Plugins::Sign)
|
84
84
|
add_plugin(Aws::Plugins::Protocols::Query)
|
85
85
|
add_plugin(Aws::STS::Plugins::STSRegionalEndpoints)
|
86
|
+
add_plugin(Aws::STS::Plugins::Endpoints)
|
86
87
|
|
87
88
|
# @overload initialize(options)
|
88
89
|
# @param [Hash] options
|
@@ -294,6 +295,19 @@ module Aws::STS
|
|
294
295
|
# ** Please note ** When response stubbing is enabled, no HTTP
|
295
296
|
# requests are made, and retries are disabled.
|
296
297
|
#
|
298
|
+
# @option options [Aws::TokenProvider] :token_provider
|
299
|
+
# A Bearer Token Provider. This can be an instance of any one of the
|
300
|
+
# following classes:
|
301
|
+
#
|
302
|
+
# * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
|
303
|
+
# tokens.
|
304
|
+
#
|
305
|
+
# * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
|
306
|
+
# access token generated from `aws login`.
|
307
|
+
#
|
308
|
+
# When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
|
309
|
+
# will be used to search for tokens configured for your profile in shared configuration files.
|
310
|
+
#
|
297
311
|
# @option options [Boolean] :use_dualstack_endpoint
|
298
312
|
# When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
|
299
313
|
# will be used if available.
|
@@ -307,6 +321,9 @@ module Aws::STS
|
|
307
321
|
# When `true`, request parameters are validated before
|
308
322
|
# sending the request.
|
309
323
|
#
|
324
|
+
# @option options [Aws::STS::EndpointProvider] :endpoint_provider
|
325
|
+
# The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::STS::EndpointParameters`
|
326
|
+
#
|
310
327
|
# @option options [URI::HTTP,String] :http_proxy A proxy to send
|
311
328
|
# requests through. Formatted like 'http://proxy.com:123'.
|
312
329
|
#
|
@@ -377,18 +394,18 @@ module Aws::STS
|
|
377
394
|
#
|
378
395
|
# (Optional) You can pass inline or managed [session policies][3] to
|
379
396
|
# this operation. You can pass a single JSON policy document to use as
|
380
|
-
# an inline session policy. You can also specify up to 10 managed
|
381
|
-
#
|
382
|
-
# use for both inline and managed session policies
|
383
|
-
# characters. Passing policies to this operation
|
384
|
-
# credentials. The resulting session's
|
385
|
-
# of the role's identity-based policy
|
386
|
-
# use the role's temporary
|
387
|
-
# Services API calls to access
|
388
|
-
# role. You cannot use session
|
389
|
-
#
|
390
|
-
#
|
391
|
-
# 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*.
|
392
409
|
#
|
393
410
|
# When you create a role, you create two policies: A role trust policy
|
394
411
|
# that specifies *who* can assume the role and a permissions policy that
|
@@ -502,12 +519,12 @@ module Aws::STS
|
|
502
519
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
503
520
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
504
521
|
#
|
505
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
506
|
-
#
|
507
|
-
# separate limit. Your request can fail for this limit
|
508
|
-
# plaintext meets the other requirements. The
|
509
|
-
# response element indicates by percentage how close
|
510
|
-
# 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.
|
511
528
|
#
|
512
529
|
# </note>
|
513
530
|
#
|
@@ -547,12 +564,12 @@ module Aws::STS
|
|
547
564
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
548
565
|
# characters.
|
549
566
|
#
|
550
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
551
|
-
#
|
552
|
-
# separate limit. Your request can fail for this limit
|
553
|
-
# plaintext meets the other requirements. The
|
554
|
-
# response element indicates by percentage how close
|
555
|
-
# 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.
|
556
573
|
#
|
557
574
|
# </note>
|
558
575
|
#
|
@@ -610,12 +627,12 @@ module Aws::STS
|
|
610
627
|
# can’t exceed 256 characters. For these and additional limits, see [IAM
|
611
628
|
# and STS Character Limits][2] in the *IAM User Guide*.
|
612
629
|
#
|
613
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
614
|
-
#
|
615
|
-
# separate limit. Your request can fail for this limit
|
616
|
-
# plaintext meets the other requirements. The
|
617
|
-
# response element indicates by percentage how close
|
618
|
-
# 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.
|
619
636
|
#
|
620
637
|
# </note>
|
621
638
|
#
|
@@ -878,18 +895,18 @@ module Aws::STS
|
|
878
895
|
#
|
879
896
|
# (Optional) You can pass inline or managed [session policies][6] to
|
880
897
|
# this operation. You can pass a single JSON policy document to use as
|
881
|
-
# an inline session policy. You can also specify up to 10 managed
|
882
|
-
#
|
883
|
-
# use for both inline and managed session policies
|
884
|
-
# characters. Passing policies to this operation
|
885
|
-
# credentials. The resulting session's
|
886
|
-
# of the role's identity-based policy
|
887
|
-
# use the role's temporary
|
888
|
-
# Services API calls to access
|
889
|
-
# role. You cannot use session
|
890
|
-
#
|
891
|
-
#
|
892
|
-
# 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*.
|
893
910
|
#
|
894
911
|
# Calling `AssumeRoleWithSAML` does not require the use of Amazon Web
|
895
912
|
# Services security credentials. The identity of the caller is validated
|
@@ -915,12 +932,12 @@ module Aws::STS
|
|
915
932
|
# characters. For these and additional limits, see [IAM and STS
|
916
933
|
# Character Limits][8] in the *IAM User Guide*.
|
917
934
|
#
|
918
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
919
|
-
#
|
920
|
-
# separate limit. Your request can fail for this limit
|
921
|
-
# plaintext meets the other requirements. The
|
922
|
-
# response element indicates by percentage how close
|
923
|
-
# 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.
|
924
941
|
#
|
925
942
|
# </note>
|
926
943
|
#
|
@@ -1006,12 +1023,12 @@ module Aws::STS
|
|
1006
1023
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
1007
1024
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
1008
1025
|
#
|
1009
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1010
|
-
#
|
1011
|
-
# separate limit. Your request can fail for this limit
|
1012
|
-
# plaintext meets the other requirements. The
|
1013
|
-
# response element indicates by percentage how close
|
1014
|
-
# 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.
|
1015
1032
|
#
|
1016
1033
|
# </note>
|
1017
1034
|
#
|
@@ -1051,12 +1068,12 @@ module Aws::STS
|
|
1051
1068
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
1052
1069
|
# characters.
|
1053
1070
|
#
|
1054
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1055
|
-
#
|
1056
|
-
# separate limit. Your request can fail for this limit
|
1057
|
-
# plaintext meets the other requirements. The
|
1058
|
-
# response element indicates by percentage how close
|
1059
|
-
# 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.
|
1060
1077
|
#
|
1061
1078
|
# </note>
|
1062
1079
|
#
|
@@ -1239,18 +1256,18 @@ module Aws::STS
|
|
1239
1256
|
#
|
1240
1257
|
# (Optional) You can pass inline or managed [session policies][10] to
|
1241
1258
|
# this operation. You can pass a single JSON policy document to use as
|
1242
|
-
# an inline session policy. You can also specify up to 10 managed
|
1243
|
-
#
|
1244
|
-
# use for both inline and managed session policies
|
1245
|
-
# characters. Passing policies to this operation
|
1246
|
-
# credentials. The resulting session's
|
1247
|
-
# of the role's identity-based policy
|
1248
|
-
# use the role's temporary
|
1249
|
-
# Services API calls to access
|
1250
|
-
# role. You cannot use session
|
1251
|
-
#
|
1252
|
-
#
|
1253
|
-
# 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*.
|
1254
1271
|
#
|
1255
1272
|
# **Tags**
|
1256
1273
|
#
|
@@ -1264,12 +1281,12 @@ module Aws::STS
|
|
1264
1281
|
# characters. For these and additional limits, see [IAM and STS
|
1265
1282
|
# Character Limits][12] in the *IAM User Guide*.
|
1266
1283
|
#
|
1267
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1268
|
-
#
|
1269
|
-
# separate limit. Your request can fail for this limit
|
1270
|
-
# plaintext meets the other requirements. The
|
1271
|
-
# response element indicates by percentage how close
|
1272
|
-
# 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.
|
1273
1290
|
#
|
1274
1291
|
# </note>
|
1275
1292
|
#
|
@@ -1393,12 +1410,12 @@ module Aws::STS
|
|
1393
1410
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
1394
1411
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
1395
1412
|
#
|
1396
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1397
|
-
#
|
1398
|
-
# separate limit. Your request can fail for this limit
|
1399
|
-
# plaintext meets the other requirements. The
|
1400
|
-
# response element indicates by percentage how close
|
1401
|
-
# 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.
|
1402
1419
|
#
|
1403
1420
|
# </note>
|
1404
1421
|
#
|
@@ -1438,12 +1455,12 @@ module Aws::STS
|
|
1438
1455
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
1439
1456
|
# characters.
|
1440
1457
|
#
|
1441
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1442
|
-
#
|
1443
|
-
# separate limit. Your request can fail for this limit
|
1444
|
-
# plaintext meets the other requirements. The
|
1445
|
-
# response element indicates by percentage how close
|
1446
|
-
# 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.
|
1447
1464
|
#
|
1448
1465
|
# </note>
|
1449
1466
|
#
|
@@ -1835,10 +1852,10 @@ module Aws::STS
|
|
1835
1852
|
#
|
1836
1853
|
# You must pass an inline or managed [session policy][6] to this
|
1837
1854
|
# operation. You can pass a single JSON policy document to use as an
|
1838
|
-
# inline session policy. You can also specify up to 10 managed
|
1839
|
-
# to use as managed session policies. The
|
1840
|
-
# both inline and managed session policies
|
1841
|
-
# 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.
|
1842
1859
|
#
|
1843
1860
|
# Though the session policy parameters are optional, if you do not pass
|
1844
1861
|
# a policy, then the resulting federated user session has no
|
@@ -1917,8 +1934,8 @@ module Aws::STS
|
|
1917
1934
|
#
|
1918
1935
|
# You must pass an inline or managed [session policy][1] to this
|
1919
1936
|
# operation. You can pass a single JSON policy document to use as an
|
1920
|
-
# inline session policy. You can also specify up to 10 managed
|
1921
|
-
# 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.
|
1922
1939
|
#
|
1923
1940
|
# This parameter is optional. However, if you do not pass any session
|
1924
1941
|
# policies, then the resulting federated user session has no
|
@@ -1946,12 +1963,12 @@ module Aws::STS
|
|
1946
1963
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
1947
1964
|
# characters.
|
1948
1965
|
#
|
1949
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1950
|
-
#
|
1951
|
-
# separate limit. Your request can fail for this limit
|
1952
|
-
# plaintext meets the other requirements. The
|
1953
|
-
# response element indicates by percentage how close
|
1954
|
-
# 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.
|
1955
1972
|
#
|
1956
1973
|
# </note>
|
1957
1974
|
#
|
@@ -1966,13 +1983,13 @@ module Aws::STS
|
|
1966
1983
|
#
|
1967
1984
|
# You must pass an inline or managed [session policy][1] to this
|
1968
1985
|
# operation. You can pass a single JSON policy document to use as an
|
1969
|
-
# inline session policy. You can also specify up to 10 managed
|
1970
|
-
# to use as managed session policies. The
|
1971
|
-
# both inline and managed session policies
|
1972
|
-
# characters. You can provide up to 10 managed
|
1973
|
-
# information about ARNs, see [Amazon Resource
|
1974
|
-
# Web Services Service Namespaces][2] in the
|
1975
|
-
# 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.
|
1976
1993
|
#
|
1977
1994
|
# This parameter is optional. However, if you do not pass any session
|
1978
1995
|
# policies, then the resulting federated user session has no
|
@@ -1993,12 +2010,12 @@ module Aws::STS
|
|
1993
2010
|
# are granted in addition to the permissions that are granted by the
|
1994
2011
|
# session policies.
|
1995
2012
|
#
|
1996
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
1997
|
-
#
|
1998
|
-
# separate limit. Your request can fail for this limit
|
1999
|
-
# plaintext meets the other requirements. The
|
2000
|
-
# response element indicates by percentage how close
|
2001
|
-
# 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.
|
2002
2019
|
#
|
2003
2020
|
# </note>
|
2004
2021
|
#
|
@@ -2026,12 +2043,12 @@ module Aws::STS
|
|
2026
2043
|
# can’t exceed 256 characters. For these and additional limits, see [IAM
|
2027
2044
|
# and STS Character Limits][2] in the *IAM User Guide*.
|
2028
2045
|
#
|
2029
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed session
|
2030
|
-
#
|
2031
|
-
# separate limit. Your request can fail for this limit
|
2032
|
-
# plaintext meets the other requirements. The
|
2033
|
-
# response element indicates by percentage how close
|
2034
|
-
# 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.
|
2035
2052
|
#
|
2036
2053
|
# </note>
|
2037
2054
|
#
|
@@ -2299,7 +2316,7 @@ module Aws::STS
|
|
2299
2316
|
params: params,
|
2300
2317
|
config: config)
|
2301
2318
|
context[:gem_name] = 'aws-sdk-core'
|
2302
|
-
context[:gem_version] = '3.
|
2319
|
+
context[:gem_version] = '3.168.1'
|
2303
2320
|
Seahorse::Client::Request.new(handlers, context)
|
2304
2321
|
end
|
2305
2322
|
|
@@ -0,0 +1,78 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
module Aws::STS
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
12
|
+
#
|
13
|
+
# @!attribute region
|
14
|
+
# The AWS region used to dispatch the request.
|
15
|
+
#
|
16
|
+
# @return [String]
|
17
|
+
#
|
18
|
+
# @!attribute use_dual_stack
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
20
|
+
#
|
21
|
+
# @return [Boolean]
|
22
|
+
#
|
23
|
+
# @!attribute use_fips
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
25
|
+
#
|
26
|
+
# @return [Boolean]
|
27
|
+
#
|
28
|
+
# @!attribute endpoint
|
29
|
+
# Override the endpoint used to send this request
|
30
|
+
#
|
31
|
+
# @return [String]
|
32
|
+
#
|
33
|
+
# @!attribute use_global_endpoint
|
34
|
+
# Whether the global endpoint should be used, rather then the regional endpoint for us-east-1.
|
35
|
+
#
|
36
|
+
# @return [Boolean]
|
37
|
+
#
|
38
|
+
EndpointParameters = Struct.new(
|
39
|
+
:region,
|
40
|
+
:use_dual_stack,
|
41
|
+
:use_fips,
|
42
|
+
:endpoint,
|
43
|
+
:use_global_endpoint,
|
44
|
+
) do
|
45
|
+
include Aws::Structure
|
46
|
+
|
47
|
+
# @api private
|
48
|
+
class << self
|
49
|
+
PARAM_MAP = {
|
50
|
+
'Region' => :region,
|
51
|
+
'UseDualStack' => :use_dual_stack,
|
52
|
+
'UseFIPS' => :use_fips,
|
53
|
+
'Endpoint' => :endpoint,
|
54
|
+
'UseGlobalEndpoint' => :use_global_endpoint,
|
55
|
+
}.freeze
|
56
|
+
end
|
57
|
+
|
58
|
+
def initialize(options = {})
|
59
|
+
self[:region] = options[:region]
|
60
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
61
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
62
|
+
if self[:use_dual_stack].nil?
|
63
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
|
64
|
+
end
|
65
|
+
self[:use_fips] = options[:use_fips]
|
66
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
67
|
+
if self[:use_fips].nil?
|
68
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_fips"
|
69
|
+
end
|
70
|
+
self[:endpoint] = options[:endpoint]
|
71
|
+
self[:use_global_endpoint] = options[:use_global_endpoint]
|
72
|
+
self[:use_global_endpoint] = false if self[:use_global_endpoint].nil?
|
73
|
+
if self[:use_global_endpoint].nil?
|
74
|
+
raise ArgumentError, "Missing required EndpointParameter: :use_global_endpoint"
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|