@aws-sdk/client-sts 3.1171.0 → 3.1173.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.
Files changed (35) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +154 -7
  3. package/dist-es/STS.js +2 -0
  4. package/dist-es/commands/GetScopedCredentialsCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/index.js +1 -0
  7. package/dist-es/models/enums.js +4 -0
  8. package/dist-es/models/errors.js +39 -0
  9. package/dist-es/schemas/schemas_0.js +91 -7
  10. package/dist-types/STS.d.ts +8 -0
  11. package/dist-types/STSClient.d.ts +3 -2
  12. package/dist-types/commands/AssumeRoleCommand.d.ts +12 -7
  13. package/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +20 -14
  14. package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +20 -14
  15. package/dist-types/commands/GetDelegatedAccessTokenCommand.d.ts +7 -7
  16. package/dist-types/commands/GetFederationTokenCommand.d.ts +9 -8
  17. package/dist-types/commands/GetScopedCredentialsCommand.d.ts +160 -0
  18. package/dist-types/commands/GetSessionTokenCommand.d.ts +3 -1
  19. package/dist-types/commands/GetWebIdentityTokenCommand.d.ts +9 -2
  20. package/dist-types/commands/index.d.ts +1 -0
  21. package/dist-types/index.d.ts +1 -0
  22. package/dist-types/models/enums.d.ts +12 -0
  23. package/dist-types/models/errors.d.ts +54 -7
  24. package/dist-types/models/models_0.d.ts +363 -123
  25. package/dist-types/schemas/schemas_0.d.ts +10 -0
  26. package/dist-types/ts3.4/STS.d.ts +18 -0
  27. package/dist-types/ts3.4/STSClient.d.ts +6 -0
  28. package/dist-types/ts3.4/commands/GetScopedCredentialsCommand.d.ts +39 -0
  29. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  30. package/dist-types/ts3.4/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/enums.d.ts +6 -0
  32. package/dist-types/ts3.4/models/errors.d.ts +18 -0
  33. package/dist-types/ts3.4/models/models_0.d.ts +36 -0
  34. package/dist-types/ts3.4/schemas/schemas_0.d.ts +10 -0
  35. package/package.json +1 -1
package/README.md CHANGED
@@ -266,6 +266,13 @@ GetFederationToken
266
266
  </details>
267
267
  <details>
268
268
  <summary>
269
+ GetScopedCredentials
270
+ </summary>
271
+
272
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/sts/command/GetScopedCredentialsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetScopedCredentialsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-sts/Interface/GetScopedCredentialsCommandOutput/)
273
+ </details>
274
+ <details>
275
+ <summary>
269
276
  GetSessionToken
270
277
  </summary>
271
278
 
package/dist-cjs/index.js CHANGED
@@ -264,7 +264,7 @@ const commonParams = {
264
264
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
265
265
  };
266
266
 
267
- var version = "3.1170.0";
267
+ var version = "3.1172.0";
268
268
  var packageInfo = {
269
269
  version: version};
270
270
 
@@ -289,6 +289,19 @@ class ExpiredTokenException extends STSServiceException {
289
289
  Object.setPrototypeOf(this, ExpiredTokenException.prototype);
290
290
  }
291
291
  }
292
+ class InvalidContextAssertionException extends STSServiceException {
293
+ static shapeId = "com.amazonaws.sts#InvalidContextAssertionException";
294
+ name = "InvalidContextAssertionException";
295
+ $fault = "client";
296
+ constructor(opts) {
297
+ super({
298
+ name: "InvalidContextAssertionException",
299
+ $fault: "client",
300
+ ...opts,
301
+ });
302
+ Object.setPrototypeOf(this, InvalidContextAssertionException.prototype);
303
+ }
304
+ }
292
305
  class MalformedPolicyDocumentException extends STSServiceException {
293
306
  static shapeId = "com.amazonaws.sts#MalformedPolicyDocumentException";
294
307
  name = "MalformedPolicyDocumentException";
@@ -394,6 +407,32 @@ class ExpiredTradeInTokenException extends STSServiceException {
394
407
  Object.setPrototypeOf(this, ExpiredTradeInTokenException.prototype);
395
408
  }
396
409
  }
