@aws-sdk/client-sts 3.934.0 → 3.936.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 +8 -0
- package/dist-cjs/index.js +125 -0
- package/dist-es/STS.js +2 -0
- package/dist-es/commands/GetWebIdentityTokenCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/index.js +1 -1
- package/dist-es/models/errors.js +145 -0
- package/dist-es/models/models_0.js +1 -109
- package/dist-es/schemas/schemas_0.js +74 -1
- package/dist-types/STS.d.ts +7 -0
- package/dist-types/STSClient.d.ts +3 -2
- package/dist-types/commands/AssumeRoleCommand.d.ts +2 -3
- package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +2 -3
- package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +2 -3
- package/dist-types/commands/AssumeRootCommand.d.ts +2 -3
- package/dist-types/commands/GetDelegatedAccessTokenCommand.d.ts +19 -5
- package/dist-types/commands/GetFederationTokenCommand.d.ts +2 -3
- package/dist-types/commands/GetSessionTokenCommand.d.ts +2 -3
- package/dist-types/commands/GetWebIdentityTokenCommand.d.ts +98 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/index.d.ts +2 -1
- package/dist-types/models/errors.d.ts +172 -0
- package/dist-types/models/models_0.d.ts +61 -137
- package/dist-types/schemas/schemas_0.d.ts +8 -0
- package/dist-types/ts3.4/STS.d.ts +17 -0
- package/dist-types/ts3.4/STSClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/GetWebIdentityTokenCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/index.d.ts +2 -1
- package/dist-types/ts3.4/models/errors.d.ts +101 -0
- package/dist-types/ts3.4/models/models_0.d.ts +10 -71
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
- package/package.json +19 -19
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { STSServiceException as __BaseException } from "./STSServiceException";
|
|
3
1
|
/**
|
|
4
2
|
* <p>The identifiers for the temporary security credentials that the operation
|
|
5
3
|
* returns.</p>
|
|
@@ -378,68 +376,6 @@ export interface AssumeRoleResponse {
|
|
|
378
376
|
*/
|
|
379
377
|
SourceIdentity?: string | undefined;
|
|
380
378
|
}
|
|
381
|
-
/**
|
|
382
|
-
* <p>The web identity token that was passed is expired or is not valid. Get a new identity
|
|
383
|
-
* token from the identity provider and then retry the request.</p>
|
|
384
|
-
* @public
|
|
385
|
-
*/
|
|
386
|
-
export declare class ExpiredTokenException extends __BaseException {
|
|
387
|
-
readonly name: "ExpiredTokenException";
|
|
388
|
-
readonly $fault: "client";
|
|
389
|
-
/**
|
|
390
|
-
* @internal
|
|
391
|
-
*/
|
|
392
|
-
constructor(opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>);
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* <p>The request was rejected because the policy document was malformed. The error message
|
|
396
|
-
* describes the specific error.</p>
|
|
397
|
-
* @public
|
|
398
|
-
*/
|
|
399
|
-
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
400
|
-
readonly name: "MalformedPolicyDocumentException";
|
|
401
|
-
readonly $fault: "client";
|
|
402
|
-
/**
|
|
403
|
-
* @internal
|
|
404
|
-
*/
|
|
405
|
-
constructor(opts: __ExceptionOptionType<MalformedPolicyDocumentException, __BaseException>);
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* <p>The request was rejected because the total packed size of the session policies and
|
|
409
|
-
* session tags combined was too large. An Amazon Web Services conversion compresses the session policy
|
|
410
|
-
* document, session policy ARNs, and session tags into a packed binary format that has a
|
|
411
|
-
* separate limit. The error message indicates by percentage how close the policies and
|
|
412
|
-
* 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
|
|
413
|
-
* the <i>IAM User Guide</i>.</p>
|
|
414
|
-
* <p>You could receive this error even though you meet other defined session policy and
|
|
415
|
-
* session tag limits. 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
|
|
416
|
-
* Guide</i>.</p>
|
|
417
|
-
* @public
|
|
418
|
-
*/
|
|
419
|
-
export declare class PackedPolicyTooLargeException extends __BaseException {
|
|
420
|
-
readonly name: "PackedPolicyTooLargeException";
|
|
421
|
-
readonly $fault: "client";
|
|
422
|
-
/**
|
|
423
|
-
* @internal
|
|
424
|
-
*/
|
|
425
|
-
constructor(opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>);
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
* <p>STS is not activated in the requested region for the account that is being asked to
|
|
429
|
-
* generate credentials. The account administrator must use the IAM console to activate
|
|
430
|
-
* STS in that region. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-activate-deactivate">Activating and
|
|
431
|
-
* Deactivating STS in an Amazon Web Services Region</a> in the <i>IAM User
|
|
432
|
-
* Guide</i>.</p>
|
|
433
|
-
* @public
|
|
434
|
-
*/
|
|
435
|
-
export declare class RegionDisabledException extends __BaseException {
|
|
436
|
-
readonly name: "RegionDisabledException";
|
|
437
|
-
readonly $fault: "client";
|
|
438
|
-
/**
|
|
439
|
-
* @internal
|
|
440
|
-
*/
|
|
441
|
-
constructor(opts: __ExceptionOptionType<RegionDisabledException, __BaseException>);
|
|
442
|
-
}
|
|
443
379
|
/**
|
|
444
380
|
* @public
|
|
445
381
|
*/
|
|
@@ -642,34 +578,6 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
642
578
|
*/
|
|
643
579
|
SourceIdentity?: string | undefined;
|
|
644
580
|
}
|
|
645
|
-
/**
|
|
646
|
-
* <p>The identity provider (IdP) reported that authentication failed. This might be because
|
|
647
|
-
* the claim is invalid.</p>
|
|
648
|
-
* <p>If this error is returned for the <code>AssumeRoleWithWebIdentity</code> operation, it
|
|
649
|
-
* can also mean that the claim has expired or has been explicitly revoked. </p>
|
|
650
|
-
* @public
|
|
651
|
-
*/
|
|
652
|
-
export declare class IDPRejectedClaimException extends __BaseException {
|
|
653
|
-
readonly name: "IDPRejectedClaimException";
|
|
654
|
-
readonly $fault: "client";
|
|
655
|
-
/**
|
|
656
|
-
* @internal
|
|
657
|
-
*/
|
|
658
|
-
constructor(opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>);
|
|
659
|
-
}
|
|
660
|
-
/**
|
|
661
|
-
* <p>The web identity token that was passed could not be validated by Amazon Web Services. Get a new
|
|
662
|
-
* identity token from the identity provider and then retry the request.</p>
|
|
663
|
-
* @public
|
|
664
|
-
*/
|
|
665
|
-
export declare class InvalidIdentityTokenException extends __BaseException {
|
|
666
|
-
readonly name: "InvalidIdentityTokenException";
|
|
667
|
-
readonly $fault: "client";
|
|
668
|
-
/**
|
|
669
|
-
* @internal
|
|
670
|
-
*/
|
|
671
|
-
constructor(opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>);
|
|
672
|
-
}
|
|
673
581
|
/**
|
|
674
582
|
* @public
|
|
675
583
|
*/
|
|
@@ -880,22 +788,6 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
880
788
|
*/
|
|
881
789
|
SourceIdentity?: string | undefined;
|
|
882
790
|
}
|
|
883
|
-
/**
|
|
884
|
-
* <p>The request could not be fulfilled because the identity provider (IDP) that was asked
|
|
885
|
-
* to verify the incoming identity token could not be reached. This is often a transient
|
|
886
|
-
* error caused by network conditions. Retry the request a limited number of times so that
|
|
887
|
-
* you don't exceed the request rate. If the error persists, the identity provider might be
|
|
888
|
-
* down or not responding.</p>
|
|
889
|
-
* @public
|
|
890
|
-
*/
|
|
891
|
-
export declare class IDPCommunicationErrorException extends __BaseException {
|
|
892
|
-
readonly name: "IDPCommunicationErrorException";
|
|
893
|
-
readonly $fault: "client";
|
|
894
|
-
/**
|
|
895
|
-
* @internal
|
|
896
|
-
*/
|
|
897
|
-
constructor(opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>);
|
|
898
|
-
}
|
|
899
791
|
/**
|
|
900
792
|
* @public
|
|
901
793
|
*/
|
|
@@ -1000,20 +892,6 @@ export interface DecodeAuthorizationMessageResponse {
|
|
|
1000
892
|
*/
|
|
1001
893
|
DecodedMessage?: string | undefined;
|
|
1002
894
|
}
|
|
1003
|
-
/**
|
|
1004
|
-
* <p>The error returned if the message passed to <code>DecodeAuthorizationMessage</code>
|
|
1005
|
-
* was invalid. This can happen if the token contains invalid characters, such as line
|
|
1006
|
-
* breaks, or if the message has expired.</p>
|
|
1007
|
-
* @public
|
|
1008
|
-
*/
|
|
1009
|
-
export declare class InvalidAuthorizationMessageException extends __BaseException {
|
|
1010
|
-
readonly name: "InvalidAuthorizationMessageException";
|
|
1011
|
-
readonly $fault: "client";
|
|
1012
|
-
/**
|
|
1013
|
-
* @internal
|
|
1014
|
-
*/
|
|
1015
|
-
constructor(opts: __ExceptionOptionType<InvalidAuthorizationMessageException, __BaseException>);
|
|
1016
|
-
}
|
|
1017
895
|
/**
|
|
1018
896
|
* @public
|
|
1019
897
|
*/
|
|
@@ -1067,24 +945,13 @@ export interface GetCallerIdentityResponse {
|
|
|
1067
945
|
*/
|
|
1068
946
|
Arn?: string | undefined;
|
|
1069
947
|
}
|
|
1070
|
-
/**
|
|
1071
|
-
* <p></p>
|
|
1072
|
-
* @public
|
|
1073
|
-
*/
|
|
1074
|
-
export declare class ExpiredTradeInTokenException extends __BaseException {
|
|
1075
|
-
readonly name: "ExpiredTradeInTokenException";
|
|
1076
|
-
readonly $fault: "client";
|
|
1077
|
-
/**
|
|
1078
|
-
* @internal
|
|
1079
|
-
*/
|
|
1080
|
-
constructor(opts: __ExceptionOptionType<ExpiredTradeInTokenException, __BaseException>);
|
|
1081
|
-
}
|
|
1082
948
|
/**
|
|
1083
949
|
* @public
|
|
1084
950
|
*/
|
|
1085
951
|
export interface GetDelegatedAccessTokenRequest {
|
|
1086
952
|
/**
|
|
1087
|
-
* <p
|
|
953
|
+
* <p>The token to exchange for temporary Amazon Web Services credentials. This token must be valid and
|
|
954
|
+
* unexpired at the time of the request.</p>
|
|
1088
955
|
* @public
|
|
1089
956
|
*/
|
|
1090
957
|
TradeInToken: string | undefined;
|
|
@@ -1099,12 +966,16 @@ export interface GetDelegatedAccessTokenResponse {
|
|
|
1099
966
|
*/
|
|
1100
967
|
Credentials?: Credentials | undefined;
|
|
1101
968
|
/**
|
|
1102
|
-
* <p
|
|
969
|
+
* <p>The percentage of the maximum policy size that is used by the session policy. The policy
|
|
970
|
+
* size is calculated as the sum of all the session policies and permission boundaries
|
|
971
|
+
* attached to the session. If the packed size exceeds 100%, the request fails.</p>
|
|
1103
972
|
* @public
|
|
1104
973
|
*/
|
|
1105
974
|
PackedPolicySize?: number | undefined;
|
|
1106
975
|
/**
|
|
1107
|
-
* <p
|
|
976
|
+
* <p>The Amazon Resource Name (ARN) of the principal that was assumed when obtaining the
|
|
977
|
+
* delegated access token. This ARN identifies the IAM entity whose permissions are granted
|
|
978
|
+
* by the temporary credentials.</p>
|
|
1108
979
|
* @public
|
|
1109
980
|
*/
|
|
1110
981
|
AssumedPrincipal?: string | undefined;
|
|
@@ -1332,3 +1203,56 @@ export interface GetSessionTokenResponse {
|
|
|
1332
1203
|
*/
|
|
1333
1204
|
Credentials?: Credentials | undefined;
|
|
1334
1205
|
}
|
|
1206
|
+
/**
|
|
1207
|
+
* @public
|
|
1208
|
+
*/
|
|
1209
|
+
export interface GetWebIdentityTokenRequest {
|
|
1210
|
+
/**
|
|
1211
|
+
* <p>The intended recipient of the web identity token. This value populates the
|
|
1212
|
+
* <code>aud</code> claim in the JWT and should identify the service or application that
|
|
1213
|
+
* will validate and use the token. The external service should verify this claim to ensure the token was intended for their use.</p>
|
|
1214
|
+
* @public
|
|
1215
|
+
*/
|
|
1216
|
+
Audience: string[] | undefined;
|
|
1217
|
+
/**
|
|
1218
|
+
* <p>The duration, in seconds, for which the JSON Web Token (JWT) will remain valid.
|
|
1219
|
+
* The value can range from 60 seconds (1 minute) to 3600 seconds (1 hour). If not specified,
|
|
1220
|
+
* the default duration is 300 seconds (5 minutes). The token is designed to be short-lived and
|
|
1221
|
+
* should be used for proof of identity, then exchanged for credentials or short-lived tokens in the external service.</p>
|
|
1222
|
+
* @public
|
|
1223
|
+
*/
|
|
1224
|
+
DurationSeconds?: number | undefined;
|
|
1225
|
+
/**
|
|
1226
|
+
* <p>The cryptographic algorithm to use for signing the JSON Web Token (JWT). Valid values are
|
|
1227
|
+
* RS256 (RSA with SHA-256) and ES384 (ECDSA using P-384 curve with SHA-384). </p>
|
|
1228
|
+
* @public
|
|
1229
|
+
*/
|
|
1230
|
+
SigningAlgorithm: string | undefined;
|
|
1231
|
+
/**
|
|
1232
|
+
* <p>An optional list of tags to include in the JSON Web Token (JWT). These tags are added as custom
|
|
1233
|
+
* claims to the JWT and can be used by the downstream service for authorization decisions. </p>
|
|
1234
|
+
* @public
|
|
1235
|
+
*/
|
|
1236
|
+
Tags?: Tag[] | undefined;
|
|
1237
|
+
}
|
|
1238
|
+
/**
|
|
1239
|
+
* @public
|
|
1240
|
+
*/
|
|
1241
|
+
export interface GetWebIdentityTokenResponse {
|
|
1242
|
+
/**
|
|
1243
|
+
* <p>A signed JSON Web Token (JWT) that represents the caller's Amazon Web Services identity. The token contains
|
|
1244
|
+
* standard JWT claims such as subject, audience, expiration time, and additional identity attributes
|
|
1245
|
+
* added by STS as custom claims. You can also add your own custom claims to the token by passing tags
|
|
1246
|
+
* as request parameters to the <code>GetWebIdentityToken</code> API. The token is signed using the specified signing
|
|
1247
|
+
* algorithm and can be verified using the verification keys available at the issuer's JWKS endpoint.</p>
|
|
1248
|
+
* @public
|
|
1249
|
+
*/
|
|
1250
|
+
WebIdentityToken?: string | undefined;
|
|
1251
|
+
/**
|
|
1252
|
+
* <p>The date and time when the web identity token expires, in UTC. The expiration is
|
|
1253
|
+
* determined by adding the <code>DurationSeconds</code> value to the time the token was
|
|
1254
|
+
* issued. After this time, the token should no longer be considered valid.</p>
|
|
1255
|
+
* @public
|
|
1256
|
+
*/
|
|
1257
|
+
Expiration?: Date | undefined;
|
|
1258
|
+
}
|
|
@@ -3,6 +3,7 @@ export declare var accessKeySecretType: StaticSimpleSchema;
|
|
|
3
3
|
export declare var clientTokenType: StaticSimpleSchema;
|
|
4
4
|
export declare var SAMLAssertionType: StaticSimpleSchema;
|
|
5
5
|
export declare var tradeInTokenType: StaticSimpleSchema;
|
|
6
|
+
export declare var webIdentityTokenType: StaticSimpleSchema;
|
|
6
7
|
export declare var AssumedRoleUser: StaticStructureSchema;
|
|
7
8
|
export declare var AssumeRoleRequest: StaticStructureSchema;
|
|
8
9
|
export declare var AssumeRoleResponse: StaticStructureSchema;
|
|
@@ -28,21 +29,27 @@ export declare var GetFederationTokenRequest: StaticStructureSchema;
|
|
|
28
29
|
export declare var GetFederationTokenResponse: StaticStructureSchema;
|
|
29
30
|
export declare var GetSessionTokenRequest: StaticStructureSchema;
|
|
30
31
|
export declare var GetSessionTokenResponse: StaticStructureSchema;
|
|
32
|
+
export declare var GetWebIdentityTokenRequest: StaticStructureSchema;
|
|
33
|
+
export declare var GetWebIdentityTokenResponse: StaticStructureSchema;
|
|
31
34
|
export declare var IDPCommunicationErrorException: StaticErrorSchema;
|
|
32
35
|
export declare var IDPRejectedClaimException: StaticErrorSchema;
|
|
33
36
|
export declare var InvalidAuthorizationMessageException: StaticErrorSchema;
|
|
34
37
|
export declare var InvalidIdentityTokenException: StaticErrorSchema;
|
|
38
|
+
export declare var JWTPayloadSizeExceededException: StaticErrorSchema;
|
|
35
39
|
export declare var MalformedPolicyDocumentException: StaticErrorSchema;
|
|
40
|
+
export declare var OutboundWebIdentityFederationDisabledException: StaticErrorSchema;
|
|
36
41
|
export declare var PackedPolicyTooLargeException: StaticErrorSchema;
|
|
37
42
|
export declare var PolicyDescriptorType: StaticStructureSchema;
|
|
38
43
|
export declare var ProvidedContext: StaticStructureSchema;
|
|
39
44
|
export declare var RegionDisabledException: StaticErrorSchema;
|
|
45
|
+
export declare var SessionDurationEscalationException: StaticErrorSchema;
|
|
40
46
|
export declare var Tag: StaticStructureSchema;
|
|
41
47
|
export declare var STSServiceException: StaticErrorSchema;
|
|
42
48
|
export declare var policyDescriptorListType: StaticListSchema;
|
|
43
49
|
export declare var ProvidedContextsListType: StaticListSchema;
|
|
44
50
|
export declare var tagKeyListType: number;
|
|
45
51
|
export declare var tagListType: StaticListSchema;
|
|
52
|
+
export declare var webIdentityTokenAudienceListType: number;
|
|
46
53
|
export declare var AssumeRole: StaticOperationSchema;
|
|
47
54
|
export declare var AssumeRoleWithSAML: StaticOperationSchema;
|
|
48
55
|
export declare var AssumeRoleWithWebIdentity: StaticOperationSchema;
|
|
@@ -53,3 +60,4 @@ export declare var GetCallerIdentity: StaticOperationSchema;
|
|
|
53
60
|
export declare var GetDelegatedAccessToken: StaticOperationSchema;
|
|
54
61
|
export declare var GetFederationToken: StaticOperationSchema;
|
|
55
62
|
export declare var GetSessionToken: StaticOperationSchema;
|
|
63
|
+
export declare var GetWebIdentityToken: StaticOperationSchema;
|
|
@@ -39,6 +39,10 @@ import {
|
|
|
39
39
|
GetSessionTokenCommandInput,
|
|
40
40
|
GetSessionTokenCommandOutput,
|
|
41
41
|
} from "./commands/GetSessionTokenCommand";
|
|
42
|
+
import {
|
|
43
|
+
GetWebIdentityTokenCommandInput,
|
|
44
|
+
GetWebIdentityTokenCommandOutput,
|
|
45
|
+
} from "./commands/GetWebIdentityTokenCommand";
|
|
42
46
|
import { STSClient } from "./STSClient";
|
|
43
47
|
export interface STS {
|
|
44
48
|
assumeRole(
|
|
@@ -173,5 +177,18 @@ export interface STS {
|
|
|
173
177
|
options: __HttpHandlerOptions,
|
|
174
178
|
cb: (err: any, data?: GetSessionTokenCommandOutput) => void
|
|
175
179
|
): void;
|
|
180
|
+
getWebIdentityToken(
|
|
181
|
+
args: GetWebIdentityTokenCommandInput,
|
|
182
|
+
options?: __HttpHandlerOptions
|
|
183
|
+
): Promise<GetWebIdentityTokenCommandOutput>;
|
|
184
|
+
getWebIdentityToken(
|
|
185
|
+
args: GetWebIdentityTokenCommandInput,
|
|
186
|
+
cb: (err: any, data?: GetWebIdentityTokenCommandOutput) => void
|
|
187
|
+
): void;
|
|
188
|
+
getWebIdentityToken(
|
|
189
|
+
args: GetWebIdentityTokenCommandInput,
|
|
190
|
+
options: __HttpHandlerOptions,
|
|
191
|
+
cb: (err: any, data?: GetWebIdentityTokenCommandOutput) => void
|
|
192
|
+
): void;
|
|
176
193
|
}
|
|
177
194
|
export declare class STS extends STSClient implements STS {}
|
|
@@ -88,6 +88,10 @@ import {
|
|
|
88
88
|
GetSessionTokenCommandInput,
|
|
89
89
|
GetSessionTokenCommandOutput,
|
|
90
90
|
} from "./commands/GetSessionTokenCommand";
|
|
91
|
+
import {
|
|
92
|
+
GetWebIdentityTokenCommandInput,
|
|
93
|
+
GetWebIdentityTokenCommandOutput,
|
|
94
|
+
} from "./commands/GetWebIdentityTokenCommand";
|
|
91
95
|
import {
|
|
92
96
|
ClientInputEndpointParameters,
|
|
93
97
|
ClientResolvedEndpointParameters,
|
|
@@ -105,7 +109,8 @@ export type ServiceInputTypes =
|
|
|
105
109
|
| GetCallerIdentityCommandInput
|
|
106
110
|
| GetDelegatedAccessTokenCommandInput
|
|
107
111
|
| GetFederationTokenCommandInput
|
|
108
|
-
| GetSessionTokenCommandInput
|
|
112
|
+
| GetSessionTokenCommandInput
|
|
113
|
+
| GetWebIdentityTokenCommandInput;
|
|
109
114
|
export type ServiceOutputTypes =
|
|
110
115
|
| AssumeRoleCommandOutput
|
|
111
116
|
| AssumeRoleWithSAMLCommandOutput
|
|
@@ -116,7 +121,8 @@ export type ServiceOutputTypes =
|
|
|
116
121
|
| GetCallerIdentityCommandOutput
|
|
117
122
|
| GetDelegatedAccessTokenCommandOutput
|
|
118
123
|
| GetFederationTokenCommandOutput
|
|
119
|
-
| GetSessionTokenCommandOutput
|
|
124
|
+
| GetSessionTokenCommandOutput
|
|
125
|
+
| GetWebIdentityTokenCommandOutput;
|
|
120
126
|
export interface ClientDefaults
|
|
121
127
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
122
128
|
requestHandler?: __HttpHandlerUserInput;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
GetWebIdentityTokenRequest,
|
|
5
|
+
GetWebIdentityTokenResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
ServiceInputTypes,
|
|
9
|
+
ServiceOutputTypes,
|
|
10
|
+
STSClientResolvedConfig,
|
|
11
|
+
} from "../STSClient";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface GetWebIdentityTokenCommandInput
|
|
15
|
+
extends GetWebIdentityTokenRequest {}
|
|
16
|
+
export interface GetWebIdentityTokenCommandOutput
|
|
17
|
+
extends GetWebIdentityTokenResponse,
|
|
18
|
+
__MetadataBearer {}
|
|
19
|
+
declare const GetWebIdentityTokenCommand_base: {
|
|
20
|
+
new (
|
|
21
|
+
input: GetWebIdentityTokenCommandInput
|
|
22
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
23
|
+
GetWebIdentityTokenCommandInput,
|
|
24
|
+
GetWebIdentityTokenCommandOutput,
|
|
25
|
+
STSClientResolvedConfig,
|
|
26
|
+
ServiceInputTypes,
|
|
27
|
+
ServiceOutputTypes
|
|
28
|
+
>;
|
|
29
|
+
new (
|
|
30
|
+
input: GetWebIdentityTokenCommandInput
|
|
31
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
32
|
+
GetWebIdentityTokenCommandInput,
|
|
33
|
+
GetWebIdentityTokenCommandOutput,
|
|
34
|
+
STSClientResolvedConfig,
|
|
35
|
+
ServiceInputTypes,
|
|
36
|
+
ServiceOutputTypes
|
|
37
|
+
>;
|
|
38
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
39
|
+
};
|
|
40
|
+
export declare class GetWebIdentityTokenCommand extends GetWebIdentityTokenCommand_base {
|
|
41
|
+
protected static __types: {
|
|
42
|
+
api: {
|
|
43
|
+
input: GetWebIdentityTokenRequest;
|
|
44
|
+
output: GetWebIdentityTokenResponse;
|
|
45
|
+
};
|
|
46
|
+
sdk: {
|
|
47
|
+
input: GetWebIdentityTokenCommandInput;
|
|
48
|
+
output: GetWebIdentityTokenCommandOutput;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
}
|
|
@@ -4,6 +4,7 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
|
4
4
|
export { RuntimeExtension } from "./runtimeExtensions";
|
|
5
5
|
export { STSExtensionConfiguration } from "./extensionConfiguration";
|
|
6
6
|
export * from "./commands";
|
|
7
|
-
export * from "./models";
|
|
7
|
+
export * from "./models/errors";
|
|
8
|
+
export * from "./models/models_0";
|
|
8
9
|
export * from "./defaultRoleAssumers";
|
|
9
10
|
export { STSServiceException } from "./models/STSServiceException";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { STSServiceException as __BaseException } from "./STSServiceException";
|
|
3
|
+
export declare class ExpiredTokenException extends __BaseException {
|
|
4
|
+
readonly name: "ExpiredTokenException";
|
|
5
|
+
readonly $fault: "client";
|
|
6
|
+
constructor(
|
|
7
|
+
opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
11
|
+
readonly name: "MalformedPolicyDocumentException";
|
|
12
|
+
readonly $fault: "client";
|
|
13
|
+
constructor(
|
|
14
|
+
opts: __ExceptionOptionType<
|
|
15
|
+
MalformedPolicyDocumentException,
|
|
16
|
+
__BaseException
|
|
17
|
+
>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
export declare class PackedPolicyTooLargeException extends __BaseException {
|
|
21
|
+
readonly name: "PackedPolicyTooLargeException";
|
|
22
|
+
readonly $fault: "client";
|
|
23
|
+
constructor(
|
|
24
|
+
opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
export declare class RegionDisabledException extends __BaseException {
|
|
28
|
+
readonly name: "RegionDisabledException";
|
|
29
|
+
readonly $fault: "client";
|
|
30
|
+
constructor(
|
|
31
|
+
opts: __ExceptionOptionType<RegionDisabledException, __BaseException>
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export declare class IDPRejectedClaimException extends __BaseException {
|
|
35
|
+
readonly name: "IDPRejectedClaimException";
|
|
36
|
+
readonly $fault: "client";
|
|
37
|
+
constructor(
|
|
38
|
+
opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
export declare class InvalidIdentityTokenException extends __BaseException {
|
|
42
|
+
readonly name: "InvalidIdentityTokenException";
|
|
43
|
+
readonly $fault: "client";
|
|
44
|
+
constructor(
|
|
45
|
+
opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
export declare class IDPCommunicationErrorException extends __BaseException {
|
|
49
|
+
readonly name: "IDPCommunicationErrorException";
|
|
50
|
+
readonly $fault: "client";
|
|
51
|
+
constructor(
|
|
52
|
+
opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
export declare class InvalidAuthorizationMessageException extends __BaseException {
|
|
56
|
+
readonly name: "InvalidAuthorizationMessageException";
|
|
57
|
+
readonly $fault: "client";
|
|
58
|
+
constructor(
|
|
59
|
+
opts: __ExceptionOptionType<
|
|
60
|
+
InvalidAuthorizationMessageException,
|
|
61
|
+
__BaseException
|
|
62
|
+
>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
export declare class ExpiredTradeInTokenException extends __BaseException {
|
|
66
|
+
readonly name: "ExpiredTradeInTokenException";
|
|
67
|
+
readonly $fault: "client";
|
|
68
|
+
constructor(
|
|
69
|
+
opts: __ExceptionOptionType<ExpiredTradeInTokenException, __BaseException>
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
export declare class JWTPayloadSizeExceededException extends __BaseException {
|
|
73
|
+
readonly name: "JWTPayloadSizeExceededException";
|
|
74
|
+
readonly $fault: "client";
|
|
75
|
+
constructor(
|
|
76
|
+
opts: __ExceptionOptionType<
|
|
77
|
+
JWTPayloadSizeExceededException,
|
|
78
|
+
__BaseException
|
|
79
|
+
>
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
export declare class OutboundWebIdentityFederationDisabledException extends __BaseException {
|
|
83
|
+
readonly name: "OutboundWebIdentityFederationDisabledException";
|
|
84
|
+
readonly $fault: "client";
|
|
85
|
+
constructor(
|
|
86
|
+
opts: __ExceptionOptionType<
|
|
87
|
+
OutboundWebIdentityFederationDisabledException,
|
|
88
|
+
__BaseException
|
|
89
|
+
>
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
export declare class SessionDurationEscalationException extends __BaseException {
|
|
93
|
+
readonly name: "SessionDurationEscalationException";
|
|
94
|
+
readonly $fault: "client";
|
|
95
|
+
constructor(
|
|
96
|
+
opts: __ExceptionOptionType<
|
|
97
|
+
SessionDurationEscalationException,
|
|
98
|
+
__BaseException
|
|
99
|
+
>
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
-
import { STSServiceException as __BaseException } from "./STSServiceException";
|
|
3
1
|
export interface AssumedRoleUser {
|
|
4
2
|
AssumedRoleId: string | undefined;
|
|
5
3
|
Arn: string | undefined;
|
|
@@ -41,37 +39,6 @@ export interface AssumeRoleResponse {
|
|
|
41
39
|
PackedPolicySize?: number | undefined;
|
|
42
40
|
SourceIdentity?: string | undefined;
|
|
43
41
|
}
|
|
44
|
-
export declare class ExpiredTokenException extends __BaseException {
|
|
45
|
-
readonly name: "ExpiredTokenException";
|
|
46
|
-
readonly $fault: "client";
|
|
47
|
-
constructor(
|
|
48
|
-
opts: __ExceptionOptionType<ExpiredTokenException, __BaseException>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
export declare class MalformedPolicyDocumentException extends __BaseException {
|
|
52
|
-
readonly name: "MalformedPolicyDocumentException";
|
|
53
|
-
readonly $fault: "client";
|
|
54
|
-
constructor(
|
|
55
|
-
opts: __ExceptionOptionType<
|
|
56
|
-
MalformedPolicyDocumentException,
|
|
57
|
-
__BaseException
|
|
58
|
-
>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
export declare class PackedPolicyTooLargeException extends __BaseException {
|
|
62
|
-
readonly name: "PackedPolicyTooLargeException";
|
|
63
|
-
readonly $fault: "client";
|
|
64
|
-
constructor(
|
|
65
|
-
opts: __ExceptionOptionType<PackedPolicyTooLargeException, __BaseException>
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
export declare class RegionDisabledException extends __BaseException {
|
|
69
|
-
readonly name: "RegionDisabledException";
|
|
70
|
-
readonly $fault: "client";
|
|
71
|
-
constructor(
|
|
72
|
-
opts: __ExceptionOptionType<RegionDisabledException, __BaseException>
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
42
|
export interface AssumeRoleWithSAMLRequest {
|
|
76
43
|
RoleArn: string | undefined;
|
|
77
44
|
PrincipalArn: string | undefined;
|
|
@@ -91,20 +58,6 @@ export interface AssumeRoleWithSAMLResponse {
|
|
|
91
58
|
NameQualifier?: string | undefined;
|
|
92
59
|
SourceIdentity?: string | undefined;
|
|
93
60
|
}
|
|
94
|
-
export declare class IDPRejectedClaimException extends __BaseException {
|
|
95
|
-
readonly name: "IDPRejectedClaimException";
|
|
96
|
-
readonly $fault: "client";
|
|
97
|
-
constructor(
|
|
98
|
-
opts: __ExceptionOptionType<IDPRejectedClaimException, __BaseException>
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
export declare class InvalidIdentityTokenException extends __BaseException {
|
|
102
|
-
readonly name: "InvalidIdentityTokenException";
|
|
103
|
-
readonly $fault: "client";
|
|
104
|
-
constructor(
|
|
105
|
-
opts: __ExceptionOptionType<InvalidIdentityTokenException, __BaseException>
|
|
106
|
-
);
|
|
107
|
-
}
|
|
108
61
|
export interface AssumeRoleWithWebIdentityRequest {
|
|
109
62
|
RoleArn: string | undefined;
|
|
110
63
|
RoleSessionName: string | undefined;
|
|
@@ -123,13 +76,6 @@ export interface AssumeRoleWithWebIdentityResponse {
|
|
|
123
76
|
Audience?: string | undefined;
|
|
124
77
|
SourceIdentity?: string | undefined;
|
|
125
78
|
}
|
|
126
|
-
export declare class IDPCommunicationErrorException extends __BaseException {
|
|
127
|
-
readonly name: "IDPCommunicationErrorException";
|
|
128
|
-
readonly $fault: "client";
|
|
129
|
-
constructor(
|
|
130
|
-
opts: __ExceptionOptionType<IDPCommunicationErrorException, __BaseException>
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
79
|
export interface AssumeRootRequest {
|
|
134
80
|
TargetPrincipal: string | undefined;
|
|
135
81
|
TaskPolicyArn: PolicyDescriptorType | undefined;
|
|
@@ -145,16 +91,6 @@ export interface DecodeAuthorizationMessageRequest {
|
|
|
145
91
|
export interface DecodeAuthorizationMessageResponse {
|
|
146
92
|
DecodedMessage?: string | undefined;
|
|
147
93
|
}
|
|
148
|
-
export declare class InvalidAuthorizationMessageException extends __BaseException {
|
|
149
|
-
readonly name: "InvalidAuthorizationMessageException";
|
|
150
|
-
readonly $fault: "client";
|
|
151
|
-
constructor(
|
|
152
|
-
opts: __ExceptionOptionType<
|
|
153
|
-
InvalidAuthorizationMessageException,
|
|
154
|
-
__BaseException
|
|
155
|
-
>
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
94
|
export interface GetAccessKeyInfoRequest {
|
|
159
95
|
AccessKeyId: string | undefined;
|
|
160
96
|
}
|
|
@@ -167,13 +103,6 @@ export interface GetCallerIdentityResponse {
|
|
|
167
103
|
Account?: string | undefined;
|
|
168
104
|
Arn?: string | undefined;
|
|
169
105
|
}
|
|
170
|
-
export declare class ExpiredTradeInTokenException extends __BaseException {
|
|
171
|
-
readonly name: "ExpiredTradeInTokenException";
|
|
172
|
-
readonly $fault: "client";
|
|
173
|
-
constructor(
|
|
174
|
-
opts: __ExceptionOptionType<ExpiredTradeInTokenException, __BaseException>
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
106
|
export interface GetDelegatedAccessTokenRequest {
|
|
178
107
|
TradeInToken: string | undefined;
|
|
179
108
|
}
|
|
@@ -206,3 +135,13 @@ export interface GetSessionTokenRequest {
|
|
|
206
135
|
export interface GetSessionTokenResponse {
|
|
207
136
|
Credentials?: Credentials | undefined;
|
|
208
137
|
}
|
|
138
|
+
export interface GetWebIdentityTokenRequest {
|
|
139
|
+
Audience: string[] | undefined;
|
|
140
|
+
DurationSeconds?: number | undefined;
|
|
141
|
+
SigningAlgorithm: string | undefined;
|
|
142
|
+
Tags?: Tag[] | undefined;
|
|
143
|
+
}
|
|
144
|
+
export interface GetWebIdentityTokenResponse {
|
|
145
|
+
WebIdentityToken?: string | undefined;
|
|
146
|
+
Expiration?: Date | undefined;
|
|
147
|
+
}
|