@aws-sdk/client-sts 3.53.0 → 3.55.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 (33) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist-cjs/STSClient.js +12 -12
  3. package/dist-cjs/commands/AssumeRoleCommand.js +4 -4
  4. package/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +3 -3
  5. package/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +3 -3
  6. package/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +4 -4
  7. package/dist-cjs/commands/GetAccessKeyInfoCommand.js +4 -4
  8. package/dist-cjs/commands/GetCallerIdentityCommand.js +4 -4
  9. package/dist-cjs/commands/GetFederationTokenCommand.js +4 -4
  10. package/dist-cjs/commands/GetSessionTokenCommand.js +4 -4
  11. package/dist-cjs/defaultRoleAssumers.js +4 -4
  12. package/dist-cjs/defaultStsRoleAssumers.js +2 -2
  13. package/dist-cjs/endpoints.js +1 -1
  14. package/dist-cjs/protocols/Aws_query.js +56 -56
  15. package/dist-cjs/runtimeConfig.browser.js +4 -4
  16. package/dist-cjs/runtimeConfig.js +9 -9
  17. package/dist-cjs/runtimeConfig.native.js +1 -1
  18. package/dist-es/STS.js +8 -8
  19. package/dist-es/defaultStsRoleAssumers.js +2 -2
  20. package/dist-es/protocols/Aws_query.js +10 -10
  21. package/dist-types/STS.d.ts +7 -7
  22. package/dist-types/STSClient.d.ts +2 -2
  23. package/dist-types/commands/AssumeRoleCommand.d.ts +4 -4
  24. package/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +3 -3
  25. package/dist-types/models/models_0.d.ts +6 -6
  26. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  27. package/dist-types/runtimeConfig.d.ts +1 -1
  28. package/dist-types/runtimeConfig.native.d.ts +3 -3
  29. package/dist-types/ts3.4/STSClient.d.ts +2 -2
  30. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
  31. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
  32. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  33. package/package.json +34 -34
@@ -153,7 +153,7 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
153
153
  $fault: "client",
154
154
  $metadata: deserializeMetadata(output),
155
155
  });
156
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
156
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
157
157
  }
158
158
  };
159
159
  const deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => {
@@ -204,7 +204,7 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
204
204
  $fault: "client",
205
205
  $metadata: deserializeMetadata(output),
206
206
  });
207
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
207
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
208
208
  }
209
209
  };
210
210
  const deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => {
@@ -258,7 +258,7 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
258
258
  $fault: "client",
259
259
  $metadata: deserializeMetadata(output),
260
260
  });
261
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
261
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
262
262
  }
263
263
  };
264
264
  const deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => {
@@ -294,7 +294,7 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
294
294
  $fault: "client",
295
295
  $metadata: deserializeMetadata(output),
296
296
  });
297
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
297
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
298
298
  }
299
299
  };
300
300
  const deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => {
@@ -327,7 +327,7 @@ const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context)
327
327
  $fault: "client",
328
328
  $metadata: deserializeMetadata(output),
329
329
  });
330
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
330
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
331
331
  }
332
332
  };
333
333
  const deserializeAws_queryGetCallerIdentityCommand = async (output, context) => {
@@ -360,7 +360,7 @@ const deserializeAws_queryGetCallerIdentityCommandError = async (output, context
360
360
  $fault: "client",
361
361
  $metadata: deserializeMetadata(output),
362
362
  });
363
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
363
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
364
364
  }
365
365
  };
366
366
  const deserializeAws_queryGetFederationTokenCommand = async (output, context) => {
@@ -402,7 +402,7 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
402
402
  $fault: "client",
403
403
  $metadata: deserializeMetadata(output),
404
404
  });
405
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
405
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
406
406
  }
407
407
  };
408
408
  const deserializeAws_queryGetSessionTokenCommand = async (output, context) => {
@@ -438,7 +438,7 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
438
438
  $fault: "client",
439
439
  $metadata: deserializeMetadata(output),
440
440
  });
441
- throw smithy_client_1.decorateServiceException(response, parsedBody.Error);
441
+ throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
442
442
  }
443
443
  };
