@aws-sdk/client-application-discovery-service 3.525.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 +31 -71
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -247,6 +247,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
247
247
|
var import_types = require("@smithy/types");
|
|
248
248
|
|
|
249
249
|
// src/protocols/Aws_json1_1.ts
|
|
250
|
+
var import_core2 = require("@aws-sdk/core");
|
|
250
251
|
|
|
251
252
|
|
|
252
253
|
var import_uuid = require("uuid");
|
|
@@ -722,7 +723,7 @@ var de_AssociateConfigurationItemsToApplicationCommand = /* @__PURE__ */ __name(
|
|
|
722
723
|
if (output.statusCode >= 300) {
|
|
723
724
|
return de_CommandError(output, context);
|
|
724
725
|
}
|
|
725
|
-
const data = await
|
|
726
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
726
727
|
let contents = {};
|
|
727
728
|
contents = (0, import_smithy_client._json)(data);
|
|
728
729
|
const response = {
|
|
@@ -735,7 +736,7 @@ var de_BatchDeleteAgentsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
735
736
|
if (output.statusCode >= 300) {
|
|
736
737
|
return de_CommandError(output, context);
|
|
737
738
|
}
|
|
738
|
-
const data = await
|
|
739
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
739
740
|
let contents = {};
|
|
740
741
|
contents = (0, import_smithy_client._json)(data);
|
|
741
742
|
const response = {
|
|
@@ -748,7 +749,7 @@ var de_BatchDeleteImportDataCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
748
749
|
if (output.statusCode >= 300) {
|
|
749
750
|
return de_CommandError(output, context);
|
|
750
751
|
}
|
|
751
|
-
const data = await
|
|
752
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
752
753
|
let contents = {};
|
|
753
754
|
contents = (0, import_smithy_client._json)(data);
|
|
754
755
|
const response = {
|
|
@@ -761,7 +762,7 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
761
762
|
if (output.statusCode >= 300) {
|
|
762
763
|
return de_CommandError(output, context);
|
|
763
764
|
}
|
|
764
|
-
const data = await
|
|
765
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
765
766
|
let contents = {};
|
|
766
767
|
contents = (0, import_smithy_client._json)(data);
|
|
767
768
|
const response = {
|
|
@@ -774,7 +775,7 @@ var de_CreateTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
774
775
|
if (output.statusCode >= 300) {
|
|
775
776
|
return de_CommandError(output, context);
|
|
776
777
|
}
|
|
777
|
-
const data = await
|
|
778
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
778
779
|
let contents = {};
|
|
779
780
|
contents = (0, import_smithy_client._json)(data);
|
|
780
781
|
const response = {
|
|
@@ -787,7 +788,7 @@ var de_DeleteApplicationsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
787
788
|
if (output.statusCode >= 300) {
|
|
788
789
|
return de_CommandError(output, context);
|
|
789
790
|
}
|
|
790
|
-
const data = await
|
|
791
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
791
792
|
let contents = {};
|
|
792
793
|
contents = (0, import_smithy_client._json)(data);
|
|
793
794
|
const response = {
|
|
@@ -800,7 +801,7 @@ var de_DeleteTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
800
801
|
if (output.statusCode >= 300) {
|
|
801
802
|
return de_CommandError(output, context);
|
|
802
803
|
}
|
|
803
|
-
const data = await
|
|
804
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
804
805
|
let contents = {};
|
|
805
806
|
contents = (0, import_smithy_client._json)(data);
|
|
806
807
|
const response = {
|
|
@@ -813,7 +814,7 @@ var de_DescribeAgentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
813
814
|
if (output.statusCode >= 300) {
|
|
814
815
|
return de_CommandError(output, context);
|
|
815
816
|
}
|
|
816
|
-
const data = await
|
|
817
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
817
818
|
let contents = {};
|
|
818
819
|
contents = (0, import_smithy_client._json)(data);
|
|
819
820
|
const response = {
|
|
@@ -826,7 +827,7 @@ var de_DescribeBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(asyn
|
|
|
826
827
|
if (output.statusCode >= 300) {
|
|
827
828
|
return de_CommandError(output, context);
|
|
828
829
|
}
|
|
829
|
-
const data = await
|
|
830
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
830
831
|
let contents = {};
|
|
831
832
|
contents = de_DescribeBatchDeleteConfigurationTaskResponse(data, context);
|
|
832
833
|
const response = {
|
|
@@ -839,7 +840,7 @@ var de_DescribeConfigurationsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
839
840
|
if (output.statusCode >= 300) {
|
|
840
841
|
return de_CommandError(output, context);
|
|
841
842
|
}
|
|
842
|
-
const data = await
|
|
843
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
843
844
|
let contents = {};
|
|
844
845
|
contents = (0, import_smithy_client._json)(data);
|
|
845
846
|
const response = {
|
|
@@ -852,7 +853,7 @@ var de_DescribeContinuousExportsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
852
853
|
if (output.statusCode >= 300) {
|
|
853
854
|
return de_CommandError(output, context);
|
|
854
855
|
}
|
|
855
|
-
const data = await
|
|
856
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
856
857
|
let contents = {};
|
|
857
858
|
contents = de_DescribeContinuousExportsResponse(data, context);
|
|
858
859
|
const response = {
|
|
@@ -865,7 +866,7 @@ var de_DescribeExportConfigurationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
865
866
|
if (output.statusCode >= 300) {
|
|
866
867
|
return de_CommandError(output, context);
|
|
867
868
|
}
|
|
868
|
-
const data = await
|
|
869
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
869
870
|
let contents = {};
|
|
870
871
|
contents = de_DescribeExportConfigurationsResponse(data, context);
|
|
871
872
|
const response = {
|
|
@@ -878,7 +879,7 @@ var de_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
878
879
|
if (output.statusCode >= 300) {
|
|
879
880
|
return de_CommandError(output, context);
|
|
880
881
|
}
|
|
881
|
-
const data = await
|
|
882
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
882
883
|
let contents = {};
|
|
883
884
|
contents = de_DescribeExportTasksResponse(data, context);
|
|
884
885
|
const response = {
|
|
@@ -891,7 +892,7 @@ var de_DescribeImportTasksCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
891
892
|
if (output.statusCode >= 300) {
|
|
892
893
|
return de_CommandError(output, context);
|
|
893
894
|
}
|
|
894
|
-
const data = await
|
|
895
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
895
896
|
let contents = {};
|
|
896
897
|
contents = de_DescribeImportTasksResponse(data, context);
|
|
897
898
|
const response = {
|
|
@@ -904,7 +905,7 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
904
905
|
if (output.statusCode >= 300) {
|
|
905
906
|
return de_CommandError(output, context);
|
|
906
907
|
}
|
|
907
|
-
const data = await
|
|
908
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
908
909
|
let contents = {};
|
|
909
910
|
contents = de_DescribeTagsResponse(data, context);
|
|
910
911
|
const response = {
|
|
@@ -917,7 +918,7 @@ var de_DisassociateConfigurationItemsFromApplicationCommand = /* @__PURE__ */ __
|
|
|
917
918
|
if (output.statusCode >= 300) {
|
|
918
919
|
return de_CommandError(output, context);
|
|
919
920
|
}
|
|
920
|
-
const data = await
|
|
921
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
921
922
|
let contents = {};
|
|
922
923
|
contents = (0, import_smithy_client._json)(data);
|
|
923
924
|
const response = {
|
|
@@ -930,7 +931,7 @@ var de_ExportConfigurationsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
930
931
|
if (output.statusCode >= 300) {
|
|
931
932
|
return de_CommandError(output, context);
|
|
932
933
|
}
|
|
933
|
-
const data = await
|
|
934
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
934
935
|
let contents = {};
|
|
935
936
|
contents = (0, import_smithy_client._json)(data);
|
|
936
937
|
const response = {
|
|
@@ -943,7 +944,7 @@ var de_GetDiscoverySummaryCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
943
944
|
if (output.statusCode >= 300) {
|
|
944
945
|
return de_CommandError(output, context);
|
|
945
946
|
}
|
|
946
|
-
const data = await
|
|
947
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
947
948
|
let contents = {};
|
|
948
949
|
contents = (0, import_smithy_client._json)(data);
|
|
949
950
|
const response = {
|
|
@@ -956,7 +957,7 @@ var de_ListConfigurationsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
956
957
|
if (output.statusCode >= 300) {
|
|
957
958
|
return de_CommandError(output, context);
|
|
958
959
|
}
|
|
959
|
-
const data = await
|
|
960
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
960
961
|
let contents = {};
|
|
961
962
|
contents = (0, import_smithy_client._json)(data);
|
|
962
963
|
const response = {
|
|
@@ -969,7 +970,7 @@ var de_ListServerNeighborsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
969
970
|
if (output.statusCode >= 300) {
|
|
970
971
|
return de_CommandError(output, context);
|
|
971
972
|
}
|
|
972
|
-
const data = await
|
|
973
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
973
974
|
let contents = {};
|
|
974
975
|
contents = (0, import_smithy_client._json)(data);
|
|
975
976
|
const response = {
|
|
@@ -982,7 +983,7 @@ var de_StartBatchDeleteConfigurationTaskCommand = /* @__PURE__ */ __name(async (
|
|
|
982
983
|
if (output.statusCode >= 300) {
|
|
983
984
|
return de_CommandError(output, context);
|
|
984
985
|
}
|
|
985
|
-
const data = await
|
|
986
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
986
987
|
let contents = {};
|
|
987
988
|
contents = (0, import_smithy_client._json)(data);
|
|
988
989
|
const response = {
|
|
@@ -995,7 +996,7 @@ var de_StartContinuousExportCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
995
996
|
if (output.statusCode >= 300) {
|
|
996
997
|
return de_CommandError(output, context);
|
|
997
998
|
}
|
|
998
|
-
const data = await
|
|
999
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
999
1000
|
let contents = {};
|
|
1000
1001
|
contents = de_StartContinuousExportResponse(data, context);
|
|
1001
1002
|
const response = {
|
|
@@ -1008,7 +1009,7 @@ var de_StartDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1008
1009
|
if (output.statusCode >= 300) {
|
|
1009
1010
|
return de_CommandError(output, context);
|
|
1010
1011
|
}
|
|
1011
|
-
const data = await
|
|
1012
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1012
1013
|
let contents = {};
|
|
1013
1014
|
contents = (0, import_smithy_client._json)(data);
|
|
1014
1015
|
const response = {
|
|
@@ -1021,7 +1022,7 @@ var de_StartExportTaskCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1021
1022
|
if (output.statusCode >= 300) {
|
|
1022
1023
|
return de_CommandError(output, context);
|
|
1023
1024
|
}
|
|
1024
|
-
const data = await
|
|
1025
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1025
1026
|
let contents = {};
|
|
1026
1027
|
contents = (0, import_smithy_client._json)(data);
|
|
1027
1028
|
const response = {
|
|
@@ -1034,7 +1035,7 @@ var de_StartImportTaskCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1034
1035
|
if (output.statusCode >= 300) {
|
|
1035
1036
|
return de_CommandError(output, context);
|
|
1036
1037
|
}
|
|
1037
|
-
const data = await
|
|
1038
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1038
1039
|
let contents = {};
|
|
1039
1040
|
contents = de_StartImportTaskResponse(data, context);
|
|
1040
1041
|
const response = {
|
|
@@ -1047,7 +1048,7 @@ var de_StopContinuousExportCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1047
1048
|
if (output.statusCode >= 300) {
|
|
1048
1049
|
return de_CommandError(output, context);
|
|
1049
1050
|
}
|
|
1050
|
-
const data = await
|
|
1051
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1051
1052
|
let contents = {};
|
|
1052
1053
|
contents = de_StopContinuousExportResponse(data, context);
|
|
1053
1054
|
const response = {
|
|
@@ -1060,7 +1061,7 @@ var de_StopDataCollectionByAgentIdsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1060
1061
|
if (output.statusCode >= 300) {
|
|
1061
1062
|
return de_CommandError(output, context);
|
|
1062
1063
|
}
|
|
1063
|
-
const data = await
|
|
1064
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1064
1065
|
let contents = {};
|
|
1065
1066
|
contents = (0, import_smithy_client._json)(data);
|
|
1066
1067
|
const response = {
|
|
@@ -1073,7 +1074,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1073
1074
|
if (output.statusCode >= 300) {
|
|
1074
1075
|
return de_CommandError(output, context);
|
|
1075
1076
|
}
|
|
1076
|
-
const data = await
|
|
1077
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1077
1078
|
let contents = {};
|
|
1078
1079
|
contents = (0, import_smithy_client._json)(data);
|
|
1079
1080
|
const response = {
|
|
@@ -1085,9 +1086,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1085
1086
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1086
1087
|
const parsedOutput = {
|
|
1087
1088
|
...output,
|
|
1088
|
-
body: await
|
|
1089
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1089
1090
|
};
|
|
1090
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1091
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1091
1092
|
switch (errorCode) {
|
|
1092
1093
|
case "AuthorizationErrorException":
|
|
1093
1094
|
case "com.amazonaws.applicationdiscoveryservice#AuthorizationErrorException":
|
|
@@ -1407,7 +1408,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1407
1408
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1408
1409
|
cfId: output.headers["x-amz-cf-id"]
|
|
1409
1410
|
}), "deserializeMetadata");
|
|
1410
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1411
1411
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ApplicationDiscoveryServiceServiceException);
|
|
1412
1412
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1413
1413
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1434,46 +1434,6 @@ function sharedHeaders(operation) {
|
|
|
1434
1434
|
};
|
|
1435
1435
|
}
|
|
1436
1436
|
__name(sharedHeaders, "sharedHeaders");
|
|
1437
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1438
|
-
if (encoded.length) {
|
|
1439
|
-
return JSON.parse(encoded);
|
|
1440
|
-
}
|
|
1441
|
-
return {};
|
|
1442
|
-
}), "parseBody");
|
|
1443
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1444
|
-
const value = await parseBody(errorBody, context);
|
|
1445
|
-
value.message = value.message ?? value.Message;
|
|
1446
|
-
return value;
|
|
1447
|
-
}, "parseErrorBody");
|
|
1448
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1449
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1450
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1451
|
-
let cleanValue = rawValue;
|
|
1452
|
-
if (typeof cleanValue === "number") {
|
|
1453
|
-
cleanValue = cleanValue.toString();
|
|
1454
|
-
}
|
|
1455
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1456
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1457
|
-
}
|
|
1458
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1459
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1460
|
-
}
|
|
1461
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1462
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1463
|
-
}
|
|
1464
|
-
return cleanValue;
|
|
1465
|
-
}, "sanitizeErrorCode");
|
|
1466
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1467
|
-
if (headerKey !== void 0) {
|
|
1468
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1469
|
-
}
|
|
1470
|
-
if (data.code !== void 0) {
|
|
1471
|
-
return sanitizeErrorCode(data.code);
|
|
1472
|
-
}
|
|
1473
|
-
if (data["__type"] !== void 0) {
|
|
1474
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1475
|
-
}
|
|
1476
|
-
}, "loadRestJsonErrorCode");
|
|
1477
1437
|
|
|
1478
1438
|
// src/commands/AssociateConfigurationItemsToApplicationCommand.ts
|
|
1479
1439
|
var _AssociateConfigurationItemsToApplicationCommand = class _AssociateConfigurationItemsToApplicationCommand 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, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -893,43 +894,3 @@ function sharedHeaders(operation) {
|
|
|
893
894
|
"x-amz-target": `AWSPoseidonService_V2015_11_01.${operation}`,
|
|
894
895
|
};
|
|
895
896
|
}
|
|
896
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
897
|
-
if (encoded.length) {
|
|
898
|
-
return JSON.parse(encoded);
|
|
899
|
-
}
|
|
900
|
-
return {};
|
|
901
|
-
});
|
|
902
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
903
|
-
const value = await parseBody(errorBody, context);
|
|
904
|
-
value.message = value.message ?? value.Message;
|
|
905
|
-
return value;
|
|
906
|
-
};
|
|
907
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
908
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
909
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
910
|
-
let cleanValue = rawValue;
|
|
911
|
-
if (typeof cleanValue === "number") {
|
|
912
|
-
cleanValue = cleanValue.toString();
|
|
913
|
-
}
|
|
914
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
915
|
-
cleanValue = cleanValue.split(",")[0];
|
|
916
|
-
}
|
|
917
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
918
|
-
cleanValue = cleanValue.split(":")[0];
|
|
919
|
-
}
|
|
920
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
921
|
-
cleanValue = cleanValue.split("#")[1];
|
|
922
|
-
}
|
|
923
|
-
return cleanValue;
|
|
924
|
-
};
|
|
925
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
926
|
-
if (headerKey !== undefined) {
|
|
927
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
928
|
-
}
|
|
929
|
-
if (data.code !== undefined) {
|
|
930
|
-
return sanitizeErrorCode(data.code);
|
|
931
|
-
}
|
|
932
|
-
if (data["__type"] !== undefined) {
|
|
933
|
-
return sanitizeErrorCode(data["__type"]);
|
|
934
|
-
}
|
|
935
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-application-discovery-service",
|
|
3
3
|
"description": "AWS SDK for JavaScript Application Discovery Service 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-application-discovery-service",
|
|
@@ -20,9 +20,9 @@
|
|
|
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",
|