@aws-sdk/client-route53-recovery-control-config 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 +21 -61
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/Route53RecoveryControlConfig.js +0 -1
- package/dist-cjs/Route53RecoveryControlConfigClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateClusterCommand.js +0 -1
- package/dist-cjs/commands/CreateControlPanelCommand.js +0 -1
- package/dist-cjs/commands/CreateRoutingControlCommand.js +0 -1
- package/dist-cjs/commands/CreateSafetyRuleCommand.js +0 -1
- package/dist-cjs/commands/DeleteClusterCommand.js +0 -1
- package/dist-cjs/commands/DeleteControlPanelCommand.js +0 -1
- package/dist-cjs/commands/DeleteRoutingControlCommand.js +0 -1
- package/dist-cjs/commands/DeleteSafetyRuleCommand.js +0 -1
- package/dist-cjs/commands/DescribeClusterCommand.js +0 -1
- package/dist-cjs/commands/DescribeControlPanelCommand.js +0 -1
- package/dist-cjs/commands/DescribeRoutingControlCommand.js +0 -1
- package/dist-cjs/commands/DescribeSafetyRuleCommand.js +0 -1
- package/dist-cjs/commands/GetResourcePolicyCommand.js +0 -1
- package/dist-cjs/commands/ListAssociatedRoute53HealthChecksCommand.js +0 -1
- package/dist-cjs/commands/ListClustersCommand.js +0 -1
- package/dist-cjs/commands/ListControlPanelsCommand.js +0 -1
- package/dist-cjs/commands/ListRoutingControlsCommand.js +0 -1
- package/dist-cjs/commands/ListSafetyRulesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateControlPanelCommand.js +0 -1
- package/dist-cjs/commands/UpdateRoutingControlCommand.js +0 -1
- package/dist-cjs/commands/UpdateSafetyRuleCommand.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/Route53RecoveryControlConfigServiceException.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/ListAssociatedRoute53HealthChecksPaginator.js +0 -1
- package/dist-cjs/pagination/ListClustersPaginator.js +0 -1
- package/dist-cjs/pagination/ListControlPanelsPaginator.js +0 -1
- package/dist-cjs/pagination/ListRoutingControlsPaginator.js +0 -1
- package/dist-cjs/pagination/ListSafetyRulesPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
- package/dist-cjs/waiters/index.js +0 -1
- package/dist-cjs/waiters/waitForClusterCreated.js +0 -1
- package/dist-cjs/waiters/waitForClusterDeleted.js +0 -1
- package/dist-cjs/waiters/waitForControlPanelCreated.js +0 -1
- package/dist-cjs/waiters/waitForControlPanelDeleted.js +0 -1
- package/dist-cjs/waiters/waitForRoutingControlCreated.js +0 -1
- package/dist-cjs/waiters/waitForRoutingControlDeleted.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -231,6 +231,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
231
231
|
var import_types = require("@smithy/types");
|
|
232
232
|
|
|
233
233
|
// src/protocols/Aws_restJson1.ts
|
|
234
|
+
var import_core2 = require("@aws-sdk/core");
|
|
234
235
|
|
|
235
236
|
|
|
236
237
|
var import_uuid = require("uuid");
|
|
@@ -699,7 +700,7 @@ var de_CreateClusterCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
699
700
|
const contents = (0, import_smithy_client.map)({
|
|
700
701
|
$metadata: deserializeMetadata(output)
|
|
701
702
|
});
|
|
702
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
703
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
703
704
|
const doc = (0, import_smithy_client.take)(data, {
|
|
704
705
|
Cluster: import_smithy_client._json
|
|
705
706
|
});
|
|
@@ -713,7 +714,7 @@ var de_CreateControlPanelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
713
714
|
const contents = (0, import_smithy_client.map)({
|
|
714
715
|
$metadata: deserializeMetadata(output)
|
|
715
716
|
});
|
|
716
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
717
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
717
718
|
const doc = (0, import_smithy_client.take)(data, {
|
|
718
719
|
ControlPanel: import_smithy_client._json
|
|
719
720
|
});
|
|
@@ -727,7 +728,7 @@ var de_CreateRoutingControlCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
727
728
|
const contents = (0, import_smithy_client.map)({
|
|
728
729
|
$metadata: deserializeMetadata(output)
|
|
729
730
|
});
|
|
730
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
731
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
731
732
|
const doc = (0, import_smithy_client.take)(data, {
|
|
732
733
|
RoutingControl: import_smithy_client._json
|
|
733
734
|
});
|
|
@@ -741,7 +742,7 @@ var de_CreateSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
741
742
|
const contents = (0, import_smithy_client.map)({
|
|
742
743
|
$metadata: deserializeMetadata(output)
|
|
743
744
|
});
|
|
744
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
745
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
745
746
|
const doc = (0, import_smithy_client.take)(data, {
|
|
746
747
|
AssertionRule: import_smithy_client._json,
|
|
747
748
|
GatingRule: import_smithy_client._json
|
|
@@ -796,7 +797,7 @@ var de_DescribeClusterCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
796
797
|
const contents = (0, import_smithy_client.map)({
|
|
797
798
|
$metadata: deserializeMetadata(output)
|
|
798
799
|
});
|
|
799
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
800
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
800
801
|
const doc = (0, import_smithy_client.take)(data, {
|
|
801
802
|
Cluster: import_smithy_client._json
|
|
802
803
|
});
|
|
@@ -810,7 +811,7 @@ var de_DescribeControlPanelCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
810
811
|
const contents = (0, import_smithy_client.map)({
|
|
811
812
|
$metadata: deserializeMetadata(output)
|
|
812
813
|
});
|
|
813
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
814
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
814
815
|
const doc = (0, import_smithy_client.take)(data, {
|
|
815
816
|
ControlPanel: import_smithy_client._json
|
|
816
817
|
});
|
|
@@ -824,7 +825,7 @@ var de_DescribeRoutingControlCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
824
825
|
const contents = (0, import_smithy_client.map)({
|
|
825
826
|
$metadata: deserializeMetadata(output)
|
|
826
827
|
});
|
|
827
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
828
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
828
829
|
const doc = (0, import_smithy_client.take)(data, {
|
|
829
830
|
RoutingControl: import_smithy_client._json
|
|
830
831
|
});
|
|
@@ -838,7 +839,7 @@ var de_DescribeSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
838
839
|
const contents = (0, import_smithy_client.map)({
|
|
839
840
|
$metadata: deserializeMetadata(output)
|
|
840
841
|
});
|
|
841
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
842
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
842
843
|
const doc = (0, import_smithy_client.take)(data, {
|
|
843
844
|
AssertionRule: import_smithy_client._json,
|
|
844
845
|
GatingRule: import_smithy_client._json
|
|
@@ -853,7 +854,7 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
853
854
|
const contents = (0, import_smithy_client.map)({
|
|
854
855
|
$metadata: deserializeMetadata(output)
|
|
855
856
|
});
|
|
856
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
857
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
857
858
|
const doc = (0, import_smithy_client.take)(data, {
|
|
858
859
|
Policy: import_smithy_client.expectString
|
|
859
860
|
});
|
|
@@ -867,7 +868,7 @@ var de_ListAssociatedRoute53HealthChecksCommand = /* @__PURE__ */ __name(async (
|
|
|
867
868
|
const contents = (0, import_smithy_client.map)({
|
|
868
869
|
$metadata: deserializeMetadata(output)
|
|
869
870
|
});
|
|
870
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
871
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
871
872
|
const doc = (0, import_smithy_client.take)(data, {
|
|
872
873
|
HealthCheckIds: import_smithy_client._json,
|
|
873
874
|
NextToken: import_smithy_client.expectString
|
|
@@ -882,7 +883,7 @@ var de_ListClustersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
882
883
|
const contents = (0, import_smithy_client.map)({
|
|
883
884
|
$metadata: deserializeMetadata(output)
|
|
884
885
|
});
|
|
885
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
886
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
886
887
|
const doc = (0, import_smithy_client.take)(data, {
|
|
887
888
|
Clusters: import_smithy_client._json,
|
|
888
889
|
NextToken: import_smithy_client.expectString
|
|
@@ -897,7 +898,7 @@ var de_ListControlPanelsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
897
898
|
const contents = (0, import_smithy_client.map)({
|
|
898
899
|
$metadata: deserializeMetadata(output)
|
|
899
900
|
});
|
|
900
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
901
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
901
902
|
const doc = (0, import_smithy_client.take)(data, {
|
|
902
903
|
ControlPanels: import_smithy_client._json,
|
|
903
904
|
NextToken: import_smithy_client.expectString
|
|
@@ -912,7 +913,7 @@ var de_ListRoutingControlsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
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
|
|
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
|
NextToken: import_smithy_client.expectString,
|
|
918
919
|
RoutingControls: import_smithy_client._json
|
|
@@ -927,7 +928,7 @@ var de_ListSafetyRulesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
927
928
|
const contents = (0, import_smithy_client.map)({
|
|
928
929
|
$metadata: deserializeMetadata(output)
|
|
929
930
|
});
|
|
930
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
931
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
931
932
|
const doc = (0, import_smithy_client.take)(data, {
|
|
932
933
|
NextToken: import_smithy_client.expectString,
|
|
933
934
|
SafetyRules: import_smithy_client._json
|
|
@@ -942,7 +943,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
942
943
|
const contents = (0, import_smithy_client.map)({
|
|
943
944
|
$metadata: deserializeMetadata(output)
|
|
944
945
|
});
|
|
945
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
946
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
946
947
|
const doc = (0, import_smithy_client.take)(data, {
|
|
947
948
|
Tags: import_smithy_client._json
|
|
948
949
|
});
|
|
@@ -976,7 +977,7 @@ var de_UpdateControlPanelCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
976
977
|
const contents = (0, import_smithy_client.map)({
|
|
977
978
|
$metadata: deserializeMetadata(output)
|
|
978
979
|
});
|
|
979
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
980
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
980
981
|
const doc = (0, import_smithy_client.take)(data, {
|
|
981
982
|
ControlPanel: import_smithy_client._json
|
|
982
983
|
});
|
|
@@ -990,7 +991,7 @@ var de_UpdateRoutingControlCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
990
991
|
const contents = (0, import_smithy_client.map)({
|
|
991
992
|
$metadata: deserializeMetadata(output)
|
|
992
993
|
});
|
|
993
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
994
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
994
995
|
const doc = (0, import_smithy_client.take)(data, {
|
|
995
996
|
RoutingControl: import_smithy_client._json
|
|
996
997
|
});
|
|
@@ -1004,7 +1005,7 @@ var de_UpdateSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1004
1005
|
const contents = (0, import_smithy_client.map)({
|
|
1005
1006
|
$metadata: deserializeMetadata(output)
|
|
1006
1007
|
});
|
|
1007
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1008
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1008
1009
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1009
1010
|
AssertionRule: import_smithy_client._json,
|
|
1010
1011
|
GatingRule: import_smithy_client._json
|
|
@@ -1015,9 +1016,9 @@ var de_UpdateSafetyRuleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1015
1016
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1016
1017
|
const parsedOutput = {
|
|
1017
1018
|
...output,
|
|
1018
|
-
body: await
|
|
1019
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1019
1020
|
};
|
|
1020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1021
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1021
1022
|
switch (errorCode) {
|
|
1022
1023
|
case "AccessDeniedException":
|
|
1023
1024
|
case "com.amazonaws.route53recoverycontrolconfig#AccessDeniedException":
|
|
@@ -1147,51 +1148,10 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1147
1148
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1148
1149
|
cfId: output.headers["x-amz-cf-id"]
|
|
1149
1150
|
}), "deserializeMetadata");
|
|
1150
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1151
1151
|
var _CA = "ClusterArn";
|
|
1152
1152
|
var _MR = "MaxResults";
|
|
1153
1153
|
var _NT = "NextToken";
|
|
1154
1154
|
var _TK = "TagKeys";
|
|
1155
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1156
|
-
if (encoded.length) {
|
|
1157
|
-
return JSON.parse(encoded);
|
|
1158
|
-
}
|
|
1159
|
-
return {};
|
|
1160
|
-
}), "parseBody");
|
|
1161
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1162
|
-
const value = await parseBody(errorBody, context);
|
|
1163
|
-
value.message = value.message ?? value.Message;
|
|
1164
|
-
return value;
|
|
1165
|
-
}, "parseErrorBody");
|
|
1166
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1167
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1168
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1169
|
-
let cleanValue = rawValue;
|
|
1170
|
-
if (typeof cleanValue === "number") {
|
|
1171
|
-
cleanValue = cleanValue.toString();
|
|
1172
|
-
}
|
|
1173
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1174
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1175
|
-
}
|
|
1176
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1177
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1178
|
-
}
|
|
1179
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1180
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1181
|
-
}
|
|
1182
|
-
return cleanValue;
|
|
1183
|
-
}, "sanitizeErrorCode");
|
|
1184
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1185
|
-
if (headerKey !== void 0) {
|
|
1186
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1187
|
-
}
|
|
1188
|
-
if (data.code !== void 0) {
|
|
1189
|
-
return sanitizeErrorCode(data.code);
|
|
1190
|
-
}
|
|
1191
|
-
if (data["__type"] !== void 0) {
|
|
1192
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1193
|
-
}
|
|
1194
|
-
}, "loadRestJsonErrorCode");
|
|
1195
1155
|
|
|
1196
1156
|
// src/commands/CreateClusterCommand.ts
|
|
1197
1157
|
var _CreateClusterCommand = class _CreateClusterCommand 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, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -756,43 +757,3 @@ const _CA = "ClusterArn";
|
|
|
756
757
|
const _MR = "MaxResults";
|
|
757
758
|
const _NT = "NextToken";
|
|
758
759
|
const _TK = "TagKeys";
|
|
759
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
760
|
-
if (encoded.length) {
|
|
761
|
-
return JSON.parse(encoded);
|
|
762
|
-
}
|
|
763
|
-
return {};
|
|
764
|
-
});
|
|
765
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
766
|
-
const value = await parseBody(errorBody, context);
|
|
767
|
-
value.message = value.message ?? value.Message;
|
|
768
|
-
return value;
|
|
769
|
-
};
|
|
770
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
771
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
772
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
773
|
-
let cleanValue = rawValue;
|
|
774
|
-
if (typeof cleanValue === "number") {
|
|
775
|
-
cleanValue = cleanValue.toString();
|
|
776
|
-
}
|
|
777
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
778
|
-
cleanValue = cleanValue.split(",")[0];
|
|
779
|
-
}
|
|
780
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
781
|
-
cleanValue = cleanValue.split(":")[0];
|
|
782
|
-
}
|
|
783
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
784
|
-
cleanValue = cleanValue.split("#")[1];
|
|
785
|
-
}
|
|
786
|
-
return cleanValue;
|
|
787
|
-
};
|
|
788
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
789
|
-
if (headerKey !== undefined) {
|
|
790
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
791
|
-
}
|
|
792
|
-
if (data.code !== undefined) {
|
|
793
|
-
return sanitizeErrorCode(data.code);
|
|
794
|
-
}
|
|
795
|
-
if (data["__type"] !== undefined) {
|
|
796
|
-
return sanitizeErrorCode(data["__type"]);
|
|
797
|
-
}
|
|
798
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-route53-recovery-control-config",
|
|
3
3
|
"description": "AWS SDK for JavaScript Route53 Recovery Control Config 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-route53-recovery-control-config",
|
|
@@ -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",
|
|
@@ -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");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|