444
444
  const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => {
@@ -448,7 +448,7 @@ const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, c
448
448
  $metadata: deserializeMetadata(parsedOutput),
449
449
  ...deserialized,
450
450
  });
451
- return smithy_client_1.decorateServiceException(exception, body);
451
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
452
452
  };
453
453
  const deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsedOutput, context) => {
454
454
  const body = parsedOutput.body;
@@ -457,7 +457,7 @@ const deserializeAws_queryIDPCommunicationErrorExceptionResponse = async (parsed
457
457
  $metadata: deserializeMetadata(parsedOutput),
458
458
  ...deserialized,
459
459
  });
460
- return smithy_client_1.decorateServiceException(exception, body);
460
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
461
461
  };
462
462
  const deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutput, context) => {
463
463
  const body = parsedOutput.body;
@@ -466,7 +466,7 @@ const deserializeAws_queryIDPRejectedClaimExceptionResponse = async (parsedOutpu
466
466
  $metadata: deserializeMetadata(parsedOutput),
467
467
  ...deserialized,
468
468
  });
469
- return smithy_client_1.decorateServiceException(exception, body);
469
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
470
470
  };
471
471
  const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (parsedOutput, context) => {
472
472
  const body = parsedOutput.body;
@@ -475,7 +475,7 @@ const deserializeAws_queryInvalidAuthorizationMessageExceptionResponse = async (
475
475
  $metadata: deserializeMetadata(parsedOutput),
476
476
  ...deserialized,
477
477
  });
478
- return smithy_client_1.decorateServiceException(exception, body);
478
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
479
479
  };
480
480
  const deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedOutput, context) => {
481
481
  const body = parsedOutput.body;
@@ -484,7 +484,7 @@ const deserializeAws_queryInvalidIdentityTokenExceptionResponse = async (parsedO
484
484
  $metadata: deserializeMetadata(parsedOutput),
485
485
  ...deserialized,
486
486
  });
487
- return smithy_client_1.decorateServiceException(exception, body);
487
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
488
488
  };
489
489
  const deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (parsedOutput, context) => {
490
490
  const body = parsedOutput.body;
@@ -493,7 +493,7 @@ const deserializeAws_queryMalformedPolicyDocumentExceptionResponse = async (pars
493
493
  $metadata: deserializeMetadata(parsedOutput),
494
494
  ...deserialized,
495
495
  });
496
- return smithy_client_1.decorateServiceException(exception, body);
496
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
497
497
  };
498
498
  const deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedOutput, context) => {
499
499
  const body = parsedOutput.body;
@@ -502,7 +502,7 @@ const deserializeAws_queryPackedPolicyTooLargeExceptionResponse = async (parsedO
502
502
  $metadata: deserializeMetadata(parsedOutput),
503
503
  ...deserialized,
504
504
  });
505
- return smithy_client_1.decorateServiceException(exception, body);
505
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
506
506
  };
507
507
  const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput, context) => {
508
508
  const body = parsedOutput.body;
@@ -511,7 +511,7 @@ const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput,
511
511
  $metadata: deserializeMetadata(parsedOutput),
512
512
  ...deserialized,
513
513
  });
514
- return smithy_client_1.decorateServiceException(exception, body);
514
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
515
515
  };
516
516
  const serializeAws_queryAssumeRoleRequest = (input, context) => {
517
517
  const entries = {};
@@ -740,10 +740,10 @@ const deserializeAws_queryAssumedRoleUser = (output, context) => {
740
740
  Arn: undefined,
741
741
  };
742
742
  if (output["AssumedRoleId"] !== undefined) {
743
- contents.AssumedRoleId = smithy_client_1.expectString(output["AssumedRoleId"]);
743
+ contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]);
744
744
  }
745
745
  if (output["Arn"] !== undefined) {
746
- contents.Arn = smithy_client_1.expectString(output["Arn"]);
746
+ contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
747
747
  }
748
748
  return contents;
749
749
  };
@@ -761,10 +761,10 @@ const deserializeAws_queryAssumeRoleResponse = (output, context) => {
761
761
  contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context);
762
762
  }
763
763
  if (output["PackedPolicySize"] !== undefined) {
764
- contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]);
764
+ contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
765
765
  }
