@aws-sdk/client-ssm-contacts 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.
- package/dist-cjs/index.js +42 -82
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/SSMContacts.js +0 -1
- package/dist-cjs/SSMContactsClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AcceptPageCommand.js +0 -1
- package/dist-cjs/commands/ActivateContactChannelCommand.js +0 -1
- package/dist-cjs/commands/CreateContactChannelCommand.js +0 -1
- package/dist-cjs/commands/CreateContactCommand.js +0 -1
- package/dist-cjs/commands/CreateRotationCommand.js +0 -1
- package/dist-cjs/commands/CreateRotationOverrideCommand.js +0 -1
- package/dist-cjs/commands/DeactivateContactChannelCommand.js +0 -1
- package/dist-cjs/commands/DeleteContactChannelCommand.js +0 -1
- package/dist-cjs/commands/DeleteContactCommand.js +0 -1
- package/dist-cjs/commands/DeleteRotationCommand.js +0 -1
- package/dist-cjs/commands/DeleteRotationOverrideCommand.js +0 -1
- package/dist-cjs/commands/DescribeEngagementCommand.js +0 -1
- package/dist-cjs/commands/DescribePageCommand.js +0 -1
- package/dist-cjs/commands/GetContactChannelCommand.js +0 -1
- package/dist-cjs/commands/GetContactCommand.js +0 -1
- package/dist-cjs/commands/GetContactPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetRotationCommand.js +0 -1
- package/dist-cjs/commands/GetRotationOverrideCommand.js +0 -1
- package/dist-cjs/commands/ListContactChannelsCommand.js +0 -1
- package/dist-cjs/commands/ListContactsCommand.js +0 -1
- package/dist-cjs/commands/ListEngagementsCommand.js +0 -1
- package/dist-cjs/commands/ListPageReceiptsCommand.js +0 -1
- package/dist-cjs/commands/ListPageResolutionsCommand.js +0 -1
- package/dist-cjs/commands/ListPagesByContactCommand.js +0 -1
- package/dist-cjs/commands/ListPagesByEngagementCommand.js +0 -1
- package/dist-cjs/commands/ListPreviewRotationShiftsCommand.js +0 -1
- package/dist-cjs/commands/ListRotationOverridesCommand.js +0 -1
- package/dist-cjs/commands/ListRotationShiftsCommand.js +0 -1
- package/dist-cjs/commands/ListRotationsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PutContactPolicyCommand.js +0 -1
- package/dist-cjs/commands/SendActivationCodeCommand.js +0 -1
- package/dist-cjs/commands/StartEngagementCommand.js +0 -1
- package/dist-cjs/commands/StopEngagementCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateContactChannelCommand.js +0 -1
- package/dist-cjs/commands/UpdateContactCommand.js +0 -1
- package/dist-cjs/commands/UpdateRotationCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/SSMContactsServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListContactChannelsPaginator.js +0 -1
- package/dist-cjs/pagination/ListContactsPaginator.js +0 -1
- package/dist-cjs/pagination/ListEngagementsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPageReceiptsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPageResolutionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListPagesByContactPaginator.js +0 -1
- package/dist-cjs/pagination/ListPagesByEngagementPaginator.js +0 -1
- package/dist-cjs/pagination/ListPreviewRotationShiftsPaginator.js +0 -1
- package/dist-cjs/pagination/ListRotationOverridesPaginator.js +0 -1
- package/dist-cjs/pagination/ListRotationShiftsPaginator.js +0 -1
- package/dist-cjs/pagination/ListRotationsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -248,6 +248,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
248
248
|
var import_types = require("@smithy/types");
|
|
249
249
|
|
|
250
250
|
// src/protocols/Aws_json1_1.ts
|
|
251
|
+
var import_core2 = require("@aws-sdk/core");
|
|
251
252
|
|
|
252
253
|
|
|
253
254
|
var import_uuid = require("uuid");
|
|
@@ -714,7 +715,7 @@ var de_AcceptPageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
714
715
|
if (output.statusCode >= 300) {
|
|
715
716
|
return de_CommandError(output, context);
|
|
716
717
|
}
|
|
717
|
-
const data = await
|
|
718
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
718
719
|
let contents = {};
|
|
719
720
|
contents = (0, import_smithy_client._json)(data);
|
|
720
721
|
const response = {
|
|
@@ -727,7 +728,7 @@ var de_ActivateContactChannelCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
727
728
|
if (output.statusCode >= 300) {
|
|
728
729
|
return de_CommandError(output, context);
|
|
729
730
|
}
|
|
730
|
-
const data = await
|
|
731
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
731
732
|
let contents = {};
|
|
732
733
|
contents = (0, import_smithy_client._json)(data);
|
|
733
734
|
const response = {
|
|
@@ -740,7 +741,7 @@ var de_CreateContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
740
741
|
if (output.statusCode >= 300) {
|
|
741
742
|
return de_CommandError(output, context);
|
|
742
743
|
}
|
|
743
|
-
const data = await
|
|
744
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
744
745
|
let contents = {};
|
|
745
746
|
contents = (0, import_smithy_client._json)(data);
|
|
746
747
|
const response = {
|
|
@@ -753,7 +754,7 @@ var de_CreateContactChannelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
753
754
|
if (output.statusCode >= 300) {
|
|
754
755
|
return de_CommandError(output, context);
|
|
755
756
|
}
|
|
756
|
-
const data = await
|
|
757
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
757
758
|
let contents = {};
|
|
758
759
|
contents = (0, import_smithy_client._json)(data);
|
|
759
760
|
const response = {
|
|
@@ -766,7 +767,7 @@ var de_CreateRotationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
766
767
|
if (output.statusCode >= 300) {
|
|
767
768
|
return de_CommandError(output, context);
|
|
768
769
|
}
|
|
769
|
-
const data = await
|
|
770
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
770
771
|
let contents = {};
|
|
771
772
|
contents = (0, import_smithy_client._json)(data);
|
|
772
773
|
const response = {
|
|
@@ -779,7 +780,7 @@ var de_CreateRotationOverrideCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
779
780
|
if (output.statusCode >= 300) {
|
|
780
781
|
return de_CommandError(output, context);
|
|
781
782
|
}
|
|
782
|
-
const data = await
|
|
783
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
783
784
|
let contents = {};
|
|
784
785
|
contents = (0, import_smithy_client._json)(data);
|
|
785
786
|
const response = {
|
|
@@ -792,7 +793,7 @@ var de_DeactivateContactChannelCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
792
793
|
if (output.statusCode >= 300) {
|
|
793
794
|
return de_CommandError(output, context);
|
|
794
795
|
}
|
|
795
|
-
const data = await
|
|
796
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
796
797
|
let contents = {};
|
|
797
798
|
contents = (0, import_smithy_client._json)(data);
|
|
798
799
|
const response = {
|
|
@@ -805,7 +806,7 @@ var de_DeleteContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
805
806
|
if (output.statusCode >= 300) {
|
|
806
807
|
return de_CommandError(output, context);
|
|
807
808
|
}
|
|
808
|
-
const data = await
|
|
809
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
809
810
|
let contents = {};
|
|
810
811
|
contents = (0, import_smithy_client._json)(data);
|
|
811
812
|
const response = {
|
|
@@ -818,7 +819,7 @@ var de_DeleteContactChannelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
818
819
|
if (output.statusCode >= 300) {
|
|
819
820
|
return de_CommandError(output, context);
|
|
820
821
|
}
|
|
821
|
-
const data = await
|
|
822
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
822
823
|
let contents = {};
|
|
823
824
|
contents = (0, import_smithy_client._json)(data);
|
|
824
825
|
const response = {
|
|
@@ -831,7 +832,7 @@ var de_DeleteRotationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
831
832
|
if (output.statusCode >= 300) {
|
|
832
833
|
return de_CommandError(output, context);
|
|
833
834
|
}
|
|
834
|
-
const data = await
|
|
835
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
835
836
|
let contents = {};
|
|
836
837
|
contents = (0, import_smithy_client._json)(data);
|
|
837
838
|
const response = {
|
|
@@ -844,7 +845,7 @@ var de_DeleteRotationOverrideCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
844
845
|
if (output.statusCode >= 300) {
|
|
845
846
|
return de_CommandError(output, context);
|
|
846
847
|
}
|
|
847
|
-
const data = await
|
|
848
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
848
849
|
let contents = {};
|
|
849
850
|
contents = (0, import_smithy_client._json)(data);
|
|
850
851
|
const response = {
|
|
@@ -857,7 +858,7 @@ var de_DescribeEngagementCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
857
858
|
if (output.statusCode >= 300) {
|
|
858
859
|
return de_CommandError(output, context);
|
|
859
860
|
}
|
|
860
|
-
const data = await
|
|
861
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
861
862
|
let contents = {};
|
|
862
863
|
contents = de_DescribeEngagementResult(data, context);
|
|
863
864
|
const response = {
|
|
@@ -870,7 +871,7 @@ var de_DescribePageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
870
871
|
if (output.statusCode >= 300) {
|
|
871
872
|
return de_CommandError(output, context);
|
|
872
873
|
}
|
|
873
|
-
const data = await
|
|
874
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
874
875
|
let contents = {};
|
|
875
876
|
contents = de_DescribePageResult(data, context);
|
|
876
877
|
const response = {
|
|
@@ -883,7 +884,7 @@ var de_GetContactCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
883
884
|
if (output.statusCode >= 300) {
|
|
884
885
|
return de_CommandError(output, context);
|
|
885
886
|
}
|
|
886
|
-
const data = await
|
|
887
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
887
888
|
let contents = {};
|
|
888
889
|
contents = (0, import_smithy_client._json)(data);
|
|
889
890
|
const response = {
|
|
@@ -896,7 +897,7 @@ var de_GetContactChannelCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
896
897
|
if (output.statusCode >= 300) {
|
|
897
898
|
return de_CommandError(output, context);
|
|
898
899
|
}
|
|
899
|
-
const data = await
|
|
900
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
900
901
|
let contents = {};
|
|
901
902
|
contents = (0, import_smithy_client._json)(data);
|
|
902
903
|
const response = {
|
|
@@ -909,7 +910,7 @@ var de_GetContactPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
909
910
|
if (output.statusCode >= 300) {
|
|
910
911
|
return de_CommandError(output, context);
|
|
911
912
|
}
|
|
912
|
-
const data = await
|
|
913
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
913
914
|
let contents = {};
|
|
914
915
|
contents = (0, import_smithy_client._json)(data);
|
|
915
916
|
const response = {
|
|
@@ -922,7 +923,7 @@ var de_GetRotationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
922
923
|
if (output.statusCode >= 300) {
|
|
923
924
|
return de_CommandError(output, context);
|
|
924
925
|
}
|
|
925
|
-
const data = await
|
|
926
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
926
927
|
let contents = {};
|
|
927
928
|
contents = de_GetRotationResult(data, context);
|
|
928
929
|
const response = {
|
|
@@ -935,7 +936,7 @@ var de_GetRotationOverrideCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
935
936
|
if (output.statusCode >= 300) {
|
|
936
937
|
return de_CommandError(output, context);
|
|
937
938
|
}
|
|
938
|
-
const data = await
|
|
939
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
939
940
|
let contents = {};
|
|
940
941
|
contents = de_GetRotationOverrideResult(data, context);
|
|
941
942
|
const response = {
|
|
@@ -948,7 +949,7 @@ var de_ListContactChannelsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
948
949
|
if (output.statusCode >= 300) {
|
|
949
950
|
return de_CommandError(output, context);
|
|
950
951
|
}
|
|
951
|
-
const data = await
|
|
952
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
952
953
|
let contents = {};
|
|
953
954
|
contents = (0, import_smithy_client._json)(data);
|
|
954
955
|
const response = {
|
|
@@ -961,7 +962,7 @@ var de_ListContactsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
961
962
|
if (output.statusCode >= 300) {
|
|
962
963
|
return de_CommandError(output, context);
|
|
963
964
|
}
|
|
964
|
-
const data = await
|
|
965
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
965
966
|
let contents = {};
|
|
966
967
|
contents = (0, import_smithy_client._json)(data);
|
|
967
968
|
const response = {
|
|
@@ -974,7 +975,7 @@ var de_ListEngagementsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
974
975
|
if (output.statusCode >= 300) {
|
|
975
976
|
return de_CommandError(output, context);
|
|
976
977
|
}
|
|
977
|
-
const data = await
|
|
978
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
978
979
|
let contents = {};
|
|
979
980
|
contents = de_ListEngagementsResult(data, context);
|
|
980
981
|
const response = {
|
|
@@ -987,7 +988,7 @@ var de_ListPageReceiptsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
987
988
|
if (output.statusCode >= 300) {
|
|
988
989
|
return de_CommandError(output, context);
|
|
989
990
|
}
|
|
990
|
-
const data = await
|
|
991
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
991
992
|
let contents = {};
|
|
992
993
|
contents = de_ListPageReceiptsResult(data, context);
|
|
993
994
|
const response = {
|
|
@@ -1000,7 +1001,7 @@ var de_ListPageResolutionsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1000
1001
|
if (output.statusCode >= 300) {
|
|
1001
1002
|
return de_CommandError(output, context);
|
|
1002
1003
|
}
|
|
1003
|
-
const data = await
|
|
1004
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1004
1005
|
let contents = {};
|
|
1005
1006
|
contents = (0, import_smithy_client._json)(data);
|
|
1006
1007
|
const response = {
|
|
@@ -1013,7 +1014,7 @@ var de_ListPagesByContactCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1013
1014
|
if (output.statusCode >= 300) {
|
|
1014
1015
|
return de_CommandError(output, context);
|
|
1015
1016
|
}
|
|
1016
|
-
const data = await
|
|
1017
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1017
1018
|
let contents = {};
|
|
1018
1019
|
contents = de_ListPagesByContactResult(data, context);
|
|
1019
1020
|
const response = {
|
|
@@ -1026,7 +1027,7 @@ var de_ListPagesByEngagementCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1026
1027
|
if (output.statusCode >= 300) {
|
|
1027
1028
|
return de_CommandError(output, context);
|
|
1028
1029
|
}
|
|
1029
|
-
const data = await
|
|
1030
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1030
1031
|
let contents = {};
|
|
1031
1032
|
contents = de_ListPagesByEngagementResult(data, context);
|
|
1032
1033
|
const response = {
|
|
@@ -1039,7 +1040,7 @@ var de_ListPreviewRotationShiftsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1039
1040
|
if (output.statusCode >= 300) {
|
|
1040
1041
|
return de_CommandError(output, context);
|
|
1041
1042
|
}
|
|
1042
|
-
const data = await
|
|
1043
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1043
1044
|
let contents = {};
|
|
1044
1045
|
contents = de_ListPreviewRotationShiftsResult(data, context);
|
|
1045
1046
|
const response = {
|
|
@@ -1052,7 +1053,7 @@ var de_ListRotationOverridesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1052
1053
|
if (output.statusCode >= 300) {
|
|
1053
1054
|
return de_CommandError(output, context);
|
|
1054
1055
|
}
|
|
1055
|
-
const data = await
|
|
1056
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1056
1057
|
let contents = {};
|
|
1057
1058
|
contents = de_ListRotationOverridesResult(data, context);
|
|
1058
1059
|
const response = {
|
|
@@ -1065,7 +1066,7 @@ var de_ListRotationsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1065
1066
|
if (output.statusCode >= 300) {
|
|
1066
1067
|
return de_CommandError(output, context);
|
|
1067
1068
|
}
|
|
1068
|
-
const data = await
|
|
1069
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1069
1070
|
let contents = {};
|
|
1070
1071
|
contents = de_ListRotationsResult(data, context);
|
|
1071
1072
|
const response = {
|
|
@@ -1078,7 +1079,7 @@ var de_ListRotationShiftsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1078
1079
|
if (output.statusCode >= 300) {
|
|
1079
1080
|
return de_CommandError(output, context);
|
|
1080
1081
|
}
|
|
1081
|
-
const data = await
|
|
1082
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1082
1083
|
let contents = {};
|
|
1083
1084
|
contents = de_ListRotationShiftsResult(data, context);
|
|
1084
1085
|
const response = {
|
|
@@ -1091,7 +1092,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1091
1092
|
if (output.statusCode >= 300) {
|
|
1092
1093
|
return de_CommandError(output, context);
|
|
1093
1094
|
}
|
|
1094
|
-
const data = await
|
|
1095
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1095
1096
|
let contents = {};
|
|
1096
1097
|
contents = (0, import_smithy_client._json)(data);
|
|
1097
1098
|
const response = {
|
|
@@ -1104,7 +1105,7 @@ var de_PutContactPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1104
1105
|
if (output.statusCode >= 300) {
|
|
1105
1106
|
return de_CommandError(output, context);
|
|
1106
1107
|
}
|
|
1107
|
-
const data = await
|
|
1108
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1108
1109
|
let contents = {};
|
|
1109
1110
|
contents = (0, import_smithy_client._json)(data);
|
|
1110
1111
|
const response = {
|
|
@@ -1117,7 +1118,7 @@ var de_SendActivationCodeCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1117
1118
|
if (output.statusCode >= 300) {
|
|
1118
1119
|
return de_CommandError(output, context);
|
|
1119
1120
|
}
|
|
1120
|
-
const data = await
|
|
1121
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1121
1122
|
let contents = {};
|
|
1122
1123
|
contents = (0, import_smithy_client._json)(data);
|
|
1123
1124
|
const response = {
|
|
@@ -1130,7 +1131,7 @@ var de_StartEngagementCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1130
1131
|
if (output.statusCode >= 300) {
|
|
1131
1132
|
return de_CommandError(output, context);
|
|
1132
1133
|
}
|
|
1133
|
-
const data = await
|
|
1134
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1134
1135
|
let contents = {};
|
|
1135
1136
|
contents = (0, import_smithy_client._json)(data);
|
|
1136
1137
|
const response = {
|
|
@@ -1143,7 +1144,7 @@ var de_StopEngagementCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1143
1144
|
if (output.statusCode >= 300) {
|
|
1144
1145
|
return de_CommandError(output, context);
|
|
1145
1146
|
}
|
|
1146
|
-
const data = await
|
|
1147
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1147
1148
|
let contents = {};
|
|
1148
1149
|
contents = (0, import_smithy_client._json)(data);
|
|
1149
1150
|
const response = {
|
|
@@ -1156,7 +1157,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1156
1157
|
if (output.statusCode >= 300) {
|
|
1157
1158
|
return de_CommandError(output, context);
|
|
1158
1159
|
}
|
|
1159
|
-
const data = await
|
|
1160
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1160
1161
|
let contents = {};
|
|
1161
1162
|
contents = (0, import_smithy_client._json)(data);
|
|
1162
1163
|
const response = {
|
|
@@ -1169,7 +1170,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1169
1170
|
if (output.statusCode >= 300) {
|
|
1170
1171
|
return de_CommandError(output, context);
|
|
1171
1172
|
}
|
|
1172
|
-
const data = await
|
|
1173
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1173
1174
|
let contents = {};
|
|
1174
1175
|
contents = (0, import_smithy_client._json)(data);
|
|
1175
1176
|
const response = {
|
|
@@ -1182,7 +1183,7 @@ var de_UpdateContactCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1182
1183
|
if (output.statusCode >= 300) {
|
|
1183
1184
|
return de_CommandError(output, context);
|
|
1184
1185
|
}
|
|
1185
|
-
const data = await
|
|
1186
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1186
1187
|
let contents = {};
|
|
1187
1188
|
contents = (0, import_smithy_client._json)(data);
|
|
1188
1189
|
const response = {
|
|
@@ -1195,7 +1196,7 @@ var de_UpdateContactChannelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1195
1196
|
if (output.statusCode >= 300) {
|
|
1196
1197
|
return de_CommandError(output, context);
|
|
1197
1198
|
}
|
|
1198
|
-
const data = await
|
|
1199
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1199
1200
|
let contents = {};
|
|
1200
1201
|
contents = (0, import_smithy_client._json)(data);
|
|
1201
1202
|
const response = {
|
|
@@ -1208,7 +1209,7 @@ var de_UpdateRotationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1208
1209
|
if (output.statusCode >= 300) {
|
|
1209
1210
|
return de_CommandError(output, context);
|
|
1210
1211
|
}
|
|
1211
|
-
const data = await
|
|
1212
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1212
1213
|
let contents = {};
|
|
1213
1214
|
contents = (0, import_smithy_client._json)(data);
|
|
1214
1215
|
const response = {
|
|
@@ -1220,9 +1221,9 @@ var de_UpdateRotationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1220
1221
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1221
1222
|
const parsedOutput = {
|
|
1222
1223
|
...output,
|
|
1223
|
-
body: await
|
|
1224
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1224
1225
|
};
|
|
1225
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1226
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1226
1227
|
switch (errorCode) {
|
|
1227
1228
|
case "AccessDeniedException":
|
|
1228
1229
|
case "com.amazonaws.ssmcontacts#AccessDeniedException":
|
|
@@ -1645,7 +1646,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1645
1646
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1646
1647
|
cfId: output.headers["x-amz-cf-id"]
|
|
1647
1648
|
}), "deserializeMetadata");
|
|
1648
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1649
1649
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(SSMContactsServiceException);
|
|
1650
1650
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1651
1651
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1672,46 +1672,6 @@ function sharedHeaders(operation) {
|
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
1674
|
__name(sharedHeaders, "sharedHeaders");
|
|
1675
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1676
|
-
if (encoded.length) {
|
|
1677
|
-
return JSON.parse(encoded);
|
|
1678
|
-
}
|
|
1679
|
-
return {};
|
|
1680
|
-
}), "parseBody");
|
|
1681
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1682
|
-
const value = await parseBody(errorBody, context);
|
|
1683
|
-
value.message = value.message ?? value.Message;
|
|
1684
|
-
return value;
|
|
1685
|
-
}, "parseErrorBody");
|
|
1686
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1687
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1688
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1689
|
-
let cleanValue = rawValue;
|
|
1690
|
-
if (typeof cleanValue === "number") {
|
|
1691
|
-
cleanValue = cleanValue.toString();
|
|
1692
|
-
}
|
|
1693
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1694
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1695
|
-
}
|
|
1696
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1697
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1698
|
-
}
|
|
1699
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1700
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1701
|
-
}
|
|
1702
|
-
return cleanValue;
|
|
1703
|
-
}, "sanitizeErrorCode");
|
|
1704
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1705
|
-
if (headerKey !== void 0) {
|
|
1706
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1707
|
-
}
|
|
1708
|
-
if (data.code !== void 0) {
|
|
1709
|
-
return sanitizeErrorCode(data.code);
|
|
1710
|
-
}
|
|
1711
|
-
if (data["__type"] !== void 0) {
|
|
1712
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1713
|
-
}
|
|
1714
|
-
}, "loadRestJsonErrorCode");
|
|
1715
1675
|
|
|
1716
1676
|
// src/commands/AcceptPageCommand.ts
|
|
1717
1677
|
var _AcceptPageCommand = class _AcceptPageCommand 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 { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1212,43 +1213,3 @@ function sharedHeaders(operation) {
|
|
|
1212
1213
|
"x-amz-target": `SSMContacts.${operation}`,
|
|
1213
1214
|
};
|
|
1214
1215
|
}
|
|
1215
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1216
|
-
if (encoded.length) {
|
|
1217
|
-
return JSON.parse(encoded);
|
|
1218
|
-
}
|
|
1219
|
-
return {};
|
|
1220
|
-
});
|
|
1221
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1222
|
-
const value = await parseBody(errorBody, context);
|
|
1223
|
-
value.message = value.message ?? value.Message;
|
|
1224
|
-
return value;
|
|
1225
|
-
};
|
|
1226
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1227
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1228
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1229
|
-
let cleanValue = rawValue;
|
|
1230
|
-
if (typeof cleanValue === "number") {
|
|
1231
|
-
cleanValue = cleanValue.toString();
|
|
1232
|
-
}
|
|
1233
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1234
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1235
|
-
}
|
|
1236
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1237
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1238
|
-
}
|
|
1239
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1240
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1241
|
-
}
|
|
1242
|
-
return cleanValue;
|
|
1243
|
-
};
|
|
1244
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1245
|
-
if (headerKey !== undefined) {
|
|
1246
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1247
|
-
}
|
|
1248
|
-
if (data.code !== undefined) {
|
|
1249
|
-
return sanitizeErrorCode(data.code);
|
|
1250
|
-
}
|
|
1251
|
-
if (data["__type"] !== undefined) {
|
|
1252
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1253
|
-
}
|
|
1254
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ssm-contacts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ssm Contacts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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-ssm-contacts",
|
|
@@ -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.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
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.
|
|
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.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
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.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
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.
|
|
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.
|
|
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.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
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",
|
package/dist-cjs/SSMContacts.js
DELETED
|
@@ -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");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -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");
|