@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
|
@@ -29,6 +29,7 @@ const _EI = "ExternalId";
|
|
|
29
29
|
const _EM = "EncodedMessage";
|
|
30
30
|
const _ETE = "ExpiredTokenException";
|
|
31
31
|
const _ETITE = "ExpiredTradeInTokenException";
|
|
32
|
+
const _FPA = "FederatedProviderArn";
|
|
32
33
|
const _FU = "FederatedUser";
|
|
33
34
|
const _FUI = "FederatedUserId";
|
|
34
35
|
const _GAKI = "GetAccessKeyInfo";
|
|
@@ -43,6 +44,9 @@ const _GDATRe = "GetDelegatedAccessTokenResponse";
|
|
|
43
44
|
const _GFT = "GetFederationToken";
|
|
44
45
|
const _GFTR = "GetFederationTokenRequest";
|
|
45
46
|
const _GFTRe = "GetFederationTokenResponse";
|
|
47
|
+
const _GSC = "GetScopedCredentials";
|
|
48
|
+
const _GSCR = "GetScopedCredentialsRequest";
|
|
49
|
+
const _GSCRe = "GetScopedCredentialsResponse";
|
|
46
50
|
const _GST = "GetSessionToken";
|
|
47
51
|
const _GSTR = "GetSessionTokenRequest";
|
|
48
52
|
const _GSTRe = "GetSessionTokenResponse";
|
|
@@ -51,15 +55,20 @@ const _GWITR = "GetWebIdentityTokenRequest";
|
|
|
51
55
|
const _GWITRe = "GetWebIdentityTokenResponse";
|
|
52
56
|
const _I = "Issuer";
|
|
53
57
|
const _IAME = "InvalidAuthorizationMessageException";
|
|
58
|
+
const _ICAE = "InvalidContextAssertionException";
|
|
54
59
|
const _IDPCEE = "IDPCommunicationErrorException";
|
|
55
60
|
const _IDPRCE = "IDPRejectedClaimException";
|
|
56
61
|
const _IITE = "InvalidIdentityTokenException";
|
|
62
|
+
const _IP = "IdentityProvider";
|
|
63
|
+
const _ISCE = "InvalidSubjectCredentialsException";
|
|
64
|
+
const _ISLE = "InsufficientSessionLifetimeException";
|
|
57
65
|
const _JWTPSEE = "JWTPayloadSizeExceededException";
|
|
58
66
|
const _K = "Key";
|
|
59
67
|
const _MPDE = "MalformedPolicyDocumentException";
|
|
60
68
|
const _MSTS = "MinimumSessionTokenSize";
|
|
61
69
|
const _N = "Name";
|
|
62
70
|
const _NQ = "NameQualifier";
|
|
71
|
+
const _OI = "OriginIdentity";
|
|
63
72
|
const _OWIFDE = "OutboundWebIdentityFederationDisabledException";
|
|
64
73
|
const _P = "Policy";
|
|
65
74
|
const _PA = "PolicyArns";
|
|
@@ -84,13 +93,22 @@ const _SAMLAT = "SAMLAssertionType";
|
|
|
84
93
|
const _SDEE = "SessionDurationEscalationException";
|
|
85
94
|
const _SFWIT = "SubjectFromWebIdentityToken";
|
|
86
95
|
const _SI = "SourceIdentity";
|
|
96
|
+
const _SIe = "SessionInfo";
|
|
97
|
+
const _SM = "SubjectMode";
|
|
87
98
|
const _SN = "SerialNumber";
|
|
99
|
+
const _SPC = "ScopedPoliciesCount";
|
|
100
|
+
const _SS = "ScopedSession";
|
|
101
|
+
const _SSD = "ScopedSessionDescription";
|
|
102
|
+
const _SSI = "ScopedSessionId";
|
|
88
103
|
const _ST = "SubjectType";
|
|
89
104
|
const _STS = "SessionTokenSize";
|
|
90
105
|
const _STU = "SessionTokenUtilization";
|
|
91
106
|
const _STe = "SessionToken";
|
|
107
|
+
const _Sc = "Scope";
|
|
92
108
|
const _T = "Tags";
|
|
93
109
|
const _TC = "TokenCode";
|
|
110
|
+
const _TCr = "TransactionContext";
|
|
111
|
+
const _TIPC = "TrustedIdentityPropagationContext";
|
|
94
112
|
const _TIT = "TradeInToken";
|
|
95
113
|
const _TP = "TargetPrincipal";
|
|
96
114
|
const _TPA = "TaskPolicyArn";
|
|
@@ -107,14 +125,19 @@ const _cTT = "clientTokenType";
|
|
|
107
125
|
const _e = "error";
|
|
108
126
|
const _hE = "httpError";
|
|
109
127
|
const _m = "message";
|
|
128
|
+
const _oIIT = "originIdentityIssuerType";
|
|
129
|
+
const _oIST = "originIdentitySubjectType";
|
|
130
|
+
const _oISTT = "originIdentitySubjectTypeType";
|
|
110
131
|
const _pDLT = "policyDescriptorListType";
|
|
111
132
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
|
133
|
+
const _tCIPMT = "transactionContextIdentityProviderMapType";
|
|
134
|
+
const _tCVT = "transactionContextValueType";
|
|
112
135
|
const _tITT = "tradeInTokenType";
|
|
113
136
|
const _tLT = "tagListType";
|
|
114
137
|
const _wITT = "webIdentityTokenType";
|
|
115
138
|
const n0 = "com.amazonaws.sts";
|
|
116
139
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
117
|
-
import { ExpiredTokenException, ExpiredTradeInTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, JWTPayloadSizeExceededException, MalformedPolicyDocumentException, OutboundWebIdentityFederationDisabledException, PackedPolicyTooLargeException, RegionDisabledException, SessionDurationEscalationException, } from "../models/errors";
|
|
140
|
+
import { ExpiredTokenException, ExpiredTradeInTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InsufficientSessionLifetimeException, InvalidAuthorizationMessageException, InvalidContextAssertionException, InvalidIdentityTokenException, InvalidSubjectCredentialsException, JWTPayloadSizeExceededException, MalformedPolicyDocumentException, OutboundWebIdentityFederationDisabledException, PackedPolicyTooLargeException, RegionDisabledException, SessionDurationEscalationException, } from "../models/errors";
|
|
118
141
|
import { STSServiceException } from "../models/STSServiceException";
|
|
119
142
|
const _s_registry = new TypeRegistry(_s);
|
|
120
143
|
export var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
|
@@ -144,18 +167,36 @@ export var IDPRejectedClaimException$ = [-3, n0, _IDPRCE,
|
|
|
144
167
|
[0]
|
|
145
168
|
];
|
|
146
169
|
n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
|
|
170
|
+
export var InsufficientSessionLifetimeException$ = [-3, n0, _ISLE,
|
|
171
|
+
{ [_aQE]: [`InsufficientSessionLifetime`, 400], [_e]: _c, [_hE]: 400 },
|
|
172
|
+
[_m],
|
|
173
|
+
[0]
|
|
174
|
+
];
|
|
175
|
+
n0_registry.registerError(InsufficientSessionLifetimeException$, InsufficientSessionLifetimeException);
|
|
147
176
|
export var InvalidAuthorizationMessageException$ = [-3, n0, _IAME,
|
|
148
177
|
{ [_aQE]: [`InvalidAuthorizationMessageException`, 400], [_e]: _c, [_hE]: 400 },
|
|
149
178
|
[_m],
|
|
150
179
|
[0]
|
|
151
180
|
];
|
|
152
181
|
n0_registry.registerError(InvalidAuthorizationMessageException$, InvalidAuthorizationMessageException);
|
|
182
|
+
export var InvalidContextAssertionException$ = [-3, n0, _ICAE,
|
|
183
|
+
{ [_aQE]: [`InvalidContextAssertion`, 400], [_e]: _c, [_hE]: 400 },
|
|
184
|
+
[_m],
|
|
185
|
+
[0]
|
|
186
|
+
];
|
|
187
|
+
n0_registry.registerError(InvalidContextAssertionException$, InvalidContextAssertionException);
|
|
153
188
|
export var InvalidIdentityTokenException$ = [-3, n0, _IITE,
|
|
154
189
|
{ [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
|
|
155
190
|
[_m],
|
|
156
191
|
[0]
|
|
157
192
|
];
|
|
158
193
|
n0_registry.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
|
|
194
|
+
export var InvalidSubjectCredentialsException$ = [-3, n0, _ISCE,
|
|
195
|
+
{ [_aQE]: [`InvalidSubjectCredentials`, 400], [_e]: _c, [_hE]: 400 },
|
|
196
|
+
[_m],
|
|
197
|
+
[0]
|
|
198
|
+
];
|
|
199
|
+
n0_registry.registerError(InvalidSubjectCredentialsException$, InvalidSubjectCredentialsException);
|
|
159
200
|
export var JWTPayloadSizeExceededException$ = [-3, n0, _JWTPSEE,
|
|
160
201
|
{ [_aQE]: [`JWTPayloadSizeExceededException`, 400], [_e]: _c, [_hE]: 400 },
|
|
161
202
|
[_m],
|
|
@@ -198,8 +239,12 @@ export const errorTypeRegistries = [
|
|
|
198
239
|
];
|
|
199
240
|
var accessKeySecretType = [0, n0, _aKST, 8, 0];
|
|
200
241
|
var clientTokenType = [0, n0, _cTT, 8, 0];
|
|
242
|
+
var originIdentityIssuerType = [0, n0, _oIIT, 8, 0];
|
|
243
|
+
var originIdentitySubjectType = [0, n0, _oIST, 8, 0];
|
|
244
|
+
var originIdentitySubjectTypeType = [0, n0, _oISTT, 8, 0];
|
|
201
245
|
var SAMLAssertionType = [0, n0, _SAMLAT, 8, 0];
|
|
202
246
|
var tradeInTokenType = [0, n0, _tITT, 8, 0];
|
|
247
|
+
var transactionContextValueType = [0, n0, _tCVT, 8, 0];
|
|
203
248
|
var webIdentityTokenType = [0, n0, _wITT, 8, 0];
|
|
204
249
|
export var AssumedRoleUser$ = [3, n0, _ARU,
|
|
205
250
|
0,
|
|
@@ -223,8 +268,8 @@ export var AssumeRoleWithSAMLRequest$ = [3, n0, _ARWSAMLR,
|
|
|
223
268
|
];
|
|
224
269
|
export var AssumeRoleWithSAMLResponse$ = [3, n0, _ARWSAMLRs,
|
|
225
270
|
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]
|
|
271
|
+
[_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI, _STU, _STS, _TIPC],
|
|
272
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
|
|
228
273
|
];
|
|
229
274
|
export var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
230
275
|
0,
|
|
@@ -233,8 +278,8 @@ export var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
|
233
278
|
];
|
|
234
279
|
export var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
235
280
|
0,
|
|
236
|
-
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
|
|
237
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
|
|
281
|
+
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS, _TIPC],
|
|
282
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
|
|
238
283
|
];
|
|
239
284
|
export var AssumeRootRequest$ = [3, n0, _ARRss,
|
|
240
285
|
0,
|
|
@@ -306,6 +351,16 @@ export var GetFederationTokenResponse$ = [3, n0, _GFTRe,
|
|
|
306
351
|
[_C, _FU, _PPS, _STU, _STS],
|
|
307
352
|
[[() => Credentials$, 0], () => FederatedUser$, 1, 1, 1]
|
|
308
353
|
];
|
|
354
|
+
export var GetScopedCredentialsRequest$ = [3, n0, _GSCR,
|
|
355
|
+
0,
|
|
356
|
+
[_P, _DS, _MSTS, _SSD],
|
|
357
|
+
[0, 1, 1, 0]
|
|
358
|
+
];
|
|
359
|
+
export var GetScopedCredentialsResponse$ = [3, n0, _GSCRe,
|
|
360
|
+
0,
|
|
361
|
+
[_C, _SIe, _STU, _STS, _SPC, _SI],
|
|
362
|
+
[[() => Credentials$, 0], () => ScopedSession$, 1, 1, 1, 0]
|
|
363
|
+
];
|
|
309
364
|
export var GetSessionTokenRequest$ = [3, n0, _GSTR,
|
|
310
365
|
0,
|
|
311
366
|
[_DS, _SN, _TC, _MSTS],
|
|
@@ -318,14 +373,19 @@ export var GetSessionTokenResponse$ = [3, n0, _GSTRe,
|
|
|
318
373
|
];
|
|
319
374
|
export var GetWebIdentityTokenRequest$ = [3, n0, _GWITR,
|
|
320
375
|
0,
|
|
321
|
-
[_Au, _SA, _DS, _T],
|
|
322
|
-
[64 | 0, 0, 1, () => tagListType], 2
|
|
376
|
+
[_Au, _SA, _DS, _Sc, _SM, _T],
|
|
377
|
+
[64 | 0, 0, 1, 0, 0, () => tagListType], 2
|
|
323
378
|
];
|
|
324
379
|
export var GetWebIdentityTokenResponse$ = [3, n0, _GWITRe,
|
|
325
380
|
0,
|
|
326
381
|
[_WIT, _E],
|
|
327
382
|
[[() => webIdentityTokenType, 0], 4]
|
|
328
383
|
];
|
|
384
|
+
export var OriginIdentity$ = [3, n0, _OI,
|
|
385
|
+
0,
|
|
386
|
+
[_S, _ST, _I, _FPA],
|
|
387
|
+
[[() => originIdentitySubjectType, 0], [() => originIdentitySubjectTypeType, 0], [() => originIdentityIssuerType, 0], 0]
|
|
388
|
+
];
|
|
329
389
|
export var PolicyDescriptorType$ = [3, n0, _PDT,
|
|
330
390
|
0,
|
|
331
391
|
[_a],
|
|
@@ -336,11 +396,26 @@ export var ProvidedContext$ = [3, n0, _PCr,
|
|
|
336
396
|
[_PAro, _CA],
|
|
337
397
|
[0, 0]
|
|
338
398
|
];
|
|
399
|
+
export var ScopedSession$ = [3, n0, _SS,
|
|
400
|
+
0,
|
|
401
|
+
[_SSI, _A],
|
|
402
|
+
[0, 0], 2
|
|
403
|
+
];
|
|
339
404
|
export var Tag$ = [3, n0, _Ta,
|
|
340
405
|
0,
|
|
341
406
|
[_K, _V],
|
|
342
407
|
[0, 0], 2
|
|
343
408
|
];
|
|
409
|
+
export var TransactionContext$ = [3, n0, _TCr,
|
|
410
|
+
0,
|
|
411
|
+
[_IP],
|
|
412
|
+
[[() => transactionContextIdentityProviderMapType, 0]]
|
|
413
|
+
];
|
|
414
|
+
export var TrustedIdentityPropagationContext$ = [3, n0, _TIPC,
|
|
415
|
+
8,
|
|
416
|
+
[_OI, _TCr],
|
|
417
|
+
[[() => OriginIdentity$, 0], [() => TransactionContext$, 0]]
|
|
418
|
+
];
|
|
344
419
|
var policyDescriptorListType = [1, n0, _pDLT,
|
|
345
420
|
0, () => PolicyDescriptorType$
|
|
346
421
|
];
|
|
@@ -352,6 +427,12 @@ var tagListType = [1, n0, _tLT,
|
|
|
352
427
|
0, () => Tag$
|
|
353
428
|
];
|
|
354
429
|
var webIdentityTokenAudienceListType = 64 | 0;
|
|
430
|
+
var transactionContextIdentityProviderMapType = [2, n0, _tCIPMT,
|
|
431
|
+
0, [0,
|
|
432
|
+
0],
|
|
433
|
+
[() => transactionContextValueType,
|
|
434
|
+
0]
|
|
435
|
+
];
|
|
355
436
|
export var AssumeRole$ = [9, n0, _AR,
|
|
356
437
|
0, () => AssumeRoleRequest$, () => AssumeRoleResponse$
|
|
357
438
|
];
|
|
@@ -379,6 +460,9 @@ export var GetDelegatedAccessToken$ = [9, n0, _GDAT,
|
|
|
379
460
|
export var GetFederationToken$ = [9, n0, _GFT,
|
|
380
461
|
0, () => GetFederationTokenRequest$, () => GetFederationTokenResponse$
|
|
381
462
|
];
|
|
463
|
+
export var GetScopedCredentials$ = [9, n0, _GSC,
|
|
464
|
+
0, () => GetScopedCredentialsRequest$, () => GetScopedCredentialsResponse$
|
|
465
|
+
];
|
|
382
466
|
export var GetSessionToken$ = [9, n0, _GST,
|
|
383
467
|
0, () => GetSessionTokenRequest$, () => GetSessionTokenResponse$
|
|
384
468
|
];
|
package/dist-types/STS.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import { type GetAccessKeyInfoCommandInput, type GetAccessKeyInfoCommandOutput }
|
|
|
8
8
|
import { type GetCallerIdentityCommandInput, type GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
|
|
9
9
|
import { type GetDelegatedAccessTokenCommandInput, type GetDelegatedAccessTokenCommandOutput } from "./commands/GetDelegatedAccessTokenCommand";
|
|
10
10
|
import { type GetFederationTokenCommandInput, type GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
11
|
+
import { type GetScopedCredentialsCommandInput, type GetScopedCredentialsCommandOutput } from "./commands/GetScopedCredentialsCommand";
|
|
11
12
|
import { type GetSessionTokenCommandInput, type GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
12
13
|
import { type GetWebIdentityTokenCommandInput, type GetWebIdentityTokenCommandOutput } from "./commands/GetWebIdentityTokenCommand";
|
|
13
14
|
import { STSClient } from "./STSClient";
|
|
@@ -73,6 +74,13 @@ export interface STS {
|
|
|
73
74
|
getFederationToken(args: GetFederationTokenCommandInput, options?: STSRequestOptions): Promise<GetFederationTokenCommandOutput>;
|
|
74
75
|
getFederationToken(args: GetFederationTokenCommandInput, cb: (err: any, data?: GetFederationTokenCommandOutput) => void): void;
|
|
75
76
|
getFederationToken(args: GetFederationTokenCommandInput, options: STSRequestOptions, cb: (err: any, data?: GetFederationTokenCommandOutput) => void): void;
|
|
77
|
+
/**
|
|
78
|
+
* @see {@link GetScopedCredentialsCommand}
|
|
79
|
+
*/
|
|
80
|
+
getScopedCredentials(): Promise<GetScopedCredentialsCommandOutput>;
|
|
81
|
+
getScopedCredentials(args: GetScopedCredentialsCommandInput, options?: STSRequestOptions): Promise<GetScopedCredentialsCommandOutput>;
|
|
82
|
+
getScopedCredentials(args: GetScopedCredentialsCommandInput, cb: (err: any, data?: GetScopedCredentialsCommandOutput) => void): void;
|
|
83
|
+
getScopedCredentials(args: GetScopedCredentialsCommandInput, options: STSRequestOptions, cb: (err: any, data?: GetScopedCredentialsCommandOutput) => void): void;
|
|
76
84
|
/**
|
|
77
85
|
* @see {@link GetSessionTokenCommand}
|
|
78
86
|
*/
|
|
@@ -15,6 +15,7 @@ import type { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from
|
|
|
15
15
|
import type { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand";
|
|
16
16
|
import type { GetDelegatedAccessTokenCommandInput, GetDelegatedAccessTokenCommandOutput } from "./commands/GetDelegatedAccessTokenCommand";
|
|
17
17
|
import type { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand";
|
|
18
|
+
import type { GetScopedCredentialsCommandInput, GetScopedCredentialsCommandOutput } from "./commands/GetScopedCredentialsCommand";
|
|
18
19
|
import type { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand";
|
|
19
20
|
import type { GetWebIdentityTokenCommandInput, GetWebIdentityTokenCommandOutput } from "./commands/GetWebIdentityTokenCommand";
|
|
20
21
|
import { type ClientInputEndpointParameters, type ClientResolvedEndpointParameters, type EndpointParameters } from "./endpoint/EndpointParameters";
|
|
@@ -23,11 +24,11 @@ export { __Client };
|
|
|
23
24
|
/**
|
|
24
25
|
* @public
|
|
25
26
|
*/
|
|
26
|
-
export type ServiceInputTypes = AssumeRoleCommandInput | AssumeRoleWithSAMLCommandInput | AssumeRoleWithWebIdentityCommandInput | AssumeRootCommandInput | DecodeAuthorizationMessageCommandInput | GetAccessKeyInfoCommandInput | GetCallerIdentityCommandInput | GetDelegatedAccessTokenCommandInput | GetFederationTokenCommandInput | GetSessionTokenCommandInput | GetWebIdentityTokenCommandInput;
|
|
27
|
+
export type ServiceInputTypes = AssumeRoleCommandInput | AssumeRoleWithSAMLCommandInput | AssumeRoleWithWebIdentityCommandInput | AssumeRootCommandInput | DecodeAuthorizationMessageCommandInput | GetAccessKeyInfoCommandInput | GetCallerIdentityCommandInput | GetDelegatedAccessTokenCommandInput | GetFederationTokenCommandInput | GetScopedCredentialsCommandInput | GetSessionTokenCommandInput | GetWebIdentityTokenCommandInput;
|
|
27
28
|
/**
|
|
28
29
|
* @public
|
|
29
30
|
*/
|
|
30
|
-
export type ServiceOutputTypes = AssumeRoleCommandOutput | AssumeRoleWithSAMLCommandOutput | AssumeRoleWithWebIdentityCommandOutput | AssumeRootCommandOutput | DecodeAuthorizationMessageCommandOutput | GetAccessKeyInfoCommandOutput | GetCallerIdentityCommandOutput | GetDelegatedAccessTokenCommandOutput | GetFederationTokenCommandOutput | GetSessionTokenCommandOutput | GetWebIdentityTokenCommandOutput;
|
|
31
|
+
export type ServiceOutputTypes = AssumeRoleCommandOutput | AssumeRoleWithSAMLCommandOutput | AssumeRoleWithWebIdentityCommandOutput | AssumeRootCommandOutput | DecodeAuthorizationMessageCommandOutput | GetAccessKeyInfoCommandOutput | GetCallerIdentityCommandOutput | GetDelegatedAccessTokenCommandOutput | GetFederationTokenCommandOutput | GetScopedCredentialsCommandOutput | GetSessionTokenCommandOutput | GetWebIdentityTokenCommandOutput;
|
|
31
32
|
/**
|
|
32
33
|
* @public
|
|
33
34
|
*/
|
|
@@ -182,19 +182,24 @@ declare const AssumeRoleCommand_base: {
|
|
|
182
182
|
* <p>The web identity token that was passed is expired or is not valid. Get a new identity
|
|
183
183
|
* token from the identity provider and then retry the request.</p>
|
|
184
184
|
*
|
|
185
|
+
* @throws {@link InvalidContextAssertionException} (client fault)
|
|
186
|
+
* <p>The request was rejected because the context assertion that was provided is invalid.
|
|
187
|
+
* This can happen if the context assertion supplied in the <code>ProvidedContexts</code>
|
|
188
|
+
* parameter is malformed, has expired, or does not match a trusted context provider.</p>
|
|
189
|
+
*
|
|
185
190
|
* @throws {@link MalformedPolicyDocumentException} (client fault)
|
|
186
191
|
* <p>The request was rejected because the policy document was malformed. The error message
|
|
187
192
|
* describes the specific error.</p>
|
|
188
193
|
*
|
|
189
194
|
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
|
190
|
-
* <p>The request was rejected because the
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
* tags are to the upper size limit. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
195
|
+
* <p>The request was rejected because the session token exceeded the maximum allowed size.
|
|
196
|
+
* The error message reports the session token size and the maximum allowed size, both in
|
|
197
|
+
* bytes. Session policies and session tags add to the session token size. For more
|
|
198
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
195
199
|
* the <i>IAM User Guide</i>.</p>
|
|
196
|
-
* <p>You
|
|
197
|
-
* session tag limits.
|
|
200
|
+
* <p>You might receive this error even though you meet the individual session policy and
|
|
201
|
+
* session tag limits. Monitor <code>SessionTokenUtilization</code> to track how close the
|
|
202
|
+
* session token is to the maximum allowed size. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity Character Limits</a> in the <i>IAM User
|
|
198
203
|
* Guide</i>.</p>
|
|
199
204
|
*
|
|
200
205
|
* @throws {@link RegionDisabledException} (client fault)
|
|
@@ -107,13 +107,6 @@ declare const AssumeRoleWithSAMLCommand_base: {
|
|
|
107
107
|
* characters and the values can’t exceed 256 characters. For these and additional limits, see
|
|
108
108
|
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
|
|
109
109
|
* and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
|
110
|
-
* <note>
|
|
111
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
112
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
113
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
114
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
115
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
116
|
-
* </note>
|
|
117
110
|
* <p>You can pass a session tag with the same key as a tag that is attached to the role. When
|
|
118
111
|
* you do, session tags override the role's tags with the same key.</p>
|
|
119
112
|
* <p>An administrator must grant you the permissions necessary to pass session tags. The
|
|
@@ -200,6 +193,19 @@ declare const AssumeRoleWithSAMLCommand_base: {
|
|
|
200
193
|
* // SourceIdentity: "STRING_VALUE",
|
|
201
194
|
* // SessionTokenUtilization: Number("int"),
|
|
202
195
|
* // SessionTokenSize: Number("int"),
|
|
196
|
+
* // TrustedIdentityPropagationContext: { // TrustedIdentityPropagationContext
|
|
197
|
+
* // OriginIdentity: { // OriginIdentity
|
|
198
|
+
* // Subject: "STRING_VALUE",
|
|
199
|
+
* // SubjectType: "STRING_VALUE",
|
|
200
|
+
* // Issuer: "STRING_VALUE",
|
|
201
|
+
* // FederatedProviderArn: "STRING_VALUE",
|
|
202
|
+
* // },
|
|
203
|
+
* // TransactionContext: { // TransactionContext
|
|
204
|
+
* // IdentityProvider: { // transactionContextIdentityProviderMapType
|
|
205
|
+
* // "<keys>": "STRING_VALUE",
|
|
206
|
+
* // },
|
|
207
|
+
* // },
|
|
208
|
+
* // },
|
|
203
209
|
* // };
|
|
204
210
|
*
|
|
205
211
|
* ```
|
|
@@ -229,14 +235,14 @@ declare const AssumeRoleWithSAMLCommand_base: {
|
|
|
229
235
|
* describes the specific error.</p>
|
|
230
236
|
*
|
|
231
237
|
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
|
232
|
-
* <p>The request was rejected because the
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
* tags are to the upper size limit. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
238
|
+
* <p>The request was rejected because the session token exceeded the maximum allowed size.
|
|
239
|
+
* The error message reports the session token size and the maximum allowed size, both in
|
|
240
|
+
* bytes. Session policies and session tags add to the session token size. For more
|
|
241
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
237
242
|
* the <i>IAM User Guide</i>.</p>
|
|
238
|
-
* <p>You
|
|
239
|
-
* session tag limits.
|
|
243
|
+
* <p>You might receive this error even though you meet the individual session policy and
|
|
244
|
+
* session tag limits. Monitor <code>SessionTokenUtilization</code> to track how close the
|
|
245
|
+
* session token is to the maximum allowed size. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity Character Limits</a> in the <i>IAM User
|
|
240
246
|
* Guide</i>.</p>
|
|
241
247
|
*
|
|
242
248
|
* @throws {@link RegionDisabledException} (client fault)
|
|
@@ -94,13 +94,6 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
94
94
|
* characters and the values can’t exceed 256 characters. For these and additional limits, see
|
|
95
95
|
* <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length">IAM
|
|
96
96
|
* and STS Character Limits</a> in the <i>IAM User Guide</i>.</p>
|
|
97
|
-
* <note>
|
|
98
|
-
* <p>An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs,
|
|
99
|
-
* and session tags into a packed binary format that has a separate limit. Your request can
|
|
100
|
-
* fail for this limit even if your plaintext meets the other requirements. The
|
|
101
|
-
* <code>PackedPolicySize</code> response element indicates by percentage how close the
|
|
102
|
-
* policies and tags for your request are to the upper size limit.</p>
|
|
103
|
-
* </note>
|
|
104
97
|
* <p>You can pass a session tag with the same key as a tag that is attached to the role. When
|
|
105
98
|
* you do, the session tag overrides the role tag with the same key.</p>
|
|
106
99
|
* <p>An administrator must grant you the permissions necessary to pass session tags. The
|
|
@@ -184,6 +177,19 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
184
177
|
* // SourceIdentity: "STRING_VALUE",
|
|
185
178
|
* // SessionTokenUtilization: Number("int"),
|
|
186
179
|
* // SessionTokenSize: Number("int"),
|
|
180
|
+
* // TrustedIdentityPropagationContext: { // TrustedIdentityPropagationContext
|
|
181
|
+
* // OriginIdentity: { // OriginIdentity
|
|
182
|
+
* // Subject: "STRING_VALUE",
|
|
183
|
+
* // SubjectType: "STRING_VALUE",
|
|
184
|
+
* // Issuer: "STRING_VALUE",
|
|
185
|
+
* // FederatedProviderArn: "STRING_VALUE",
|
|
186
|
+
* // },
|
|
187
|
+
* // TransactionContext: { // TransactionContext
|
|
188
|
+
* // IdentityProvider: { // transactionContextIdentityProviderMapType
|
|
189
|
+
* // "<keys>": "STRING_VALUE",
|
|
190
|
+
* // },
|
|
191
|
+
* // },
|
|
192
|
+
* // },
|
|
187
193
|
* // };
|
|
188
194
|
*
|
|
189
195
|
* ```
|
|
@@ -220,14 +226,14 @@ declare const AssumeRoleWithWebIdentityCommand_base: {
|
|
|
220
226
|
* describes the specific error.</p>
|
|
221
227
|
*
|
|
222
228
|
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
|
223
|
-
* <p>The request was rejected because the
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
* tags are to the upper size limit. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
229
|
+
* <p>The request was rejected because the session token exceeded the maximum allowed size.
|
|
230
|
+
* The error message reports the session token size and the maximum allowed size, both in
|
|
231
|
+
* bytes. Session policies and session tags add to the session token size. For more
|
|
232
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
228
233
|
* the <i>IAM User Guide</i>.</p>
|
|
229
|
-
* <p>You
|
|
230
|
-
* session tag limits.
|
|
234
|
+
* <p>You might receive this error even though you meet the individual session policy and
|
|
235
|
+
* session tag limits. Monitor <code>SessionTokenUtilization</code> to track how close the
|
|
236
|
+
* session token is to the maximum allowed size. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity Character Limits</a> in the <i>IAM User
|
|
231
237
|
* Guide</i>.</p>
|
|
232
238
|
*
|
|
233
239
|
* @throws {@link RegionDisabledException} (client fault)
|
|
@@ -65,14 +65,14 @@ declare const GetDelegatedAccessTokenCommand_base: {
|
|
|
65
65
|
* for credentials. Request a new token and retry the operation.</p>
|
|
66
66
|
*
|
|
67
67
|
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
|
68
|
-
* <p>The request was rejected because the
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
* tags are to the upper size limit. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
68
|
+
* <p>The request was rejected because the session token exceeded the maximum allowed size.
|
|
69
|
+
* The error message reports the session token size and the maximum allowed size, both in
|
|
70
|
+
* bytes. Session policies and session tags add to the session token size. For more
|
|
71
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
73
72
|
* the <i>IAM User Guide</i>.</p>
|
|
74
|
-
* <p>You
|
|
75
|
-
* session tag limits.
|
|
73
|
+
* <p>You might receive this error even though you meet the individual session policy and
|
|
74
|
+
* session tag limits. Monitor <code>SessionTokenUtilization</code> to track how close the
|
|
75
|
+
* session token is to the maximum allowed size. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity Character Limits</a> in the <i>IAM User
|
|
76
76
|
* Guide</i>.</p>
|
|
77
77
|
*
|
|
78
78
|
* @throws {@link RegionDisabledException} (client fault)
|
|
@@ -65,7 +65,8 @@ declare const GetFederationTokenCommand_base: {
|
|
|
65
65
|
* limitation does not apply to console sessions.</p>
|
|
66
66
|
* </li>
|
|
67
67
|
* <li>
|
|
68
|
-
* <p>You cannot call any STS operations except <code>GetCallerIdentity</code
|
|
68
|
+
* <p>You cannot call any STS operations except <code>GetCallerIdentity</code>,
|
|
69
|
+
* <code>GetScopedCredentials</code>, or <code>GetDelegatedAccessToken</code>.</p>
|
|
69
70
|
* </li>
|
|
70
71
|
* </ul>
|
|
71
72
|
* <p>You can use temporary credentials for single sign-on (SSO) to the console.</p>
|
|
@@ -169,14 +170,14 @@ declare const GetFederationTokenCommand_base: {
|
|
|
169
170
|
* describes the specific error.</p>
|
|
170
171
|
*
|
|
171
172
|
* @throws {@link PackedPolicyTooLargeException} (client fault)
|
|
172
|
-
* <p>The request was rejected because the
|
|
173
|
-
*
|
|
174
|
-
*
|
|
175
|
-
*
|
|
176
|
-
* tags are to the upper size limit. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
173
|
+
* <p>The request was rejected because the session token exceeded the maximum allowed size.
|
|
174
|
+
* The error message reports the session token size and the maximum allowed size, both in
|
|
175
|
+
* bytes. Session policies and session tags add to the session token size. For more
|
|
176
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_session-tags.html">Passing Session Tags in STS</a> in
|
|
177
177
|
* the <i>IAM User Guide</i>.</p>
|
|
178
|
-
* <p>You
|
|
179
|
-
* session tag limits.
|
|
178
|
+
* <p>You might receive this error even though you meet the individual session policy and
|
|
179
|
+
* session tag limits. Monitor <code>SessionTokenUtilization</code> to track how close the
|
|
180
|
+
* session token is to the maximum allowed size. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-quotas.html#reference_iam-limits-entity-length">IAM and STS Entity Character Limits</a> in the <i>IAM User
|
|
180
181
|
* Guide</i>.</p>
|
|
181
182
|
*
|
|
182
183
|
* @throws {@link RegionDisabledException} (client fault)
|