766
766
  if (output["SourceIdentity"] !== undefined) {
767
- contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]);
767
+ contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]);
768
768
  }
769
769
  return contents;
770
770
  };
@@ -787,25 +787,25 @@ const deserializeAws_queryAssumeRoleWithSAMLResponse = (output, context) => {
787
787
  contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context);
788
788
  }
789
789
  if (output["PackedPolicySize"] !== undefined) {
790
- contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]);
790
+ contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
791
791
  }
792
792
  if (output["Subject"] !== undefined) {
793
- contents.Subject = smithy_client_1.expectString(output["Subject"]);
793
+ contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]);
794
794
  }
795
795
  if (output["SubjectType"] !== undefined) {
796
- contents.SubjectType = smithy_client_1.expectString(output["SubjectType"]);
796
+ contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]);
797
797
  }
798
798
  if (output["Issuer"] !== undefined) {
799
- contents.Issuer = smithy_client_1.expectString(output["Issuer"]);
799
+ contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]);
800
800
  }
801
801
  if (output["Audience"] !== undefined) {
802
- contents.Audience = smithy_client_1.expectString(output["Audience"]);
802
+ contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]);
803
803
  }
804
804
  if (output["NameQualifier"] !== undefined) {
805
- contents.NameQualifier = smithy_client_1.expectString(output["NameQualifier"]);
805
+ contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]);
806
806
  }
807
807
  if (output["SourceIdentity"] !== undefined) {
808
- contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]);
808
+ contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]);
809
809
  }
810
810
  return contents;
811
811
  };
@@ -823,22 +823,22 @@ const deserializeAws_queryAssumeRoleWithWebIdentityResponse = (output, context)
823
823
  contents.Credentials = deserializeAws_queryCredentials(output["Credentials"], context);
824
824
  }
825
825
  if (output["SubjectFromWebIdentityToken"] !== undefined) {
826
- contents.SubjectFromWebIdentityToken = smithy_client_1.expectString(output["SubjectFromWebIdentityToken"]);
826
+ contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]);
827
827
  }
828
828
  if (output["AssumedRoleUser"] !== undefined) {
829
829
  contents.AssumedRoleUser = deserializeAws_queryAssumedRoleUser(output["AssumedRoleUser"], context);
830
830
  }
831
831
  if (output["PackedPolicySize"] !== undefined) {
832
- contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]);
832
+ contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
833
833
  }
834
834
  if (output["Provider"] !== undefined) {
835
- contents.Provider = smithy_client_1.expectString(output["Provider"]);
835
+ contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]);
836
836
  }
837
837
  if (output["Audience"] !== undefined) {
838
- contents.Audience = smithy_client_1.expectString(output["Audience"]);
838
+ contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]);
839
839
  }
840
840
  if (output["SourceIdentity"] !== undefined) {
841
- contents.SourceIdentity = smithy_client_1.expectString(output["SourceIdentity"]);
841
+ contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]);
842
842
  }
843
843
  return contents;
844
844
  };
@@ -850,16 +850,16 @@ const deserializeAws_queryCredentials = (output, context) => {
850
850
  Expiration: undefined,
851
851
  };
852
852
  if (output["AccessKeyId"] !== undefined) {
853
- contents.AccessKeyId = smithy_client_1.expectString(output["AccessKeyId"]);
853
+ contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]);
854
854
  }
855
855
  if (output["SecretAccessKey"] !== undefined) {
856
- contents.SecretAccessKey = smithy_client_1.expectString(output["SecretAccessKey"]);
856
+ contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]);
857
857
  }
858
858
  if (output["SessionToken"] !== undefined) {
859
- contents.SessionToken = smithy_client_1.expectString(output["SessionToken"]);
859
+ contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]);
860
860
  }
861
861
  if (output["Expiration"] !== undefined) {
862
- contents.Expiration = smithy_client_1.expectNonNull(smithy_client_1.parseRfc3339DateTime(output["Expiration"]));
862
+ contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output["Expiration"]));
863
863
  }
864
864
  return contents;
865
865
  };
@@ -868,7 +868,7 @@ const deserializeAws_queryDecodeAuthorizationMessageResponse = (output, context)
868
868
  DecodedMessage: undefined,
