@aws-sdk/client-rolesanywhere 3.523.0 → 3.529.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 (48) hide show
  1. package/dist-cjs/index.js +29 -69
  2. package/dist-es/protocols/Aws_restJson1.js +1 -40
  3. package/package.json +17 -17
  4. package/dist-cjs/RolesAnywhere.js +0 -1
  5. package/dist-cjs/RolesAnywhereClient.js +0 -1
  6. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  7. package/dist-cjs/commands/CreateProfileCommand.js +0 -1
  8. package/dist-cjs/commands/CreateTrustAnchorCommand.js +0 -1
  9. package/dist-cjs/commands/DeleteCrlCommand.js +0 -1
  10. package/dist-cjs/commands/DeleteProfileCommand.js +0 -1
  11. package/dist-cjs/commands/DeleteTrustAnchorCommand.js +0 -1
  12. package/dist-cjs/commands/DisableCrlCommand.js +0 -1
  13. package/dist-cjs/commands/DisableProfileCommand.js +0 -1
  14. package/dist-cjs/commands/DisableTrustAnchorCommand.js +0 -1
  15. package/dist-cjs/commands/EnableCrlCommand.js +0 -1
  16. package/dist-cjs/commands/EnableProfileCommand.js +0 -1
  17. package/dist-cjs/commands/EnableTrustAnchorCommand.js +0 -1
  18. package/dist-cjs/commands/GetCrlCommand.js +0 -1
  19. package/dist-cjs/commands/GetProfileCommand.js +0 -1
  20. package/dist-cjs/commands/GetSubjectCommand.js +0 -1
  21. package/dist-cjs/commands/GetTrustAnchorCommand.js +0 -1
  22. package/dist-cjs/commands/ImportCrlCommand.js +0 -1
  23. package/dist-cjs/commands/ListCrlsCommand.js +0 -1
  24. package/dist-cjs/commands/ListProfilesCommand.js +0 -1
  25. package/dist-cjs/commands/ListSubjectsCommand.js +0 -1
  26. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  27. package/dist-cjs/commands/ListTrustAnchorsCommand.js +0 -1
  28. package/dist-cjs/commands/PutNotificationSettingsCommand.js +0 -1
  29. package/dist-cjs/commands/ResetNotificationSettingsCommand.js +0 -1
  30. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  31. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  32. package/dist-cjs/commands/UpdateCrlCommand.js +0 -1
  33. package/dist-cjs/commands/UpdateProfileCommand.js +0 -1
  34. package/dist-cjs/commands/UpdateTrustAnchorCommand.js +0 -1
  35. package/dist-cjs/commands/index.js +0 -1
  36. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  37. package/dist-cjs/extensionConfiguration.js +0 -1
  38. package/dist-cjs/models/RolesAnywhereServiceException.js +0 -1
  39. package/dist-cjs/models/index.js +0 -1
  40. package/dist-cjs/models/models_0.js +0 -1
  41. package/dist-cjs/pagination/Interfaces.js +0 -1
  42. package/dist-cjs/pagination/ListCrlsPaginator.js +0 -1
  43. package/dist-cjs/pagination/ListProfilesPaginator.js +0 -1
  44. package/dist-cjs/pagination/ListSubjectsPaginator.js +0 -1
  45. package/dist-cjs/pagination/ListTrustAnchorsPaginator.js +0 -1
  46. package/dist-cjs/pagination/index.js +0 -1
  47. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  48. package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js CHANGED
@@ -367,6 +367,7 @@ var UntagResourceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
367
367
  }), "UntagResourceRequestFilterSensitiveLog");
368
368
 
369
369
  // src/protocols/Aws_restJson1.ts
370
+ var import_core2 = require("@aws-sdk/core");
370
371
 
371
372
 
372
373
  var se_CreateProfileCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -730,7 +731,7 @@ var de_CreateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
730
731
  const contents = (0, import_smithy_client.map)({
731
732
  $metadata: deserializeMetadata(output)
732
733
  });
733
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
734
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
734
735
  const doc = (0, import_smithy_client.take)(data, {
735
736
  profile: (_) => de_ProfileDetail(_, context)
736
737
  });
