@aws-sdk/client-amp 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 -62
- package/dist-es/protocols/Aws_restJson1.js +1 -41
- package/package.json +17 -17
- package/dist-cjs/Amp.js +0 -1
- package/dist-cjs/AmpClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateAlertManagerDefinitionCommand.js +0 -1
- package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/CreateRuleGroupsNamespaceCommand.js +0 -1
- package/dist-cjs/commands/CreateScraperCommand.js +0 -1
- package/dist-cjs/commands/CreateWorkspaceCommand.js +0 -1
- package/dist-cjs/commands/DeleteAlertManagerDefinitionCommand.js +0 -1
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeleteRuleGroupsNamespaceCommand.js +0 -1
- package/dist-cjs/commands/DeleteScraperCommand.js +0 -1
- package/dist-cjs/commands/DeleteWorkspaceCommand.js +0 -1
- package/dist-cjs/commands/DescribeAlertManagerDefinitionCommand.js +0 -1
- package/dist-cjs/commands/DescribeLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DescribeRuleGroupsNamespaceCommand.js +0 -1
- package/dist-cjs/commands/DescribeScraperCommand.js +0 -1
- package/dist-cjs/commands/DescribeWorkspaceCommand.js +0 -1
- package/dist-cjs/commands/GetDefaultScraperConfigurationCommand.js +0 -1
- package/dist-cjs/commands/ListRuleGroupsNamespacesCommand.js +0 -1
- package/dist-cjs/commands/ListScrapersCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListWorkspacesCommand.js +0 -1
- package/dist-cjs/commands/PutAlertManagerDefinitionCommand.js +0 -1
- package/dist-cjs/commands/PutRuleGroupsNamespaceCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +0 -1
- package/dist-cjs/commands/UpdateWorkspaceAliasCommand.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/AmpServiceException.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/ListRuleGroupsNamespacesPaginator.js +0 -1
- package/dist-cjs/pagination/ListScrapersPaginator.js +0 -1
- package/dist-cjs/pagination/ListWorkspacesPaginator.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/waitForScraperActive.js +0 -1
- package/dist-cjs/waiters/waitForScraperDeleted.js +0 -1
- package/dist-cjs/waiters/waitForWorkspaceActive.js +0 -1
- package/dist-cjs/waiters/waitForWorkspaceDeleted.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -908,7 +908,7 @@ var de_CreateAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
908
908
|
const contents = (0, import_smithy_client.map)({
|
|
909
909
|
$metadata: deserializeMetadata(output)
|
|
910
910
|
});
|
|
911
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
911
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
912
912
|
const doc = (0, import_smithy_client.take)(data, {
|
|
913
913
|
status: import_smithy_client._json
|
|
914
914
|
});
|
|
@@ -922,7 +922,7 @@ var de_CreateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
922
922
|
const contents = (0, import_smithy_client.map)({
|
|
923
923
|
$metadata: deserializeMetadata(output)
|
|
924
924
|
});
|
|
925
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
925
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
926
926
|
const doc = (0, import_smithy_client.take)(data, {
|
|
927
927
|
status: import_smithy_client._json
|
|
928
928
|
});
|
|
@@ -936,7 +936,7 @@ var de_CreateRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
936
936
|
const contents = (0, import_smithy_client.map)({
|
|
937
937
|
$metadata: deserializeMetadata(output)
|
|
938
938
|
});
|
|
939
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
939
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
940
940
|
const doc = (0, import_smithy_client.take)(data, {
|
|
941
941
|
arn: import_smithy_client.expectString,
|
|
942
942
|
name: import_smithy_client.expectString,
|
|
@@ -953,7 +953,7 @@ var de_CreateScraperCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
953
953
|
const contents = (0, import_smithy_client.map)({
|
|
954
954
|
$metadata: deserializeMetadata(output)
|
|
955
955
|
});
|
|
956
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
956
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
957
957
|
const doc = (0, import_smithy_client.take)(data, {
|
|
958
958
|
arn: import_smithy_client.expectString,
|
|
959
959
|
scraperId: import_smithy_client.expectString,
|
|
@@ -970,7 +970,7 @@ var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
970
970
|
const contents = (0, import_smithy_client.map)({
|
|
971
971
|
$metadata: deserializeMetadata(output)
|
|
972
972
|
});
|
|
973
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
973
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
974
974
|
const doc = (0, import_smithy_client.take)(data, {
|
|
975
975
|
arn: import_smithy_client.expectString,
|
|
976
976
|
kmsKeyArn: import_smithy_client.expectString,
|
|
@@ -1018,7 +1018,7 @@ var de_DeleteScraperCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1018
1018
|
const contents = (0, import_smithy_client.map)({
|
|
1019
1019
|
$metadata: deserializeMetadata(output)
|
|
1020
1020
|
});
|
|
1021
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1021
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1022
1022
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1023
1023
|
scraperId: import_smithy_client.expectString,
|
|
1024
1024
|
status: import_smithy_client._json
|
|
@@ -1043,7 +1043,7 @@ var de_DescribeAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (out
|
|
|
1043
1043
|
const contents = (0, import_smithy_client.map)({
|
|
1044
1044
|
$metadata: deserializeMetadata(output)
|
|
1045
1045
|
});
|
|
1046
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1046
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1047
1047
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1048
1048
|
alertManagerDefinition: (_) => de_AlertManagerDefinitionDescription(_, context)
|
|
1049
1049
|
});
|
|
@@ -1057,7 +1057,7 @@ var de_DescribeLoggingConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1057
1057
|
const contents = (0, import_smithy_client.map)({
|
|
1058
1058
|
$metadata: deserializeMetadata(output)
|
|
1059
1059
|
});
|
|
1060
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1060
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1061
1061
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1062
1062
|
loggingConfiguration: (_) => de_LoggingConfigurationMetadata(_, context)
|
|
1063
1063
|
});
|
|
@@ -1071,7 +1071,7 @@ var de_DescribeRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output
|
|
|
1071
1071
|
const contents = (0, import_smithy_client.map)({
|
|
1072
1072
|
$metadata: deserializeMetadata(output)
|
|
1073
1073
|
});
|
|
1074
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1074
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1075
1075
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1076
1076
|
ruleGroupsNamespace: (_) => de_RuleGroupsNamespaceDescription(_, context)
|
|
1077
1077
|
});
|
|
@@ -1085,7 +1085,7 @@ var de_DescribeScraperCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1085
1085
|
const contents = (0, import_smithy_client.map)({
|
|
1086
1086
|
$metadata: deserializeMetadata(output)
|
|
1087
1087
|
});
|
|
1088
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1088
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1089
1089
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1090
1090
|
scraper: (_) => de_ScraperDescription(_, context)
|
|
1091
1091
|
});
|
|
@@ -1099,7 +1099,7 @@ var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1099
1099
|
const contents = (0, import_smithy_client.map)({
|
|
1100
1100
|
$metadata: deserializeMetadata(output)
|
|
1101
1101
|
});
|
|
1102
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1102
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1103
1103
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1104
1104
|
workspace: (_) => de_WorkspaceDescription(_, context)
|
|
1105
1105
|
});
|
|
@@ -1113,7 +1113,7 @@ var de_GetDefaultScraperConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
1113
1113
|
const contents = (0, import_smithy_client.map)({
|
|
1114
1114
|
$metadata: deserializeMetadata(output)
|
|
1115
1115
|
});
|
|
1116
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1116
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1117
1117
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1118
1118
|
configuration: context.base64Decoder
|
|
1119
1119
|
});
|
|
@@ -1127,7 +1127,7 @@ var de_ListRuleGroupsNamespacesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1127
1127
|
const contents = (0, import_smithy_client.map)({
|
|
1128
1128
|
$metadata: deserializeMetadata(output)
|
|
1129
1129
|
});
|
|
1130
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1130
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1131
1131
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1132
1132
|
nextToken: import_smithy_client.expectString,
|
|
1133
1133
|
ruleGroupsNamespaces: (_) => de_RuleGroupsNamespaceSummaryList(_, context)
|
|
@@ -1142,7 +1142,7 @@ var de_ListScrapersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1142
1142
|
const contents = (0, import_smithy_client.map)({
|
|
1143
1143
|
$metadata: deserializeMetadata(output)
|
|
1144
1144
|
});
|
|
1145
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1145
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1146
1146
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1147
1147
|
nextToken: import_smithy_client.expectString,
|
|
1148
1148
|
scrapers: (_) => de_ScraperSummaryList(_, context)
|
|
@@ -1157,7 +1157,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1157
1157
|
const contents = (0, import_smithy_client.map)({
|
|
1158
1158
|
$metadata: deserializeMetadata(output)
|
|
1159
1159
|
});
|
|
1160
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1160
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1161
1161
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1162
1162
|
tags: import_smithy_client._json
|
|
1163
1163
|
});
|
|
@@ -1171,7 +1171,7 @@ var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1171
1171
|
const contents = (0, import_smithy_client.map)({
|
|
1172
1172
|
$metadata: deserializeMetadata(output)
|
|
1173
1173
|
});
|
|
1174
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1174
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1175
1175
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1176
1176
|
nextToken: import_smithy_client.expectString,
|
|
1177
1177
|
workspaces: (_) => de_WorkspaceSummaryList(_, context)
|
|
@@ -1186,7 +1186,7 @@ var de_PutAlertManagerDefinitionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1186
1186
|
const contents = (0, import_smithy_client.map)({
|
|
1187
1187
|
$metadata: deserializeMetadata(output)
|
|
1188
1188
|
});
|
|
1189
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1189
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1190
1190
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1191
1191
|
status: import_smithy_client._json
|
|
1192
1192
|
});
|
|
@@ -1200,7 +1200,7 @@ var de_PutRuleGroupsNamespaceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1200
1200
|
const contents = (0, import_smithy_client.map)({
|
|
1201
1201
|
$metadata: deserializeMetadata(output)
|
|
1202
1202
|
});
|
|
1203
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1203
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1204
1204
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1205
1205
|
arn: import_smithy_client.expectString,
|
|
1206
1206
|
name: import_smithy_client.expectString,
|
|
@@ -1237,7 +1237,7 @@ var de_UpdateLoggingConfigurationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1237
1237
|
const contents = (0, import_smithy_client.map)({
|
|
1238
1238
|
$metadata: deserializeMetadata(output)
|
|
1239
1239
|
});
|
|
1240
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1240
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1241
1241
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1242
1242
|
status: import_smithy_client._json
|
|
1243
1243
|
});
|
|
@@ -1257,9 +1257,9 @@ var de_UpdateWorkspaceAliasCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1257
1257
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1258
1258
|
const parsedOutput = {
|
|
1259
1259
|
...output,
|
|
1260
|
-
body: await
|
|
1260
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1261
1261
|
};
|
|
1262
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1262
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1263
1263
|
switch (errorCode) {
|
|
1264
1264
|
case "AccessDeniedException":
|
|
1265
1265
|
case "com.amazonaws.amp#AccessDeniedException":
|
|
@@ -1529,7 +1529,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1529
1529
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1530
1530
|
cfId: output.headers["x-amz-cf-id"]
|
|
1531
1531
|
}), "deserializeMetadata");
|
|
1532
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1533
1532
|
var _a = "alias";
|
|
1534
1533
|
var _cT = "clientToken";
|
|
1535
1534
|
var _mR = "maxResults";
|
|
@@ -1538,46 +1537,6 @@ var _nT = "nextToken";
|
|
|
1538
1537
|
var _rAS = "retryAfterSeconds";
|
|
1539
1538
|
var _ra = "retry-after";
|
|
1540
1539
|
var _tK = "tagKeys";
|
|
1541
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1542
|
-
if (encoded.length) {
|
|
1543
|
-
return JSON.parse(encoded);
|
|
1544
|
-
}
|
|
1545
|
-
return {};
|
|
1546
|
-
}), "parseBody");
|
|
1547
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1548
|
-
const value = await parseBody(errorBody, context);
|
|
1549
|
-
value.message = value.message ?? value.Message;
|
|
1550
|
-
return value;
|
|
1551
|
-
}, "parseErrorBody");
|
|
1552
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1553
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1554
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1555
|
-
let cleanValue = rawValue;
|
|
1556
|
-
if (typeof cleanValue === "number") {
|
|
1557
|
-
cleanValue = cleanValue.toString();
|
|
1558
|
-
}
|
|
1559
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1560
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1561
|
-
}
|
|
1562
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1563
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1564
|
-
}
|
|
1565
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1566
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1567
|
-
}
|
|
1568
|
-
return cleanValue;
|
|
1569
|
-
}, "sanitizeErrorCode");
|
|
1570
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1571
|
-
if (headerKey !== void 0) {
|
|
1572
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1573
|
-
}
|
|
1574
|
-
if (data.code !== void 0) {
|
|
1575
|
-
return sanitizeErrorCode(data.code);
|
|
1576
|
-
}
|
|
1577
|
-
if (data["__type"] !== void 0) {
|
|
1578
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1579
|
-
}
|
|
1580
|
-
}, "loadRestJsonErrorCode");
|
|
1581
1540
|
|
|
1582
1541
|
// src/commands/CreateAlertManagerDefinitionCommand.ts
|
|
1583
1542
|
var _CreateAlertManagerDefinitionCommand = class _CreateAlertManagerDefinitionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
3
|
import { _json, collectBody, convertMap, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -990,43 +990,3 @@ const _nT = "nextToken";
|
|
|
990
990
|
const _rAS = "retryAfterSeconds";
|
|
991
991
|
const _ra = "retry-after";
|
|
992
992
|
const _tK = "tagKeys";
|
|
993
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
994
|
-
if (encoded.length) {
|
|
995
|
-
return JSON.parse(encoded);
|
|
996
|
-
}
|
|
997
|
-
return {};
|
|
998
|
-
});
|
|
999
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1000
|
-
const value = await parseBody(errorBody, context);
|
|
1001
|
-
value.message = value.message ?? value.Message;
|
|
1002
|
-
return value;
|
|
1003
|
-
};
|
|
1004
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1005
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1006
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1007
|
-
let cleanValue = rawValue;
|
|
1008
|
-
if (typeof cleanValue === "number") {
|
|
1009
|
-
cleanValue = cleanValue.toString();
|
|
1010
|
-
}
|
|
1011
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1012
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1013
|
-
}
|
|
1014
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1015
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1016
|
-
}
|
|
1017
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1018
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1019
|
-
}
|
|
1020
|
-
return cleanValue;
|
|
1021
|
-
};
|
|
1022
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1023
|
-
if (headerKey !== undefined) {
|
|
1024
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1025
|
-
}
|
|
1026
|
-
if (data.code !== undefined) {
|
|
1027
|
-
return sanitizeErrorCode(data.code);
|
|
1028
|
-
}
|
|
1029
|
-
if (data["__type"] !== undefined) {
|
|
1030
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1031
|
-
}
|
|
1032
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-amp",
|
|
3
3
|
"description": "AWS SDK for JavaScript Amp 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-amp",
|
|
@@ -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/Amp.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
package/dist-cjs/AmpClient.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");
|
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");
|