869
869
  };
870
870
  if (output["DecodedMessage"] !== undefined) {
871
- contents.DecodedMessage = smithy_client_1.expectString(output["DecodedMessage"]);
871
+ contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]);
872
872
  }
873
873
  return contents;
874
874
  };
@@ -877,7 +877,7 @@ const deserializeAws_queryExpiredTokenException = (output, context) => {
877
877
  message: undefined,
878
878
  };
879
879
  if (output["message"] !== undefined) {
880
- contents.message = smithy_client_1.expectString(output["message"]);
880
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
881
881
  }
882
882
  return contents;
883
883
  };
@@ -887,10 +887,10 @@ const deserializeAws_queryFederatedUser = (output, context) => {
887
887
  Arn: undefined,
888
888
  };
889
889
  if (output["FederatedUserId"] !== undefined) {
890
- contents.FederatedUserId = smithy_client_1.expectString(output["FederatedUserId"]);
890
+ contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]);
891
891
  }
892
892
  if (output["Arn"] !== undefined) {
893
- contents.Arn = smithy_client_1.expectString(output["Arn"]);
893
+ contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
894
894
  }
895
895
  return contents;
896
896
  };
@@ -899,7 +899,7 @@ const deserializeAws_queryGetAccessKeyInfoResponse = (output, context) => {
899
899
  Account: undefined,
900
900
  };
901
901
  if (output["Account"] !== undefined) {
902
- contents.Account = smithy_client_1.expectString(output["Account"]);
902
+ contents.Account = (0, smithy_client_1.expectString)(output["Account"]);
903
903
  }
904
904
  return contents;
905
905
  };
@@ -910,13 +910,13 @@ const deserializeAws_queryGetCallerIdentityResponse = (output, context) => {
910
910
  Arn: undefined,
911
911
  };
912
912
  if (output["UserId"] !== undefined) {
913
- contents.UserId = smithy_client_1.expectString(output["UserId"]);
913
+ contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]);
914
914
  }
915
915
  if (output["Account"] !== undefined) {
916
- contents.Account = smithy_client_1.expectString(output["Account"]);
916
+ contents.Account = (0, smithy_client_1.expectString)(output["Account"]);
917
917
  }
918
918
  if (output["Arn"] !== undefined) {
919
- contents.Arn = smithy_client_1.expectString(output["Arn"]);
919
+ contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]);
920
920
  }
921
921
  return contents;
922
922
  };
@@ -933,7 +933,7 @@ const deserializeAws_queryGetFederationTokenResponse = (output, context) => {
933
933
  contents.FederatedUser = deserializeAws_queryFederatedUser(output["FederatedUser"], context);
934
934
  }
935
935
  if (output["PackedPolicySize"] !== undefined) {
936
- contents.PackedPolicySize = smithy_client_1.strictParseInt32(output["PackedPolicySize"]);
936
+ contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]);
937
937
  }
938
938
  return contents;
939
939
  };
@@ -951,7 +951,7 @@ const deserializeAws_queryIDPCommunicationErrorException = (output, context) =>
951
951
  message: undefined,
952
952
  };
953
953
  if (output["message"] !== undefined) {
954
- contents.message = smithy_client_1.expectString(output["message"]);
954
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
955
955
  }
956
956
  return contents;
957
957
  };
@@ -960,7 +960,7 @@ const deserializeAws_queryIDPRejectedClaimException = (output, context) => {
960
960
  message: undefined,
961
961
  };
962
962
  if (output["message"] !== undefined) {
963
- contents.message = smithy_client_1.expectString(output["message"]);
963
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
964
964
  }
965
965
  return contents;
966
966
  };
@@ -969,7 +969,7 @@ const deserializeAws_queryInvalidAuthorizationMessageException = (output, contex
969
969
  message: undefined,
970
970
  };
971
971
  if (output["message"] !== undefined) {
972
- contents.message = smithy_client_1.expectString(output["message"]);
972
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
973
973
  }
974
974
  return contents;
975
975
  };
@@ -978,7 +978,7 @@ const deserializeAws_queryInvalidIdentityTokenException = (output, context) => {
978
978
  message: undefined,
979
979
  };
