@aws-sdk/client-sts 3.1130.0 → 3.1132.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 +22 -3
- package/dist-cjs/index.js +28 -25
- package/dist-es/schemas/schemas_0.js +27 -24
- package/dist-types/STS.d.ts +22 -3
- package/dist-types/STSClient.d.ts +22 -3
- package/dist-types/commands/AssumeRoleCommand.d.ts +3 -0
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +3 -0
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -0
- package/dist-types/commands/AssumeRootCommand.d.ts +3 -0
- package/dist-types/commands/GetFederationTokenCommand.d.ts +3 -0
- package/dist-types/commands/GetSessionTokenCommand.d.ts +3 -0
- package/dist-types/commands/GetWebIdentityTokenCommand.d.ts +3 -0
- package/dist-types/index.d.ts +22 -3
- package/dist-types/models/models_0.d.ts +118 -0
- package/dist-types/ts3.4/models/models_0.d.ts +18 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,9 +7,28 @@
|
|
|
7
7
|
AWS SDK for JavaScript STS Client for Node.js, Browser and React Native.
|
|
8
8
|
|
|
9
9
|
<fullname>Security Token Service</fullname>
|
|
10
|
-
<p>Security Token Service (STS) enables you to request temporary,
|
|
11
|
-
credentials for users. This guide
|
|
12
|
-
|
|
10
|
+
<p>Amazon Web Services provides Security Token Service (STS) as a web service that enables you to request temporary,
|
|
11
|
+
limited-privilege credentials for users. This guide describes the STS API. For more
|
|
12
|
+
information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>
|
|
13
|
+
in the <i>IAM User Guide</i>.</p>
|
|
14
|
+
<note>
|
|
15
|
+
<p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
|
|
16
|
+
libraries and sample code for various programming languages and platforms such as Java,
|
|
17
|
+
Ruby, .NET, iOS, Android, and others. The SDKs provide a convenient way to create
|
|
18
|
+
programmatic access to STS. For example, the SDKs can cryptographically sign requests,
|
|
19
|
+
manage errors, and retry requests automatically. For information about the Amazon Web Services SDKs, see
|
|
20
|
+
<a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
|
|
21
|
+
</note>
|
|
22
|
+
<p>For information about setting up signatures and authorization through the API, see <a href="https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html">Signing Amazon Web Services
|
|
23
|
+
API Requests</a> in the <i>Amazon Web Services General Reference</i>. For general information
|
|
24
|
+
about the Query API, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html">Making Query Requests</a> in the
|
|
25
|
+
<i>IAM User Guide</i>. For information about using security tokens with
|
|
26
|
+
other Amazon Web Services products, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html">Amazon Web Services Services
|
|
27
|
+
That Work with IAM</a> in the <i>IAM User Guide</i>.</p>
|
|
28
|
+
<p>For information about STS endpoints, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_region-endpoints.html">STS Regions and
|
|
29
|
+
endpoints</a> in the <i>IAM User Guide</i>. For information about
|
|
30
|
+
logging STS API calls, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">Logging IAM and STS API calls
|
|
31
|
+
with CloudTrail</a> in the <i>IAM User Guide</i>.</p>
|
|
13
32
|
|
|
14
33
|
## Installing
|
|
15
34
|
|
package/dist-cjs/index.js
CHANGED
|
@@ -264,7 +264,7 @@ const commonParams = {
|
|
|
264
264
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
265
265
|
};
|
|
266
266
|
|
|
267
|
-
var version = "3.
|
|
267
|
+
var version = "3.1131.0";
|
|
268
268
|
var packageInfo = {
|
|
269
269
|
version: version};
|
|
270
270
|
|
|
@@ -480,6 +480,7 @@ const _IITE = "InvalidIdentityTokenException";
|
|
|
480
480
|
const _JWTPSEE = "JWTPayloadSizeExceededException";
|
|
481
481
|
const _K = "Key";
|
|
482
482
|
const _MPDE = "MalformedPolicyDocumentException";
|
|
483
|
+
const _MSTS = "MinimumSessionTokenSize";
|
|
483
484
|
const _N = "Name";
|
|
484
485
|
const _NQ = "NameQualifier";
|
|
485
486
|
const _OWIFDE = "OutboundWebIdentityFederationDisabledException";
|
|
@@ -508,6 +509,8 @@ const _SFWIT = "SubjectFromWebIdentityToken";
|
|
|
508
509
|
const _SI = "SourceIdentity";
|
|
509
510
|
const _SN = "SerialNumber";
|
|
510
511
|
const _ST = "SubjectType";
|
|
512
|
+
const _STS = "SessionTokenSize";
|
|
513
|
+
const _STU = "SessionTokenUtilization";
|
|
511
514
|
const _STe = "SessionToken";
|
|
512
515
|
const _T = "Tags";
|
|
513
516
|
const _TC = "TokenCode";
|
|
@@ -625,43 +628,43 @@ var AssumedRoleUser$ = [3, n0, _ARU,
|
|
|
625
628
|
];
|
|
626
629
|
var AssumeRoleRequest$ = [3, n0, _ARR,
|
|
627
630
|
0,
|
|
628
|
-
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
|
629
|
-
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
|
|
631
|
+
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC, _MSTS],
|
|
632
|
+
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType, 1], 2
|
|
630
633
|
];
|
|
631
634
|
var AssumeRoleResponse$ = [3, n0, _ARRs,
|
|
632
635
|
0,
|
|
633
|
-
[_C, _ARU, _PPS, _SI],
|
|
634
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
636
|
+
[_C, _ARU, _PPS, _SI, _STU, _STS],
|
|
637
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 1, 1]
|
|
635
638
|
];
|
|
636
639
|
var AssumeRoleWithSAMLRequest$ = [3, n0, _ARWSAMLR,
|
|
637
640
|
0,
|
|
638
|
-
[_RA, _PAr, _SAMLA, _PA, _P, _DS],
|
|
639
|
-
[0, 0, [() => SAMLAssertionType, 0], () => policyDescriptorListType, 0, 1], 3
|
|
641
|
+
[_RA, _PAr, _SAMLA, _PA, _P, _DS, _MSTS],
|
|
642
|
+
[0, 0, [() => SAMLAssertionType, 0], () => policyDescriptorListType, 0, 1, 1], 3
|
|
640
643
|
];
|
|
641
644
|
var AssumeRoleWithSAMLResponse$ = [3, n0, _ARWSAMLRs,
|
|
642
645
|
0,
|
|
643
|
-
[_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI],
|
|
644
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0]
|
|
646
|
+
[_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI, _STU, _STS],
|
|
647
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0, 1, 1]
|
|
645
648
|
];
|
|
646
649
|
var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
647
650
|
0,
|
|
648
|
-
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
|
649
|
-
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
|
|
651
|
+
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS, _MSTS],
|
|
652
|
+
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1, 1], 3
|
|
650
653
|
];
|
|
651
654
|
var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
652
655
|
0,
|
|
653
|
-
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
|
654
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
656
|
+
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
|
|
657
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
|
|
655
658
|
];
|
|
656
659
|
var AssumeRootRequest$ = [3, n0, _ARRss,
|
|
657
660
|
0,
|
|
658
|
-
[_TP, _TPA, _DS],
|
|
659
|
-
[0, () => PolicyDescriptorType$, 1], 2
|
|
661
|
+
[_TP, _TPA, _DS, _MSTS],
|
|
662
|
+
[0, () => PolicyDescriptorType$, 1, 1], 2
|
|
660
663
|
];
|
|
661
664
|
var AssumeRootResponse$ = [3, n0, _ARRssu,
|
|
662
665
|
0,
|
|
663
|
-
[_C, _SI],
|
|
664
|
-
[[() => Credentials$, 0], 0]
|
|
666
|
+
[_C, _SI, _STU, _STS],
|
|
667
|
+
[[() => Credentials$, 0], 0, 1, 1]
|
|
665
668
|
];
|
|
666
669
|
var Credentials$ = [3, n0, _C,
|
|
667
670
|
0,
|
|
@@ -715,23 +718,23 @@ var GetDelegatedAccessTokenResponse$ = [3, n0, _GDATRe,
|
|
|
715
718
|
];
|
|
716
719
|
var GetFederationTokenRequest$ = [3, n0, _GFTR,
|
|
717
720
|
0,
|
|
718
|
-
[_N, _P, _PA, _DS, _T],
|
|
719
|
-
[0, 0, () => policyDescriptorListType, 1, () => tagListType], 1
|
|
721
|
+
[_N, _P, _PA, _DS, _T, _MSTS],
|
|
722
|
+
[0, 0, () => policyDescriptorListType, 1, () => tagListType, 1], 1
|
|
720
723
|
];
|
|
721
724
|
var GetFederationTokenResponse$ = [3, n0, _GFTRe,
|
|
722
725
|
0,
|
|
723
|
-
[_C, _FU, _PPS],
|
|
724
|
-
[[() => Credentials$, 0], () => FederatedUser$, 1]
|
|
726
|
+
[_C, _FU, _PPS, _STU, _STS],
|
|
727
|
+
[[() => Credentials$, 0], () => FederatedUser$, 1, 1, 1]
|
|
725
728
|
];
|
|
726
729
|
var GetSessionTokenRequest$ = [3, n0, _GSTR,
|
|
727
730
|
0,
|
|
728
|
-
[_DS, _SN, _TC],
|
|
729
|
-
[1, 0, 0]
|
|
731
|
+
[_DS, _SN, _TC, _MSTS],
|
|
732
|
+
[1, 0, 0, 1]
|
|
730
733
|
];
|
|
731
734
|
var GetSessionTokenResponse$ = [3, n0, _GSTRe,
|
|
732
735
|
0,
|
|
733
|
-
[_C],
|
|
734
|
-
[[() => Credentials$, 0]]
|
|
736
|
+
[_C, _STU, _STS],
|
|
737
|
+
[[() => Credentials$, 0], 1, 1]
|
|
735
738
|
];
|
|
736
739
|
var GetWebIdentityTokenRequest$ = [3, n0, _GWITR,
|
|
737
740
|
0,
|
|
@@ -57,6 +57,7 @@ const _IITE = "InvalidIdentityTokenException";
|
|
|
57
57
|
const _JWTPSEE = "JWTPayloadSizeExceededException";
|
|
58
58
|
const _K = "Key";
|
|
59
59
|
const _MPDE = "MalformedPolicyDocumentException";
|
|
60
|
+
const _MSTS = "MinimumSessionTokenSize";
|
|
60
61
|
const _N = "Name";
|
|
61
62
|
const _NQ = "NameQualifier";
|
|
62
63
|
const _OWIFDE = "OutboundWebIdentityFederationDisabledException";
|
|
@@ -85,6 +86,8 @@ const _SFWIT = "SubjectFromWebIdentityToken";
|
|
|
85
86
|
const _SI = "SourceIdentity";
|
|
86
87
|
const _SN = "SerialNumber";
|
|
87
88
|
const _ST = "SubjectType";
|
|
89
|
+
const _STS = "SessionTokenSize";
|
|
90
|
+
const _STU = "SessionTokenUtilization";
|
|
88
91
|
const _STe = "SessionToken";
|
|
89
92
|
const _T = "Tags";
|
|
90
93
|
const _TC = "TokenCode";
|
|
@@ -205,43 +208,43 @@ export var AssumedRoleUser$ = [3, n0, _ARU,
|
|
|
205
208
|
];
|
|
206
209
|
export var AssumeRoleRequest$ = [3, n0, _ARR,
|
|
207
210
|
0,
|
|
208
|
-
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
|
209
|
-
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
|
|
211
|
+
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC, _MSTS],
|
|
212
|
+
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType, 1], 2
|
|
210
213
|
];
|
|
211
214
|
export var AssumeRoleResponse$ = [3, n0, _ARRs,
|
|
212
215
|
0,
|
|
213
|
-
[_C, _ARU, _PPS, _SI],
|
|
214
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
216
|
+
[_C, _ARU, _PPS, _SI, _STU, _STS],
|
|
217
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 1, 1]
|
|
215
218
|
];
|
|
216
219
|
export var AssumeRoleWithSAMLRequest$ = [3, n0, _ARWSAMLR,
|
|
217
220
|
0,
|
|
218
|
-
[_RA, _PAr, _SAMLA, _PA, _P, _DS],
|
|
219
|
-
[0, 0, [() => SAMLAssertionType, 0], () => policyDescriptorListType, 0, 1], 3
|
|
221
|
+
[_RA, _PAr, _SAMLA, _PA, _P, _DS, _MSTS],
|
|
222
|
+
[0, 0, [() => SAMLAssertionType, 0], () => policyDescriptorListType, 0, 1, 1], 3
|
|
220
223
|
];
|
|
221
224
|
export var AssumeRoleWithSAMLResponse$ = [3, n0, _ARWSAMLRs,
|
|
222
225
|
0,
|
|
223
|
-
[_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI],
|
|
224
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0]
|
|
226
|
+
[_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI, _STU, _STS],
|
|
227
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0, 1, 1]
|
|
225
228
|
];
|
|
226
229
|
export var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
227
230
|
0,
|
|
228
|
-
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
|
229
|
-
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
|
|
231
|
+
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS, _MSTS],
|
|
232
|
+
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1, 1], 3
|
|
230
233
|
];
|
|
231
234
|
export var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
232
235
|
0,
|
|
233
|
-
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
|
234
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
236
|
+
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
|
|
237
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
|
|
235
238
|
];
|
|
236
239
|
export var AssumeRootRequest$ = [3, n0, _ARRss,
|
|
237
240
|
0,
|
|
238
|
-
[_TP, _TPA, _DS],
|
|
239
|
-
[0, () => PolicyDescriptorType$, 1], 2
|
|
241
|
+
[_TP, _TPA, _DS, _MSTS],
|
|
242
|
+
[0, () => PolicyDescriptorType$, 1, 1], 2
|
|
240
243
|
];
|
|
241
244
|
export var AssumeRootResponse$ = [3, n0, _ARRssu,
|
|
242
245
|
0,
|
|
243
|
-
[_C, _SI],
|
|
244
|
-
[[() => Credentials$, 0], 0]
|
|
246
|
+
[_C, _SI, _STU, _STS],
|
|
247
|
+
[[() => Credentials$, 0], 0, 1, 1]
|
|
245
248
|
];
|
|
246
249
|
export var Credentials$ = [3, n0, _C,
|
|
247
250
|
0,
|
|
@@ -295,23 +298,23 @@ export var GetDelegatedAccessTokenResponse$ = [3, n0, _GDATRe,
|
|
|
295
298
|
];
|
|
296
299
|
export var GetFederationTokenRequest$ = [3, n0, _GFTR,
|
|
297
300
|
0,
|
|
298
|
-
[_N, _P, _PA, _DS, _T],
|
|
299
|
-
[0, 0, () => policyDescriptorListType, 1, () => tagListType], 1
|
|
301
|
+
[_N, _P, _PA, _DS, _T, _MSTS],
|
|
302
|
+
[0, 0, () => policyDescriptorListType, 1, () => tagListType, 1], 1
|
|
300
303
|
];
|
|
301
304
|
export var GetFederationTokenResponse$ = [3, n0, _GFTRe,
|
|
302
305
|
0,
|
|
303
|
-
[_C, _FU, _PPS],
|
|
304
|
-
[[() => Credentials$, 0], () => FederatedUser$, 1]
|
|
306
|
+
[_C, _FU, _PPS, _STU, _STS],
|
|
307
|
+
[[() => Credentials$, 0], () => FederatedUser$, 1, 1, 1]
|
|
305
308
|
];
|
|
306
309
|
export var GetSessionTokenRequest$ = [3, n0, _GSTR,
|
|
307
310
|
0,
|
|
308
|
-
[_DS, _SN, _TC],
|
|
309
|
-
[1, 0, 0]
|
|
311
|
+
[_DS, _SN, _TC, _MSTS],
|
|
312
|
+
[1, 0, 0, 1]
|
|
310
313
|
];
|
|
311
314
|
export var GetSessionTokenResponse$ = [3, n0, _GSTRe,
|
|
312
315
|
0,
|
|
313
|
-
[_C],
|
|
314
|
-
[[() => Credentials$, 0]]
|
|
316
|
+
[_C, _STU, _STS],
|
|
317
|
+
[[() => Credentials$, 0], 1, 1]
|
|
315
318
|
];
|
|
316
319
|
export var GetWebIdentityTokenRequest$ = [3, n0, _GWITR,
|
|
317
320
|
0,
|
package/dist-types/STS.d.ts
CHANGED
|
@@ -83,9 +83,28 @@ export interface STS {
|
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* <fullname>Security Token Service</fullname>
|
|
86
|
-
* <p>Security Token Service (STS) enables you to request temporary,
|
|
87
|
-
*
|
|
88
|
-
*
|
|
86
|
+
* <p>Amazon Web Services provides Security Token Service (STS) as a web service that enables you to request temporary,
|
|
87
|
+
* limited-privilege credentials for users. This guide describes the STS API. For more
|
|
88
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>
|
|
89
|
+
* in the <i>IAM User Guide</i>.</p>
|
|
90
|
+
* <note>
|
|
91
|
+
* <p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
|
|
92
|
+
* libraries and sample code for various programming languages and platforms such as Java,
|
|
93
|
+
* Ruby, .NET, iOS, Android, and others. The SDKs provide a convenient way to create
|
|
94
|
+
* programmatic access to STS. For example, the SDKs can cryptographically sign requests,
|
|
95
|
+
* manage errors, and retry requests automatically. For information about the Amazon Web Services SDKs, see
|
|
96
|
+
* <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
|
|
97
|
+
* </note>
|
|
98
|
+
* <p>For information about setting up signatures and authorization through the API, see <a href="https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html">Signing Amazon Web Services
|
|
99
|
+
* API Requests</a> in the <i>Amazon Web Services General Reference</i>. For general information
|
|
100
|
+
* about the Query API, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html">Making Query Requests</a> in the
|
|
101
|
+
* <i>IAM User Guide</i>. For information about using security tokens with
|
|
102
|
+
* other Amazon Web Services products, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html">Amazon Web Services Services
|
|
103
|
+
* That Work with IAM</a> in the <i>IAM User Guide</i>.</p>
|
|
104
|
+
* <p>For information about STS endpoints, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_region-endpoints.html">STS Regions and
|
|
105
|
+
* endpoints</a> in the <i>IAM User Guide</i>. For information about
|
|
106
|
+
* logging STS API calls, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">Logging IAM and STS API calls
|
|
107
|
+
* with CloudTrail</a> in the <i>IAM User Guide</i>.</p>
|
|
89
108
|
* @public
|
|
90
109
|
*/
|
|
91
110
|
export declare class STS extends STSClient implements STS {
|
|
@@ -180,9 +180,28 @@ export interface STSClientResolvedConfig extends STSClientResolvedConfigType {
|
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* <fullname>Security Token Service</fullname>
|
|
183
|
-
* <p>Security Token Service (STS) enables you to request temporary,
|
|
184
|
-
*
|
|
185
|
-
*
|
|
183
|
+
* <p>Amazon Web Services provides Security Token Service (STS) as a web service that enables you to request temporary,
|
|
184
|
+
* limited-privilege credentials for users. This guide describes the STS API. For more
|
|
185
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>
|
|
186
|
+
* in the <i>IAM User Guide</i>.</p>
|
|
187
|
+
* <note>
|
|
188
|
+
* <p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
|
|
189
|
+
* libraries and sample code for various programming languages and platforms such as Java,
|
|
190
|
+
* Ruby, .NET, iOS, Android, and others. The SDKs provide a convenient way to create
|
|
191
|
+
* programmatic access to STS. For example, the SDKs can cryptographically sign requests,
|
|
192
|
+
* manage errors, and retry requests automatically. For information about the Amazon Web Services SDKs, see
|
|
193
|
+
* <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
|
|
194
|
+
* </note>
|
|
195
|
+
* <p>For information about setting up signatures and authorization through the API, see <a href="https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html">Signing Amazon Web Services
|
|
196
|
+
* API Requests</a> in the <i>Amazon Web Services General Reference</i>. For general information
|
|
197
|
+
* about the Query API, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html">Making Query Requests</a> in the
|
|
198
|
+
* <i>IAM User Guide</i>. For information about using security tokens with
|
|
199
|
+
* other Amazon Web Services products, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html">Amazon Web Services Services
|
|
200
|
+
* That Work with IAM</a> in the <i>IAM User Guide</i>.</p>
|
|
201
|
+
* <p>For information about STS endpoints, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_region-endpoints.html">STS Regions and
|
|
202
|
+
* endpoints</a> in the <i>IAM User Guide</i>. For information about
|
|
203
|
+
* logging STS API calls, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">Logging IAM and STS API calls
|
|
204
|
+
* with CloudTrail</a> in the <i>IAM User Guide</i>.</p>
|
|
186
205
|
* @public
|
|
187
206
|
*/
|
|
188
207
|
export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig> {
|
|
@@ -149,6 +149,7 @@ declare const AssumeRoleCommand_base: {
|
|
|
149
149
|
* ContextAssertion: "STRING_VALUE",
|
|
150
150
|
* },
|
|
151
151
|
* ],
|
|
152
|
+
* MinimumSessionTokenSize: Number("int"),
|
|
152
153
|
* };
|
|
153
154
|
* const command = new AssumeRoleCommand(input);
|
|
154
155
|
* const response = await client.send(command);
|
|
@@ -165,6 +166,8 @@ declare const AssumeRoleCommand_base: {
|
|
|
165
166
|
* // },
|
|
166
167
|
* // PackedPolicySize: Number("int"),
|
|
167
168
|
* // SourceIdentity: "STRING_VALUE",
|
|
169
|
+
* // SessionTokenUtilization: Number("int"),
|
|
170
|
+
* // SessionTokenSize: Number("int"),
|
|
168
171
|
* // };
|
|
169
172
|
*
|
|
170
173
|
* ```
|
|
@@ -176,6 +176,7 @@ declare const AssumeRoleWithSAMLCommand_base: {
|
|
|
176
176
|
* ],
|
|
177
177
|
* Policy: "STRING_VALUE",
|
|
178
178
|
* DurationSeconds: Number("int"),
|
|
179
|
+
* MinimumSessionTokenSize: Number("int"),
|
|
179
180
|
* };
|
|
180
181
|
* const command = new AssumeRoleWithSAMLCommand(input);
|
|
181
182
|
* const response = await client.send(command);
|
|
@@ -197,6 +198,8 @@ declare const AssumeRoleWithSAMLCommand_base: {
|
|
|
197
198
|
* // Audience: "STRING_VALUE",
|
|
198
199
|
* // NameQualifier: "STRING_VALUE",
|
|
199
200
|
* // SourceIdentity: "STRING_VALUE",
|
|
201
|
+
* // SessionTokenUtilization: Number("int"),
|
|
202
|
+
* // SessionTokenSize: Number("int"),
|
|
200
203
|
* // };
|
|
201
204
|
*
|
|
202
205
|
* ```
|
|
@@ -162,6 +162,7 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
162
162
|
* ],
|
|
163
163
|
* Policy: "STRING_VALUE",
|
|
164
164
|
* DurationSeconds: Number("int"),
|
|
165
|
+
* MinimumSessionTokenSize: Number("int"),
|
|
165
166
|
* };
|
|
166
167
|
* const command = new AssumeRoleWithWebIdentityCommand(input);
|
|
167
168
|
* const response = await client.send(command);
|
|
@@ -181,6 +182,8 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
181
182
|
* // Provider: "STRING_VALUE",
|
|
182
183
|
* // Audience: "STRING_VALUE",
|
|
183
184
|
* // SourceIdentity: "STRING_VALUE",
|
|
185
|
+
* // SessionTokenUtilization: Number("int"),
|
|
186
|
+
* // SessionTokenSize: Number("int"),
|
|
184
187
|
* // };
|
|
185
188
|
*
|
|
186
189
|
* ```
|
|
@@ -57,6 +57,7 @@ declare const AssumeRootCommand_base: {
|
|
|
57
57
|
* arn: "STRING_VALUE",
|
|
58
58
|
* },
|
|
59
59
|
* DurationSeconds: Number("int"),
|
|
60
|
+
* MinimumSessionTokenSize: Number("int"),
|
|
60
61
|
* };
|
|
61
62
|
* const command = new AssumeRootCommand(input);
|
|
62
63
|
* const response = await client.send(command);
|
|
@@ -68,6 +69,8 @@ declare const AssumeRootCommand_base: {
|
|
|
68
69
|
* // Expiration: new Date("TIMESTAMP"), // required
|
|
69
70
|
* // },
|
|
70
71
|
* // SourceIdentity: "STRING_VALUE",
|
|
72
|
+
* // SessionTokenUtilization: Number("int"),
|
|
73
|
+
* // SessionTokenSize: Number("int"),
|
|
71
74
|
* // };
|
|
72
75
|
*
|
|
73
76
|
* ```
|
|
@@ -136,6 +136,7 @@ declare const GetFederationTokenCommand_base: {
|
|
|
136
136
|
* Value: "STRING_VALUE", // required
|
|
137
137
|
* },
|
|
138
138
|
* ],
|
|
139
|
+
* MinimumSessionTokenSize: Number("int"),
|
|
139
140
|
* };
|
|
140
141
|
* const command = new GetFederationTokenCommand(input);
|
|
141
142
|
* const response = await client.send(command);
|
|
@@ -151,6 +152,8 @@ declare const GetFederationTokenCommand_base: {
|
|
|
151
152
|
* // Arn: "STRING_VALUE", // required
|
|
152
153
|
* // },
|
|
153
154
|
* // PackedPolicySize: Number("int"),
|
|
155
|
+
* // SessionTokenUtilization: Number("int"),
|
|
156
|
+
* // SessionTokenSize: Number("int"),
|
|
154
157
|
* // };
|
|
155
158
|
*
|
|
156
159
|
* ```
|
|
@@ -95,6 +95,7 @@ declare const GetSessionTokenCommand_base: {
|
|
|
95
95
|
* DurationSeconds: Number("int"),
|
|
96
96
|
* SerialNumber: "STRING_VALUE",
|
|
97
97
|
* TokenCode: "STRING_VALUE",
|
|
98
|
+
* MinimumSessionTokenSize: Number("int"),
|
|
98
99
|
* };
|
|
99
100
|
* const command = new GetSessionTokenCommand(input);
|
|
100
101
|
* const response = await client.send(command);
|
|
@@ -105,6 +106,8 @@ declare const GetSessionTokenCommand_base: {
|
|
|
105
106
|
* // SessionToken: "STRING_VALUE", // required
|
|
106
107
|
* // Expiration: new Date("TIMESTAMP"), // required
|
|
107
108
|
* // },
|
|
109
|
+
* // SessionTokenUtilization: Number("int"),
|
|
110
|
+
* // SessionTokenSize: Number("int"),
|
|
108
111
|
* // };
|
|
109
112
|
*
|
|
110
113
|
* ```
|
|
@@ -27,6 +27,9 @@ declare const GetWebIdentityTokenCommand_base: {
|
|
|
27
27
|
* <p>Returns a signed JSON Web Token (JWT) that represents the calling Amazon Web Services identity.
|
|
28
28
|
* The returned JWT can be used to authenticate with external services that support OIDC discovery.
|
|
29
29
|
* The token is signed by Amazon Web Services STS and can be publicly verified using the verification keys published at the issuer's JWKS endpoint.</p>
|
|
30
|
+
* <note>
|
|
31
|
+
* <p>The <code>GetWebIdentityToken</code> API is not available on the STS Global endpoint.</p>
|
|
32
|
+
* </note>
|
|
30
33
|
* @example
|
|
31
34
|
* Use a bare-bones client and the command you need to make an API call.
|
|
32
35
|
* ```javascript
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* <fullname>Security Token Service</fullname>
|
|
3
|
-
* <p>Security Token Service (STS) enables you to request temporary,
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* <p>Amazon Web Services provides Security Token Service (STS) as a web service that enables you to request temporary,
|
|
4
|
+
* limited-privilege credentials for users. This guide describes the STS API. For more
|
|
5
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>
|
|
6
|
+
* in the <i>IAM User Guide</i>.</p>
|
|
7
|
+
* <note>
|
|
8
|
+
* <p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
|
|
9
|
+
* libraries and sample code for various programming languages and platforms such as Java,
|
|
10
|
+
* Ruby, .NET, iOS, Android, and others. The SDKs provide a convenient way to create
|
|
11
|
+
* programmatic access to STS. For example, the SDKs can cryptographically sign requests,
|
|
12
|
+
* manage errors, and retry requests automatically. For information about the Amazon Web Services SDKs, see
|
|
13
|
+
* <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
|
|
14
|
+
* </note>
|
|
15
|
+
* <p>For information about setting up signatures and authorization through the API, see <a href="https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html">Signing Amazon Web Services
|
|
16
|
+
* API Requests</a> in the <i>Amazon Web Services General Reference</i>. For general information
|
|
17
|
+
* about the Query API, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html">Making Query Requests</a> in the
|
|
18
|
+
* <i>IAM User Guide</i>. For information about using security tokens with
|
|
19
|
+
* other Amazon Web Services products, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_aws-services-that-work-with-iam.html">Amazon Web Services Services
|
|
20
|
+
* That Work with IAM</a> in the <i>IAM User Guide</i>.</p>
|
|
21
|
+
* <p>For information about STS endpoints, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_region-endpoints.html">STS Regions and
|
|
22
|
+
* endpoints</a> in the <i>IAM User Guide</i>. For information about
|
|
23
|
+
* logging STS API calls, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">Logging IAM and STS API calls
|
|
24
|
+
* with CloudTrail</a> in the <i>IAM User Guide</i>.</p>
|
|
6
25
|
*
|
|
7
26
|
* @packageDocumentation
|
|
8
27
|
*/
|
|
@@ -298,6 +298,13 @@ export interface AssumeRoleRequest {
|
|
|
298
298
|
* @public
|
|
299
299
|
*/
|
|
300
300
|
ProvidedContexts?: ProvidedContext[] | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* The minimum size, in bytes, of the session token that STS issues for the request. STS increases
|
|
303
|
+
* the session token to at least this size, regardless of its actual content. The value must not
|
|
304
|
+
* exceed 4,096 bytes. When set to 0 or not specified, the session token size is unchanged.
|
|
305
|
+
* @public
|
|
306
|
+
*/
|
|
307
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
301
308
|
}
|
|
302
309
|
/**
|
|
303
310
|
* <p>Amazon Web Services credentials for API authentication.</p>
|
|
@@ -355,6 +362,8 @@ export interface AssumeRoleResponse {
|
|
|
355
362
|
* <p>A percentage value that indicates the packed size of the session policies and session
|
|
356
363
|
* tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
|
|
357
364
|
* which means the policies and tags exceeded the allowed space.</p>
|
|
365
|
+
*
|
|
366
|
+
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
358
367
|
* @public
|
|
359
368
|
*/
|
|
360
369
|
PackedPolicySize?: number | undefined;
|
|
@@ -375,6 +384,17 @@ export interface AssumeRoleResponse {
|
|
|
375
384
|
* @public
|
|
376
385
|
*/
|
|
377
386
|
SourceIdentity?: string | undefined;
|
|
387
|
+
/**
|
|
388
|
+
* The percentage (0-100) of the maximum allowed session token size that the returned session
|
|
389
|
+
* token consumes.
|
|
390
|
+
* @public
|
|
391
|
+
*/
|
|
392
|
+
SessionTokenUtilization?: number | undefined;
|
|
393
|
+
/**
|
|
394
|
+
* The size, in bytes, of the session token returned in the Credentials for this response.
|
|
395
|
+
* @public
|
|
396
|
+
*/
|
|
397
|
+
SessionTokenSize?: number | undefined;
|
|
378
398
|
}
|
|
379
399
|
/**
|
|
380
400
|
* @public
|
|
@@ -475,6 +495,13 @@ export interface AssumeRoleWithSAMLRequest {
|
|
|
475
495
|
* @public
|
|
476
496
|
*/
|
|
477
497
|
DurationSeconds?: number | undefined;
|
|
498
|
+
/**
|
|
499
|
+
* The minimum size, in bytes, of the session token that STS issues for the request. STS increases
|
|
500
|
+
* the session token to at least this size, regardless of its actual content. The value must not
|
|
501
|
+
* exceed 4,096 bytes. When set to 0 or not specified, the session token size is unchanged.
|
|
502
|
+
* @public
|
|
503
|
+
*/
|
|
504
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
478
505
|
}
|
|
479
506
|
/**
|
|
480
507
|
* <p>Contains the response to a successful <a>AssumeRoleWithSAML</a> request,
|
|
@@ -502,6 +529,8 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
502
529
|
* <p>A percentage value that indicates the packed size of the session policies and session
|
|
503
530
|
* tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
|
|
504
531
|
* which means the policies and tags exceeded the allowed space.</p>
|
|
532
|
+
*
|
|
533
|
+
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
505
534
|
* @public
|
|
506
535
|
*/
|
|
507
536
|
PackedPolicySize?: number | undefined;
|
|
@@ -577,6 +606,17 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
577
606
|
* @public
|
|
578
607
|
*/
|
|
579
608
|
SourceIdentity?: string | undefined;
|
|
609
|
+
/**
|
|
610
|
+
* The percentage (0-100) of the maximum allowed session token size that the returned session
|
|
611
|
+
* token consumes.
|
|
612
|
+
* @public
|
|
613
|
+
*/
|
|
614
|
+
SessionTokenUtilization?: number | undefined;
|
|
615
|
+
/**
|
|
616
|
+
* The size, in bytes, of the session token returned in the Credentials for this response.
|
|
617
|
+
* @public
|
|
618
|
+
*/
|
|
619
|
+
SessionTokenSize?: number | undefined;
|
|
580
620
|
}
|
|
581
621
|
/**
|
|
582
622
|
* @public
|
|
@@ -708,6 +748,13 @@ export interface AssumeRoleWithWebIdentityRequest {
|
|
|
708
748
|
* @public
|
|
709
749
|
*/
|
|
710
750
|
DurationSeconds?: number | undefined;
|
|
751
|
+
/**
|
|
752
|
+
* The minimum size, in bytes, of the session token that STS issues for the request. STS increases
|
|
753
|
+
* the session token to at least this size, regardless of its actual content. The value must not
|
|
754
|
+
* exceed 4,096 bytes. When set to 0 or not specified, the session token size is unchanged.
|
|
755
|
+
* @public
|
|
756
|
+
*/
|
|
757
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
711
758
|
}
|
|
712
759
|
/**
|
|
713
760
|
* <p>Contains the response to a successful <a>AssumeRoleWithWebIdentity</a>
|
|
@@ -748,6 +795,8 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
748
795
|
* <p>A percentage value that indicates the packed size of the session policies and session
|
|
749
796
|
* tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
|
|
750
797
|
* which means the policies and tags exceeded the allowed space.</p>
|
|
798
|
+
*
|
|
799
|
+
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
751
800
|
* @public
|
|
752
801
|
*/
|
|
753
802
|
PackedPolicySize?: number | undefined;
|
|
@@ -787,6 +836,17 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
787
836
|
* @public
|
|
788
837
|
*/
|
|
789
838
|
SourceIdentity?: string | undefined;
|
|
839
|
+
/**
|
|
840
|
+
* The percentage (0-100) of the maximum allowed session token size that the returned session
|
|
841
|
+
* token consumes.
|
|
842
|
+
* @public
|
|
843
|
+
*/
|
|
844
|
+
SessionTokenUtilization?: number | undefined;
|
|
845
|
+
/**
|
|
846
|
+
* The size, in bytes, of the session token returned in the Credentials for this response.
|
|
847
|
+
* @public
|
|
848
|
+
*/
|
|
849
|
+
SessionTokenSize?: number | undefined;
|
|
790
850
|
}
|
|
791
851
|
/**
|
|
792
852
|
* @public
|
|
@@ -841,6 +901,13 @@ export interface AssumeRootRequest {
|
|
|
841
901
|
* @public
|
|
842
902
|
*/
|
|
843
903
|
DurationSeconds?: number | undefined;
|
|
904
|
+
/**
|
|
905
|
+
* The minimum size, in bytes, of the session token that STS issues for the request. STS increases
|
|
906
|
+
* the session token to at least this size, regardless of its actual content. The value must not
|
|
907
|
+
* exceed 4,096 bytes. When set to 0 or not specified, the session token size is unchanged.
|
|
908
|
+
* @public
|
|
909
|
+
*/
|
|
910
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
844
911
|
}
|
|
845
912
|
/**
|
|
846
913
|
* @public
|
|
@@ -869,6 +936,17 @@ export interface AssumeRootResponse {
|
|
|
869
936
|
* @public
|
|
870
937
|
*/
|
|
871
938
|
SourceIdentity?: string | undefined;
|
|
939
|
+
/**
|
|
940
|
+
* The percentage (0-100) of the maximum allowed session token size that the returned session
|
|
941
|
+
* token consumes.
|
|
942
|
+
* @public
|
|
943
|
+
*/
|
|
944
|
+
SessionTokenUtilization?: number | undefined;
|
|
945
|
+
/**
|
|
946
|
+
* The size, in bytes, of the session token returned in the Credentials for this response.
|
|
947
|
+
* @public
|
|
948
|
+
*/
|
|
949
|
+
SessionTokenSize?: number | undefined;
|
|
872
950
|
}
|
|
873
951
|
/**
|
|
874
952
|
* @public
|
|
@@ -969,6 +1047,8 @@ export interface GetDelegatedAccessTokenResponse {
|
|
|
969
1047
|
* <p>The percentage of the maximum policy size that is used by the session policy. The policy
|
|
970
1048
|
* size is calculated as the sum of all the session policies and permission boundaries
|
|
971
1049
|
* attached to the session. If the packed size exceeds 100%, the request fails.</p>
|
|
1050
|
+
*
|
|
1051
|
+
* @deprecated (since 2026-06-17) Deprecated. This field is not populated for GetDelegatedAccessToken.
|
|
972
1052
|
* @public
|
|
973
1053
|
*/
|
|
974
1054
|
PackedPolicySize?: number | undefined;
|
|
@@ -1097,6 +1177,13 @@ export interface GetFederationTokenRequest {
|
|
|
1097
1177
|
* @public
|
|
1098
1178
|
*/
|
|
1099
1179
|
Tags?: Tag[] | undefined;
|
|
1180
|
+
/**
|
|
1181
|
+
* The minimum size, in bytes, of the session token that STS issues for the request. STS increases
|
|
1182
|
+
* the session token to at least this size, regardless of its actual content. The value must not
|
|
1183
|
+
* exceed 4,096 bytes. When set to 0 or not specified, the session token size is unchanged.
|
|
1184
|
+
* @public
|
|
1185
|
+
*/
|
|
1186
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
1100
1187
|
}
|
|
1101
1188
|
/**
|
|
1102
1189
|
* <p>Identifiers for the federated user that is associated with the credentials.</p>
|
|
@@ -1145,9 +1232,22 @@ export interface GetFederationTokenResponse {
|
|
|
1145
1232
|
* <p>A percentage value that indicates the packed size of the session policies and session
|
|
1146
1233
|
* tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
|
|
1147
1234
|
* which means the policies and tags exceeded the allowed space.</p>
|
|
1235
|
+
*
|
|
1236
|
+
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
1148
1237
|
* @public
|
|
1149
1238
|
*/
|
|
1150
1239
|
PackedPolicySize?: number | undefined;
|
|
1240
|
+
/**
|
|
1241
|
+
* The percentage (0-100) of the maximum allowed session token size that the returned session
|
|
1242
|
+
* token consumes.
|
|
1243
|
+
* @public
|
|
1244
|
+
*/
|
|
1245
|
+
SessionTokenUtilization?: number | undefined;
|
|
1246
|
+
/**
|
|
1247
|
+
* The size, in bytes, of the session token returned in the Credentials for this response.
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
SessionTokenSize?: number | undefined;
|
|
1151
1251
|
}
|
|
1152
1252
|
/**
|
|
1153
1253
|
* @public
|
|
@@ -1185,6 +1285,13 @@ export interface GetSessionTokenRequest {
|
|
|
1185
1285
|
* @public
|
|
1186
1286
|
*/
|
|
1187
1287
|
TokenCode?: string | undefined;
|
|
1288
|
+
/**
|
|
1289
|
+
* The minimum size, in bytes, of the session token that STS issues for the request. STS increases
|
|
1290
|
+
* the session token to at least this size, regardless of its actual content. The value must not
|
|
1291
|
+
* exceed 4,096 bytes. When set to 0 or not specified, the session token size is unchanged.
|
|
1292
|
+
* @public
|
|
1293
|
+
*/
|
|
1294
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
1188
1295
|
}
|
|
1189
1296
|
/**
|
|
1190
1297
|
* <p>Contains the response to a successful <a>GetSessionToken</a> request,
|
|
@@ -1202,6 +1309,17 @@ export interface GetSessionTokenResponse {
|
|
|
1202
1309
|
* @public
|
|
1203
1310
|
*/
|
|
1204
1311
|
Credentials?: Credentials | undefined;
|
|
1312
|
+
/**
|
|
1313
|
+
* The percentage (0-100) of the maximum allowed session token size that the returned session
|
|
1314
|
+
* token consumes.
|
|
1315
|
+
* @public
|
|
1316
|
+
*/
|
|
1317
|
+
SessionTokenUtilization?: number | undefined;
|
|
1318
|
+
/**
|
|
1319
|
+
* The size, in bytes, of the session token returned in the Credentials for this response.
|
|
1320
|
+
* @public
|
|
1321
|
+
*/
|
|
1322
|
+
SessionTokenSize?: number | undefined;
|
|
1205
1323
|
}
|
|
1206
1324
|
/**
|
|
1207
1325
|
* @public
|
|
@@ -26,6 +26,7 @@ export interface AssumeRoleRequest {
|
|
|
26
26
|
TokenCode?: string | undefined;
|
|
27
27
|
SourceIdentity?: string | undefined;
|
|
28
28
|
ProvidedContexts?: ProvidedContext[] | undefined;
|
|
29
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
29
30
|
}
|
|
30
31
|
export interface Credentials {
|
|
31
32
|
AccessKeyId: string | undefined;
|
|
@@ -38,6 +39,8 @@ export interface AssumeRoleResponse {
|
|
|
38
39
|
AssumedRoleUser?: AssumedRoleUser | undefined;
|
|
39
40
|
PackedPolicySize?: number | undefined;
|
|
40
41
|
SourceIdentity?: string | undefined;
|
|
42
|
+
SessionTokenUtilization?: number | undefined;
|
|
43
|
+
SessionTokenSize?: number | undefined;
|
|
41
44
|
}
|
|
42
45
|
export interface AssumeRoleWithSAMLRequest {
|
|
43
46
|
RoleArn: string | undefined;
|
|
@@ -46,6 +49,7 @@ export interface AssumeRoleWithSAMLRequest {
|
|
|
46
49
|
PolicyArns?: PolicyDescriptorType[] | undefined;
|
|
47
50
|
Policy?: string | undefined;
|
|
48
51
|
DurationSeconds?: number | undefined;
|
|
52
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
49
53
|
}
|
|
50
54
|
export interface AssumeRoleWithSAMLResponse {
|
|
51
55
|
Credentials?: Credentials | undefined;
|
|
@@ -57,6 +61,8 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
57
61
|
Audience?: string | undefined;
|
|
58
62
|
NameQualifier?: string | undefined;
|
|
59
63
|
SourceIdentity?: string | undefined;
|
|
64
|
+
SessionTokenUtilization?: number | undefined;
|
|
65
|
+
SessionTokenSize?: number | undefined;
|
|
60
66
|
}
|
|
61
67
|
export interface AssumeRoleWithWebIdentityRequest {
|
|
62
68
|
RoleArn: string | undefined;
|
|
@@ -66,6 +72,7 @@ export interface AssumeRoleWithWebIdentityRequest {
|
|
|
66
72
|
PolicyArns?: PolicyDescriptorType[] | undefined;
|
|
67
73
|
Policy?: string | undefined;
|
|
68
74
|
DurationSeconds?: number | undefined;
|
|
75
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
69
76
|
}
|
|
70
77
|
export interface AssumeRoleWithWebIdentityResponse {
|
|
71
78
|
Credentials?: Credentials | undefined;
|
|
@@ -75,15 +82,20 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
75
82
|
Provider?: string | undefined;
|
|
76
83
|
Audience?: string | undefined;
|
|
77
84
|
SourceIdentity?: string | undefined;
|
|
85
|
+
SessionTokenUtilization?: number | undefined;
|
|
86
|
+
SessionTokenSize?: number | undefined;
|
|
78
87
|
}
|
|
79
88
|
export interface AssumeRootRequest {
|
|
80
89
|
TargetPrincipal: string | undefined;
|
|
81
90
|
TaskPolicyArn: PolicyDescriptorType | undefined;
|
|
82
91
|
DurationSeconds?: number | undefined;
|
|
92
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
83
93
|
}
|
|
84
94
|
export interface AssumeRootResponse {
|
|
85
95
|
Credentials?: Credentials | undefined;
|
|
86
96
|
SourceIdentity?: string | undefined;
|
|
97
|
+
SessionTokenUtilization?: number | undefined;
|
|
98
|
+
SessionTokenSize?: number | undefined;
|
|
87
99
|
}
|
|
88
100
|
export interface DecodeAuthorizationMessageRequest {
|
|
89
101
|
EncodedMessage: string | undefined;
|
|
@@ -117,6 +129,7 @@ export interface GetFederationTokenRequest {
|
|
|
117
129
|
PolicyArns?: PolicyDescriptorType[] | undefined;
|
|
118
130
|
DurationSeconds?: number | undefined;
|
|
119
131
|
Tags?: Tag[] | undefined;
|
|
132
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
120
133
|
}
|
|
121
134
|
export interface FederatedUser {
|
|
122
135
|
FederatedUserId: string | undefined;
|
|
@@ -126,14 +139,19 @@ export interface GetFederationTokenResponse {
|
|
|
126
139
|
Credentials?: Credentials | undefined;
|
|
127
140
|
FederatedUser?: FederatedUser | undefined;
|
|
128
141
|
PackedPolicySize?: number | undefined;
|
|
142
|
+
SessionTokenUtilization?: number | undefined;
|
|
143
|
+
SessionTokenSize?: number | undefined;
|
|
129
144
|
}
|
|
130
145
|
export interface GetSessionTokenRequest {
|
|
131
146
|
DurationSeconds?: number | undefined;
|
|
132
147
|
SerialNumber?: string | undefined;
|
|
133
148
|
TokenCode?: string | undefined;
|
|
149
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
134
150
|
}
|
|
135
151
|
export interface GetSessionTokenResponse {
|
|
136
152
|
Credentials?: Credentials | undefined;
|
|
153
|
+
SessionTokenUtilization?: number | undefined;
|
|
154
|
+
SessionTokenSize?: number | undefined;
|
|
137
155
|
}
|
|
138
156
|
export interface GetWebIdentityTokenRequest {
|
|
139
157
|
Audience: string[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1132.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",
|
|
6
6
|
"license": "Apache-2.0",
|