@aws-sdk/client-sts 3.1172.0 → 3.1174.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.
- package/README.md +7 -0
- package/dist-cjs/index.js +154 -7
- package/dist-es/STS.js +2 -0
- package/dist-es/commands/GetScopedCredentialsCommand.js +4 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +1 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/models/errors.js +39 -0
- package/dist-es/schemas/schemas_0.js +91 -7
- package/dist-types/STS.d.ts +8 -0
- package/dist-types/STSClient.d.ts +3 -2
- package/dist-types/commands/AssumeRoleCommand.d.ts +12 -7
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +20 -14
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +20 -14
- package/dist-types/commands/GetDelegatedAccessTokenCommand.d.ts +7 -7
- package/dist-types/commands/GetFederationTokenCommand.d.ts +9 -8
- package/dist-types/commands/GetScopedCredentialsCommand.d.ts +160 -0
- package/dist-types/commands/GetSessionTokenCommand.d.ts +3 -1
- package/dist-types/commands/GetWebIdentityTokenCommand.d.ts +9 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/errors.d.ts +54 -7
- package/dist-types/models/models_0.d.ts +363 -123
- package/dist-types/schemas/schemas_0.d.ts +10 -0
- package/dist-types/ts3.4/STS.d.ts +18 -0
- package/dist-types/ts3.4/STSClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GetScopedCredentialsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/errors.d.ts +18 -0
- package/dist-types/ts3.4/models/models_0.d.ts +36 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { WebIdentityTokenSubjectModeType } from "./enums";
|
|
1
2
|
/**
|
|
2
3
|
* <p>The identifiers for the temporary security credentials that the operation
|
|
3
4
|
* returns.</p>
|
|
@@ -111,13 +112,6 @@ export interface AssumeRoleRequest {
|
|
|
111
112
|
* plaintext that you use for both inline and managed session policies can't exceed 2,048
|
|
112
113
|
* characters. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services
|
|
113
114
|
* Service Namespaces</a> in the Amazon Web Services General Reference.</p>
|
|
114
|
-
* <note>
|
|
115
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
116
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
117
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
118
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
119
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
120
|
-
* </note>
|
|
121
115
|
* <p>Passing policies to this operation returns new
|
|
122
116
|
* temporary credentials. The resulting session's permissions are the intersection of the
|
|
123
117
|
* role's identity-based policy and the session policies. You can use the role's temporary
|
|
@@ -144,13 +138,6 @@ export interface AssumeRoleRequest {
|
|
|
144
138
|
* character to the end of the valid character list (\u0020 through \u00FF). It can also
|
|
145
139
|
* include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D)
|
|
146
140
|
* characters.</p>
|
|
147
|
-
* <note>
|
|
148
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
149
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
150
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
151
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
152
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
153
|
-
* </note>
|
|
154
141
|
* <p>For more information about role session permissions, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
|
|
155
142
|
* policies</a>.</p>
|
|
156
143
|
* @public
|
|
@@ -191,13 +178,6 @@ export interface AssumeRoleRequest {
|
|
|
191
178
|
* tag keys can’t exceed 128 characters, and the values can’t exceed 256 characters. For these
|
|
192
179
|
* and additional limits, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
|
|
193
180
|
* and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
|
194
|
-
* <note>
|
|
195
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
196
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
197
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
198
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
199
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
200
|
-
* </note>
|
|
201
181
|
* <p>You can pass a session tag with the same key as a tag that is already attached to the
|
|
202
182
|
* role. When you do, session tags override a role tag with the same key. </p>
|
|
203
183
|
* <p>Tag key–value pairs are not case sensitive, but case is preserved. This means that you
|
|
@@ -299,9 +279,10 @@ export interface AssumeRoleRequest {
|
|
|
299
279
|
*/
|
|
300
280
|
ProvidedContexts?: ProvidedContext[] | undefined;
|
|
301
281
|
/**
|
|
302
|
-
* The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
303
|
-
*
|
|
304
|
-
*
|
|
282
|
+
* <p>The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
283
|
+
* increases the session token to at least this size, regardless of its actual content. The
|
|
284
|
+
* value must not exceed 4,096 bytes. When set to 0 or not specified, the session token size is
|
|
285
|
+
* unchanged.</p>
|
|
305
286
|
* @public
|
|
306
287
|
*/
|
|
307
288
|
MinimumSessionTokenSize?: number | undefined;
|
|
@@ -359,9 +340,9 @@ export interface AssumeRoleResponse {
|
|
|
359
340
|
*/
|
|
360
341
|
AssumedRoleUser?: AssumedRoleUser | undefined;
|
|
361
342
|
/**
|
|
362
|
-
* <p>
|
|
363
|
-
*
|
|
364
|
-
*
|
|
343
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
344
|
+
* session token consumes.</p>
|
|
345
|
+
* <p>This field is deprecated. Use <code>SessionTokenUtilization</code> instead.</p>
|
|
365
346
|
*
|
|
366
347
|
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
367
348
|
* @public
|
|
@@ -385,13 +366,14 @@ export interface AssumeRoleResponse {
|
|
|
385
366
|
*/
|
|
386
367
|
SourceIdentity?: string | undefined;
|
|
387
368
|
/**
|
|
388
|
-
* The percentage (0-100) of the maximum allowed session token size that the returned
|
|
389
|
-
*
|
|
369
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
370
|
+
* session token consumes.</p>
|
|
390
371
|
* @public
|
|
391
372
|
*/
|
|
392
373
|
SessionTokenUtilization?: number | undefined;
|
|
393
374
|
/**
|
|
394
|
-
* The size, in bytes, of the session token returned in the Credentials for this
|
|
375
|
+
* <p>The size, in bytes, of the session token returned in the Credentials for this
|
|
376
|
+
* response.</p>
|
|
395
377
|
* @public
|
|
396
378
|
*/
|
|
397
379
|
SessionTokenSize?: number | undefined;
|
|
@@ -425,13 +407,6 @@ export interface AssumeRoleWithSAMLRequest {
|
|
|
425
407
|
* plaintext that you use for both inline and managed session policies can't exceed 2,048
|
|
426
408
|
* characters. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services
|
|
427
409
|
* Service Namespaces</a> in the Amazon Web Services General Reference.</p>
|
|
428
|
-
* <note>
|
|
429
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
430
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
431
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
432
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
433
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
434
|
-
* </note>
|
|
435
410
|
* <p>Passing policies to this operation returns new
|
|
436
411
|
* temporary credentials. The resulting session's permissions are the intersection of the
|
|
437
412
|
* role's identity-based policy and the session policies. You can use the role's temporary
|
|
@@ -460,13 +435,6 @@ export interface AssumeRoleWithSAMLRequest {
|
|
|
460
435
|
* characters.</p>
|
|
461
436
|
* <p>For more information about role session permissions, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
|
|
462
437
|
* policies</a>.</p>
|
|
463
|
-
* <note>
|
|
464
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
465
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
466
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
467
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
468
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
469
|
-
* </note>
|
|
470
438
|
* @public
|
|
471
439
|
*/
|
|
472
440
|
Policy?: string | undefined;
|
|
@@ -496,13 +464,86 @@ export interface AssumeRoleWithSAMLRequest {
|
|
|
496
464
|
*/
|
|
497
465
|
DurationSeconds?: number | undefined;
|
|
498
466
|
/**
|
|
499
|
-
* The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
500
|
-
*
|
|
501
|
-
*
|
|
467
|
+
* <p>The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
468
|
+
* increases the session token to at least this size, regardless of its actual content. The
|
|
469
|
+
* value must not exceed 4,096 bytes. When set to 0 or not specified, the session token size is
|
|
470
|
+
* unchanged.</p>
|
|
502
471
|
* @public
|
|
503
472
|
*/
|
|
504
473
|
MinimumSessionTokenSize?: number | undefined;
|
|
505
474
|
}
|
|
475
|
+
/**
|
|
476
|
+
* <p>The session's <code>aws:OriginIdentity/Subject</code>,
|
|
477
|
+
* <code>aws:OriginIdentity/SubjectType</code>, <code>aws:OriginIdentity/Issuer</code> and
|
|
478
|
+
* <code>aws:OriginIdentity/FederatedProviderArn</code> keys. A member is absent when the
|
|
479
|
+
* session does not have the key.</p>
|
|
480
|
+
* @public
|
|
481
|
+
*/
|
|
482
|
+
export interface OriginIdentity {
|
|
483
|
+
/**
|
|
484
|
+
* <p>The value of the <code>aws:OriginIdentity/Subject</code> key: the end user's identifier,
|
|
485
|
+
* taken from the token claim that the context provider maps as the subject.</p>
|
|
486
|
+
* @public
|
|
487
|
+
*/
|
|
488
|
+
Subject?: string | undefined;
|
|
489
|
+
/**
|
|
490
|
+
* <p>The value of the <code>aws:OriginIdentity/SubjectType</code> key, which indicates whether
|
|
491
|
+
* the end user is a person (<code>user</code>) or a non-human caller such as an application
|
|
492
|
+
* or service (<code>workload</code>).</p>
|
|
493
|
+
* @public
|
|
494
|
+
*/
|
|
495
|
+
SubjectType?: string | undefined;
|
|
496
|
+
/**
|
|
497
|
+
* <p>The value of the <code>aws:OriginIdentity/Issuer</code> key. For
|
|
498
|
+
* <code>AssumeRoleWithWebIdentity</code>, this is the <code>iss</code> claim of the token
|
|
499
|
+
* without the <code>https://</code> prefix. For <code>AssumeRoleWithSAML</code>, this is a
|
|
500
|
+
* hash of the key that signed the SAML assertion, not the <code>Issuer</code> element of the
|
|
501
|
+
* assertion.</p>
|
|
502
|
+
* @public
|
|
503
|
+
*/
|
|
504
|
+
Issuer?: string | undefined;
|
|
505
|
+
/**
|
|
506
|
+
* <p>The value of the <code>aws:OriginIdentity/FederatedProviderArn</code> key: the ARN of
|
|
507
|
+
* the IAM identity provider that the request federated through.</p>
|
|
508
|
+
* @public
|
|
509
|
+
*/
|
|
510
|
+
FederatedProviderArn?: string | undefined;
|
|
511
|
+
}
|
|
512
|
+
/**
|
|
513
|
+
* <p>The session's <code>aws:TransactionContext/IdentityProvider/*</code> keys.</p>
|
|
514
|
+
* @public
|
|
515
|
+
*/
|
|
516
|
+
export interface TransactionContext {
|
|
517
|
+
/**
|
|
518
|
+
* <p>The session's <code>aws:TransactionContext/IdentityProvider/*</code> keys, keyed by the
|
|
519
|
+
* part of the key name after <code>aws:TransactionContext/IdentityProvider/</code>. Each
|
|
520
|
+
* value is up to 128 characters.</p>
|
|
521
|
+
* <p>The number of entries is bounded twice. IAM limits how many keys a context provider
|
|
522
|
+
* maps when you configure it on the identity provider, and Amazon Web Services STS rejects a
|
|
523
|
+
* session whose session token exceeds the maximum size with
|
|
524
|
+
* <code>PackedPolicyTooLarge</code>.</p>
|
|
525
|
+
* @public
|
|
526
|
+
*/
|
|
527
|
+
IdentityProvider?: Record<string, string> | undefined;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* <p>The trusted identity propagation context that Amazon Web Services STS set in a session
|
|
531
|
+
* from the identity provider's token. A member is absent when the session has none of its
|
|
532
|
+
* keys.</p>
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
export interface TrustedIdentityPropagationContext {
|
|
536
|
+
/**
|
|
537
|
+
* <p>The identity of the end user on whose behalf the session acts.</p>
|
|
538
|
+
* @public
|
|
539
|
+
*/
|
|
540
|
+
OriginIdentity?: OriginIdentity | undefined;
|
|
541
|
+
/**
|
|
542
|
+
* <p>Additional claims about the request that the identity provider asserted.</p>
|
|
543
|
+
* @public
|
|
544
|
+
*/
|
|
545
|
+
TransactionContext?: TransactionContext | undefined;
|
|
546
|
+
}
|
|
506
547
|
/**
|
|
507
548
|
* <p>Contains the response to a successful <a>AssumeRoleWithSAML</a> request,
|
|
508
549
|
* including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests. </p>
|
|
@@ -526,9 +567,9 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
526
567
|
*/
|
|
527
568
|
AssumedRoleUser?: AssumedRoleUser | undefined;
|
|
528
569
|
/**
|
|
529
|
-
* <p>
|
|
530
|
-
*
|
|
531
|
-
*
|
|
570
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
571
|
+
* session token consumes.</p>
|
|
572
|
+
* <p>This field is deprecated. Use <code>SessionTokenUtilization</code> instead.</p>
|
|
532
573
|
*
|
|
533
574
|
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
534
575
|
* @public
|
|
@@ -537,6 +578,9 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
537
578
|
/**
|
|
538
579
|
* <p>The value of the <code>NameID</code> element in the <code>Subject</code> element of the
|
|
539
580
|
* SAML assertion.</p>
|
|
581
|
+
* <p>This is not the trusted identity propagation subject (<code>aws:OriginIdentity/Subject</code>).
|
|
582
|
+
* When the session carries trusted identity propagation context, that value is returned in
|
|
583
|
+
* <code>TrustedIdentityPropagationContext</code>.</p>
|
|
540
584
|
* @public
|
|
541
585
|
*/
|
|
542
586
|
Subject?: string | undefined;
|
|
@@ -549,11 +593,18 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
549
593
|
* example, <code>urn:oasis:names:tc:SAML:2.0:nameid-format:transient</code> is returned as
|
|
550
594
|
* <code>transient</code>. If the format includes any other prefix, the format is returned
|
|
551
595
|
* with no modifications.</p>
|
|
596
|
+
* <p>This is not the trusted identity propagation subject type
|
|
597
|
+
* (<code>aws:OriginIdentity/SubjectType</code>). When the session carries trusted identity
|
|
598
|
+
* propagation context, that value is returned in
|
|
599
|
+
* <code>TrustedIdentityPropagationContext</code>.</p>
|
|
552
600
|
* @public
|
|
553
601
|
*/
|
|
554
602
|
SubjectType?: string | undefined;
|
|
555
603
|
/**
|
|
556
604
|
* <p>The value of the <code>Issuer</code> element of the SAML assertion.</p>
|
|
605
|
+
* <p>This is not the trusted identity propagation issuer (<code>aws:OriginIdentity/Issuer</code>).
|
|
606
|
+
* When the session carries trusted identity propagation context, that value is returned in
|
|
607
|
+
* <code>TrustedIdentityPropagationContext</code>.</p>
|
|
557
608
|
* @public
|
|
558
609
|
*/
|
|
559
610
|
Issuer?: string | undefined;
|
|
@@ -607,16 +658,38 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
607
658
|
*/
|
|
608
659
|
SourceIdentity?: string | undefined;
|
|
609
660
|
/**
|
|
610
|
-
* The percentage (0-100) of the maximum allowed session token size that the returned
|
|
611
|
-
*
|
|
661
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
662
|
+
* session token consumes.</p>
|
|
612
663
|
* @public
|
|
613
664
|
*/
|
|
614
665
|
SessionTokenUtilization?: number | undefined;
|
|
615
666
|
/**
|
|
616
|
-
* The size, in bytes, of the session token returned in the Credentials for this
|
|
667
|
+
* <p>The size, in bytes, of the session token returned in the Credentials for this
|
|
668
|
+
* response.</p>
|
|
617
669
|
* @public
|
|
618
670
|
*/
|
|
619
671
|
SessionTokenSize?: number | undefined;
|
|
672
|
+
/**
|
|
673
|
+
* <p>The trusted identity propagation context that Amazon Web Services STS set in the
|
|
674
|
+
* session from the SAML assertion, through the context provider attached to the SAML
|
|
675
|
+
* identity provider. It is present only when Amazon Web Services STS set such context in
|
|
676
|
+
* the session. It contains the <code>aws:OriginIdentity/Subject</code>,
|
|
677
|
+
* <code>aws:OriginIdentity/SubjectType</code>, <code>aws:OriginIdentity/Issuer</code> and
|
|
678
|
+
* <code>aws:OriginIdentity/FederatedProviderArn</code> keys and the
|
|
679
|
+
* <code>aws:TransactionContext/IdentityProvider/*</code> keys that Amazon Web Services STS
|
|
680
|
+
* set in the session. Other keys in the session, such as
|
|
681
|
+
* <code>aws:IdentityCenterInstanceArn</code> and <code>aws:IdentityStoreArn</code> for an
|
|
682
|
+
* identity provider with an Identity Center instance attached, are not returned.</p>
|
|
683
|
+
* <p>Its <code>OriginIdentity</code> members share the names <code>Subject</code>,
|
|
684
|
+
* <code>SubjectType</code> and <code>Issuer</code> with members of this response but
|
|
685
|
+
* carry the trusted identity propagation values, which differ from the SAML assertion
|
|
686
|
+
* values.</p>
|
|
687
|
+
* <p>It is not returned when the SAML assertion is encrypted, even though the session carries
|
|
688
|
+
* the context.</p>
|
|
689
|
+
* <p>This element contains information about the end user. Do not log it.</p>
|
|
690
|
+
* @public
|
|
691
|
+
*/
|
|
692
|
+
TrustedIdentityPropagationContext?: TrustedIdentityPropagationContext | undefined;
|
|
620
693
|
}
|
|
621
694
|
/**
|
|
622
695
|
* @public
|
|
@@ -681,13 +754,6 @@ export interface AssumeRoleWithWebIdentityRequest {
|
|
|
681
754
|
* plaintext that you use for both inline and managed session policies can't exceed 2,048
|
|
682
755
|
* characters. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs) and Amazon Web Services
|
|
683
756
|
* Service Namespaces</a> in the Amazon Web Services General Reference.</p>
|
|
684
|
-
* <note>
|
|
685
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
686
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
687
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
688
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
689
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
690
|
-
* </note>
|
|
691
757
|
* <p>Passing policies to this operation returns new
|
|
692
758
|
* temporary credentials. The resulting session's permissions are the intersection of the
|
|
693
759
|
* role's identity-based policy and the session policies. You can use the role's temporary
|
|
@@ -716,13 +782,6 @@ export interface AssumeRoleWithWebIdentityRequest {
|
|
|
716
782
|
* characters.</p>
|
|
717
783
|
* <p>For more information about role session permissions, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session">Session
|
|
718
784
|
* policies</a>.</p>
|
|
719
|
-
* <note>
|
|
720
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
721
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
722
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
723
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
724
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
725
|
-
* </note>
|
|
726
785
|
* @public
|
|
727
786
|
*/
|
|
728
787
|
Policy?: string | undefined;
|
|
@@ -749,9 +808,10 @@ export interface AssumeRoleWithWebIdentityRequest {
|
|
|
749
808
|
*/
|
|
750
809
|
DurationSeconds?: number | undefined;
|
|
751
810
|
/**
|
|
752
|
-
* The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
753
|
-
*
|
|
754
|
-
*
|
|
811
|
+
* <p>The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
812
|
+
* increases the session token to at least this size, regardless of its actual content. The
|
|
813
|
+
* value must not exceed 4,096 bytes. When set to 0 or not specified, the session token size is
|
|
814
|
+
* unchanged.</p>
|
|
755
815
|
* @public
|
|
756
816
|
*/
|
|
757
817
|
MinimumSessionTokenSize?: number | undefined;
|
|
@@ -792,9 +852,9 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
792
852
|
*/
|
|
793
853
|
AssumedRoleUser?: AssumedRoleUser | undefined;
|
|
794
854
|
/**
|
|
795
|
-
* <p>
|
|
796
|
-
*
|
|
797
|
-
*
|
|
855
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
856
|
+
* session token consumes.</p>
|
|
857
|
+
* <p>This field is deprecated. Use <code>SessionTokenUtilization</code> instead.</p>
|
|
798
858
|
*
|
|
799
859
|
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
800
860
|
* @public
|
|
@@ -837,16 +897,32 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
837
897
|
*/
|
|
838
898
|
SourceIdentity?: string | undefined;
|
|
839
899
|
/**
|
|
840
|
-
* The percentage (0-100) of the maximum allowed session token size that the returned
|
|
841
|
-
*
|
|
900
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
901
|
+
* session token consumes.</p>
|
|
842
902
|
* @public
|
|
843
903
|
*/
|
|
844
904
|
SessionTokenUtilization?: number | undefined;
|
|
845
905
|
/**
|
|
846
|
-
* The size, in bytes, of the session token returned in the Credentials for this
|
|
906
|
+
* <p>The size, in bytes, of the session token returned in the Credentials for this
|
|
907
|
+
* response.</p>
|
|
847
908
|
* @public
|
|
848
909
|
*/
|
|
849
910
|
SessionTokenSize?: number | undefined;
|
|
911
|
+
/**
|
|
912
|
+
* <p>The trusted identity propagation context that Amazon Web Services STS set in the
|
|
913
|
+
* session from the web identity token, through the context provider attached to the OpenID
|
|
914
|
+
* Connect identity provider. It is present only when Amazon Web Services STS set such
|
|
915
|
+
* context in the session. It contains the <code>aws:OriginIdentity/Subject</code>,
|
|
916
|
+
* <code>aws:OriginIdentity/SubjectType</code>, <code>aws:OriginIdentity/Issuer</code> and
|
|
917
|
+
* <code>aws:OriginIdentity/FederatedProviderArn</code> keys and the
|
|
918
|
+
* <code>aws:TransactionContext/IdentityProvider/*</code> keys that Amazon Web Services STS
|
|
919
|
+
* set in the session. Other keys in the session, such as
|
|
920
|
+
* <code>aws:IdentityCenterInstanceArn</code> and <code>aws:IdentityStoreArn</code> for an
|
|
921
|
+
* identity provider with an Identity Center instance attached, are not returned.</p>
|
|
922
|
+
* <p>This element contains information about the end user. Do not log it.</p>
|
|
923
|
+
* @public
|
|
924
|
+
*/
|
|
925
|
+
TrustedIdentityPropagationContext?: TrustedIdentityPropagationContext | undefined;
|
|
850
926
|
}
|
|
851
927
|
/**
|
|
852
928
|
* @public
|
|
@@ -902,9 +978,10 @@ export interface AssumeRootRequest {
|
|
|
902
978
|
*/
|
|
903
979
|
DurationSeconds?: number | undefined;
|
|
904
980
|
/**
|
|
905
|
-
* The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
906
|
-
*
|
|
907
|
-
*
|
|
981
|
+
* <p>The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
982
|
+
* increases the session token to at least this size, regardless of its actual content. The
|
|
983
|
+
* value must not exceed 4,096 bytes. When set to 0 or not specified, the session token size is
|
|
984
|
+
* unchanged.</p>
|
|
908
985
|
* @public
|
|
909
986
|
*/
|
|
910
987
|
MinimumSessionTokenSize?: number | undefined;
|
|
@@ -937,13 +1014,14 @@ export interface AssumeRootResponse {
|
|
|
937
1014
|
*/
|
|
938
1015
|
SourceIdentity?: string | undefined;
|
|
939
1016
|
/**
|
|
940
|
-
* The percentage (0-100) of the maximum allowed session token size that the returned
|
|
941
|
-
*
|
|
1017
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
1018
|
+
* session token consumes.</p>
|
|
942
1019
|
* @public
|
|
943
1020
|
*/
|
|
944
1021
|
SessionTokenUtilization?: number | undefined;
|
|
945
1022
|
/**
|
|
946
|
-
* The size, in bytes, of the session token returned in the Credentials for this
|
|
1023
|
+
* <p>The size, in bytes, of the session token returned in the Credentials for this
|
|
1024
|
+
* response.</p>
|
|
947
1025
|
* @public
|
|
948
1026
|
*/
|
|
949
1027
|
SessionTokenSize?: number | undefined;
|
|
@@ -1044,9 +1122,8 @@ export interface GetDelegatedAccessTokenResponse {
|
|
|
1044
1122
|
*/
|
|
1045
1123
|
Credentials?: Credentials | undefined;
|
|
1046
1124
|
/**
|
|
1047
|
-
* <p>
|
|
1048
|
-
*
|
|
1049
|
-
* attached to the session. If the packed size exceeds 100%, the request fails.</p>
|
|
1125
|
+
* <p>This field is deprecated. It is not populated for
|
|
1126
|
+
* <code>GetDelegatedAccessToken</code>.</p>
|
|
1050
1127
|
*
|
|
1051
1128
|
* @deprecated (since 2026-06-17) Deprecated. This field is not populated for GetDelegatedAccessToken.
|
|
1052
1129
|
* @public
|
|
@@ -1098,13 +1175,6 @@ export interface GetFederationTokenRequest {
|
|
|
1098
1175
|
* character to the end of the valid character list (\u0020 through \u00FF). It can also
|
|
1099
1176
|
* include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D)
|
|
1100
1177
|
* characters.</p>
|
|
1101
|
-
* <note>
|
|
1102
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
1103
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
1104
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
1105
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
1106
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
1107
|
-
* </note>
|
|
1108
1178
|
* @public
|
|
1109
1179
|
*/
|
|
1110
1180
|
Policy?: string | undefined;
|
|
@@ -1131,13 +1201,6 @@ export interface GetFederationTokenRequest {
|
|
|
1131
1201
|
* <code>Principal</code> element of the policy, the session has the permissions allowed by
|
|
1132
1202
|
* the policy. These permissions are granted in addition to the permissions that are granted
|
|
1133
1203
|
* by the session policies.</p>
|
|
1134
|
-
* <note>
|
|
1135
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
1136
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
1137
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
1138
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
1139
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
1140
|
-
* </note>
|
|
1141
1204
|
* @public
|
|
1142
1205
|
*/
|
|
1143
1206
|
PolicyArns?: PolicyDescriptorType[] | undefined;
|
|
@@ -1159,13 +1222,6 @@ export interface GetFederationTokenRequest {
|
|
|
1159
1222
|
* tag keys can’t exceed 128 characters and the values can’t exceed 256 characters. For these
|
|
1160
1223
|
* and additional limits, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
|
|
1161
1224
|
* and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
|
1162
|
-
* <note>
|
|
1163
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
1164
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
1165
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
1166
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
1167
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
1168
|
-
* </note>
|
|
1169
1225
|
* <p>You can pass a session tag with the same key as a tag that is already attached to the
|
|
1170
1226
|
* user you are federating. When you do, session tags override a user tag with the same key. </p>
|
|
1171
1227
|
* <p>Tag key–value pairs are not case sensitive, but case is preserved. This means that you
|
|
@@ -1178,9 +1234,10 @@ export interface GetFederationTokenRequest {
|
|
|
1178
1234
|
*/
|
|
1179
1235
|
Tags?: Tag[] | undefined;
|
|
1180
1236
|
/**
|
|
1181
|
-
* The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
1182
|
-
*
|
|
1183
|
-
*
|
|
1237
|
+
* <p>The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
1238
|
+
* increases the session token to at least this size, regardless of its actual content. The
|
|
1239
|
+
* value must not exceed 4,096 bytes. When set to 0 or not specified, the session token size is
|
|
1240
|
+
* unchanged.</p>
|
|
1184
1241
|
* @public
|
|
1185
1242
|
*/
|
|
1186
1243
|
MinimumSessionTokenSize?: number | undefined;
|
|
@@ -1229,25 +1286,152 @@ export interface GetFederationTokenResponse {
|
|
|
1229
1286
|
*/
|
|
1230
1287
|
FederatedUser?: FederatedUser | undefined;
|
|
1231
1288
|
/**
|
|
1232
|
-
* <p>
|
|
1233
|
-
*
|
|
1234
|
-
*
|
|
1289
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
1290
|
+
* session token consumes.</p>
|
|
1291
|
+
* <p>This field is deprecated. Use <code>SessionTokenUtilization</code> instead.</p>
|
|
1235
1292
|
*
|
|
1236
1293
|
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
1237
1294
|
* @public
|
|
1238
1295
|
*/
|
|
1239
1296
|
PackedPolicySize?: number | undefined;
|
|
1240
1297
|
/**
|
|
1241
|
-
* The percentage (0-100) of the maximum allowed session token size that the returned
|
|
1242
|
-
*
|
|
1298
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
1299
|
+
* session token consumes.</p>
|
|
1300
|
+
* @public
|
|
1301
|
+
*/
|
|
1302
|
+
SessionTokenUtilization?: number | undefined;
|
|
1303
|
+
/**
|
|
1304
|
+
* <p>The size, in bytes, of the session token returned in the Credentials for this
|
|
1305
|
+
* response.</p>
|
|
1306
|
+
* @public
|
|
1307
|
+
*/
|
|
1308
|
+
SessionTokenSize?: number | undefined;
|
|
1309
|
+
}
|
|
1310
|
+
/**
|
|
1311
|
+
* @public
|
|
1312
|
+
*/
|
|
1313
|
+
export interface GetScopedCredentialsRequest {
|
|
1314
|
+
/**
|
|
1315
|
+
* <p>An IAM policy in JSON format that you want to use as a scope down policy.</p>
|
|
1316
|
+
* <p>A request must provide at least one of <code>Policy</code> or <code>DurationSeconds</code>.
|
|
1317
|
+
* Both parameters are optional individually, but you must specify at least one of them.</p>
|
|
1318
|
+
* <p>The resulting session's permissions are the intersection of the calling session's existing
|
|
1319
|
+
* permissions and this scope down policy. You cannot use this scope down policy to grant more
|
|
1320
|
+
* permissions than the calling session already has.</p>
|
|
1321
|
+
* <p>The plaintext of the scope down policy cannot exceed 2,048 characters. The JSON policy
|
|
1322
|
+
* characters can be any ASCII character from the space character to the end of the valid
|
|
1323
|
+
* character list (\u0020 through \u00FF). It can also include the tab (\u0009), linefeed
|
|
1324
|
+
* (\u000A), and carriage return (\u000D) characters.</p>
|
|
1325
|
+
* <note>
|
|
1326
|
+
* <p>An internal conversion compresses the inline scope down policy into a packed binary
|
|
1327
|
+
* format that has a separate limit. If the packed policy exceeds this limit, the request fails
|
|
1328
|
+
* with <code>PackedPolicyTooLarge</code>.</p>
|
|
1329
|
+
* <p>If the document is not valid IAM policy JSON, the request fails with
|
|
1330
|
+
* <code>MalformedPolicyDocument</code>.</p>
|
|
1331
|
+
* </note>
|
|
1332
|
+
* @public
|
|
1333
|
+
*/
|
|
1334
|
+
Policy?: string | undefined;
|
|
1335
|
+
/**
|
|
1336
|
+
* <p>The duration, in seconds, of the resulting scoped down credentials. The value can range
|
|
1337
|
+
* from 1 second to 129,600 seconds (36 hours).</p>
|
|
1338
|
+
* <p>If you do not specify this value, the scoped down credentials will inherit the calling
|
|
1339
|
+
* session's expiration time.</p>
|
|
1340
|
+
* @public
|
|
1341
|
+
*/
|
|
1342
|
+
DurationSeconds?: number | undefined;
|
|
1343
|
+
/**
|
|
1344
|
+
* <p>The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
1345
|
+
* increases the session token to at least this size, regardless of its actual content. The
|
|
1346
|
+
* value must not exceed 4,096 bytes. When set to 0 or not specified, the session token size is
|
|
1347
|
+
* unchanged.</p>
|
|
1348
|
+
* @public
|
|
1349
|
+
*/
|
|
1350
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
1351
|
+
/**
|
|
1352
|
+
* <p>A caller-supplied description of the scoped session. The value cannot exceed 256
|
|
1353
|
+
* characters. This description is logged to CloudTrail for the request, so you can use it to
|
|
1354
|
+
* record the purpose of the scoped session.</p>
|
|
1355
|
+
* @public
|
|
1356
|
+
*/
|
|
1357
|
+
ScopedSessionDescription?: string | undefined;
|
|
1358
|
+
}
|
|
1359
|
+
/**
|
|
1360
|
+
* <p>Identifiers for the scoped session that <code>GetScopedCredentials</code> returns. The
|
|
1361
|
+
* underlying identity and session name do not change from the caller principal.</p>
|
|
1362
|
+
* @public
|
|
1363
|
+
*/
|
|
1364
|
+
export interface ScopedSession {
|
|
1365
|
+
/**
|
|
1366
|
+
* <p>A unique identifier for the scoped session. Because the identity is preserved, this
|
|
1367
|
+
* identifies the same principal as the calling session.</p>
|
|
1368
|
+
* @public
|
|
1369
|
+
*/
|
|
1370
|
+
ScopedSessionId: string | undefined;
|
|
1371
|
+
/**
|
|
1372
|
+
* <p>The ARN of the scoped session. For more information about ARNs and how to use them in
|
|
1373
|
+
* policies, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html">IAM Identifiers</a> in the
|
|
1374
|
+
* <i>IAM User Guide</i>.</p>
|
|
1375
|
+
* @public
|
|
1376
|
+
*/
|
|
1377
|
+
Arn: string | undefined;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* <p>Contains the response to a successful <a>GetScopedCredentials</a> request,
|
|
1381
|
+
* including the scoped-down temporary Amazon Web Services credentials and metadata about the resulting
|
|
1382
|
+
* session.</p>
|
|
1383
|
+
* @public
|
|
1384
|
+
*/
|
|
1385
|
+
export interface GetScopedCredentialsResponse {
|
|
1386
|
+
/**
|
|
1387
|
+
* <p>The temporary security credentials for the scoped down session, which include an access
|
|
1388
|
+
* key ID, a secret access key, and a security token.</p>
|
|
1389
|
+
* <note>
|
|
1390
|
+
* <p>The size of the security token that STS API operations return is not fixed. We
|
|
1391
|
+
* strongly recommend that you make no assumptions about the maximum size.</p>
|
|
1392
|
+
* </note>
|
|
1393
|
+
* @public
|
|
1394
|
+
*/
|
|
1395
|
+
Credentials?: Credentials | undefined;
|
|
1396
|
+
/**
|
|
1397
|
+
* <p>Metadata about the resulting scoped session, including its identifier and ARN. Because the
|
|
1398
|
+
* identity does not change, the identifiers reflect the same principal and session name as the
|
|
1399
|
+
* calling session.</p>
|
|
1400
|
+
* @public
|
|
1401
|
+
*/
|
|
1402
|
+
SessionInfo?: ScopedSession | undefined;
|
|
1403
|
+
/**
|
|
1404
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
1405
|
+
* session token consumes.</p>
|
|
1243
1406
|
* @public
|
|
1244
1407
|
*/
|
|
1245
1408
|
SessionTokenUtilization?: number | undefined;
|
|
1246
1409
|
/**
|
|
1247
|
-
* The size, in bytes, of the session token returned in the Credentials for this
|
|
1410
|
+
* <p>The size, in bytes, of the session token returned in the Credentials for this
|
|
1411
|
+
* response.</p>
|
|
1248
1412
|
* @public
|
|
1249
1413
|
*/
|
|
1250
1414
|
SessionTokenSize?: number | undefined;
|
|
1415
|
+
/**
|
|
1416
|
+
* <p>
|
|
1417
|
+
* <code>GetScopedCredentials</code> can be called recursively and
|
|
1418
|
+
* <code>ScopedPoliciesCount</code> specifies the number of scope down policies applied to the
|
|
1419
|
+
* session. Each recursive call adds another scope down policy layer. A maximum of 3 scope down
|
|
1420
|
+
* policy layers are allowed per session. If a session already has 3
|
|
1421
|
+
* <code>GetScopedCredentials</code> scope-down policies, a subsequent
|
|
1422
|
+
* <code>GetScopedCredentials</code> call that supplies a <code>Policy</code> (attempting to
|
|
1423
|
+
* append a fourth scope-down policy) is denied.</p>
|
|
1424
|
+
* @public
|
|
1425
|
+
*/
|
|
1426
|
+
ScopedPoliciesCount?: number | undefined;
|
|
1427
|
+
/**
|
|
1428
|
+
* <p>The source identity of the calling session, carried forward unchanged. This operation
|
|
1429
|
+
* never sets or modifies the source identity; it reflects the value established when the source
|
|
1430
|
+
* identity was first set. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_control-access_monitor.html">Monitor and control
|
|
1431
|
+
* actions taken with assumed roles</a> in the IAM User Guide.</p>
|
|
1432
|
+
* @public
|
|
1433
|
+
*/
|
|
1434
|
+
SourceIdentity?: string | undefined;
|
|
1251
1435
|
}
|
|
1252
1436
|
/**
|
|
1253
1437
|
* @public
|
|
@@ -1286,9 +1470,10 @@ export interface GetSessionTokenRequest {
|
|
|
1286
1470
|
*/
|
|
1287
1471
|
TokenCode?: string | undefined;
|
|
1288
1472
|
/**
|
|
1289
|
-
* The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
1290
|
-
*
|
|
1291
|
-
*
|
|
1473
|
+
* <p>The minimum size, in bytes, of the session token that STS issues for the request. STS
|
|
1474
|
+
* increases the session token to at least this size, regardless of its actual content. The
|
|
1475
|
+
* value must not exceed 4,096 bytes. When set to 0 or not specified, the session token size is
|
|
1476
|
+
* unchanged.</p>
|
|
1292
1477
|
* @public
|
|
1293
1478
|
*/
|
|
1294
1479
|
MinimumSessionTokenSize?: number | undefined;
|
|
@@ -1310,13 +1495,14 @@ export interface GetSessionTokenResponse {
|
|
|
1310
1495
|
*/
|
|
1311
1496
|
Credentials?: Credentials | undefined;
|
|
1312
1497
|
/**
|
|
1313
|
-
* The percentage (0-100) of the maximum allowed session token size that the returned
|
|
1314
|
-
*
|
|
1498
|
+
* <p>The percentage (0-100) of the maximum allowed session token size that the returned
|
|
1499
|
+
* session token consumes.</p>
|
|
1315
1500
|
* @public
|
|
1316
1501
|
*/
|
|
1317
1502
|
SessionTokenUtilization?: number | undefined;
|
|
1318
1503
|
/**
|
|
1319
|
-
* The size, in bytes, of the session token returned in the Credentials for this
|
|
1504
|
+
* <p>The size, in bytes, of the session token returned in the Credentials for this
|
|
1505
|
+
* response.</p>
|
|
1320
1506
|
* @public
|
|
1321
1507
|
*/
|
|
1322
1508
|
SessionTokenSize?: number | undefined;
|
|
@@ -1346,6 +1532,57 @@ export interface GetWebIdentityTokenRequest {
|
|
|
1346
1532
|
* @public
|
|
1347
1533
|
*/
|
|
1348
1534
|
SigningAlgorithm: string | undefined;
|
|
1535
|
+
/**
|
|
1536
|
+
* <p>One or more OAuth 2.0 scope values to include in the JSON Web Token (JWT). Amazon Web Services STS copies the
|
|
1537
|
+
* value exactly as you send it into the top-level <code>scope</code> claim of the token. If you don't
|
|
1538
|
+
* specify <code>Scope</code>, the token doesn't include a <code>scope</code> claim.</p>
|
|
1539
|
+
* <p>Separate multiple values with a single space, as defined in <a href="https://www.rfc-editor.org/rfc/rfc6749#section-3.3">RFC 6749, section 3.3</a> on the IETF
|
|
1540
|
+
* website. Don't begin or end <code>Scope</code> with a space. Each scope value can contain printable
|
|
1541
|
+
* ASCII characters except spaces, double quotation marks (<code>"</code>), commas (<code>,</code>), and
|
|
1542
|
+
* backslashes (<code>\</code>).</p>
|
|
1543
|
+
* <p>You can't repeat a scope value. Scope values are case sensitive. This means that
|
|
1544
|
+
* <code>read</code> and <code>READ</code> are separate values.</p>
|
|
1545
|
+
* <p>You can specify <code>Scope</code> only when <code>SubjectMode</code> is <code>OriginIdentity</code>
|
|
1546
|
+
* and you request exactly one audience. To specify <code>Scope</code>, the calling principal must have
|
|
1547
|
+
* permission for the <code>sts:SetWebIdentityTokenScope</code> action in addition to
|
|
1548
|
+
* <code>sts:GetWebIdentityToken</code>. You can use the multivalued
|
|
1549
|
+
* <code>sts:IdentityTokenScope</code> condition key in a policy to control which scope values a principal
|
|
1550
|
+
* can request.</p>
|
|
1551
|
+
* @public
|
|
1552
|
+
*/
|
|
1553
|
+
Scope?: string | undefined;
|
|
1554
|
+
/**
|
|
1555
|
+
* <p>Specifies which identity STS puts in the <code>sub</code> (subject) claim of the JSON Web Token
|
|
1556
|
+
* (JWT). Valid values are <code>AWSIdentity</code> and <code>OriginIdentity</code>. If you don't specify a
|
|
1557
|
+
* value, Amazon Web Services STS uses <code>AWSIdentity</code>.</p>
|
|
1558
|
+
* <ul>
|
|
1559
|
+
* <li>
|
|
1560
|
+
* <p>
|
|
1561
|
+
* <code>AWSIdentity</code> – The <code>sub</code> claim contains the ARN of the calling Amazon Web Services principal.</p>
|
|
1562
|
+
* </li>
|
|
1563
|
+
* <li>
|
|
1564
|
+
* <p>
|
|
1565
|
+
* <code>OriginIdentity</code> – The <code>sub</code> claim contains the value of the
|
|
1566
|
+
* <code>aws:OriginIdentity/Subject</code> key in the trusted identity propagation context of the
|
|
1567
|
+
* calling session. For example, this can identify the human user or workload on whose behalf the calling
|
|
1568
|
+
* session acts.
|
|
1569
|
+
* Amazon Web Services STS also adds a <code>subject_mode</code> claim to the token.</p>
|
|
1570
|
+
* <p>To use <code>OriginIdentity</code>, the trusted identity propagation context of the calling
|
|
1571
|
+
* session must contain the <code>aws:OriginIdentity/Subject</code> key and either the
|
|
1572
|
+
* <code>aws:OriginIdentity/Issuer</code> key or the
|
|
1573
|
+
* <code>aws:OriginIdentity/FederatedProviderArn</code> key. If it doesn't, or if the subject is
|
|
1574
|
+
* blank, Amazon Web Services STS rejects the request with a validation error.</p>
|
|
1575
|
+
* <p>Amazon Web Services STS denies the request if the subject begins with the text <code>arn:</code>, in any
|
|
1576
|
+
* combination of uppercase and lowercase letters. Amazon Web Services STS also denies the request if the subject
|
|
1577
|
+
* begins or ends with a space, or contains a control, format, or separator character other than a
|
|
1578
|
+
* space.</p>
|
|
1579
|
+
* </li>
|
|
1580
|
+
* </ul>
|
|
1581
|
+
* <p>You can use the <code>sts:SubjectMode</code> condition key in a policy to control which subject
|
|
1582
|
+
* modes a principal can request.</p>
|
|
1583
|
+
* @public
|
|
1584
|
+
*/
|
|
1585
|
+
SubjectMode?: WebIdentityTokenSubjectModeType | undefined;
|
|
1349
1586
|
/**
|
|
1350
1587
|
* <p>An optional list of tags to include in the JSON Web Token (JWT). These tags are added as custom
|
|
1351
1588
|
* claims to the JWT and can be used by the downstream service for authorization decisions. </p>
|
|
@@ -1358,9 +1595,12 @@ export interface GetWebIdentityTokenRequest {
|
|
|
1358
1595
|
*/
|
|
1359
1596
|
export interface GetWebIdentityTokenResponse {
|
|
1360
1597
|
/**
|
|
1361
|
-
* <p>A signed JSON Web Token (JWT) that represents the caller's Amazon Web Services identity
|
|
1598
|
+
* <p>A signed JSON Web Token (JWT) that represents the caller's Amazon Web Services identity or, if you set
|
|
1599
|
+
* <code>SubjectMode</code> to <code>OriginIdentity</code>, the human user or workload on whose behalf the
|
|
1600
|
+
* calling session acts. The token contains
|
|
1362
1601
|
* standard JWT claims such as subject, audience, expiration time, and additional identity attributes
|
|
1363
|
-
* added by STS as custom claims.
|
|
1602
|
+
* added by STS as custom claims. These can include the <code>principal_id</code> claim, which contains the ARN of
|
|
1603
|
+
* the principal that requested the token, whichever subject mode you use. You can also add your own custom claims to the token by passing tags
|
|
1364
1604
|
* as request parameters to the <code>GetWebIdentityToken</code> API. The token is signed using the specified signing
|
|
1365
1605
|
* algorithm and can be verified using the verification keys available at the issuer's JWKS endpoint.</p>
|
|
1366
1606
|
* @public
|