@@ -744,7 +745,7 @@ var de_CreateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
744
745
  const contents = (0, import_smithy_client.map)({
745
746
  $metadata: deserializeMetadata(output)
746
747
  });
747
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
748
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
748
749
  const doc = (0, import_smithy_client.take)(data, {
749
750
  trustAnchor: (_) => de_TrustAnchorDetail(_, context)
750
751
  });
@@ -758,7 +759,7 @@ var de_DeleteCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
758
759
  const contents = (0, import_smithy_client.map)({
759
760
  $metadata: deserializeMetadata(output)
760
761
  });
761
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
762
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
762
763
  const doc = (0, import_smithy_client.take)(data, {
763
764
  crl: (_) => de_CrlDetail(_, context)
764
765
  });
@@ -772,7 +773,7 @@ var de_DeleteProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
772
773
  const contents = (0, import_smithy_client.map)({
773
774
  $metadata: deserializeMetadata(output)
774
775
  });
775
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
776
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
776
777
  const doc = (0, import_smithy_client.take)(data, {
777
778
  profile: (_) => de_ProfileDetail(_, context)
778
779
  });
@@ -786,7 +787,7 @@ var de_DeleteTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
786
787
  const contents = (0, import_smithy_client.map)({
787
788
  $metadata: deserializeMetadata(output)
788
789
  });
789
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
790
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
790
791
  const doc = (0, import_smithy_client.take)(data, {
791
792
  trustAnchor: (_) => de_TrustAnchorDetail(_, context)
792
793
  });
@@ -800,7 +801,7 @@ var de_DisableCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
800
801
  const contents = (0, import_smithy_client.map)({
801
802
  $metadata: deserializeMetadata(output)
802
803
  });
803
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
804
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
804
805
  const doc = (0, import_smithy_client.take)(data, {
805
806
  crl: (_) => de_CrlDetail(_, context)
806
807
  });
@@ -814,7 +815,7 @@ var de_DisableProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
814
815
  const contents = (0, import_smithy_client.map)({
815
816
  $metadata: deserializeMetadata(output)
816
817
  });
817
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
818
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
818
819
  const doc = (0, import_smithy_client.take)(data, {
819
820
  profile: (_) => de_ProfileDetail(_, context)
820
821
  });
@@ -828,7 +829,7 @@ var de_DisableTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context
828
829
  const contents = (0, import_smithy_client.map)({
829
830
  $metadata: deserializeMetadata(output)
830
831
  });
831
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
832
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
832
833
  const doc = (0, import_smithy_client.take)(data, {
833
834
  trustAnchor: (_) => de_TrustAnchorDetail(_, context)
834
835
  });
@@ -842,7 +843,7 @@ var de_EnableCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
842
843
  const contents = (0, import_smithy_client.map)({
843
844
  $metadata: deserializeMetadata(output)
844
845
  });
845
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
846
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
846
847
  const doc = (0, import_smithy_client.take)(data, {
847
848
  crl: (_) => de_CrlDetail(_, context)
848
849
  });
@@ -856,7 +857,7 @@ var de_EnableProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
856
857
  const contents = (0, import_smithy_client.map)({
857
858
  $metadata: deserializeMetadata(output)
858
859
  });
859
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
860
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
860
861
  const doc = (0, import_smithy_client.take)(data, {
861
862
  profile: (_) => de_ProfileDetail(_, context)
862
863
  });
@@ -870,7 +871,7 @@ var de_EnableTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
870
871
  const contents = (0, import_smithy_client.map)({
871
872
  $metadata: deserializeMetadata(output)
872
873
  });
873
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
874
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
874
875
  const doc = (0, import_smithy_client.take)(data, {
875
876
  trustAnchor: (_) => de_TrustAnchorDetail(_, context)
876
877
  });
@@ -884,7 +885,7 @@ var de_GetCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
884
885
  const contents = (0, import_smithy_client.map)({
885
886
  $metadata: deserializeMetadata(output)
886
887
  });
887
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
888
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
888
889
  const doc = (0, import_smithy_client.take)(data, {
889
890
  crl: (_) => de_CrlDetail(_, context)
890
891
  });