980
980
  if (output["message"] !== undefined) {
981
- contents.message = smithy_client_1.expectString(output["message"]);
981
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
982
982
  }
983
983
  return contents;
984
984
  };
@@ -987,7 +987,7 @@ const deserializeAws_queryMalformedPolicyDocumentException = (output, context) =
987
987
  message: undefined,
988
988
  };
989
989
  if (output["message"] !== undefined) {
990
- contents.message = smithy_client_1.expectString(output["message"]);
990
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
991
991
  }
992
992
  return contents;
993
993
  };
@@ -996,7 +996,7 @@ const deserializeAws_queryPackedPolicyTooLargeException = (output, context) => {
996
996
  message: undefined,
997
997
  };
998
998
  if (output["message"] !== undefined) {
999
- contents.message = smithy_client_1.expectString(output["message"]);
999
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
1000
1000
  }
1001
1001
  return contents;
1002
1002
  };
@@ -1005,7 +1005,7 @@ const deserializeAws_queryRegionDisabledException = (output, context) => {
1005
1005
  message: undefined,
1006
1006
  };
1007
1007
  if (output["message"] !== undefined) {
1008
- contents.message = smithy_client_1.expectString(output["message"]);
1008
+ contents.message = (0, smithy_client_1.expectString)(output["message"]);
1009
1009
  }
1010
1010
  return contents;
1011
1011
  };
@@ -1045,12 +1045,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
1045
1045
  };
1046
1046
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1047
1047
  if (encoded.length) {
1048
- const parsedObj = fast_xml_parser_1.parse(encoded, {
1048
+ const parsedObj = (0, fast_xml_parser_1.parse)(encoded, {
1049
1049
  attributeNamePrefix: "",
1050
1050
  ignoreAttributes: false,
1051
1051
  parseNodeValue: false,
1052
1052
  trimValues: false,
1053
- tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : entities_1.decodeHTML(val)),
1053
+ tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)),
1054
1054
  });
1055
1055
  const textNodeName = "#text";
1056
1056
  const key = Object.keys(parsedObj)[0];
@@ -1059,12 +1059,12 @@ const parseBody = (streamBody, context) => collectBodyString(streamBody, context
1059
1059
  parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
1060
1060
  delete parsedObjToReturn[textNodeName];
1061
1061
  }
1062
- return smithy_client_1.getValueFromTextNode(parsedObjToReturn);
1062
+ return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn);
1063
1063
  }
1064
1064
  return {};
1065
1065
  });
1066
1066
  const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
1067
- .map(([key, value]) => smithy_client_1.extendedEncodeURIComponent(key) + "=" + smithy_client_1.extendedEncodeURIComponent(value))
1067
+ .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value))
1068
1068
  .join("&");
