aws-sdk-core 3.270.0 → 3.271.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-signin/client.rb +1 -1
- data/lib/aws-sdk-signin.rb +1 -1
- 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 +234 -117
- data/lib/aws-sdk-sts/client_api.rb +84 -0
- data/lib/aws-sdk-sts/errors.rb +57 -0
- data/lib/aws-sdk-sts/types.rb +461 -141
- data/lib/aws-sdk-sts.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0884b02f7eb7e9d2209dab57fb3112df29e3f327bf63946e915af04d922b2306'
|
|
4
|
+
data.tar.gz: e28e69ee0157dc6fa64655fc2fa8995b5c35a76636a6bc195a0b109b026cba61
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b57d560b0d2d4956a8a48a3b188ea99aae4fedf43cead664fb91fb336537e66b7e245ac4e78daa94218c9f1ef1d52afd3ffd9ff64c5eb16a6787d16ad3cb450a
|
|
7
|
+
data.tar.gz: 5ddc3620ad00ef4f98ddb1f5b82896f501b3afc07a5518bee1c78fbb6a9e24332521a34ad04a32ad5744d894ad54f0354d695d501d9ff77bb9653e16e63b6d68
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
3.271.0 (2026-11-19)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Updated Aws::STS::Client with the latest API changes.
|
|
8
|
+
|
|
9
|
+
* Feature - AWS STS adds GetScopedCredentials and expands Trusted Identity Propagation (TIP) to IAM federation and IAM Roles Anywhere. GetScopedCredentials reduces an existing session's permissions and duration. TIP carries verified user or workload identity for authorization and CloudTrail auditing.
|
|
10
|
+
|
|
4
11
|
3.270.0 (2026-11-18)
|
|
5
12
|
------------------
|
|
6
13
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.271.0
|
data/lib/aws-sdk-signin.rb
CHANGED
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
|
@@ -643,15 +643,6 @@ module Aws::STS
|
|
|
643
643
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
|
644
644
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
|
645
645
|
#
|
|
646
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
647
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
648
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
649
|
-
# even if your plaintext meets the other requirements. The
|
|
650
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
651
|
-
# the policies and tags for your request are to the upper size limit.
|
|
652
|
-
#
|
|
653
|
-
# </note>
|
|
654
|
-
#
|
|
655
646
|
# Passing policies to this operation returns new temporary credentials.
|
|
656
647
|
# The resulting session's permissions are the intersection of the
|
|
657
648
|
# role's identity-based policy and the session policies. You can use
|
|
@@ -688,15 +679,6 @@ module Aws::STS
|
|
|
688
679
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
|
689
680
|
# characters.
|
|
690
681
|
#
|
|
691
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
692
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
693
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
694
|
-
# even if your plaintext meets the other requirements. The
|
|
695
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
696
|
-
# the policies and tags for your request are to the upper size limit.
|
|
697
|
-
#
|
|
698
|
-
# </note>
|
|
699
|
-
#
|
|
700
682
|
# For more information about role session permissions, see [Session
|
|
701
683
|
# policies][1].
|
|
702
684
|
#
|
|
@@ -753,15 +735,6 @@ module Aws::STS
|
|
|
753
735
|
# can’t exceed 256 characters. For these and additional limits, see [IAM
|
|
754
736
|
# and STS Character Limits][2] in the *IAM User Guide*.
|
|
755
737
|
#
|
|
756
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
757
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
758
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
759
|
-
# even if your plaintext meets the other requirements. The
|
|
760
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
761
|
-
# the policies and tags for your request are to the upper size limit.
|
|
762
|
-
#
|
|
763
|
-
# </note>
|
|
764
|
-
#
|
|
765
738
|
# You can pass a session tag with the same key as a tag that is already
|
|
766
739
|
# attached to the role. When you do, session tags override a role tag
|
|
767
740
|
# with the same key.
|
|
@@ -1094,15 +1067,6 @@ module Aws::STS
|
|
|
1094
1067
|
# characters. For these and additional limits, see [IAM and STS
|
|
1095
1068
|
# Character Limits][8] in the *IAM User Guide*.
|
|
1096
1069
|
#
|
|
1097
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
1098
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
1099
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
1100
|
-
# even if your plaintext meets the other requirements. The
|
|
1101
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
1102
|
-
# the policies and tags for your request are to the upper size limit.
|
|
1103
|
-
#
|
|
1104
|
-
# </note>
|
|
1105
|
-
#
|
|
1106
1070
|
# You can pass a session tag with the same key as a tag that is attached
|
|
1107
1071
|
# to the role. When you do, session tags override the role's tags with
|
|
1108
1072
|
# the same key.
|
|
@@ -1185,15 +1149,6 @@ module Aws::STS
|
|
|
1185
1149
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
|
1186
1150
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
|
1187
1151
|
#
|
|
1188
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
1189
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
1190
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
1191
|
-
# even if your plaintext meets the other requirements. The
|
|
1192
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
1193
|
-
# the policies and tags for your request are to the upper size limit.
|
|
1194
|
-
#
|
|
1195
|
-
# </note>
|
|
1196
|
-
#
|
|
1197
1152
|
# Passing policies to this operation returns new temporary credentials.
|
|
1198
1153
|
# The resulting session's permissions are the intersection of the
|
|
1199
1154
|
# role's identity-based policy and the session policies. You can use
|
|
@@ -1233,15 +1188,6 @@ module Aws::STS
|
|
|
1233
1188
|
# For more information about role session permissions, see [Session
|
|
1234
1189
|
# policies][1].
|
|
1235
1190
|
#
|
|
1236
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
1237
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
1238
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
1239
|
-
# even if your plaintext meets the other requirements. The
|
|
1240
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
1241
|
-
# the policies and tags for your request are to the upper size limit.
|
|
1242
|
-
#
|
|
1243
|
-
# </note>
|
|
1244
|
-
#
|
|
1245
1191
|
#
|
|
1246
1192
|
#
|
|
1247
1193
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
|
@@ -1297,6 +1243,7 @@ module Aws::STS
|
|
|
1297
1243
|
# * {Types::AssumeRoleWithSAMLResponse#source_identity #source_identity} => String
|
|
1298
1244
|
# * {Types::AssumeRoleWithSAMLResponse#session_token_utilization #session_token_utilization} => Integer
|
|
1299
1245
|
# * {Types::AssumeRoleWithSAMLResponse#session_token_size #session_token_size} => Integer
|
|
1246
|
+
# * {Types::AssumeRoleWithSAMLResponse#trusted_identity_propagation_context #trusted_identity_propagation_context} => Types::TrustedIdentityPropagationContext
|
|
1300
1247
|
#
|
|
1301
1248
|
#
|
|
1302
1249
|
# @example Example: To assume a role using a SAML assertion
|
|
@@ -1361,6 +1308,12 @@ module Aws::STS
|
|
|
1361
1308
|
# resp.source_identity #=> String
|
|
1362
1309
|
# resp.session_token_utilization #=> Integer
|
|
1363
1310
|
# resp.session_token_size #=> Integer
|
|
1311
|
+
# resp.trusted_identity_propagation_context.origin_identity.subject #=> String
|
|
1312
|
+
# resp.trusted_identity_propagation_context.origin_identity.subject_type #=> String
|
|
1313
|
+
# resp.trusted_identity_propagation_context.origin_identity.issuer #=> String
|
|
1314
|
+
# resp.trusted_identity_propagation_context.origin_identity.federated_provider_arn #=> String
|
|
1315
|
+
# resp.trusted_identity_propagation_context.transaction_context.identity_provider #=> Hash
|
|
1316
|
+
# resp.trusted_identity_propagation_context.transaction_context.identity_provider["transactionContextKeyType"] #=> String
|
|
1364
1317
|
#
|
|
1365
1318
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithSAML AWS API Documentation
|
|
1366
1319
|
#
|
|
@@ -1457,15 +1410,6 @@ module Aws::STS
|
|
|
1457
1410
|
# characters. For these and additional limits, see [IAM and STS
|
|
1458
1411
|
# Character Limits][10] in the *IAM User Guide*.
|
|
1459
1412
|
#
|
|
1460
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
1461
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
1462
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
1463
|
-
# even if your plaintext meets the other requirements. The
|
|
1464
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
1465
|
-
# the policies and tags for your request are to the upper size limit.
|
|
1466
|
-
#
|
|
1467
|
-
# </note>
|
|
1468
|
-
#
|
|
1469
1413
|
# You can pass a session tag with the same key as a tag that is attached
|
|
1470
1414
|
# to the role. When you do, the session tag overrides the role tag with
|
|
1471
1415
|
# the same key.
|
|
@@ -1605,15 +1549,6 @@ module Aws::STS
|
|
|
1605
1549
|
# about ARNs, see [Amazon Resource Names (ARNs) and Amazon Web Services
|
|
1606
1550
|
# Service Namespaces][1] in the Amazon Web Services General Reference.
|
|
1607
1551
|
#
|
|
1608
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
1609
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
1610
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
1611
|
-
# even if your plaintext meets the other requirements. The
|
|
1612
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
1613
|
-
# the policies and tags for your request are to the upper size limit.
|
|
1614
|
-
#
|
|
1615
|
-
# </note>
|
|
1616
|
-
#
|
|
1617
1552
|
# Passing policies to this operation returns new temporary credentials.
|
|
1618
1553
|
# The resulting session's permissions are the intersection of the
|
|
1619
1554
|
# role's identity-based policy and the session policies. You can use
|
|
@@ -1653,15 +1588,6 @@ module Aws::STS
|
|
|
1653
1588
|
# For more information about role session permissions, see [Session
|
|
1654
1589
|
# policies][1].
|
|
1655
1590
|
#
|
|
1656
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
1657
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
1658
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
1659
|
-
# even if your plaintext meets the other requirements. The
|
|
1660
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
1661
|
-
# the policies and tags for your request are to the upper size limit.
|
|
1662
|
-
#
|
|
1663
|
-
# </note>
|
|
1664
|
-
#
|
|
1665
1591
|
#
|
|
1666
1592
|
#
|
|
1667
1593
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
|
@@ -1712,6 +1638,7 @@ module Aws::STS
|
|
|
1712
1638
|
# * {Types::AssumeRoleWithWebIdentityResponse#source_identity #source_identity} => String
|
|
1713
1639
|
# * {Types::AssumeRoleWithWebIdentityResponse#session_token_utilization #session_token_utilization} => Integer
|
|
1714
1640
|
# * {Types::AssumeRoleWithWebIdentityResponse#session_token_size #session_token_size} => Integer
|
|
1641
|
+
# * {Types::AssumeRoleWithWebIdentityResponse#trusted_identity_propagation_context #trusted_identity_propagation_context} => Types::TrustedIdentityPropagationContext
|
|
1715
1642
|
#
|
|
1716
1643
|
#
|
|
1717
1644
|
# @example Example: To assume a role as an OpenID Connect-federated user
|
|
@@ -1775,6 +1702,12 @@ module Aws::STS
|
|
|
1775
1702
|
# resp.source_identity #=> String
|
|
1776
1703
|
# resp.session_token_utilization #=> Integer
|
|
1777
1704
|
# resp.session_token_size #=> Integer
|
|
1705
|
+
# resp.trusted_identity_propagation_context.origin_identity.subject #=> String
|
|
1706
|
+
# resp.trusted_identity_propagation_context.origin_identity.subject_type #=> String
|
|
1707
|
+
# resp.trusted_identity_propagation_context.origin_identity.issuer #=> String
|
|
1708
|
+
# resp.trusted_identity_propagation_context.origin_identity.federated_provider_arn #=> String
|
|
1709
|
+
# resp.trusted_identity_propagation_context.transaction_context.identity_provider #=> Hash
|
|
1710
|
+
# resp.trusted_identity_propagation_context.transaction_context.identity_provider["transactionContextKeyType"] #=> String
|
|
1778
1711
|
#
|
|
1779
1712
|
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/AssumeRoleWithWebIdentity AWS API Documentation
|
|
1780
1713
|
#
|
|
@@ -2238,7 +2171,8 @@ module Aws::STS
|
|
|
2238
2171
|
# * You cannot call any IAM operations using the CLI or the Amazon Web
|
|
2239
2172
|
# Services API. This limitation does not apply to console sessions.
|
|
2240
2173
|
#
|
|
2241
|
-
# * You cannot call any STS operations except `GetCallerIdentity
|
|
2174
|
+
# * You cannot call any STS operations except `GetCallerIdentity`,
|
|
2175
|
+
# `GetScopedCredentials`, or `GetDelegatedAccessToken`.
|
|
2242
2176
|
#
|
|
2243
2177
|
# You can use temporary credentials for single sign-on (SSO) to the
|
|
2244
2178
|
# console.
|
|
@@ -2356,15 +2290,6 @@ module Aws::STS
|
|
|
2356
2290
|
# the tab (\\u0009), linefeed (\\u000A), and carriage return (\\u000D)
|
|
2357
2291
|
# characters.
|
|
2358
2292
|
#
|
|
2359
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
2360
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
2361
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
2362
|
-
# even if your plaintext meets the other requirements. The
|
|
2363
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
2364
|
-
# the policies and tags for your request are to the upper size limit.
|
|
2365
|
-
#
|
|
2366
|
-
# </note>
|
|
2367
|
-
#
|
|
2368
2293
|
#
|
|
2369
2294
|
#
|
|
2370
2295
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
|
@@ -2403,15 +2328,6 @@ module Aws::STS
|
|
|
2403
2328
|
# are granted in addition to the permissions that are granted by the
|
|
2404
2329
|
# session policies.
|
|
2405
2330
|
#
|
|
2406
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
2407
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
2408
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
2409
|
-
# even if your plaintext meets the other requirements. The
|
|
2410
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
2411
|
-
# the policies and tags for your request are to the upper size limit.
|
|
2412
|
-
#
|
|
2413
|
-
# </note>
|
|
2414
|
-
#
|
|
2415
2331
|
#
|
|
2416
2332
|
#
|
|
2417
2333
|
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session
|
|
@@ -2436,15 +2352,6 @@ module Aws::STS
|
|
|
2436
2352
|
# can’t exceed 256 characters. For these and additional limits, see [IAM
|
|
2437
2353
|
# and STS Character Limits][2] in the *IAM User Guide*.
|
|
2438
2354
|
#
|
|
2439
|
-
# <note markdown="1"> An Amazon Web Services conversion compresses the passed inline session
|
|
2440
|
-
# policy, managed policy ARNs, and session tags into a packed binary
|
|
2441
|
-
# format that has a separate limit. Your request can fail for this limit
|
|
2442
|
-
# even if your plaintext meets the other requirements. The
|
|
2443
|
-
# `PackedPolicySize` response element indicates by percentage how close
|
|
2444
|
-
# the policies and tags for your request are to the upper size limit.
|
|
2445
|
-
#
|
|
2446
|
-
# </note>
|
|
2447
|
-
#
|
|
2448
2355
|
# You can pass a session tag with the same key as a tag that is already
|
|
2449
2356
|
# attached to the user you are federating. When you do, session tags
|
|
2450
2357
|
# override a user tag with the same key.
|
|
@@ -2551,6 +2458,148 @@ module Aws::STS
|
|
|
2551
2458
|
req.send_request(options)
|
|
2552
2459
|
end
|
|
2553
2460
|
|
|
2461
|
+
# Returns a set of temporary security credentials that are scoped down
|
|
2462
|
+
# from the caller's existing temporary security credentials.
|
|
2463
|
+
# `GetScopedCredentials` preserves the caller's identity while
|
|
2464
|
+
# narrowing the permissions and optionally shortening the session
|
|
2465
|
+
# lifetime.
|
|
2466
|
+
#
|
|
2467
|
+
# For a comparison of `GetScopedCredentials` with the other API
|
|
2468
|
+
# operations that produce temporary security credentials, see
|
|
2469
|
+
# [Requesting Temporary Security Credentials][1] and [Compare STS
|
|
2470
|
+
# credentials][2] in the IAM User Guide.
|
|
2471
|
+
#
|
|
2472
|
+
# **Credential requirements**
|
|
2473
|
+
#
|
|
2474
|
+
# You can only call `GetScopedCredentials` with temporary security
|
|
2475
|
+
# credentials, for example, credentials from an assumed role or a
|
|
2476
|
+
# federated session. You cannot call it with IAM user credentials or
|
|
2477
|
+
# root credentials. If you want to scope down IAM user credentials,
|
|
2478
|
+
# first call `GetSessionToken` to get temporary security credentials,
|
|
2479
|
+
# and then call `GetScopedCredentials` with those credentials.
|
|
2480
|
+
#
|
|
2481
|
+
# <note markdown="1"> The `GetScopedCredentials` API is not available on the STS Global
|
|
2482
|
+
# endpoint.
|
|
2483
|
+
#
|
|
2484
|
+
# </note>
|
|
2485
|
+
#
|
|
2486
|
+
#
|
|
2487
|
+
#
|
|
2488
|
+
# [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_request.html
|
|
2489
|
+
# [2]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_sts-comparison.html
|
|
2490
|
+
#
|
|
2491
|
+
# @option params [String] :policy
|
|
2492
|
+
# An IAM policy in JSON format that you want to use as a scope down
|
|
2493
|
+
# policy.
|
|
2494
|
+
#
|
|
2495
|
+
# A request must provide at least one of `Policy` or `DurationSeconds`.
|
|
2496
|
+
# Both parameters are optional individually, but you must specify at
|
|
2497
|
+
# least one of them.
|
|
2498
|
+
#
|
|
2499
|
+
# The resulting session's permissions are the intersection of the
|
|
2500
|
+
# calling session's existing permissions and this scope down policy.
|
|
2501
|
+
# You cannot use this scope down policy to grant more permissions than
|
|
2502
|
+
# the calling session already has.
|
|
2503
|
+
#
|
|
2504
|
+
# The plaintext of the scope down policy cannot exceed 2,048 characters.
|
|
2505
|
+
# The JSON policy characters can be any ASCII character from the space
|
|
2506
|
+
# character to the end of the valid character list (\\u0020 through
|
|
2507
|
+
# \\u00FF). It can also include the tab (\\u0009), linefeed (\\u000A),
|
|
2508
|
+
# and carriage return (\\u000D) characters.
|
|
2509
|
+
#
|
|
2510
|
+
# <note markdown="1"> An internal conversion compresses the inline scope down policy into a
|
|
2511
|
+
# packed binary format that has a separate limit. If the packed policy
|
|
2512
|
+
# exceeds this limit, the request fails with `PackedPolicyTooLarge`.
|
|
2513
|
+
#
|
|
2514
|
+
# If the document is not valid IAM policy JSON, the request fails with
|
|
2515
|
+
# `MalformedPolicyDocument`.
|
|
2516
|
+
#
|
|
2517
|
+
# </note>
|
|
2518
|
+
#
|
|
2519
|
+
# @option params [Integer] :duration_seconds
|
|
2520
|
+
# The duration, in seconds, of the resulting scoped down credentials.
|
|
2521
|
+
# The value can range from 1 second to 129,600 seconds (36 hours).
|
|
2522
|
+
#
|
|
2523
|
+
# If you do not specify this value, the scoped down credentials will
|
|
2524
|
+
# inherit the calling session's expiration time.
|
|
2525
|
+
#
|
|
2526
|
+
# @option params [Integer] :minimum_session_token_size
|
|
2527
|
+
# The minimum size, in bytes, of the session token that STS issues for
|
|
2528
|
+
# the request. STS increases the session token to at least this size,
|
|
2529
|
+
# regardless of its actual content. The value must not exceed 4,096
|
|
2530
|
+
# bytes. When set to 0 or not specified, the session token size is
|
|
2531
|
+
# unchanged.
|
|
2532
|
+
#
|
|
2533
|
+
# @option params [String] :scoped_session_description
|
|
2534
|
+
# A caller-supplied description of the scoped session. The value cannot
|
|
2535
|
+
# exceed 256 characters. This description is logged to CloudTrail for
|
|
2536
|
+
# the request, so you can use it to record the purpose of the scoped
|
|
2537
|
+
# session.
|
|
2538
|
+
#
|
|
2539
|
+
# @return [Types::GetScopedCredentialsResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
2540
|
+
#
|
|
2541
|
+
# * {Types::GetScopedCredentialsResponse#credentials #credentials} => Types::Credentials
|
|
2542
|
+
# * {Types::GetScopedCredentialsResponse#session_info #session_info} => Types::ScopedSession
|
|
2543
|
+
# * {Types::GetScopedCredentialsResponse#session_token_utilization #session_token_utilization} => Integer
|
|
2544
|
+
# * {Types::GetScopedCredentialsResponse#session_token_size #session_token_size} => Integer
|
|
2545
|
+
# * {Types::GetScopedCredentialsResponse#scoped_policies_count #scoped_policies_count} => Integer
|
|
2546
|
+
# * {Types::GetScopedCredentialsResponse#source_identity #source_identity} => String
|
|
2547
|
+
#
|
|
2548
|
+
#
|
|
2549
|
+
# @example Example: To scope down existing temporary credentials
|
|
2550
|
+
#
|
|
2551
|
+
# resp = client.get_scoped_credentials({
|
|
2552
|
+
# duration_seconds: 3600,
|
|
2553
|
+
# policy: "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":\"s3:GetObject\",\"Resource\":\"arn:aws:s3:::example-bucket/*\"}]}",
|
|
2554
|
+
# })
|
|
2555
|
+
#
|
|
2556
|
+
# resp.to_h outputs the following:
|
|
2557
|
+
# {
|
|
2558
|
+
# credentials: {
|
|
2559
|
+
# access_key_id: "AKIAIOSFODNN7EXAMPLE",
|
|
2560
|
+
# expiration: Time.parse("2011-07-15T23:28:33.359Z"),
|
|
2561
|
+
# secret_access_key: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY",
|
|
2562
|
+
# session_token: "AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT+FvwqnKwRcOIfrRh3c/LTo6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3zrkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtpZ3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE",
|
|
2563
|
+
# },
|
|
2564
|
+
# scoped_policies_count: 1,
|
|
2565
|
+
# session_info: {
|
|
2566
|
+
# arn: "arn:aws:sts::123456789012:assumed-role/example-role/example-session",
|
|
2567
|
+
# scoped_session_id: "AROAEXAMPLEID:example-session",
|
|
2568
|
+
# },
|
|
2569
|
+
# source_identity: "example-source-identity",
|
|
2570
|
+
# }
|
|
2571
|
+
#
|
|
2572
|
+
# @example Request syntax with placeholder values
|
|
2573
|
+
#
|
|
2574
|
+
# resp = client.get_scoped_credentials({
|
|
2575
|
+
# policy: "sessionPolicyDocumentType",
|
|
2576
|
+
# duration_seconds: 1,
|
|
2577
|
+
# minimum_session_token_size: 1,
|
|
2578
|
+
# scoped_session_description: "scopedSessionDescriptionType",
|
|
2579
|
+
# })
|
|
2580
|
+
#
|
|
2581
|
+
# @example Response structure
|
|
2582
|
+
#
|
|
2583
|
+
# resp.credentials.access_key_id #=> String
|
|
2584
|
+
# resp.credentials.secret_access_key #=> String
|
|
2585
|
+
# resp.credentials.session_token #=> String
|
|
2586
|
+
# resp.credentials.expiration #=> Time
|
|
2587
|
+
# resp.session_info.scoped_session_id #=> String
|
|
2588
|
+
# resp.session_info.arn #=> String
|
|
2589
|
+
# resp.session_token_utilization #=> Integer
|
|
2590
|
+
# resp.session_token_size #=> Integer
|
|
2591
|
+
# resp.scoped_policies_count #=> Integer
|
|
2592
|
+
# resp.source_identity #=> String
|
|
2593
|
+
#
|
|
2594
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/sts-2011-06-15/GetScopedCredentials AWS API Documentation
|
|
2595
|
+
#
|
|
2596
|
+
# @overload get_scoped_credentials(params = {})
|
|
2597
|
+
# @param [Hash] params ({})
|
|
2598
|
+
def get_scoped_credentials(params = {}, options = {})
|
|
2599
|
+
req = build_request(:get_scoped_credentials, params)
|
|
2600
|
+
req.send_request(options)
|
|
2601
|
+
end
|
|
2602
|
+
|
|
2554
2603
|
# Returns a set of temporary credentials for an Amazon Web Services
|
|
2555
2604
|
# account or IAM user. The credentials consist of an access key ID, a
|
|
2556
2605
|
# secret access key, and a security token. Typically, you use
|
|
@@ -2596,8 +2645,9 @@ module Aws::STS
|
|
|
2596
2645
|
# * You cannot call any IAM API operations unless MFA authentication
|
|
2597
2646
|
# information is included in the request.
|
|
2598
2647
|
#
|
|
2599
|
-
# * You cannot call any STS API *except* `AssumeRole
|
|
2600
|
-
# `GetCallerIdentity
|
|
2648
|
+
# * You cannot call any STS API *except* `AssumeRole`,
|
|
2649
|
+
# `GetCallerIdentity`, `GetScopedCredentials`, `GetWebIdentityToken`,
|
|
2650
|
+
# or `GetDelegatedAccessToken`.
|
|
2601
2651
|
#
|
|
2602
2652
|
# The credentials that `GetSessionToken` returns are based on
|
|
2603
2653
|
# permissions associated with the IAM user whose credentials were used
|
|
@@ -2721,11 +2771,18 @@ module Aws::STS
|
|
|
2721
2771
|
end
|
|
2722
2772
|
|
|
2723
2773
|
# Returns a signed JSON Web Token (JWT) that represents the calling
|
|
2724
|
-
# Amazon Web Services identity
|
|
2725
|
-
#
|
|
2726
|
-
#
|
|
2727
|
-
#
|
|
2728
|
-
#
|
|
2774
|
+
# Amazon Web Services identity or, if you set `SubjectMode` to
|
|
2775
|
+
# `OriginIdentity`, the human user or workload on whose behalf the
|
|
2776
|
+
# calling session acts. The returned JWT can be used to authenticate
|
|
2777
|
+
# with external services that support OIDC discovery. The token is
|
|
2778
|
+
# signed by Amazon Web Services STS and can be publicly verified using
|
|
2779
|
+
# the verification keys published at the issuer's JWKS endpoint.
|
|
2780
|
+
#
|
|
2781
|
+
# The `sub` (subject) claim contains the identity that `SubjectMode`
|
|
2782
|
+
# selects. Whichever subject mode you use, the `principal_id` claim
|
|
2783
|
+
# under the `https://sts.amazonaws.com/` namespace contains the ARN of
|
|
2784
|
+
# the principal that requested the token, when that principal has an
|
|
2785
|
+
# ARN. For a role session, this is the ARN of the role.
|
|
2729
2786
|
#
|
|
2730
2787
|
# <note markdown="1"> The `GetWebIdentityToken` API is not available on the STS Global
|
|
2731
2788
|
# endpoint.
|
|
@@ -2752,6 +2809,64 @@ module Aws::STS
|
|
|
2752
2809
|
# (JWT). Valid values are RS256 (RSA with SHA-256) and ES384 (ECDSA
|
|
2753
2810
|
# using P-384 curve with SHA-384).
|
|
2754
2811
|
#
|
|
2812
|
+
# @option params [String] :scope
|
|
2813
|
+
# One or more OAuth 2.0 scope values to include in the JSON Web Token
|
|
2814
|
+
# (JWT). Amazon Web Services STS copies the value exactly as you send it
|
|
2815
|
+
# into the top-level `scope` claim of the token. If you don't specify
|
|
2816
|
+
# `Scope`, the token doesn't include a `scope` claim.
|
|
2817
|
+
#
|
|
2818
|
+
# Separate multiple values with a single space, as defined in [RFC 6749,
|
|
2819
|
+
# section 3.3][1] on the IETF website. Don't begin or end `Scope` with
|
|
2820
|
+
# a space. Each scope value can contain printable ASCII characters
|
|
2821
|
+
# except spaces, double quotation marks (`"`), commas (`,`), and
|
|
2822
|
+
# backslashes (``).
|
|
2823
|
+
#
|
|
2824
|
+
# You can't repeat a scope value. Scope values are case sensitive. This
|
|
2825
|
+
# means that `read` and `READ` are separate values.
|
|
2826
|
+
#
|
|
2827
|
+
# You can specify `Scope` only when `SubjectMode` is `OriginIdentity`
|
|
2828
|
+
# and you request exactly one audience. To specify `Scope`, the calling
|
|
2829
|
+
# principal must have permission for the `sts:SetWebIdentityTokenScope`
|
|
2830
|
+
# action in addition to `sts:GetWebIdentityToken`. You can use the
|
|
2831
|
+
# multivalued `sts:IdentityTokenScope` condition key in a policy to
|
|
2832
|
+
# control which scope values a principal can request.
|
|
2833
|
+
#
|
|
2834
|
+
#
|
|
2835
|
+
#
|
|
2836
|
+
# [1]: https://www.rfc-editor.org/rfc/rfc6749#section-3.3
|
|
2837
|
+
#
|
|
2838
|
+
# @option params [String] :subject_mode
|
|
2839
|
+
# Specifies which identity STS puts in the `sub` (subject) claim of the
|
|
2840
|
+
# JSON Web Token (JWT). Valid values are `AWSIdentity` and
|
|
2841
|
+
# `OriginIdentity`. If you don't specify a value, Amazon Web Services
|
|
2842
|
+
# STS uses `AWSIdentity`.
|
|
2843
|
+
#
|
|
2844
|
+
# * `AWSIdentity` – The `sub` claim contains the ARN of the calling
|
|
2845
|
+
# Amazon Web Services principal.
|
|
2846
|
+
#
|
|
2847
|
+
# * `OriginIdentity` – The `sub` claim contains the value of the
|
|
2848
|
+
# `aws:OriginIdentity/Subject` key in the trusted identity propagation
|
|
2849
|
+
# context of the calling session. For example, this can identify the
|
|
2850
|
+
# human user or workload on whose behalf the calling session acts.
|
|
2851
|
+
# Amazon Web Services STS also adds a `subject_mode` claim to the
|
|
2852
|
+
# token.
|
|
2853
|
+
#
|
|
2854
|
+
# To use `OriginIdentity`, the trusted identity propagation context of
|
|
2855
|
+
# the calling session must contain the `aws:OriginIdentity/Subject`
|
|
2856
|
+
# key and either the `aws:OriginIdentity/Issuer` key or the
|
|
2857
|
+
# `aws:OriginIdentity/FederatedProviderArn` key. If it doesn't, or if
|
|
2858
|
+
# the subject is blank, Amazon Web Services STS rejects the request
|
|
2859
|
+
# with a validation error.
|
|
2860
|
+
#
|
|
2861
|
+
# Amazon Web Services STS denies the request if the subject begins
|
|
2862
|
+
# with the text `arn:`, in any combination of uppercase and lowercase
|
|
2863
|
+
# letters. Amazon Web Services STS also denies the request if the
|
|
2864
|
+
# subject begins or ends with a space, or contains a control, format,
|
|
2865
|
+
# or separator character other than a space.
|
|
2866
|
+
#
|
|
2867
|
+
# You can use the `sts:SubjectMode` condition key in a policy to control
|
|
2868
|
+
# which subject modes a principal can request.
|
|
2869
|
+
#
|
|
2755
2870
|
# @option params [Array<Types::Tag>] :tags
|
|
2756
2871
|
# An optional list of tags to include in the JSON Web Token (JWT). These
|
|
2757
2872
|
# tags are added as custom claims to the JWT and can be used by the
|
|
@@ -2768,6 +2883,8 @@ module Aws::STS
|
|
|
2768
2883
|
# audience: ["webIdentityTokenAudienceStringType"], # required
|
|
2769
2884
|
# duration_seconds: 1,
|
|
2770
2885
|
# signing_algorithm: "jwtAlgorithmType", # required
|
|
2886
|
+
# scope: "webIdentityTokenScopeType",
|
|
2887
|
+
# subject_mode: "AWSIdentity", # accepts AWSIdentity, OriginIdentity
|
|
2771
2888
|
# tags: [
|
|
2772
2889
|
# {
|
|
2773
2890
|
# key: "tagKeyType", # required
|
|
@@ -2808,7 +2925,7 @@ module Aws::STS
|
|
|
2808
2925
|
tracer: tracer
|
|
2809
2926
|
)
|
|
2810
2927
|
context[:gem_name] = 'aws-sdk-core'
|
|
2811
|
-
context[:gem_version] = '3.
|
|
2928
|
+
context[:gem_version] = '3.271.0'
|
|
2812
2929
|
Seahorse::Client::Request.new(handlers, context)
|
|
2813
2930
|
end
|
|
2814
2931
|
|