@@ -898,7 +899,7 @@ var de_GetProfileCommand = /* @__PURE__ */ __name(async (output, context) => {
898
899
  const contents = (0, import_smithy_client.map)({
899
900
  $metadata: deserializeMetadata(output)
900
901
  });
901
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
902
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
902
903
  const doc = (0, import_smithy_client.take)(data, {
903
904
  profile: (_) => de_ProfileDetail(_, context)
904
905
  });
@@ -912,7 +913,7 @@ var de_GetSubjectCommand = /* @__PURE__ */ __name(async (output, context) => {
912
913
  const contents = (0, import_smithy_client.map)({
913
914
  $metadata: deserializeMetadata(output)
914
915
  });
915
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
916
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
916
917
  const doc = (0, import_smithy_client.take)(data, {
917
918
  subject: (_) => de_SubjectDetail(_, context)
918
919
  });
@@ -926,7 +927,7 @@ var de_GetTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context) =>
926
927
  const contents = (0, import_smithy_client.map)({
927
928
  $metadata: deserializeMetadata(output)
928
929
  });
929
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
930
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
930
931
  const doc = (0, import_smithy_client.take)(data, {
931
932
  trustAnchor: (_) => de_TrustAnchorDetail(_, context)
932
933
  });
@@ -940,7 +941,7 @@ var de_ImportCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
940
941
  const contents = (0, import_smithy_client.map)({
941
942
  $metadata: deserializeMetadata(output)
942
943
  });
943
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
944
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
944
945
  const doc = (0, import_smithy_client.take)(data, {
945
946
  crl: (_) => de_CrlDetail(_, context)
946
947
  });
@@ -954,7 +955,7 @@ var de_ListCrlsCommand = /* @__PURE__ */ __name(async (output, context) => {
954
955
  const contents = (0, import_smithy_client.map)({
955
956
  $metadata: deserializeMetadata(output)
956
957
  });
957
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
958
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
958
959
  const doc = (0, import_smithy_client.take)(data, {
959
960
  crls: (_) => de_CrlDetails(_, context),
960
961
  nextToken: import_smithy_client.expectString
@@ -969,7 +970,7 @@ var de_ListProfilesCommand = /* @__PURE__ */ __name(async (output, context) => {
969
970
  const contents = (0, import_smithy_client.map)({
970
971
  $metadata: deserializeMetadata(output)
971
972
  });
972
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
973
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
973
974
  const doc = (0, import_smithy_client.take)(data, {
974
975
  nextToken: import_smithy_client.expectString,
975
976
  profiles: (_) => de_ProfileDetails(_, context)
@@ -984,7 +985,7 @@ var de_ListSubjectsCommand = /* @__PURE__ */ __name(async (output, context) => {
984
985
  const contents = (0, import_smithy_client.map)({
985
986
  $metadata: deserializeMetadata(output)
986
987
  });
987
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
988
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
988
989
  const doc = (0, import_smithy_client.take)(data, {
989
990
  nextToken: import_smithy_client.expectString,
990
991
  subjects: (_) => de_SubjectSummaries(_, context)
@@ -999,7 +1000,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
999
1000
  const contents = (0, import_smithy_client.map)({
1000
1001
  $metadata: deserializeMetadata(output)
1001
1002
  });
1002
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1003
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1003
1004
  const doc = (0, import_smithy_client.take)(data, {
1004
1005
  tags: import_smithy_client._json
1005
1006
  });
@@ -1013,7 +1014,7 @@ var de_ListTrustAnchorsCommand = /* @__PURE__ */ __name(async (output, context)
1013
1014
  const contents = (0, import_smithy_client.map)({
1014
1015
  $metadata: deserializeMetadata(output)
1015
1016
  });
1016
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1017
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1017
1018
  const doc = (0, import_smithy_client.take)(data, {
1018
1019
  nextToken: import_smithy_client.expectString,
1019
1020
  trustAnchors: (_) => de_TrustAnchorDetails(_, context)
@@ -1028,7 +1029,7 @@ var de_PutNotificationSettingsCommand = /* @__PURE__ */ __name(async (output, co
1028
1029
  const contents = (0, import_smithy_client.map)({
1029
1030
  $metadata: deserializeMetadata(output)
1030
1031
  });
1031
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1032
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1032
1033
  const doc = (0, import_smithy_client.take)(data, {
1033
1034
  trustAnchor: (_) => de_TrustAnchorDetail(_, context)
1034
1035
  });
@@ -1042,7 +1043,7 @@ var de_ResetNotificationSettingsCommand = /* @__PURE__ */ __name(async (output,
1042
1043
  const contents = (0, import_smithy_client.map)({
1043
1044
  $metadata: deserializeMetadata(output)
1044
1045
  });
1045
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1046
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1046
1047
  const doc = (0, import_smithy_client.take)(data, {
1047
1048
  trustAnchor: (_) => de_TrustAnchorDetail(_, context)
1048
1049
  });
@@ -1076,7 +1077,7 @@ var de_UpdateCrlCommand = /* @__PURE__ */ __name(async (output, context) => {
1076
1077
  const contents = (0, import_smithy_client.map)({
1077
1078
  $metadata: deserializeMetadata(output)
1078
1079
  });
1079
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1080
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1080
1081
  const doc = (0, import_smithy_client.take)(data, {
1081
1082
  crl: (_) => de_CrlDetail(_, context)
1082
1083
  });
@@ -1090,7 +1091,7 @@ var de_UpdateProfileCommand = /* @__PURE__ */ __name(async (output, context) =>
1090
1091
  const contents = (0, import_smithy_client.map)({
1091
1092
  $metadata: deserializeMetadata(output)
1092
1093
  });
1093
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1094
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1094
1095
  const doc = (0, import_smithy_client.take)(data, {
1095
1096
  profile: (_) => de_ProfileDetail(_, context)
1096
1097
  });
@@ -1104,7 +1105,7 @@ var de_UpdateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
1104
1105
  const contents = (0, import_smithy_client.map)({
1105
1106
  $metadata: deserializeMetadata(output)
1106
1107
  });
1107
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1108
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
1108
1109
  const doc = (0, import_smithy_client.take)(data, {
1109
1110
  trustAnchor: (_) => de_TrustAnchorDetail(_, context)
1110
1111
  });
@@ -1114,9 +1115,9 @@ var de_UpdateTrustAnchorCommand = /* @__PURE__ */ __name(async (output, context)
1114
1115
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1115
1116
  const parsedOutput = {
1116
1117
  ...output,
1117
- body: await parseErrorBody(output.body, context)
1118
+ body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
1118
1119
  };
1119
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
+ const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
1120
1121
  switch (errorCode) {
1121
1122
  case "AccessDeniedException":
1122
1123
  case "com.amazonaws.rolesanywhere#AccessDeniedException":
@@ -1315,50 +1316,9 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
1315
1316
  extendedRequestId: output.headers["x-amz-id-2"],
1316
1317
  cfId: output.headers["x-amz-cf-id"]
1317
1318
  }), "deserializeMetadata");
1318
- var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
1319
1319
  var _nT = "nextToken";
1320
1320
  var _pS = "pageSize";
1321
1321
  var _rA = "resourceArn";
1322
- var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
1323
- if (encoded.length) {
1324
- return JSON.parse(encoded);
1325
- }
1326
- return {};
1327
- }), "parseBody");
1328
- var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
1329
- const value = await parseBody(errorBody, context);
1330
- value.message = value.message ?? value.Message;
1331
- return value;
1332
- }, "parseErrorBody");
1333
- var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
1334
- const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
1335
- const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
1336
- let cleanValue = rawValue;
1337
- if (typeof cleanValue === "number") {
1338
- cleanValue = cleanValue.toString();
1339
- }
1340
- if (cleanValue.indexOf(",") >= 0) {
1341
- cleanValue = cleanValue.split(",")[0];
1342
- }
1343
- if (cleanValue.indexOf(":") >= 0) {
1344
- cleanValue = cleanValue.split(":")[0];
1345
- }
1346
- if (cleanValue.indexOf("#") >= 0) {
1347
- cleanValue = cleanValue.split("#")[1];
1348
- }
1349
- return cleanValue;
1350
- }, "sanitizeErrorCode");
1351
- const headerKey = findKey(output.headers, "x-amzn-errortype");
1352
- if (headerKey !== void 0) {
1353
- return sanitizeErrorCode(output.headers[headerKey]);
1354
- }
1355
- if (data.code !== void 0) {
1356
- return sanitizeErrorCode(data.code);
1357
- }
1358
- if (data["__type"] !== void 0) {
1359
- return sanitizeErrorCode(data["__type"]);
1360
- }
1361
- }, "loadRestJsonErrorCode");
1362
1322
 
1363
1323
  // src/commands/CreateProfileCommand.ts
1364
1324
  var _CreateProfileCommand = class _CreateProfileCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -1,3 +1,4 @@
1
+ import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
1
2
  import { requestBuilder as rb } from "@smithy/core";
2
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
3
4
  import { AccessDeniedException, ResourceNotFoundException, TooManyTagsException, ValidationException, } from "../models/models_0";
@@ -949,43 +950,3 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
949
950
  const _nT = "nextToken";
950
951
  const _pS = "pageSize";
951
952
  const _rA = "resourceArn";
952
- const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
953
- if (encoded.length) {
954
- return JSON.parse(encoded);
955
- }
956
- return {};
957
- });
958
- const parseErrorBody = async (errorBody, context) => {
959
- const value = await parseBody(errorBody, context);
960
- value.message = value.message ?? value.Message;
961
- return value;
962
- };
963
- const loadRestJsonErrorCode = (output, data) => {
964
- const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
965
- const sanitizeErrorCode = (rawValue) => {
966
- let cleanValue = rawValue;
967
- if (typeof cleanValue === "number") {
968
- cleanValue = cleanValue.toString();
969
- }
970
- if (cleanValue.indexOf(",") >= 0) {
971
- cleanValue = cleanValue.split(",")[0];
972
- }
973
- if (cleanValue.indexOf(":") >= 0) {
974
- cleanValue = cleanValue.split(":")[0];
975
- }
976
- if (cleanValue.indexOf("#") >= 0) {
977
- cleanValue = cleanValue.split("#")[1];
978
- }
979
- return cleanValue;
980
- };
981
- const headerKey = findKey(output.headers, "x-amzn-errortype");
982
- if (headerKey !== undefined) {
983
- return sanitizeErrorCode(output.headers[headerKey]);
984
- }
985
- if (data.code !== undefined) {
986
- return sanitizeErrorCode(data.code);
987
- }
988
- if (data["__type"] !== undefined) {
989
- return sanitizeErrorCode(data["__type"]);
990
- }
991
- };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rolesanywhere",
3
3
  "description": "AWS SDK for JavaScript Rolesanywhere Client for Node.js, Browser and React Native",
4
- "version": "3.523.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-rolesanywhere",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.523.0",
24
- "@aws-sdk/core": "3.523.0",
25
- "@aws-sdk/credential-provider-node": "3.523.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.523.0",
30
- "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.525.0",
30
+ "@aws-sdk/region-config-resolver": "3.525.0",
31
31
  "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.525.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.523.0",
35
- "@smithy/config-resolver": "^2.1.3",
36
- "@smithy/core": "^1.3.4",
34
+ "@aws-sdk/util-user-agent-node": "3.525.0",
35
+ "@smithy/config-resolver": "^2.1.4",
36
+ "@smithy/core": "^1.3.5",
37
37
  "@smithy/fetch-http-handler": "^2.4.3",
38
38
  "@smithy/hash-node": "^2.1.3",
39
39
  "@smithy/invalid-dependency": "^2.1.3",
40
40
  "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.3",
42
- "@smithy/middleware-retry": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.4",
42
+ "@smithy/middleware-retry": "^2.1.4",
43
43
  "@smithy/middleware-serde": "^2.1.3",
44
44
  "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-config-provider": "^2.2.4",
46
46
  "@smithy/node-http-handler": "^2.4.1",
47
47
  "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/smithy-client": "^2.4.2",
49
49
  "@smithy/types": "^2.10.1",
50
50
  "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.3",
55
- "@smithy/util-defaults-mode-node": "^2.2.2",
56
- "@smithy/util-endpoints": "^1.1.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.4",
55
+ "@smithy/util-defaults-mode-node": "^2.2.3",
56
+ "@smithy/util-endpoints": "^1.1.4",
57
57
  "@smithy/util-middleware": "^2.1.3",
58
58
  "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");