1069
1069
  const loadQueryErrorCode = (output, data) => {
1070
1070
  if (data.Error.Code !== undefined) {
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
17
17
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
18
18
  const getRuntimeConfig = (config) => {
19
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
- const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
20
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
21
21
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
22
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
22
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
23
23
  return {
24
24
  ...clientSharedValues,
25
25
  ...config,
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
29
29
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
30
30
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
31
31
  credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
32
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
32
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
33
33
  maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
34
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
34
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
35
35
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
36
36
  retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
37
37
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
19
19
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
20
20
  const getRuntimeConfig = (config) => {
21
21
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
22
- const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
22
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
23
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
- const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
24
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
25
25
  return {
26
26
  ...clientSharedValues,
27
27
  ...config,
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
30
30
  base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
31
31
  base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
32
32
  bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
33
- credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : defaultStsRoleAssumers_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
34
- defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
- maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
- region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
33
+ credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
34
+ defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
35
+ maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
36
+ region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
37
37
  requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
38
- retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
38
+ retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
39
39
  ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
40
40
  default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
41
41
  }),
42
42
  sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
43
43
  streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
44
- useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
- useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
44
+ useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
45
+ useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
46
46
  utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
47
47
  utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
48
48
  };
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
5
  const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
6
  const getRuntimeConfig = (config) => {
7
7
  var _a;
8
- const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
8
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
9
9
  return {
10
10
  ...browserDefaults,
11
11
  ...config,
package/dist-es/STS.js CHANGED
@@ -20,7 +20,7 @@ var STS = (function (_super) {
20
20
  }
21
21
  else if (typeof cb === "function") {
22
22
  if (typeof optionsOrCb !== "object")
23
- throw new Error("Expect http options but get " + typeof optionsOrCb);
23
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
24
24
  this.send(command, optionsOrCb || {}, cb);
25
25
  }
26
26
  else {
@@ -34,7 +34,7 @@ var STS = (function (_super) {
34
34
  }
35
35
  else if (typeof cb === "function") {
36
36
  if (typeof optionsOrCb !== "object")
37
- throw new Error("Expect http options but get " + typeof optionsOrCb);
37
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
38
38
  this.send(command, optionsOrCb || {}, cb);
39
39
  }
40
40
  else {
@@ -48,7 +48,7 @@ var STS = (function (_super) {
48
48
  }
49
49
  else if (typeof cb === "function") {
50
50
  if (typeof optionsOrCb !== "object")
51
- throw new Error("Expect http options but get " + typeof optionsOrCb);
51
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
52
52
  this.send(command, optionsOrCb || {}, cb);
53
53
  }
54
54
  else {
@@ -62,7 +62,7 @@ var STS = (function (_super) {
62
62
  }
63
63
  else if (typeof cb === "function") {
64
64
  if (typeof optionsOrCb !== "object")
65
- throw new Error("Expect http options but get " + typeof optionsOrCb);
65
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
66
66
  this.send(command, optionsOrCb || {}, cb);
67
67
  }
68
68
  else {
@@ -76,7 +76,7 @@ var STS = (function (_super) {
76
76
  }
77
77
  else if (typeof cb === "function") {
78
78
  if (typeof optionsOrCb !== "object")
79
- throw new Error("Expect http options but get " + typeof optionsOrCb);
79
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
80
80
  this.send(command, optionsOrCb || {}, cb);
81
81
  }
82
82
  else {
@@ -90,7 +90,7 @@ var STS = (function (_super) {
90
90
  }
91
91
  else if (typeof cb === "function") {
92
92
  if (typeof optionsOrCb !== "object")
93
- throw new Error("Expect http options but get " + typeof optionsOrCb);
93
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
94
94
  this.send(command, optionsOrCb || {}, cb);
95
95
  }
96
96
  else {
@@ -104,7 +104,7 @@ var STS = (function (_super) {
104
104
  }
105
105
  else if (typeof cb === "function") {
106
106
  if (typeof optionsOrCb !== "object")
107
- throw new Error("Expect http options but get " + typeof optionsOrCb);
107
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
108
108
  this.send(command, optionsOrCb || {}, cb);
109
109
  }
110
110
  else {
@@ -118,7 +118,7 @@ var STS = (function (_super) {
118
118
  }
119
119
  else if (typeof cb === "function") {
120
120
  if (typeof optionsOrCb !== "object")
121
- throw new Error("Expect http options but get " + typeof optionsOrCb);
121
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
122
122
  this.send(command, optionsOrCb || {}, cb);
123
123
  }
124
124
  else {
@@ -41,7 +41,7 @@ export var getDefaultRoleAssumer = function (stsOptions, stsClientCtor) {
41
41
  case 1:
42
42
  Credentials = (_a.sent()).Credentials;
43
43
  if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
44
- throw new Error("Invalid response from STS.assumeRole call with role " + params.RoleArn);
44
+ throw new Error("Invalid response from STS.assumeRole call with role ".concat(params.RoleArn));
45
45
  }
46
46
  return [2, {
47
47
  accessKeyId: Credentials.AccessKeyId,
@@ -68,7 +68,7 @@ export var getDefaultRoleAssumerWithWebIdentity = function (stsOptions, stsClien
68
68
  case 1:
69
69
  Credentials = (_a.sent()).Credentials;
70
70
  if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) {
71
- throw new Error("Invalid response from STS.assumeRoleWithWebIdentity call with role " + params.RoleArn);
71
+ throw new Error("Invalid response from STS.assumeRoleWithWebIdentity call with role ".concat(params.RoleArn));
72
72
  }
73
73
  return [2, {
74
74
  accessKeyId: Credentials.AccessKeyId,