@aws-sdk/nested-clients 3.997.45 → 3.997.46
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/dist-cjs/submodules/cognito-identity/index.js +3 -3
- package/dist-cjs/submodules/signin/index.js +3 -3
- package/dist-cjs/submodules/sso/index.js +3 -3
- package/dist-cjs/submodules/sso-oidc/index.js +3 -3
- package/dist-cjs/submodules/sts/index.js +14 -11
- package/dist-es/submodules/cognito-identity/schemas/schemas_0.js +2 -2
- package/dist-es/submodules/signin/schemas/schemas_0.js +2 -2
- package/dist-es/submodules/sso/schemas/schemas_0.js +2 -2
- package/dist-es/submodules/sso-oidc/schemas/schemas_0.js +2 -2
- package/dist-es/submodules/sts/schemas/schemas_0.js +13 -10
- package/dist-types/submodules/cognito-identity/CognitoIdentity.d.ts +11 -5
- package/dist-types/submodules/signin/Signin.d.ts +11 -5
- package/dist-types/submodules/sso/SSO.d.ts +9 -3
- package/dist-types/submodules/sso-oidc/SSOOIDC.d.ts +9 -3
- package/dist-types/submodules/sts/STS.d.ts +33 -8
- package/dist-types/submodules/sts/STSClient.d.ts +22 -3
- package/dist-types/submodules/sts/commands/AssumeRoleCommand.d.ts +3 -0
- package/dist-types/submodules/sts/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -0
- package/dist-types/submodules/sts/index.d.ts +22 -3
- package/dist-types/submodules/sts/models/models_0.d.ts +40 -0
- package/dist-types/ts3.4/submodules/cognito-identity/CognitoIdentity.d.ts +14 -5
- package/dist-types/ts3.4/submodules/signin/Signin.d.ts +11 -5
- package/dist-types/ts3.4/submodules/sso/SSO.d.ts +9 -3
- package/dist-types/ts3.4/submodules/sso-oidc/SSOOIDC.d.ts +9 -3
- package/dist-types/ts3.4/submodules/sts/STS.d.ts +11 -5
- package/dist-types/ts3.4/submodules/sts/models/models_0.d.ts +6 -0
- package/package.json +8 -8
|
@@ -83,7 +83,7 @@ const commonParams = {
|
|
|
83
83
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
var version = "3.997.
|
|
86
|
+
var version = "3.997.45";
|
|
87
87
|
var packageInfo = {
|
|
88
88
|
version: version};
|
|
89
89
|
|
|
@@ -311,10 +311,10 @@ const _m = "message";
|
|
|
311
311
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cognitoidentity";
|
|
312
312
|
const _se = "server";
|
|
313
313
|
const n0 = "com.amazonaws.cognitoidentity";
|
|
314
|
-
const _s_registry = TypeRegistry
|
|
314
|
+
const _s_registry = new TypeRegistry(_s);
|
|
315
315
|
var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
|
|
316
316
|
_s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
|
|
317
|
-
const n0_registry = TypeRegistry
|
|
317
|
+
const n0_registry = new TypeRegistry(n0);
|
|
318
318
|
var ExternalServiceException$ = [-3, n0, _ESE,
|
|
319
319
|
{ [_e]: _c, [_hE]: 400 },
|
|
320
320
|
[_m],
|
|
@@ -78,7 +78,7 @@ const commonParams = {
|
|
|
78
78
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
var version = "3.997.
|
|
81
|
+
var version = "3.997.45";
|
|
82
82
|
var packageInfo = {
|
|
83
83
|
version: version};
|
|
84
84
|
|
|
@@ -302,10 +302,10 @@ const _tO = "tokenOutput";
|
|
|
302
302
|
const _tT = "tokenType";
|
|
303
303
|
const _tt = "token_type";
|
|
304
304
|
const n0 = "com.amazonaws.signin";
|
|
305
|
-
const _s_registry = TypeRegistry
|
|
305
|
+
const _s_registry = new TypeRegistry(_s);
|
|
306
306
|
var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
307
307
|
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
308
|
-
const n0_registry = TypeRegistry
|
|
308
|
+
const n0_registry = new TypeRegistry(n0);
|
|
309
309
|
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
310
310
|
{ [_e]: _c },
|
|
311
311
|
[_e, _m],
|
|
@@ -78,7 +78,7 @@ const commonParams = {
|
|
|
78
78
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
var version = "3.997.
|
|
81
|
+
var version = "3.997.45";
|
|
82
82
|
var packageInfo = {
|
|
83
83
|
version: version};
|
|
84
84
|
|
|
@@ -230,10 +230,10 @@ const _sAK = "secretAccessKey";
|
|
|
230
230
|
const _sT = "sessionToken";
|
|
231
231
|
const _xasbt = "x-amz-sso_bearer_token";
|
|
232
232
|
const n0 = "com.amazonaws.sso";
|
|
233
|
-
const _s_registry = TypeRegistry
|
|
233
|
+
const _s_registry = new TypeRegistry(_s);
|
|
234
234
|
var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
235
235
|
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
236
|
-
const n0_registry = TypeRegistry
|
|
236
|
+
const n0_registry = new TypeRegistry(n0);
|
|
237
237
|
var InvalidRequestException$ = [-3, n0, _IRE,
|
|
238
238
|
{ [_e]: _c, [_hE]: 400 },
|
|
239
239
|
[_m],
|
|
@@ -78,7 +78,7 @@ const commonParams = {
|
|
|
78
78
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
var version = "3.997.
|
|
81
|
+
var version = "3.997.45";
|
|
82
82
|
var packageInfo = {
|
|
83
83
|
version: version};
|
|
84
84
|
|
|
@@ -372,10 +372,10 @@ const _sc = "scope";
|
|
|
372
372
|
const _se = "server";
|
|
373
373
|
const _tT = "tokenType";
|
|
374
374
|
const n0 = "com.amazonaws.ssooidc";
|
|
375
|
-
const _s_registry = TypeRegistry
|
|
375
|
+
const _s_registry = new TypeRegistry(_s);
|
|
376
376
|
var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
377
377
|
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
378
|
-
const n0_registry = TypeRegistry
|
|
378
|
+
const n0_registry = new TypeRegistry(n0);
|
|
379
379
|
var AccessDeniedException$ = [-3, n0, _ADE,
|
|
380
380
|
{ [_e]: _c, [_hE]: 400 },
|
|
381
381
|
[_e, _r, _ed],
|
|
@@ -258,7 +258,7 @@ const commonParams = {
|
|
|
258
258
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
259
259
|
};
|
|
260
260
|
|
|
261
|
-
var version = "3.997.
|
|
261
|
+
var version = "3.997.45";
|
|
262
262
|
var packageInfo = {
|
|
263
263
|
version: version};
|
|
264
264
|
|
|
@@ -377,6 +377,7 @@ const _IDPRCE = "IDPRejectedClaimException";
|
|
|
377
377
|
const _IITE = "InvalidIdentityTokenException";
|
|
378
378
|
const _K = "Key";
|
|
379
379
|
const _MPDE = "MalformedPolicyDocumentException";
|
|
380
|
+
const _MSTS = "MinimumSessionTokenSize";
|
|
380
381
|
const _P = "Policy";
|
|
381
382
|
const _PA = "PolicyArns";
|
|
382
383
|
const _PAr = "ProviderArn";
|
|
@@ -396,6 +397,8 @@ const _SFWIT = "SubjectFromWebIdentityToken";
|
|
|
396
397
|
const _SI = "SourceIdentity";
|
|
397
398
|
const _SN = "SerialNumber";
|
|
398
399
|
const _ST = "SessionToken";
|
|
400
|
+
const _STS = "SessionTokenSize";
|
|
401
|
+
const _STU = "SessionTokenUtilization";
|
|
399
402
|
const _T = "Tags";
|
|
400
403
|
const _TC = "TokenCode";
|
|
401
404
|
const _TTK = "TransitiveTagKeys";
|
|
@@ -414,10 +417,10 @@ const _pDLT = "policyDescriptorListType";
|
|
|
414
417
|
const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
|
|
415
418
|
const _tLT = "tagListType";
|
|
416
419
|
const n0 = "com.amazonaws.sts";
|
|
417
|
-
const _s_registry = TypeRegistry
|
|
420
|
+
const _s_registry = new TypeRegistry(_s);
|
|
418
421
|
var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
|
419
422
|
_s_registry.registerError(STSServiceException$, STSServiceException);
|
|
420
|
-
const n0_registry = TypeRegistry
|
|
423
|
+
const n0_registry = new TypeRegistry(n0);
|
|
421
424
|
var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
422
425
|
{ [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
|
423
426
|
[_m],
|
|
@@ -473,23 +476,23 @@ var AssumedRoleUser$ = [3, n0, _ARU,
|
|
|
473
476
|
];
|
|
474
477
|
var AssumeRoleRequest$ = [3, n0, _ARR,
|
|
475
478
|
0,
|
|
476
|
-
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
|
477
|
-
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
|
|
479
|
+
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC, _MSTS],
|
|
480
|
+
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType, 1], 2
|
|
478
481
|
];
|
|
479
482
|
var AssumeRoleResponse$ = [3, n0, _ARRs,
|
|
480
483
|
0,
|
|
481
|
-
[_C, _ARU, _PPS, _SI],
|
|
482
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
484
|
+
[_C, _ARU, _PPS, _SI, _STU, _STS],
|
|
485
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 1, 1]
|
|
483
486
|
];
|
|
484
487
|
var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
485
488
|
0,
|
|
486
|
-
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
|
487
|
-
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
|
|
489
|
+
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS, _MSTS],
|
|
490
|
+
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1, 1], 3
|
|
488
491
|
];
|
|
489
492
|
var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
490
493
|
0,
|
|
491
|
-
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
|
492
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
494
|
+
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
|
|
495
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
|
|
493
496
|
];
|
|
494
497
|
var Credentials$ = [3, n0, _C,
|
|
495
498
|
0,
|
|
@@ -36,10 +36,10 @@ const n0 = "com.amazonaws.cognitoidentity";
|
|
|
36
36
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
37
37
|
import { CognitoIdentityServiceException } from "../models/CognitoIdentityServiceException";
|
|
38
38
|
import { ExternalServiceException, InternalErrorException, InvalidIdentityPoolConfigurationException, InvalidParameterException, LimitExceededException, NotAuthorizedException, ResourceConflictException, ResourceNotFoundException, TooManyRequestsException, } from "../models/errors";
|
|
39
|
-
const _s_registry = TypeRegistry
|
|
39
|
+
const _s_registry = new TypeRegistry(_s);
|
|
40
40
|
export var CognitoIdentityServiceException$ = [-3, _s, "CognitoIdentityServiceException", 0, [], []];
|
|
41
41
|
_s_registry.registerError(CognitoIdentityServiceException$, CognitoIdentityServiceException);
|
|
42
|
-
const n0_registry = TypeRegistry
|
|
42
|
+
const n0_registry = new TypeRegistry(n0);
|
|
43
43
|
export var ExternalServiceException$ = [-3, n0, _ESE,
|
|
44
44
|
{ [_e]: _c, [_hE]: 400 },
|
|
45
45
|
[_m],
|
|
@@ -45,10 +45,10 @@ const n0 = "com.amazonaws.signin";
|
|
|
45
45
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
46
46
|
import { AccessDeniedException, InternalServerException, TooManyRequestsError, ValidationException, } from "../models/errors";
|
|
47
47
|
import { SigninServiceException } from "../models/SigninServiceException";
|
|
48
|
-
const _s_registry = TypeRegistry
|
|
48
|
+
const _s_registry = new TypeRegistry(_s);
|
|
49
49
|
export var SigninServiceException$ = [-3, _s, "SigninServiceException", 0, [], []];
|
|
50
50
|
_s_registry.registerError(SigninServiceException$, SigninServiceException);
|
|
51
|
-
const n0_registry = TypeRegistry
|
|
51
|
+
const n0_registry = new TypeRegistry(n0);
|
|
52
52
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
53
53
|
{ [_e]: _c },
|
|
54
54
|
[_e, _m],
|
|
@@ -32,10 +32,10 @@ const n0 = "com.amazonaws.sso";
|
|
|
32
32
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
33
33
|
import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/errors";
|
|
34
34
|
import { SSOServiceException } from "../models/SSOServiceException";
|
|
35
|
-
const _s_registry = TypeRegistry
|
|
35
|
+
const _s_registry = new TypeRegistry(_s);
|
|
36
36
|
export var SSOServiceException$ = [-3, _s, "SSOServiceException", 0, [], []];
|
|
37
37
|
_s_registry.registerError(SSOServiceException$, SSOServiceException);
|
|
38
|
-
const n0_registry = TypeRegistry
|
|
38
|
+
const n0_registry = new TypeRegistry(n0);
|
|
39
39
|
export var InvalidRequestException$ = [-3, n0, _IRE,
|
|
40
40
|
{ [_e]: _c, [_hE]: 400 },
|
|
41
41
|
[_m],
|
|
@@ -42,10 +42,10 @@ const n0 = "com.amazonaws.ssooidc";
|
|
|
42
42
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
43
43
|
import { AccessDeniedException, AuthorizationPendingException, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidGrantException, InvalidRequestException, InvalidScopeException, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, } from "../models/errors";
|
|
44
44
|
import { SSOOIDCServiceException } from "../models/SSOOIDCServiceException";
|
|
45
|
-
const _s_registry = TypeRegistry
|
|
45
|
+
const _s_registry = new TypeRegistry(_s);
|
|
46
46
|
export var SSOOIDCServiceException$ = [-3, _s, "SSOOIDCServiceException", 0, [], []];
|
|
47
47
|
_s_registry.registerError(SSOOIDCServiceException$, SSOOIDCServiceException);
|
|
48
|
-
const n0_registry = TypeRegistry
|
|
48
|
+
const n0_registry = new TypeRegistry(n0);
|
|
49
49
|
export var AccessDeniedException$ = [-3, n0, _ADE,
|
|
50
50
|
{ [_e]: _c, [_hE]: 400 },
|
|
51
51
|
[_e, _r, _ed],
|
|
@@ -20,6 +20,7 @@ const _IDPRCE = "IDPRejectedClaimException";
|
|
|
20
20
|
const _IITE = "InvalidIdentityTokenException";
|
|
21
21
|
const _K = "Key";
|
|
22
22
|
const _MPDE = "MalformedPolicyDocumentException";
|
|
23
|
+
const _MSTS = "MinimumSessionTokenSize";
|
|
23
24
|
const _P = "Policy";
|
|
24
25
|
const _PA = "PolicyArns";
|
|
25
26
|
const _PAr = "ProviderArn";
|
|
@@ -39,6 +40,8 @@ const _SFWIT = "SubjectFromWebIdentityToken";
|
|
|
39
40
|
const _SI = "SourceIdentity";
|
|
40
41
|
const _SN = "SerialNumber";
|
|
41
42
|
const _ST = "SessionToken";
|
|
43
|
+
const _STS = "SessionTokenSize";
|
|
44
|
+
const _STU = "SessionTokenUtilization";
|
|
42
45
|
const _T = "Tags";
|
|
43
46
|
const _TC = "TokenCode";
|
|
44
47
|
const _TTK = "TransitiveTagKeys";
|
|
@@ -60,10 +63,10 @@ const n0 = "com.amazonaws.sts";
|
|
|
60
63
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
61
64
|
import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/errors";
|
|
62
65
|
import { STSServiceException } from "../models/STSServiceException";
|
|
63
|
-
const _s_registry = TypeRegistry
|
|
66
|
+
const _s_registry = new TypeRegistry(_s);
|
|
64
67
|
export var STSServiceException$ = [-3, _s, "STSServiceException", 0, [], []];
|
|
65
68
|
_s_registry.registerError(STSServiceException$, STSServiceException);
|
|
66
|
-
const n0_registry = TypeRegistry
|
|
69
|
+
const n0_registry = new TypeRegistry(n0);
|
|
67
70
|
export var ExpiredTokenException$ = [-3, n0, _ETE,
|
|
68
71
|
{ [_aQE]: [`ExpiredTokenException`, 400], [_e]: _c, [_hE]: 400 },
|
|
69
72
|
[_m],
|
|
@@ -119,23 +122,23 @@ export var AssumedRoleUser$ = [3, n0, _ARU,
|
|
|
119
122
|
];
|
|
120
123
|
export var AssumeRoleRequest$ = [3, n0, _ARR,
|
|
121
124
|
0,
|
|
122
|
-
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC],
|
|
123
|
-
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType], 2
|
|
125
|
+
[_RA, _RSN, _PA, _P, _DS, _T, _TTK, _EI, _SN, _TC, _SI, _PC, _MSTS],
|
|
126
|
+
[0, 0, () => policyDescriptorListType, 0, 1, () => tagListType, 64 | 0, 0, 0, 0, 0, () => ProvidedContextsListType, 1], 2
|
|
124
127
|
];
|
|
125
128
|
export var AssumeRoleResponse$ = [3, n0, _ARRs,
|
|
126
129
|
0,
|
|
127
|
-
[_C, _ARU, _PPS, _SI],
|
|
128
|
-
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0]
|
|
130
|
+
[_C, _ARU, _PPS, _SI, _STU, _STS],
|
|
131
|
+
[[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 1, 1]
|
|
129
132
|
];
|
|
130
133
|
export var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
|
|
131
134
|
0,
|
|
132
|
-
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS],
|
|
133
|
-
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1], 3
|
|
135
|
+
[_RA, _RSN, _WIT, _PI, _PA, _P, _DS, _MSTS],
|
|
136
|
+
[0, 0, [() => clientTokenType, 0], 0, () => policyDescriptorListType, 0, 1, 1], 3
|
|
134
137
|
];
|
|
135
138
|
export var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
|
|
136
139
|
0,
|
|
137
|
-
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI],
|
|
138
|
-
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0]
|
|
140
|
+
[_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
|
|
141
|
+
[[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
|
|
139
142
|
];
|
|
140
143
|
export var Credentials$ = [3, n0, _C,
|
|
141
144
|
0,
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
2
|
import { CognitoIdentityClient } from "./CognitoIdentityClient";
|
|
3
3
|
import { type GetCredentialsForIdentityCommandInput, type GetCredentialsForIdentityCommandOutput } from "./commands/GetCredentialsForIdentityCommand";
|
|
4
4
|
import { type GetIdCommandInput, type GetIdCommandOutput } from "./commands/GetIdCommand";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface CognitoIdentityRequestOptions extends __HttpHandlerOptions {
|
|
9
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
10
|
+
}
|
|
5
11
|
export interface CognitoIdentity {
|
|
6
12
|
/**
|
|
7
13
|
* @see {@link GetCredentialsForIdentityCommand}
|
|
8
14
|
*/
|
|
9
|
-
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options?:
|
|
15
|
+
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options?: CognitoIdentityRequestOptions): Promise<GetCredentialsForIdentityCommandOutput>;
|
|
10
16
|
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
|
|
11
|
-
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options:
|
|
17
|
+
getCredentialsForIdentity(args: GetCredentialsForIdentityCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void): void;
|
|
12
18
|
/**
|
|
13
19
|
* @see {@link GetIdCommand}
|
|
14
20
|
*/
|
|
15
|
-
getId(args: GetIdCommandInput, options?:
|
|
21
|
+
getId(args: GetIdCommandInput, options?: CognitoIdentityRequestOptions): Promise<GetIdCommandOutput>;
|
|
16
22
|
getId(args: GetIdCommandInput, cb: (err: any, data?: GetIdCommandOutput) => void): void;
|
|
17
|
-
getId(args: GetIdCommandInput, options:
|
|
23
|
+
getId(args: GetIdCommandInput, options: CognitoIdentityRequestOptions, cb: (err: any, data?: GetIdCommandOutput) => void): void;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
20
26
|
* <fullname>Amazon Cognito Federated Identities</fullname>
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
2
|
import { type CreateOAuth2TokenCommandInput, type CreateOAuth2TokenCommandOutput } from "./commands/CreateOAuth2TokenCommand";
|
|
3
3
|
import { type CreateOAuth2TokenWithIAMCommandInput, type CreateOAuth2TokenWithIAMCommandOutput } from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
4
4
|
import { SigninClient } from "./SigninClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface SigninRequestOptions extends __HttpHandlerOptions {
|
|
9
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
10
|
+
}
|
|
5
11
|
export interface Signin {
|
|
6
12
|
/**
|
|
7
13
|
* @see {@link CreateOAuth2TokenCommand}
|
|
8
14
|
*/
|
|
9
|
-
createOAuth2Token(args: CreateOAuth2TokenCommandInput, options?:
|
|
15
|
+
createOAuth2Token(args: CreateOAuth2TokenCommandInput, options?: SigninRequestOptions): Promise<CreateOAuth2TokenCommandOutput>;
|
|
10
16
|
createOAuth2Token(args: CreateOAuth2TokenCommandInput, cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void): void;
|
|
11
|
-
createOAuth2Token(args: CreateOAuth2TokenCommandInput, options:
|
|
17
|
+
createOAuth2Token(args: CreateOAuth2TokenCommandInput, options: SigninRequestOptions, cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void): void;
|
|
12
18
|
/**
|
|
13
19
|
* @see {@link CreateOAuth2TokenWithIAMCommand}
|
|
14
20
|
*/
|
|
15
|
-
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options?:
|
|
21
|
+
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options?: SigninRequestOptions): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
|
|
16
22
|
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
17
|
-
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options:
|
|
23
|
+
createOAuth2TokenWithIAM(args: CreateOAuth2TokenWithIAMCommandInput, options: SigninRequestOptions, cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void): void;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
20
26
|
* AWS Sign-In manages authentication for AWS services. This service provides
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
2
|
import { type GetRoleCredentialsCommandInput, type GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand";
|
|
3
3
|
import { SSOClient } from "./SSOClient";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface SSORequestOptions extends __HttpHandlerOptions {
|
|
8
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
9
|
+
}
|
|
4
10
|
export interface SSO {
|
|
5
11
|
/**
|
|
6
12
|
* @see {@link GetRoleCredentialsCommand}
|
|
7
13
|
*/
|
|
8
|
-
getRoleCredentials(args: GetRoleCredentialsCommandInput, options?:
|
|
14
|
+
getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: SSORequestOptions): Promise<GetRoleCredentialsCommandOutput>;
|
|
9
15
|
getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
|
|
10
|
-
getRoleCredentials(args: GetRoleCredentialsCommandInput, options:
|
|
16
|
+
getRoleCredentials(args: GetRoleCredentialsCommandInput, options: SSORequestOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void;
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
13
19
|
* <p>AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
2
|
import { type CreateTokenCommandInput, type CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
|
|
3
3
|
import { SSOOIDCClient } from "./SSOOIDCClient";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface SSOOIDCRequestOptions extends __HttpHandlerOptions {
|
|
8
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
9
|
+
}
|
|
4
10
|
export interface SSOOIDC {
|
|
5
11
|
/**
|
|
6
12
|
* @see {@link CreateTokenCommand}
|
|
7
13
|
*/
|
|
8
|
-
createToken(args: CreateTokenCommandInput, options?:
|
|
14
|
+
createToken(args: CreateTokenCommandInput, options?: SSOOIDCRequestOptions): Promise<CreateTokenCommandOutput>;
|
|
9
15
|
createToken(args: CreateTokenCommandInput, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
|
|
10
|
-
createToken(args: CreateTokenCommandInput, options:
|
|
16
|
+
createToken(args: CreateTokenCommandInput, options: SSOOIDCRequestOptions, cb: (err: any, data?: CreateTokenCommandOutput) => void): void;
|
|
11
17
|
}
|
|
12
18
|
/**
|
|
13
19
|
* <p>IAM Identity Center OpenID Connect (OIDC) is a web service that enables a client (such as CLI or a
|
|
@@ -1,26 +1,51 @@
|
|
|
1
|
-
import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
1
|
+
import type { HttpHandlerOptions as __HttpHandlerOptions, MetricsRecorder as __MetricsRecorder } from "@smithy/types";
|
|
2
2
|
import { type AssumeRoleCommandInput, type AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
3
3
|
import { type AssumeRoleWithWebIdentityCommandInput, type AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
4
4
|
import { STSClient } from "./STSClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface STSRequestOptions extends __HttpHandlerOptions {
|
|
9
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
10
|
+
}
|
|
5
11
|
export interface STS {
|
|
6
12
|
/**
|
|
7
13
|
* @see {@link AssumeRoleCommand}
|
|
8
14
|
*/
|
|
9
|
-
assumeRole(args: AssumeRoleCommandInput, options?:
|
|
15
|
+
assumeRole(args: AssumeRoleCommandInput, options?: STSRequestOptions): Promise<AssumeRoleCommandOutput>;
|
|
10
16
|
assumeRole(args: AssumeRoleCommandInput, cb: (err: any, data?: AssumeRoleCommandOutput) => void): void;
|
|
11
|
-
assumeRole(args: AssumeRoleCommandInput, options:
|
|
17
|
+
assumeRole(args: AssumeRoleCommandInput, options: STSRequestOptions, cb: (err: any, data?: AssumeRoleCommandOutput) => void): void;
|
|
12
18
|
/**
|
|
13
19
|
* @see {@link AssumeRoleWithWebIdentityCommand}
|
|
14
20
|
*/
|
|
15
|
-
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?:
|
|
21
|
+
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?: STSRequestOptions): Promise<AssumeRoleWithWebIdentityCommandOutput>;
|
|
16
22
|
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void): void;
|
|
17
|
-
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options:
|
|
23
|
+
assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options: STSRequestOptions, cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void): void;
|
|
18
24
|
}
|
|
19
25
|
/**
|
|
20
26
|
* <fullname>Security Token Service</fullname>
|
|
21
|
-
* <p>Security Token Service (STS) enables you to request temporary,
|
|
22
|
-
*
|
|
23
|
-
*
|
|
27
|
+
* <p>Amazon Web Services provides Security Token Service (STS) as a web service that enables you to request temporary,
|
|
28
|
+
* limited-privilege credentials for users. This guide describes the STS API. For more
|
|
29
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>
|
|
30
|
+
* in the <i>IAM User Guide</i>.</p>
|
|
31
|
+
* <note>
|
|
32
|
+
* <p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
|
|
33
|
+
* libraries and sample code for various programming languages and platforms such as Java,
|
|
34
|
+
* Ruby, .NET, iOS, Android, and others. The SDKs provide a convenient way to create
|
|
35
|
+
* programmatic access to STS. For example, the SDKs can cryptographically sign requests,
|
|
36
|
+
* manage errors, and retry requests automatically. For information about the Amazon Web Services SDKs, see
|
|
37
|
+
* <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
|
|
38
|
+
* </note>
|
|
39
|
+
* <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
|
|
40
|
+
* API Requests</a> in the <i>Amazon Web Services General Reference</i>. For general information
|
|
41
|
+
* about the Query API, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html">Making Query Requests</a> in the
|
|
42
|
+
* <i>IAM User Guide</i>. For information about using security tokens with
|
|
43
|
+
* 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
|
|
44
|
+
* That Work with IAM</a> in the <i>IAM User Guide</i>.</p>
|
|
45
|
+
* <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
|
|
46
|
+
* endpoints</a> in the <i>IAM User Guide</i>. For information about
|
|
47
|
+
* logging STS API calls, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">Logging IAM and STS API calls
|
|
48
|
+
* with CloudTrail</a> in the <i>IAM User Guide</i>.</p>
|
|
24
49
|
* @public
|
|
25
50
|
*/
|
|
26
51
|
export declare class STS extends STSClient implements STS {
|
|
@@ -171,9 +171,28 @@ export interface STSClientResolvedConfig extends STSClientResolvedConfigType {
|
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* <fullname>Security Token Service</fullname>
|
|
174
|
-
* <p>Security Token Service (STS) enables you to request temporary,
|
|
175
|
-
*
|
|
176
|
-
*
|
|
174
|
+
* <p>Amazon Web Services provides Security Token Service (STS) as a web service that enables you to request temporary,
|
|
175
|
+
* limited-privilege credentials for users. This guide describes the STS API. For more
|
|
176
|
+
* information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp.html">Temporary Security Credentials</a>
|
|
177
|
+
* in the <i>IAM User Guide</i>.</p>
|
|
178
|
+
* <note>
|
|
179
|
+
* <p>As an alternative to using the API, you can use one of the Amazon Web Services SDKs, which consist of
|
|
180
|
+
* libraries and sample code for various programming languages and platforms such as Java,
|
|
181
|
+
* Ruby, .NET, iOS, Android, and others. The SDKs provide a convenient way to create
|
|
182
|
+
* programmatic access to STS. For example, the SDKs can cryptographically sign requests,
|
|
183
|
+
* manage errors, and retry requests automatically. For information about the Amazon Web Services SDKs, see
|
|
184
|
+
* <a href="http://aws.amazon.com/tools/">Tools to Build on Amazon Web Services</a>.</p>
|
|
185
|
+
* </note>
|
|
186
|
+
* <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
|
|
187
|
+
* API Requests</a> in the <i>Amazon Web Services General Reference</i>. For general information
|
|
188
|
+
* about the Query API, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/IAM_UsingQueryAPI.html">Making Query Requests</a> in the
|
|
189
|
+
* <i>IAM User Guide</i>. For information about using security tokens with
|
|
190
|
+
* 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
|
|
191
|
+
* That Work with IAM</a> in the <i>IAM User Guide</i>.</p>
|
|
192
|
+
* <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
|
|
193
|
+
* endpoints</a> in the <i>IAM User Guide</i>. For information about
|
|
194
|
+
* logging STS API calls, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/cloudtrail-integration.html">Logging IAM and STS API calls
|
|
195
|
+
* with CloudTrail</a> in the <i>IAM User Guide</i>.</p>
|
|
177
196
|
* @public
|
|
178
197
|
*/
|
|
179
198
|
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
|
* ```
|
|
@@ -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
|
* ```
|
|
@@ -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
|
|
@@ -506,6 +526,13 @@ export interface AssumeRoleWithWebIdentityRequest {
|
|
|
506
526
|
* @public
|
|
507
527
|
*/
|
|
508
528
|
DurationSeconds?: number | undefined;
|
|
529
|
+
/**
|
|
530
|
+
* The minimum size, in bytes, of the session token that STS issues for the request. STS increases
|
|
531
|
+
* the session token to at least this size, regardless of its actual content. The value must not
|
|
532
|
+
* exceed 4,096 bytes. When set to 0 or not specified, the session token size is unchanged.
|
|
533
|
+
* @public
|
|
534
|
+
*/
|
|
535
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
509
536
|
}
|
|
510
537
|
/**
|
|
511
538
|
* <p>Contains the response to a successful <a>AssumeRoleWithWebIdentity</a>
|
|
@@ -546,6 +573,8 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
546
573
|
* <p>A percentage value that indicates the packed size of the session policies and session
|
|
547
574
|
* tags combined passed in the request. The request fails if the packed size is greater than 100 percent,
|
|
548
575
|
* which means the policies and tags exceeded the allowed space.</p>
|
|
576
|
+
*
|
|
577
|
+
* @deprecated (since 2026-06-17) Deprecated. Replaced by SessionTokenUtilization.
|
|
549
578
|
* @public
|
|
550
579
|
*/
|
|
551
580
|
PackedPolicySize?: number | undefined;
|
|
@@ -585,4 +614,15 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
585
614
|
* @public
|
|
586
615
|
*/
|
|
587
616
|
SourceIdentity?: string | undefined;
|
|
617
|
+
/**
|
|
618
|
+
* The percentage (0-100) of the maximum allowed session token size that the returned session
|
|
619
|
+
* token consumes.
|
|
620
|
+
* @public
|
|
621
|
+
*/
|
|
622
|
+
SessionTokenUtilization?: number | undefined;
|
|
623
|
+
/**
|
|
624
|
+
* The size, in bytes, of the session token returned in the Credentials for this response.
|
|
625
|
+
* @public
|
|
626
|
+
*/
|
|
627
|
+
SessionTokenSize?: number | undefined;
|
|
588
628
|
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
4
|
+
} from "@smithy/types";
|
|
2
5
|
import { CognitoIdentityClient } from "./CognitoIdentityClient";
|
|
3
6
|
import {
|
|
4
7
|
GetCredentialsForIdentityCommandInput,
|
|
5
8
|
GetCredentialsForIdentityCommandOutput,
|
|
6
9
|
} from "./commands/GetCredentialsForIdentityCommand";
|
|
7
10
|
import { GetIdCommandInput, GetIdCommandOutput } from "./commands/GetIdCommand";
|
|
11
|
+
export interface CognitoIdentityRequestOptions extends __HttpHandlerOptions {
|
|
12
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
13
|
+
}
|
|
8
14
|
export interface CognitoIdentity {
|
|
9
15
|
getCredentialsForIdentity(
|
|
10
16
|
args: GetCredentialsForIdentityCommandInput,
|
|
11
|
-
options?:
|
|
17
|
+
options?: CognitoIdentityRequestOptions,
|
|
12
18
|
): Promise<GetCredentialsForIdentityCommandOutput>;
|
|
13
19
|
getCredentialsForIdentity(
|
|
14
20
|
args: GetCredentialsForIdentityCommandInput,
|
|
@@ -16,14 +22,17 @@ export interface CognitoIdentity {
|
|
|
16
22
|
): void;
|
|
17
23
|
getCredentialsForIdentity(
|
|
18
24
|
args: GetCredentialsForIdentityCommandInput,
|
|
19
|
-
options:
|
|
25
|
+
options: CognitoIdentityRequestOptions,
|
|
20
26
|
cb: (err: any, data?: GetCredentialsForIdentityCommandOutput) => void,
|
|
21
27
|
): void;
|
|
22
|
-
getId(
|
|
28
|
+
getId(
|
|
29
|
+
args: GetIdCommandInput,
|
|
30
|
+
options?: CognitoIdentityRequestOptions,
|
|
31
|
+
): Promise<GetIdCommandOutput>;
|
|
23
32
|
getId(args: GetIdCommandInput, cb: (err: any, data?: GetIdCommandOutput) => void): void;
|
|
24
33
|
getId(
|
|
25
34
|
args: GetIdCommandInput,
|
|
26
|
-
options:
|
|
35
|
+
options: CognitoIdentityRequestOptions,
|
|
27
36
|
cb: (err: any, data?: GetIdCommandOutput) => void,
|
|
28
37
|
): void;
|
|
29
38
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
4
|
+
} from "@smithy/types";
|
|
2
5
|
import {
|
|
3
6
|
CreateOAuth2TokenCommandInput,
|
|
4
7
|
CreateOAuth2TokenCommandOutput,
|
|
@@ -8,10 +11,13 @@ import {
|
|
|
8
11
|
CreateOAuth2TokenWithIAMCommandOutput,
|
|
9
12
|
} from "./commands/CreateOAuth2TokenWithIAMCommand";
|
|
10
13
|
import { SigninClient } from "./SigninClient";
|
|
14
|
+
export interface SigninRequestOptions extends __HttpHandlerOptions {
|
|
15
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
16
|
+
}
|
|
11
17
|
export interface Signin {
|
|
12
18
|
createOAuth2Token(
|
|
13
19
|
args: CreateOAuth2TokenCommandInput,
|
|
14
|
-
options?:
|
|
20
|
+
options?: SigninRequestOptions,
|
|
15
21
|
): Promise<CreateOAuth2TokenCommandOutput>;
|
|
16
22
|
createOAuth2Token(
|
|
17
23
|
args: CreateOAuth2TokenCommandInput,
|
|
@@ -19,12 +25,12 @@ export interface Signin {
|
|
|
19
25
|
): void;
|
|
20
26
|
createOAuth2Token(
|
|
21
27
|
args: CreateOAuth2TokenCommandInput,
|
|
22
|
-
options:
|
|
28
|
+
options: SigninRequestOptions,
|
|
23
29
|
cb: (err: any, data?: CreateOAuth2TokenCommandOutput) => void,
|
|
24
30
|
): void;
|
|
25
31
|
createOAuth2TokenWithIAM(
|
|
26
32
|
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
27
|
-
options?:
|
|
33
|
+
options?: SigninRequestOptions,
|
|
28
34
|
): Promise<CreateOAuth2TokenWithIAMCommandOutput>;
|
|
29
35
|
createOAuth2TokenWithIAM(
|
|
30
36
|
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
@@ -32,7 +38,7 @@ export interface Signin {
|
|
|
32
38
|
): void;
|
|
33
39
|
createOAuth2TokenWithIAM(
|
|
34
40
|
args: CreateOAuth2TokenWithIAMCommandInput,
|
|
35
|
-
options:
|
|
41
|
+
options: SigninRequestOptions,
|
|
36
42
|
cb: (err: any, data?: CreateOAuth2TokenWithIAMCommandOutput) => void,
|
|
37
43
|
): void;
|
|
38
44
|
}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
4
|
+
} from "@smithy/types";
|
|
2
5
|
import {
|
|
3
6
|
GetRoleCredentialsCommandInput,
|
|
4
7
|
GetRoleCredentialsCommandOutput,
|
|
5
8
|
} from "./commands/GetRoleCredentialsCommand";
|
|
6
9
|
import { SSOClient } from "./SSOClient";
|
|
10
|
+
export interface SSORequestOptions extends __HttpHandlerOptions {
|
|
11
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
12
|
+
}
|
|
7
13
|
export interface SSO {
|
|
8
14
|
getRoleCredentials(
|
|
9
15
|
args: GetRoleCredentialsCommandInput,
|
|
10
|
-
options?:
|
|
16
|
+
options?: SSORequestOptions,
|
|
11
17
|
): Promise<GetRoleCredentialsCommandOutput>;
|
|
12
18
|
getRoleCredentials(
|
|
13
19
|
args: GetRoleCredentialsCommandInput,
|
|
@@ -15,7 +21,7 @@ export interface SSO {
|
|
|
15
21
|
): void;
|
|
16
22
|
getRoleCredentials(
|
|
17
23
|
args: GetRoleCredentialsCommandInput,
|
|
18
|
-
options:
|
|
24
|
+
options: SSORequestOptions,
|
|
19
25
|
cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void,
|
|
20
26
|
): void;
|
|
21
27
|
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
4
|
+
} from "@smithy/types";
|
|
2
5
|
import { CreateTokenCommandInput, CreateTokenCommandOutput } from "./commands/CreateTokenCommand";
|
|
3
6
|
import { SSOOIDCClient } from "./SSOOIDCClient";
|
|
7
|
+
export interface SSOOIDCRequestOptions extends __HttpHandlerOptions {
|
|
8
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
9
|
+
}
|
|
4
10
|
export interface SSOOIDC {
|
|
5
11
|
createToken(
|
|
6
12
|
args: CreateTokenCommandInput,
|
|
7
|
-
options?:
|
|
13
|
+
options?: SSOOIDCRequestOptions,
|
|
8
14
|
): Promise<CreateTokenCommandOutput>;
|
|
9
15
|
createToken(
|
|
10
16
|
args: CreateTokenCommandInput,
|
|
@@ -12,7 +18,7 @@ export interface SSOOIDC {
|
|
|
12
18
|
): void;
|
|
13
19
|
createToken(
|
|
14
20
|
args: CreateTokenCommandInput,
|
|
15
|
-
options:
|
|
21
|
+
options: SSOOIDCRequestOptions,
|
|
16
22
|
cb: (err: any, data?: CreateTokenCommandOutput) => void,
|
|
17
23
|
): void;
|
|
18
24
|
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
HttpHandlerOptions as __HttpHandlerOptions,
|
|
3
|
+
MetricsRecorder as __MetricsRecorder,
|
|
4
|
+
} from "@smithy/types";
|
|
2
5
|
import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand";
|
|
3
6
|
import {
|
|
4
7
|
AssumeRoleWithWebIdentityCommandInput,
|
|
5
8
|
AssumeRoleWithWebIdentityCommandOutput,
|
|
6
9
|
} from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
7
10
|
import { STSClient } from "./STSClient";
|
|
11
|
+
export interface STSRequestOptions extends __HttpHandlerOptions {
|
|
12
|
+
metricsRecorder?: __MetricsRecorder<unknown>;
|
|
13
|
+
}
|
|
8
14
|
export interface STS {
|
|
9
15
|
assumeRole(
|
|
10
16
|
args: AssumeRoleCommandInput,
|
|
11
|
-
options?:
|
|
17
|
+
options?: STSRequestOptions,
|
|
12
18
|
): Promise<AssumeRoleCommandOutput>;
|
|
13
19
|
assumeRole(
|
|
14
20
|
args: AssumeRoleCommandInput,
|
|
@@ -16,12 +22,12 @@ export interface STS {
|
|
|
16
22
|
): void;
|
|
17
23
|
assumeRole(
|
|
18
24
|
args: AssumeRoleCommandInput,
|
|
19
|
-
options:
|
|
25
|
+
options: STSRequestOptions,
|
|
20
26
|
cb: (err: any, data?: AssumeRoleCommandOutput) => void,
|
|
21
27
|
): void;
|
|
22
28
|
assumeRoleWithWebIdentity(
|
|
23
29
|
args: AssumeRoleWithWebIdentityCommandInput,
|
|
24
|
-
options?:
|
|
30
|
+
options?: STSRequestOptions,
|
|
25
31
|
): Promise<AssumeRoleWithWebIdentityCommandOutput>;
|
|
26
32
|
assumeRoleWithWebIdentity(
|
|
27
33
|
args: AssumeRoleWithWebIdentityCommandInput,
|
|
@@ -29,7 +35,7 @@ export interface STS {
|
|
|
29
35
|
): void;
|
|
30
36
|
assumeRoleWithWebIdentity(
|
|
31
37
|
args: AssumeRoleWithWebIdentityCommandInput,
|
|
32
|
-
options:
|
|
38
|
+
options: STSRequestOptions,
|
|
33
39
|
cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void,
|
|
34
40
|
): void;
|
|
35
41
|
}
|
|
@@ -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 AssumeRoleWithWebIdentityRequest {
|
|
43
46
|
RoleArn: string | undefined;
|
|
@@ -47,6 +50,7 @@ export interface AssumeRoleWithWebIdentityRequest {
|
|
|
47
50
|
PolicyArns?: PolicyDescriptorType[] | undefined;
|
|
48
51
|
Policy?: string | undefined;
|
|
49
52
|
DurationSeconds?: number | undefined;
|
|
53
|
+
MinimumSessionTokenSize?: number | undefined;
|
|
50
54
|
}
|
|
51
55
|
export interface AssumeRoleWithWebIdentityResponse {
|
|
52
56
|
Credentials?: Credentials | undefined;
|
|
@@ -56,4 +60,6 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
56
60
|
Provider?: string | undefined;
|
|
57
61
|
Audience?: string | undefined;
|
|
58
62
|
SourceIdentity?: string | undefined;
|
|
63
|
+
SessionTokenUtilization?: number | undefined;
|
|
64
|
+
SessionTokenSize?: number | undefined;
|
|
59
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/nested-clients",
|
|
3
|
-
"version": "3.997.
|
|
3
|
+
"version": "3.997.46",
|
|
4
4
|
"description": "Nested clients for AWS SDK packages.",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -100,13 +100,13 @@
|
|
|
100
100
|
"test:watch": "yarn g:vitest watch"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@aws-sdk/core": "^3.978.
|
|
104
|
-
"@aws-sdk/signature-v4-multi-region": "^3.996.
|
|
105
|
-
"@aws-sdk/types": "^3.974.
|
|
106
|
-
"@smithy/core": "^3.
|
|
107
|
-
"@smithy/fetch-http-handler": "^5.
|
|
108
|
-
"@smithy/node-http-handler": "^4.
|
|
109
|
-
"@smithy/types": "^4.
|
|
103
|
+
"@aws-sdk/core": "^3.978.1",
|
|
104
|
+
"@aws-sdk/signature-v4-multi-region": "^3.996.47",
|
|
105
|
+
"@aws-sdk/types": "^3.974.6",
|
|
106
|
+
"@smithy/core": "^3.35.0",
|
|
107
|
+
"@smithy/fetch-http-handler": "^5.8.0",
|
|
108
|
+
"@smithy/node-http-handler": "^4.12.1",
|
|
109
|
+
"@smithy/types": "^4.19.0",
|
|
110
110
|
"tslib": "^2.6.2"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|