@aws-sdk/client-resource-explorer-2 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/ResourceExplorer2.js +0 -1
- package/dist-cjs/ResourceExplorer2Client.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AssociateDefaultViewCommand.js +0 -1
- package/dist-cjs/commands/BatchGetViewCommand.js +0 -1
- package/dist-cjs/commands/CreateIndexCommand.js +0 -1
- package/dist-cjs/commands/CreateViewCommand.js +0 -1
- package/dist-cjs/commands/DeleteIndexCommand.js +0 -1
- package/dist-cjs/commands/DeleteViewCommand.js +0 -1
- package/dist-cjs/commands/DisassociateDefaultViewCommand.js +0 -1
- package/dist-cjs/commands/GetAccountLevelServiceConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetDefaultViewCommand.js +0 -1
- package/dist-cjs/commands/GetIndexCommand.js +0 -1
- package/dist-cjs/commands/GetViewCommand.js +0 -1
- package/dist-cjs/commands/ListIndexesCommand.js +0 -1
- package/dist-cjs/commands/ListIndexesForMembersCommand.js +0 -1
- package/dist-cjs/commands/ListSupportedResourceTypesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListViewsCommand.js +0 -1
- package/dist-cjs/commands/SearchCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateIndexTypeCommand.js +0 -1
- package/dist-cjs/commands/UpdateViewCommand.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/ResourceExplorer2ServiceException.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/ListIndexesForMembersPaginator.js +0 -1
- package/dist-cjs/pagination/ListIndexesPaginator.js +0 -1
- package/dist-cjs/pagination/ListSupportedResourceTypesPaginator.js +0 -1
- package/dist-cjs/pagination/ListViewsPaginator.js +0 -1
- package/dist-cjs/pagination/SearchPaginator.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/index.js
CHANGED
|
@@ -232,6 +232,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
232
232
|
var import_types = require("@smithy/types");
|
|
233
233
|
|
|
234
234
|
// src/protocols/Aws_restJson1.ts
|
|
235
|
+
var import_core2 = require("@aws-sdk/core");
|
|
235
236
|
|
|
236
237
|
|
|
237
238
|
var import_uuid = require("uuid");
|
|
@@ -816,7 +817,7 @@ var de_AssociateDefaultViewCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
816
817
|
const contents = (0, import_smithy_client.map)({
|
|
817
818
|
$metadata: deserializeMetadata(output)
|
|
818
819
|
});
|
|
819
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
820
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
820
821
|
const doc = (0, import_smithy_client.take)(data, {
|
|
821
822
|
ViewArn: import_smithy_client.expectString
|
|
822
823
|
});
|
|
@@ -830,7 +831,7 @@ var de_BatchGetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
830
831
|
const contents = (0, import_smithy_client.map)({
|
|
831
832
|
$metadata: deserializeMetadata(output)
|
|
832
833
|
});
|
|
833
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
834
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
834
835
|
const doc = (0, import_smithy_client.take)(data, {
|
|
835
836
|
Errors: import_smithy_client._json,
|
|
836
837
|
Views: (_) => de_ViewList(_, context)
|
|
@@ -845,7 +846,7 @@ var de_CreateIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
845
846
|
const contents = (0, import_smithy_client.map)({
|
|
846
847
|
$metadata: deserializeMetadata(output)
|
|
847
848
|
});
|
|
848
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
849
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
849
850
|
const doc = (0, import_smithy_client.take)(data, {
|
|
850
851
|
Arn: import_smithy_client.expectString,
|
|
851
852
|
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -861,7 +862,7 @@ var de_CreateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
861
862
|
const contents = (0, import_smithy_client.map)({
|
|
862
863
|
$metadata: deserializeMetadata(output)
|
|
863
864
|
});
|
|
864
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
865
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
865
866
|
const doc = (0, import_smithy_client.take)(data, {
|
|
866
867
|
View: (_) => de_View(_, context)
|
|
867
868
|
});
|
|
@@ -875,7 +876,7 @@ var de_DeleteIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
875
876
|
const contents = (0, import_smithy_client.map)({
|
|
876
877
|
$metadata: deserializeMetadata(output)
|
|
877
878
|
});
|
|
878
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
879
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
879
880
|
const doc = (0, import_smithy_client.take)(data, {
|
|
880
881
|
Arn: import_smithy_client.expectString,
|
|
881
882
|
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -891,7 +892,7 @@ var de_DeleteViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
891
892
|
const contents = (0, import_smithy_client.map)({
|
|
892
893
|
$metadata: deserializeMetadata(output)
|
|
893
894
|
});
|
|
894
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
895
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
895
896
|
const doc = (0, import_smithy_client.take)(data, {
|
|
896
897
|
ViewArn: import_smithy_client.expectString
|
|
897
898
|
});
|
|
@@ -915,7 +916,7 @@ var de_GetAccountLevelServiceConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
915
916
|
const contents = (0, import_smithy_client.map)({
|
|
916
917
|
$metadata: deserializeMetadata(output)
|
|
917
918
|
});
|
|
918
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
919
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
919
920
|
const doc = (0, import_smithy_client.take)(data, {
|
|
920
921
|
OrgConfiguration: import_smithy_client._json
|
|
921
922
|
});
|
|
@@ -929,7 +930,7 @@ var de_GetDefaultViewCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
929
930
|
const contents = (0, import_smithy_client.map)({
|
|
930
931
|
$metadata: deserializeMetadata(output)
|
|
931
932
|
});
|
|
932
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
933
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
933
934
|
const doc = (0, import_smithy_client.take)(data, {
|
|
934
935
|
ViewArn: import_smithy_client.expectString
|
|
935
936
|
});
|
|
@@ -943,7 +944,7 @@ var de_GetIndexCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
943
944
|
const contents = (0, import_smithy_client.map)({
|
|
944
945
|
$metadata: deserializeMetadata(output)
|
|
945
946
|
});
|
|
946
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
947
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
947
948
|
const doc = (0, import_smithy_client.take)(data, {
|
|
948
949
|
Arn: import_smithy_client.expectString,
|
|
949
950
|
CreatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -964,7 +965,7 @@ var de_GetViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
964
965
|
const contents = (0, import_smithy_client.map)({
|
|
965
966
|
$metadata: deserializeMetadata(output)
|
|
966
967
|
});
|
|
967
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
968
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
968
969
|
const doc = (0, import_smithy_client.take)(data, {
|
|
969
970
|
Tags: import_smithy_client._json,
|
|
970
971
|
View: (_) => de_View(_, context)
|
|
@@ -979,7 +980,7 @@ var de_ListIndexesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
979
980
|
const contents = (0, import_smithy_client.map)({
|
|
980
981
|
$metadata: deserializeMetadata(output)
|
|
981
982
|
});
|
|
982
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
983
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
983
984
|
const doc = (0, import_smithy_client.take)(data, {
|
|
984
985
|
Indexes: import_smithy_client._json,
|
|
985
986
|
NextToken: import_smithy_client.expectString
|
|
@@ -994,7 +995,7 @@ var de_ListIndexesForMembersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
994
995
|
const contents = (0, import_smithy_client.map)({
|
|
995
996
|
$metadata: deserializeMetadata(output)
|
|
996
997
|
});
|
|
997
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
998
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
998
999
|
const doc = (0, import_smithy_client.take)(data, {
|
|
999
1000
|
Indexes: import_smithy_client._json,
|
|
1000
1001
|
NextToken: import_smithy_client.expectString
|
|
@@ -1009,7 +1010,7 @@ var de_ListSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1009
1010
|
const contents = (0, import_smithy_client.map)({
|
|
1010
1011
|
$metadata: deserializeMetadata(output)
|
|
1011
1012
|
});
|
|
1012
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1013
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1013
1014
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1014
1015
|
NextToken: import_smithy_client.expectString,
|
|
1015
1016
|
ResourceTypes: import_smithy_client._json
|
|
@@ -1024,7 +1025,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1024
1025
|
const contents = (0, import_smithy_client.map)({
|
|
1025
1026
|
$metadata: deserializeMetadata(output)
|
|
1026
1027
|
});
|
|
1027
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1028
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1028
1029
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1029
1030
|
Tags: import_smithy_client._json
|
|
1030
1031
|
});
|
|
@@ -1038,7 +1039,7 @@ var de_ListViewsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1038
1039
|
const contents = (0, import_smithy_client.map)({
|
|
1039
1040
|
$metadata: deserializeMetadata(output)
|
|
1040
1041
|
});
|
|
1041
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1042
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1042
1043
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1043
1044
|
NextToken: import_smithy_client.expectString,
|
|
1044
1045
|
Views: import_smithy_client._json
|
|
@@ -1053,7 +1054,7 @@ var de_SearchCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1053
1054
|
const contents = (0, import_smithy_client.map)({
|
|
1054
1055
|
$metadata: deserializeMetadata(output)
|
|
1055
1056
|
});
|
|
1056
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1057
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1057
1058
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1058
1059
|
Count: import_smithy_client._json,
|
|
1059
1060
|
NextToken: import_smithy_client.expectString,
|
|
@@ -1090,7 +1091,7 @@ var de_UpdateIndexTypeCommand = /* @__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
|
|
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
|
Arn: import_smithy_client.expectString,
|
|
1096
1097
|
LastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
@@ -1107,7 +1108,7 @@ var de_UpdateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1107
1108
|
const contents = (0, import_smithy_client.map)({
|
|
1108
1109
|
$metadata: deserializeMetadata(output)
|
|
1109
1110
|
});
|
|
1110
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1111
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1111
1112
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1112
1113
|
View: (_) => de_View(_, context)
|
|
1113
1114
|
});
|
|
@@ -1117,9 +1118,9 @@ var de_UpdateViewCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1117
1118
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1118
1119
|
const parsedOutput = {
|
|
1119
1120
|
...output,
|
|
1120
|
-
body: await
|
|
1121
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1121
1122
|
};
|
|
1122
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1123
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1123
1124
|
switch (errorCode) {
|
|
1124
1125
|
case "AccessDeniedException":
|
|
1125
1126
|
case "com.amazonaws.resourceexplorer2#AccessDeniedException":
|
|
@@ -1317,48 +1318,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1317
1318
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1318
1319
|
cfId: output.headers["x-amz-cf-id"]
|
|
1319
1320
|
}), "deserializeMetadata");
|
|
1320
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1321
1321
|
var _tK = "tagKeys";
|
|
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/AssociateDefaultViewCommand.ts
|
|
1364
1324
|
var _AssociateDefaultViewCommand = class _AssociateDefaultViewCommand 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, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -807,43 +808,3 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
807
808
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
808
809
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
809
810
|
const _tK = "tagKeys";
|
|
810
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
811
|
-
if (encoded.length) {
|
|
812
|
-
return JSON.parse(encoded);
|
|
813
|
-
}
|
|
814
|
-
return {};
|
|
815
|
-
});
|
|
816
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
817
|
-
const value = await parseBody(errorBody, context);
|
|
818
|
-
value.message = value.message ?? value.Message;
|
|
819
|
-
return value;
|
|
820
|
-
};
|
|
821
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
822
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
823
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
824
|
-
let cleanValue = rawValue;
|
|
825
|
-
if (typeof cleanValue === "number") {
|
|
826
|
-
cleanValue = cleanValue.toString();
|
|
827
|
-
}
|
|
828
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
829
|
-
cleanValue = cleanValue.split(",")[0];
|
|
830
|
-
}
|
|
831
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
832
|
-
cleanValue = cleanValue.split(":")[0];
|
|
833
|
-
}
|
|
834
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
835
|
-
cleanValue = cleanValue.split("#")[1];
|
|
836
|
-
}
|
|
837
|
-
return cleanValue;
|
|
838
|
-
};
|
|
839
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
840
|
-
if (headerKey !== undefined) {
|
|
841
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
842
|
-
}
|
|
843
|
-
if (data.code !== undefined) {
|
|
844
|
-
return sanitizeErrorCode(data.code);
|
|
845
|
-
}
|
|
846
|
-
if (data["__type"] !== undefined) {
|
|
847
|
-
return sanitizeErrorCode(data["__type"]);
|
|
848
|
-
}
|
|
849
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-resource-explorer-2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Resource Explorer 2 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-resource-explorer-2",
|
|
@@ -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");
|
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");
|