410
+ class InsufficientSessionLifetimeException extends STSServiceException {
411
+ static shapeId = "com.amazonaws.sts#InsufficientSessionLifetimeException";
412
+ name = "InsufficientSessionLifetimeException";
413
+ $fault = "client";
414
+ constructor(opts) {
415
+ super({
416
+ name: "InsufficientSessionLifetimeException",
417
+ $fault: "client",
418
+ ...opts,
419
+ });
420
+ Object.setPrototypeOf(this, InsufficientSessionLifetimeException.prototype);
421
+ }
422
+ }
423
+ class InvalidSubjectCredentialsException extends STSServiceException {
424
+ static shapeId = "com.amazonaws.sts#InvalidSubjectCredentialsException";
425
+ name = "InvalidSubjectCredentialsException";
426
+ $fault = "client";
427
+ constructor(opts) {
428
+ super({
429
+ name: "InvalidSubjectCredentialsException",
430
+ $fault: "client",
431
+ ...opts,
432
+ });
433
+ Object.setPrototypeOf(this, InvalidSubjectCredentialsException.prototype);
434
+ }
435
+ }
397
436
  class JWTPayloadSizeExceededException extends STSServiceException {
398
437
  static shapeId = "com.amazonaws.sts#JWTPayloadSizeExceededException";
399
438
  name = "JWTPayloadSizeExceededException";
@@ -465,6 +504,7 @@ const _EI = "ExternalId";
465
504
  const _EM = "EncodedMessage";
466
505
  const _ETE = "ExpiredTokenException";
467
506
  const _ETITE = "ExpiredTradeInTokenException";
507
+ const _FPA = "FederatedProviderArn";
468
508
  const _FU = "FederatedUser";
469
509
  const _FUI = "FederatedUserId";
470
510
  const _GAKI = "GetAccessKeyInfo";
@@ -479,6 +519,9 @@ const _GDATRe = "GetDelegatedAccessTokenResponse";
479
519
  const _GFT = "GetFederationToken";
480
520
  const _GFTR = "GetFederationTokenRequest";
481
521
  const _GFTRe = "GetFederationTokenResponse";
522
+ const _GSC = "GetScopedCredentials";
523
+ const _GSCR = "GetScopedCredentialsRequest";
524
+ const _GSCRe = "GetScopedCredentialsResponse";
482
525
  const _GST = "GetSessionToken";
483
526
  const _GSTR = "GetSessionTokenRequest";
484
527
  const _GSTRe = "GetSessionTokenResponse";
@@ -487,15 +530,20 @@ const _GWITR = "GetWebIdentityTokenRequest";
487
530
  const _GWITRe = "GetWebIdentityTokenResponse";
488
531
  const _I = "Issuer";
489
532
  const _IAME = "InvalidAuthorizationMessageException";
533
+ const _ICAE = "InvalidContextAssertionException";
490
534
  const _IDPCEE = "IDPCommunicationErrorException";
491
535
  const _IDPRCE = "IDPRejectedClaimException";
492
536
  const _IITE = "InvalidIdentityTokenException";
537
+ const _IP = "IdentityProvider";
538
+ const _ISCE = "InvalidSubjectCredentialsException";
539
+ const _ISLE = "InsufficientSessionLifetimeException";
493
540
  const _JWTPSEE = "JWTPayloadSizeExceededException";
494
541
  const _K = "Key";
495
542
  const _MPDE = "MalformedPolicyDocumentException";
496
543
  const _MSTS = "MinimumSessionTokenSize";
497
544
  const _N = "Name";
498
545
  const _NQ = "NameQualifier";
546
+ const _OI = "OriginIdentity";
499
547
  const _OWIFDE = "OutboundWebIdentityFederationDisabledException";
500
548
  const _P = "Policy";
501
549
  const _PA = "PolicyArns";
@@ -520,13 +568,22 @@ const _SAMLAT = "SAMLAssertionType";
520
568
  const _SDEE = "SessionDurationEscalationException";
521
569
  const _SFWIT = "SubjectFromWebIdentityToken";
522
570
  const _SI = "SourceIdentity";
571
+ const _SIe = "SessionInfo";
572
+ const _SM = "SubjectMode";
523
573
  const _SN = "SerialNumber";
574
+ const _SPC = "ScopedPoliciesCount";
575
+ const _SS = "ScopedSession";
576
+ const _SSD = "ScopedSessionDescription";
577
+ const _SSI = "ScopedSessionId";
524
578
  const _ST = "SubjectType";
525
579
  const _STS = "SessionTokenSize";
526
580
  const _STU = "SessionTokenUtilization";
527
581
  const _STe = "SessionToken";
582
+ const _Sc = "Scope";
528
583
  const _T = "Tags";
529
584
  const _TC = "TokenCode";
585
+ const _TCr = "TransactionContext";
586
+ const _TIPC = "TrustedIdentityPropagationContext";
530
587
  const _TIT = "TradeInToken";
531
588
  const _TP = "TargetPrincipal";
532
589
  const _TPA = "TaskPolicyArn";
@@ -543,8 +600,13 @@ const _cTT = "clientTokenType";
543
600
  const _e = "error";
544
601
  const _hE = "httpError";
545
602
  const _m = "message";
603
+ const _oIIT = "originIdentityIssuerType";
604
+ const _oIST = "originIdentitySubjectType";
605
+ const _oISTT = "originIdentitySubjectTypeType";
546
606
  const _pDLT = "policyDescriptorListType";
547
607
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.sts";
608
+ const _tCIPMT = "transactionContextIdentityProviderMapType";
609
+ const _tCVT = "transactionContextValueType";
548
610
  const _tITT = "tradeInTokenType";
549
611
  const _tLT = "tagListType";
550
612
  const _wITT = "webIdentityTokenType";
@@ -577,18 +639,36 @@ var IDPRejectedClaimException$ = [-3, n0, _IDPRCE,
577
639
  [0]
578
640
  ];
579
641
  n0_registry.registerError(IDPRejectedClaimException$, IDPRejectedClaimException);
642
+ var InsufficientSessionLifetimeException$ = [-3, n0, _ISLE,
643
+ { [_aQE]: [`InsufficientSessionLifetime`, 400], [_e]: _c, [_hE]: 400 },
644
+ [_m],
645
+ [0]
646
+ ];
647
+ n0_registry.registerError(InsufficientSessionLifetimeException$, InsufficientSessionLifetimeException);
580
648
  var InvalidAuthorizationMessageException$ = [-3, n0, _IAME,
581
649
  { [_aQE]: [`InvalidAuthorizationMessageException`, 400], [_e]: _c, [_hE]: 400 },
582
650
  [_m],
583
651
  [0]
584
652
  ];
585
653
  n0_registry.registerError(InvalidAuthorizationMessageException$, InvalidAuthorizationMessageException);
654
+ var InvalidContextAssertionException$ = [-3, n0, _ICAE,
655
+ { [_aQE]: [`InvalidContextAssertion`, 400], [_e]: _c, [_hE]: 400 },
656
+ [_m],
657
+ [0]
658
+ ];
659
+ n0_registry.registerError(InvalidContextAssertionException$, InvalidContextAssertionException);
586
660
  var InvalidIdentityTokenException$ = [-3, n0, _IITE,
587
661
  { [_aQE]: [`InvalidIdentityToken`, 400], [_e]: _c, [_hE]: 400 },
588
662
  [_m],
589
663
  [0]
590
664
  ];
591
665
  n0_registry.registerError(InvalidIdentityTokenException$, InvalidIdentityTokenException);
666
+ var InvalidSubjectCredentialsException$ = [-3, n0, _ISCE,
667
+ { [_aQE]: [`InvalidSubjectCredentials`, 400], [_e]: _c, [_hE]: 400 },
668
+ [_m],
669
+ [0]
670
+ ];
671
+ n0_registry.registerError(InvalidSubjectCredentialsException$, InvalidSubjectCredentialsException);
592
672
  var JWTPayloadSizeExceededException$ = [-3, n0, _JWTPSEE,
593
673
  { [_aQE]: [`JWTPayloadSizeExceededException`, 400], [_e]: _c, [_hE]: 400 },
594
674
  [_m],
@@ -631,8 +711,12 @@ const errorTypeRegistries = [
631
711
  ];
632
712
  var accessKeySecretType = [0, n0, _aKST, 8, 0];
633
713
  var clientTokenType = [0, n0, _cTT, 8, 0];
714
+ var originIdentityIssuerType = [0, n0, _oIIT, 8, 0];
715
+ var originIdentitySubjectType = [0, n0, _oIST, 8, 0];
716
+ var originIdentitySubjectTypeType = [0, n0, _oISTT, 8, 0];
634
717
  var SAMLAssertionType = [0, n0, _SAMLAT, 8, 0];
635
718
  var tradeInTokenType = [0, n0, _tITT, 8, 0];
719
+ var transactionContextValueType = [0, n0, _tCVT, 8, 0];
636
720
  var webIdentityTokenType = [0, n0, _wITT, 8, 0];
637
721
  var AssumedRoleUser$ = [3, n0, _ARU,
638
722
  0,
@@ -656,8 +740,8 @@ var AssumeRoleWithSAMLRequest$ = [3, n0, _ARWSAMLR,
656
740
  ];
657
741
  var AssumeRoleWithSAMLResponse$ = [3, n0, _ARWSAMLRs,
658
742
  0,
659
- [_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI, _STU, _STS],
660
- [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0, 1, 1]
743
+ [_C, _ARU, _PPS, _S, _ST, _I, _Au, _NQ, _SI, _STU, _STS, _TIPC],
744
+ [[() => Credentials$, 0], () => AssumedRoleUser$, 1, 0, 0, 0, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
661
745
  ];
662
746
  var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
663
747
  0,
@@ -666,8 +750,8 @@ var AssumeRoleWithWebIdentityRequest$ = [3, n0, _ARWWIR,
666
750
  ];
667
751
  var AssumeRoleWithWebIdentityResponse$ = [3, n0, _ARWWIRs,
668
752
  0,
669
- [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS],
670
- [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1]
753
+ [_C, _SFWIT, _ARU, _PPS, _Pr, _Au, _SI, _STU, _STS, _TIPC],
754
+ [[() => Credentials$, 0], 0, () => AssumedRoleUser$, 1, 0, 0, 0, 1, 1, [() => TrustedIdentityPropagationContext$, 0]]
671
755
  ];
672
756
  var AssumeRootRequest$ = [3, n0, _ARRss,
673
757
  0,
@@ -739,6 +823,16 @@ var GetFederationTokenResponse$ = [3, n0, _GFTRe,
739
823
  [_C, _FU, _PPS, _STU, _STS],
740
824
  [[() => Credentials$, 0], () => FederatedUser$, 1, 1, 1]
741
825
  ];
826
+ var GetScopedCredentialsRequest$ = [3, n0, _GSCR,
827
+ 0,
828
+ [_P, _DS, _MSTS, _SSD],
829
+ [0, 1, 1, 0]
830
+ ];
831
+ var GetScopedCredentialsResponse$ = [3, n0, _GSCRe,
832
+ 0,
833
+ [_C, _SIe, _STU, _STS, _SPC, _SI],
834
+ [[() => Credentials$, 0], () => ScopedSession$, 1, 1, 1, 0]
835
+ ];
742
836
  var GetSessionTokenRequest$ = [3, n0, _GSTR,
743
837
  0,
744
838
  [_DS, _SN, _TC, _MSTS],
@@ -751,14 +845,19 @@ var GetSessionTokenResponse$ = [3, n0, _GSTRe,
751
845
  ];
752
846
  var GetWebIdentityTokenRequest$ = [3, n0, _GWITR,
753
847
  0,
754
- [_Au, _SA, _DS, _T],
755
- [64 | 0, 0, 1, () => tagListType], 2
848
+ [_Au, _SA, _DS, _Sc, _SM, _T],
849
+ [64 | 0, 0, 1, 0, 0, () => tagListType], 2
756
850
  ];
757
851
  var GetWebIdentityTokenResponse$ = [3, n0, _GWITRe,
758
852
  0,
759
853
  [_WIT, _E],
760
854
  [[() => webIdentityTokenType, 0], 4]
761
855
  ];
856
+ var OriginIdentity$ = [3, n0, _OI,
857
+ 0,
858
+ [_S, _ST, _I, _FPA],
859
+ [[() => originIdentitySubjectType, 0], [() => originIdentitySubjectTypeType, 0], [() => originIdentityIssuerType, 0], 0]
860
+ ];
762
861
  var PolicyDescriptorType$ = [3, n0, _PDT,
763
862
  0,
764
863
  [_a],
@@ -769,11 +868,26 @@ var ProvidedContext$ = [3, n0, _PCr,
769
868
  [_PAro, _CA],
770
869
  [0, 0]
771
870
  ];
871
+ var ScopedSession$ = [3, n0, _SS,
872
+ 0,
873
+ [_SSI, _A],
874
+ [0, 0], 2
875
+ ];
772
876
  var Tag$ = [3, n0, _Ta,
773
877
  0,
774
878
  [_K, _V],
775
879
  [0, 0], 2
776
880
  ];
881
+ var TransactionContext$ = [3, n0, _TCr,
882
+ 0,
883
+ [_IP],
884
+ [[() => transactionContextIdentityProviderMapType, 0]]
885
+ ];
886
+ var TrustedIdentityPropagationContext$ = [3, n0, _TIPC,
887
+ 8,
888
+ [_OI, _TCr],
889
+ [[() => OriginIdentity$, 0], [() => TransactionContext$, 0]]
890
+ ];
777
891
  var policyDescriptorListType = [1, n0, _pDLT,
778
892
  0, () => PolicyDescriptorType$
779
893
  ];
@@ -783,6 +897,12 @@ var ProvidedContextsListType = [1, n0, _PCLT,
783
897
  var tagListType = [1, n0, _tLT,
784
898
  0, () => Tag$
785
899
  ];
900
+ var transactionContextIdentityProviderMapType = [2, n0, _tCIPMT,
901
+ 0, [0,
902
+ 0],
903
+ [() => transactionContextValueType,
904
+ 0]
905
+ ];
786
906
  var AssumeRole$ = [9, n0, _AR,
787
907
  0, () => AssumeRoleRequest$, () => AssumeRoleResponse$
788
908
  ];
@@ -810,6 +930,9 @@ var GetDelegatedAccessToken$ = [9, n0, _GDAT,
810
930
  var GetFederationToken$ = [9, n0, _GFT,
811
931
  0, () => GetFederationTokenRequest$, () => GetFederationTokenResponse$
812
932
  ];
933
+ var GetScopedCredentials$ = [9, n0, _GSC,
934
+ 0, () => GetScopedCredentialsRequest$, () => GetScopedCredentialsResponse$
935
+ ];
813
936
  var GetSessionToken$ = [9, n0, _GST,
814
937
  0, () => GetSessionTokenRequest$, () => GetSessionTokenResponse$
815
938
  ];
@@ -1026,6 +1149,9 @@ class GetDelegatedAccessTokenCommand extends command(_ep0, _mw0, "GetDelegatedAc
1026
1149
  class GetFederationTokenCommand extends command(_ep0, _mw0, "GetFederationToken", GetFederationToken$) {
1027
1150
  }
1028
1151
 
1152
+ class GetScopedCredentialsCommand extends command(_ep0, _mw0, "GetScopedCredentials", GetScopedCredentials$) {
1153
+ }
1154
+
1029
1155
  class GetSessionTokenCommand extends command(_ep0, _mw0, "GetSessionToken", GetSessionToken$) {
1030
1156
  }
1031
1157
 
@@ -1042,6 +1168,7 @@ const commands = {
1042
1168
  GetCallerIdentityCommand,
1043
1169
  GetDelegatedAccessTokenCommand,
1044
1170
  GetFederationTokenCommand,
1171
+ GetScopedCredentialsCommand,
1045
1172
  GetSessionTokenCommand,
1046
1173
  GetWebIdentityTokenCommand,
1047
1174
  };
@@ -1049,6 +1176,11 @@ class STS extends STSClient {
1049
1176
  }
1050
1177
  createAggregatedClient(commands, STS);
1051
1178
 
1179
+ const WebIdentityTokenSubjectModeType = {
1180
+ AWS_IDENTITY: "AWSIdentity",
1181
+ ORIGIN_IDENTITY: "OriginIdentity",
1182
+ };
1183
+
1052
1184
  const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
1053
1185
  if (typeof assumedRoleUser?.Arn === "string") {
1054
1186
  const arnComponents = assumedRoleUser.Arn.split(":");
@@ -1212,6 +1344,10 @@ exports.GetFederationToken$ = GetFederationToken$;
1212
1344
  exports.GetFederationTokenCommand = GetFederationTokenCommand;
1213
1345
  exports.GetFederationTokenRequest$ = GetFederationTokenRequest$;
1214
1346
  exports.GetFederationTokenResponse$ = GetFederationTokenResponse$;
1347
+ exports.GetScopedCredentials$ = GetScopedCredentials$;
1348
+ exports.GetScopedCredentialsCommand = GetScopedCredentialsCommand;
1349
+ exports.GetScopedCredentialsRequest$ = GetScopedCredentialsRequest$;
1350
+ exports.GetScopedCredentialsResponse$ = GetScopedCredentialsResponse$;
1215
1351
  exports.GetSessionToken$ = GetSessionToken$;
1216
1352
  exports.GetSessionTokenCommand = GetSessionTokenCommand;
1217
1353
  exports.GetSessionTokenRequest$ = GetSessionTokenRequest$;
@@ -1224,14 +1360,21 @@ exports.IDPCommunicationErrorException = IDPCommunicationErrorException;
1224
1360
  exports.IDPCommunicationErrorException$ = IDPCommunicationErrorException$;
1225
1361
  exports.IDPRejectedClaimException = IDPRejectedClaimException;
1226
1362
  exports.IDPRejectedClaimException$ = IDPRejectedClaimException$;
1363
+ exports.InsufficientSessionLifetimeException = InsufficientSessionLifetimeException;
1364
+ exports.InsufficientSessionLifetimeException$ = InsufficientSessionLifetimeException$;
1227
1365
  exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException;
1228
1366
  exports.InvalidAuthorizationMessageException$ = InvalidAuthorizationMessageException$;
1367
+ exports.InvalidContextAssertionException = InvalidContextAssertionException;
1368
+ exports.InvalidContextAssertionException$ = InvalidContextAssertionException$;
1229
1369
  exports.InvalidIdentityTokenException = InvalidIdentityTokenException;
1230
1370
  exports.InvalidIdentityTokenException$ = InvalidIdentityTokenException$;
1371
+ exports.InvalidSubjectCredentialsException = InvalidSubjectCredentialsException;
1372
+ exports.InvalidSubjectCredentialsException$ = InvalidSubjectCredentialsException$;
1231
1373
  exports.JWTPayloadSizeExceededException = JWTPayloadSizeExceededException;
1232
1374
  exports.JWTPayloadSizeExceededException$ = JWTPayloadSizeExceededException$;
1233
1375
  exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException;
1234
1376
  exports.MalformedPolicyDocumentException$ = MalformedPolicyDocumentException$;
1377
+ exports.OriginIdentity$ = OriginIdentity$;
1235
1378
  exports.OutboundWebIdentityFederationDisabledException = OutboundWebIdentityFederationDisabledException;
1236
1379
  exports.OutboundWebIdentityFederationDisabledException$ = OutboundWebIdentityFederationDisabledException$;
1237
1380
  exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException;
@@ -1244,9 +1387,13 @@ exports.STS = STS;
1244
1387
  exports.STSClient = STSClient;
1245
1388
  exports.STSServiceException = STSServiceException;
1246
1389
  exports.STSServiceException$ = STSServiceException$;
1390
+ exports.ScopedSession$ = ScopedSession$;
1247
1391
  exports.SessionDurationEscalationException = SessionDurationEscalationException;
1248
1392
  exports.SessionDurationEscalationException$ = SessionDurationEscalationException$;
1249
1393
  exports.Tag$ = Tag$;
1394
+ exports.TransactionContext$ = TransactionContext$;
1395
+ exports.TrustedIdentityPropagationContext$ = TrustedIdentityPropagationContext$;
1396
+ exports.WebIdentityTokenSubjectModeType = WebIdentityTokenSubjectModeType;
1250
1397
  exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider;
1251
1398
  exports.errorTypeRegistries = errorTypeRegistries;
1252
1399
  exports.getDefaultRoleAssumer = getDefaultRoleAssumer;
package/dist-es/STS.js CHANGED
@@ -8,6 +8,7 @@ import { GetAccessKeyInfoCommand, } from "./commands/GetAccessKeyInfoCommand";
8
8
  import { GetCallerIdentityCommand, } from "./commands/GetCallerIdentityCommand";
9
9
  import { GetDelegatedAccessTokenCommand, } from "./commands/GetDelegatedAccessTokenCommand";
10
10
  import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand";
11
+ import { GetScopedCredentialsCommand, } from "./commands/GetScopedCredentialsCommand";
11
12
  import { GetSessionTokenCommand, } from "./commands/GetSessionTokenCommand";
12
13
  import { GetWebIdentityTokenCommand, } from "./commands/GetWebIdentityTokenCommand";
13
14
  import { STSClient } from "./STSClient";
@@ -21,6 +22,7 @@ const commands = {
21
22
  GetCallerIdentityCommand,
22
23
  GetDelegatedAccessTokenCommand,
23
24
  GetFederationTokenCommand,
25
+ GetScopedCredentialsCommand,
24
26
  GetSessionTokenCommand,
25
27
  GetWebIdentityTokenCommand,
26
28
  };
@@ -0,0 +1,4 @@
1
+ import { _ep0, _mw0, command } from "../commandBuilder";
2
+ import { GetScopedCredentials$ } from "../schemas/schemas_0";
3
+ export class GetScopedCredentialsCommand extends command(_ep0, _mw0, "GetScopedCredentials", GetScopedCredentials$) {
4
+ }
@@ -7,5 +7,6 @@ export * from "./GetAccessKeyInfoCommand";
7
7
  export * from "./GetCallerIdentityCommand";
8
8
  export * from "./GetDelegatedAccessTokenCommand";
9
9
  export * from "./GetFederationTokenCommand";
10
+ export * from "./GetScopedCredentialsCommand";
10
11
  export * from "./GetSessionTokenCommand";
11
12
  export * from "./GetWebIdentityTokenCommand";
package/dist-es/index.js CHANGED
@@ -3,6 +3,7 @@ export * from "./STS";
3
3
  export * from "./commands";
4
4
  export { Command as $Command } from "@smithy/core/client";
5
5
  export * from "./schemas/schemas_0";
6
+ export * from "./models/enums";
6
7
  export * from "./models/errors";
7
8
  export * from "./models/models_0";
8
9
  export * from "./defaultRoleAssumers";
@@ -0,0 +1,4 @@
1
+ export const WebIdentityTokenSubjectModeType = {
2
+ AWS_IDENTITY: "AWSIdentity",
3
+ ORIGIN_IDENTITY: "OriginIdentity",
4
+ };
@@ -12,6 +12,19 @@ export class ExpiredTokenException extends __BaseException {
12
12
  Object.setPrototypeOf(this, ExpiredTokenException.prototype);
13
13
  }
14
14
  }
15
+ export class InvalidContextAssertionException extends __BaseException {
16
+ static shapeId = "com.amazonaws.sts#InvalidContextAssertionException";
17
+ name = "InvalidContextAssertionException";
18
+ $fault = "client";
19
+ constructor(opts) {
20
+ super({
21
+ name: "InvalidContextAssertionException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, InvalidContextAssertionException.prototype);
26
+ }
27
+ }
15
28
  export class MalformedPolicyDocumentException extends __BaseException {
16
29
  static shapeId = "com.amazonaws.sts#MalformedPolicyDocumentException";
17
30
  name = "MalformedPolicyDocumentException";
@@ -117,6 +130,32 @@ export class ExpiredTradeInTokenException extends __BaseException {
117
130
  Object.setPrototypeOf(this, ExpiredTradeInTokenException.prototype);
118
131
  }
119
132
  }
133
+ export class InsufficientSessionLifetimeException extends __BaseException {
134
+ static shapeId = "com.amazonaws.sts#InsufficientSessionLifetimeException";
135
+ name = "InsufficientSessionLifetimeException";
136
+ $fault = "client";
137
+ constructor(opts) {
138
+ super({
139
+ name: "InsufficientSessionLifetimeException",
140
+ $fault: "client",
141
+ ...opts,
142
+ });
143
+ Object.setPrototypeOf(this, InsufficientSessionLifetimeException.prototype);
144
+ }
145
+ }
146
+ export class InvalidSubjectCredentialsException extends __BaseException {
147
+ static shapeId = "com.amazonaws.sts#InvalidSubjectCredentialsException";
148
+ name = "InvalidSubjectCredentialsException";
149
+ $fault = "client";
150
+ constructor(opts) {
151
+ super({
152
+ name: "InvalidSubjectCredentialsException",
153
+ $fault: "client",
154
+ ...opts,
155
+ });
156
+ Object.setPrototypeOf(this, InvalidSubjectCredentialsException.prototype);
157
+ }
158
+ }
120
159
  export class JWTPayloadSizeExceededException extends __BaseException {
121
160
  static shapeId = "com.amazonaws.sts#JWTPayloadSizeExceededException";
122
161
  name = "JWTPayloadSizeExceededException";