@aws-sdk/client-cost-explorer 3.524.0 → 3.529.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +42 -82
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/CostExplorer.js +0 -1
- package/dist-cjs/CostExplorerClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateAnomalyMonitorCommand.js +0 -1
- package/dist-cjs/commands/CreateAnomalySubscriptionCommand.js +0 -1
- package/dist-cjs/commands/CreateCostCategoryDefinitionCommand.js +0 -1
- package/dist-cjs/commands/DeleteAnomalyMonitorCommand.js +0 -1
- package/dist-cjs/commands/DeleteAnomalySubscriptionCommand.js +0 -1
- package/dist-cjs/commands/DeleteCostCategoryDefinitionCommand.js +0 -1
- package/dist-cjs/commands/DescribeCostCategoryDefinitionCommand.js +0 -1
- package/dist-cjs/commands/GetAnomaliesCommand.js +0 -1
- package/dist-cjs/commands/GetAnomalyMonitorsCommand.js +0 -1
- package/dist-cjs/commands/GetAnomalySubscriptionsCommand.js +0 -1
- package/dist-cjs/commands/GetApproximateUsageRecordsCommand.js +0 -1
- package/dist-cjs/commands/GetCostAndUsageCommand.js +0 -1
- package/dist-cjs/commands/GetCostAndUsageWithResourcesCommand.js +0 -1
- package/dist-cjs/commands/GetCostCategoriesCommand.js +0 -1
- package/dist-cjs/commands/GetCostForecastCommand.js +0 -1
- package/dist-cjs/commands/GetDimensionValuesCommand.js +0 -1
- package/dist-cjs/commands/GetReservationCoverageCommand.js +0 -1
- package/dist-cjs/commands/GetReservationPurchaseRecommendationCommand.js +0 -1
- package/dist-cjs/commands/GetReservationUtilizationCommand.js +0 -1
- package/dist-cjs/commands/GetRightsizingRecommendationCommand.js +0 -1
- package/dist-cjs/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.js +0 -1
- package/dist-cjs/commands/GetSavingsPlansCoverageCommand.js +0 -1
- package/dist-cjs/commands/GetSavingsPlansPurchaseRecommendationCommand.js +0 -1
- package/dist-cjs/commands/GetSavingsPlansUtilizationCommand.js +0 -1
- package/dist-cjs/commands/GetSavingsPlansUtilizationDetailsCommand.js +0 -1
- package/dist-cjs/commands/GetTagsCommand.js +0 -1
- package/dist-cjs/commands/GetUsageForecastCommand.js +0 -1
- package/dist-cjs/commands/ListCostAllocationTagsCommand.js +0 -1
- package/dist-cjs/commands/ListCostCategoryDefinitionsCommand.js +0 -1
- package/dist-cjs/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ProvideAnomalyFeedbackCommand.js +0 -1
- package/dist-cjs/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateAnomalyMonitorCommand.js +0 -1
- package/dist-cjs/commands/UpdateAnomalySubscriptionCommand.js +0 -1
- package/dist-cjs/commands/UpdateCostAllocationTagsStatusCommand.js +0 -1
- package/dist-cjs/commands/UpdateCostCategoryDefinitionCommand.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/CostExplorerServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/GetSavingsPlansCoveragePaginator.js +0 -1
- package/dist-cjs/pagination/GetSavingsPlansUtilizationDetailsPaginator.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListCostAllocationTagsPaginator.js +0 -1
- package/dist-cjs/pagination/ListCostCategoryDefinitionsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -272,6 +272,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
272
272
|
var import_types = require("@smithy/types");
|
|
273
273
|
|
|
274
274
|
// src/protocols/Aws_json1_1.ts
|
|
275
|
+
var import_core2 = require("@aws-sdk/core");
|
|
275
276
|
|
|
276
277
|
|
|
277
278
|
|
|
@@ -967,7 +968,7 @@ var de_CreateAnomalyMonitorCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
967
968
|
if (output.statusCode >= 300) {
|
|
968
969
|
return de_CommandError(output, context);
|
|
969
970
|
}
|
|
970
|
-
const data = await
|
|
971
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
971
972
|
let contents = {};
|
|
972
973
|
contents = (0, import_smithy_client._json)(data);
|
|
973
974
|
const response = {
|
|
@@ -980,7 +981,7 @@ var de_CreateAnomalySubscriptionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
980
981
|
if (output.statusCode >= 300) {
|
|
981
982
|
return de_CommandError(output, context);
|
|
982
983
|
}
|
|
983
|
-
const data = await
|
|
984
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
984
985
|
let contents = {};
|
|
985
986
|
contents = (0, import_smithy_client._json)(data);
|
|
986
987
|
const response = {
|
|
@@ -993,7 +994,7 @@ var de_CreateCostCategoryDefinitionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
993
994
|
if (output.statusCode >= 300) {
|
|
994
995
|
return de_CommandError(output, context);
|
|
995
996
|
}
|
|
996
|
-
const data = await
|
|
997
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
997
998
|
let contents = {};
|
|
998
999
|
contents = (0, import_smithy_client._json)(data);
|
|
999
1000
|
const response = {
|
|
@@ -1006,7 +1007,7 @@ var de_DeleteAnomalyMonitorCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1006
1007
|
if (output.statusCode >= 300) {
|
|
1007
1008
|
return de_CommandError(output, context);
|
|
1008
1009
|
}
|
|
1009
|
-
const data = await
|
|
1010
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1010
1011
|
let contents = {};
|
|
1011
1012
|
contents = (0, import_smithy_client._json)(data);
|
|
1012
1013
|
const response = {
|
|
@@ -1019,7 +1020,7 @@ var de_DeleteAnomalySubscriptionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1019
1020
|
if (output.statusCode >= 300) {
|
|
1020
1021
|
return de_CommandError(output, context);
|
|
1021
1022
|
}
|
|
1022
|
-
const data = await
|
|
1023
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1023
1024
|
let contents = {};
|
|
1024
1025
|
contents = (0, import_smithy_client._json)(data);
|
|
1025
1026
|
const response = {
|
|
@@ -1032,7 +1033,7 @@ var de_DeleteCostCategoryDefinitionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1032
1033
|
if (output.statusCode >= 300) {
|
|
1033
1034
|
return de_CommandError(output, context);
|
|
1034
1035
|
}
|
|
1035
|
-
const data = await
|
|
1036
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1036
1037
|
let contents = {};
|
|
1037
1038
|
contents = (0, import_smithy_client._json)(data);
|
|
1038
1039
|
const response = {
|
|
@@ -1045,7 +1046,7 @@ var de_DescribeCostCategoryDefinitionCommand = /* @__PURE__ */ __name(async (out
|
|
|
1045
1046
|
if (output.statusCode >= 300) {
|
|
1046
1047
|
return de_CommandError(output, context);
|
|
1047
1048
|
}
|
|
1048
|
-
const data = await
|
|
1049
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1049
1050
|
let contents = {};
|
|
1050
1051
|
contents = de_DescribeCostCategoryDefinitionResponse(data, context);
|
|
1051
1052
|
const response = {
|
|
@@ -1058,7 +1059,7 @@ var de_GetAnomaliesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1058
1059
|
if (output.statusCode >= 300) {
|
|
1059
1060
|
return de_CommandError(output, context);
|
|
1060
1061
|
}
|
|
1061
|
-
const data = await
|
|
1062
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1062
1063
|
let contents = {};
|
|
1063
1064
|
contents = de_GetAnomaliesResponse(data, context);
|
|
1064
1065
|
const response = {
|
|
@@ -1071,7 +1072,7 @@ var de_GetAnomalyMonitorsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1071
1072
|
if (output.statusCode >= 300) {
|
|
1072
1073
|
return de_CommandError(output, context);
|
|
1073
1074
|
}
|
|
1074
|
-
const data = await
|
|
1075
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1075
1076
|
let contents = {};
|
|
1076
1077
|
contents = de_GetAnomalyMonitorsResponse(data, context);
|
|
1077
1078
|
const response = {
|
|
@@ -1084,7 +1085,7 @@ var de_GetAnomalySubscriptionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1084
1085
|
if (output.statusCode >= 300) {
|
|
1085
1086
|
return de_CommandError(output, context);
|
|
1086
1087
|
}
|
|
1087
|
-
const data = await
|
|
1088
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1088
1089
|
let contents = {};
|
|
1089
1090
|
contents = de_GetAnomalySubscriptionsResponse(data, context);
|
|
1090
1091
|
const response = {
|
|
@@ -1097,7 +1098,7 @@ var de_GetApproximateUsageRecordsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1097
1098
|
if (output.statusCode >= 300) {
|
|
1098
1099
|
return de_CommandError(output, context);
|
|
1099
1100
|
}
|
|
1100
|
-
const data = await
|
|
1101
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1101
1102
|
let contents = {};
|
|
1102
1103
|
contents = (0, import_smithy_client._json)(data);
|
|
1103
1104
|
const response = {
|
|
@@ -1110,7 +1111,7 @@ var de_GetCostAndUsageCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1110
1111
|
if (output.statusCode >= 300) {
|
|
1111
1112
|
return de_CommandError(output, context);
|
|
1112
1113
|
}
|
|
1113
|
-
const data = await
|
|
1114
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1114
1115
|
let contents = {};
|
|
1115
1116
|
contents = (0, import_smithy_client._json)(data);
|
|
1116
1117
|
const response = {
|
|
@@ -1123,7 +1124,7 @@ var de_GetCostAndUsageWithResourcesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1123
1124
|
if (output.statusCode >= 300) {
|
|
1124
1125
|
return de_CommandError(output, context);
|
|
1125
1126
|
}
|
|
1126
|
-
const data = await
|
|
1127
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1127
1128
|
let contents = {};
|
|
1128
1129
|
contents = (0, import_smithy_client._json)(data);
|
|
1129
1130
|
const response = {
|
|
@@ -1136,7 +1137,7 @@ var de_GetCostCategoriesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1136
1137
|
if (output.statusCode >= 300) {
|
|
1137
1138
|
return de_CommandError(output, context);
|
|
1138
1139
|
}
|
|
1139
|
-
const data = await
|
|
1140
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1140
1141
|
let contents = {};
|
|
1141
1142
|
contents = (0, import_smithy_client._json)(data);
|
|
1142
1143
|
const response = {
|
|
@@ -1149,7 +1150,7 @@ var de_GetCostForecastCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1149
1150
|
if (output.statusCode >= 300) {
|
|
1150
1151
|
return de_CommandError(output, context);
|
|
1151
1152
|
}
|
|
1152
|
-
const data = await
|
|
1153
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1153
1154
|
let contents = {};
|
|
1154
1155
|
contents = (0, import_smithy_client._json)(data);
|
|
1155
1156
|
const response = {
|
|
@@ -1162,7 +1163,7 @@ var de_GetDimensionValuesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1162
1163
|
if (output.statusCode >= 300) {
|
|
1163
1164
|
return de_CommandError(output, context);
|
|
1164
1165
|
}
|
|
1165
|
-
const data = await
|
|
1166
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1166
1167
|
let contents = {};
|
|
1167
1168
|
contents = (0, import_smithy_client._json)(data);
|
|
1168
1169
|
const response = {
|
|
@@ -1175,7 +1176,7 @@ var de_GetReservationCoverageCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1175
1176
|
if (output.statusCode >= 300) {
|
|
1176
1177
|
return de_CommandError(output, context);
|
|
1177
1178
|
}
|
|
1178
|
-
const data = await
|
|
1179
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1179
1180
|
let contents = {};
|
|
1180
1181
|
contents = (0, import_smithy_client._json)(data);
|
|
1181
1182
|
const response = {
|
|
@@ -1188,7 +1189,7 @@ var de_GetReservationPurchaseRecommendationCommand = /* @__PURE__ */ __name(asyn
|
|
|
1188
1189
|
if (output.statusCode >= 300) {
|
|
1189
1190
|
return de_CommandError(output, context);
|
|
1190
1191
|
}
|
|
1191
|
-
const data = await
|
|
1192
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1192
1193
|
let contents = {};
|
|
1193
1194
|
contents = (0, import_smithy_client._json)(data);
|
|
1194
1195
|
const response = {
|
|
@@ -1201,7 +1202,7 @@ var de_GetReservationUtilizationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1201
1202
|
if (output.statusCode >= 300) {
|
|
1202
1203
|
return de_CommandError(output, context);
|
|
1203
1204
|
}
|
|
1204
|
-
const data = await
|
|
1205
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1205
1206
|
let contents = {};
|
|
1206
1207
|
contents = (0, import_smithy_client._json)(data);
|
|
1207
1208
|
const response = {
|
|
@@ -1214,7 +1215,7 @@ var de_GetRightsizingRecommendationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1214
1215
|
if (output.statusCode >= 300) {
|
|
1215
1216
|
return de_CommandError(output, context);
|
|
1216
1217
|
}
|
|
1217
|
-
const data = await
|
|
1218
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1218
1219
|
let contents = {};
|
|
1219
1220
|
contents = (0, import_smithy_client._json)(data);
|
|
1220
1221
|
const response = {
|
|
@@ -1227,7 +1228,7 @@ var de_GetSavingsPlanPurchaseRecommendationDetailsCommand = /* @__PURE__ */ __na
|
|
|
1227
1228
|
if (output.statusCode >= 300) {
|
|
1228
1229
|
return de_CommandError(output, context);
|
|
1229
1230
|
}
|
|
1230
|
-
const data = await
|
|
1231
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1231
1232
|
let contents = {};
|
|
1232
1233
|
contents = (0, import_smithy_client._json)(data);
|
|
1233
1234
|
const response = {
|
|
@@ -1240,7 +1241,7 @@ var de_GetSavingsPlansCoverageCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1240
1241
|
if (output.statusCode >= 300) {
|
|
1241
1242
|
return de_CommandError(output, context);
|
|
1242
1243
|
}
|
|
1243
|
-
const data = await
|
|
1244
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1244
1245
|
let contents = {};
|
|
1245
1246
|
contents = (0, import_smithy_client._json)(data);
|
|
1246
1247
|
const response = {
|
|
@@ -1253,7 +1254,7 @@ var de_GetSavingsPlansPurchaseRecommendationCommand = /* @__PURE__ */ __name(asy
|
|
|
1253
1254
|
if (output.statusCode >= 300) {
|
|
1254
1255
|
return de_CommandError(output, context);
|
|
1255
1256
|
}
|
|
1256
|
-
const data = await
|
|
1257
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1257
1258
|
let contents = {};
|
|
1258
1259
|
contents = (0, import_smithy_client._json)(data);
|
|
1259
1260
|
const response = {
|
|
@@ -1266,7 +1267,7 @@ var de_GetSavingsPlansUtilizationCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1266
1267
|
if (output.statusCode >= 300) {
|
|
1267
1268
|
return de_CommandError(output, context);
|
|
1268
1269
|
}
|
|
1269
|
-
const data = await
|
|
1270
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1270
1271
|
let contents = {};
|
|
1271
1272
|
contents = (0, import_smithy_client._json)(data);
|
|
1272
1273
|
const response = {
|
|
@@ -1279,7 +1280,7 @@ var de_GetSavingsPlansUtilizationDetailsCommand = /* @__PURE__ */ __name(async (
|
|
|
1279
1280
|
if (output.statusCode >= 300) {
|
|
1280
1281
|
return de_CommandError(output, context);
|
|
1281
1282
|
}
|
|
1282
|
-
const data = await
|
|
1283
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1283
1284
|
let contents = {};
|
|
1284
1285
|
contents = (0, import_smithy_client._json)(data);
|
|
1285
1286
|
const response = {
|
|
@@ -1292,7 +1293,7 @@ var de_GetTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1292
1293
|
if (output.statusCode >= 300) {
|
|
1293
1294
|
return de_CommandError(output, context);
|
|
1294
1295
|
}
|
|
1295
|
-
const data = await
|
|
1296
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1296
1297
|
let contents = {};
|
|
1297
1298
|
contents = (0, import_smithy_client._json)(data);
|
|
1298
1299
|
const response = {
|
|
@@ -1305,7 +1306,7 @@ var de_GetUsageForecastCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1305
1306
|
if (output.statusCode >= 300) {
|
|
1306
1307
|
return de_CommandError(output, context);
|
|
1307
1308
|
}
|
|
1308
|
-
const data = await
|
|
1309
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1309
1310
|
let contents = {};
|
|
1310
1311
|
contents = (0, import_smithy_client._json)(data);
|
|
1311
1312
|
const response = {
|
|
@@ -1318,7 +1319,7 @@ var de_ListCostAllocationTagsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1318
1319
|
if (output.statusCode >= 300) {
|
|
1319
1320
|
return de_CommandError(output, context);
|
|
1320
1321
|
}
|
|
1321
|
-
const data = await
|
|
1322
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1322
1323
|
let contents = {};
|
|
1323
1324
|
contents = (0, import_smithy_client._json)(data);
|
|
1324
1325
|
const response = {
|
|
@@ -1331,7 +1332,7 @@ var de_ListCostCategoryDefinitionsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1331
1332
|
if (output.statusCode >= 300) {
|
|
1332
1333
|
return de_CommandError(output, context);
|
|
1333
1334
|
}
|
|
1334
|
-
const data = await
|
|
1335
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1335
1336
|
let contents = {};
|
|
1336
1337
|
contents = (0, import_smithy_client._json)(data);
|
|
1337
1338
|
const response = {
|
|
@@ -1344,7 +1345,7 @@ var de_ListSavingsPlansPurchaseRecommendationGenerationCommand = /* @__PURE__ */
|
|
|
1344
1345
|
if (output.statusCode >= 300) {
|
|
1345
1346
|
return de_CommandError(output, context);
|
|
1346
1347
|
}
|
|
1347
|
-
const data = await
|
|
1348
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1348
1349
|
let contents = {};
|
|
1349
1350
|
contents = (0, import_smithy_client._json)(data);
|
|
1350
1351
|
const response = {
|
|
@@ -1357,7 +1358,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1357
1358
|
if (output.statusCode >= 300) {
|
|
1358
1359
|
return de_CommandError(output, context);
|
|
1359
1360
|
}
|
|
1360
|
-
const data = await
|
|
1361
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1361
1362
|
let contents = {};
|
|
1362
1363
|
contents = (0, import_smithy_client._json)(data);
|
|
1363
1364
|
const response = {
|
|
@@ -1370,7 +1371,7 @@ var de_ProvideAnomalyFeedbackCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1370
1371
|
if (output.statusCode >= 300) {
|
|
1371
1372
|
return de_CommandError(output, context);
|
|
1372
1373
|
}
|
|
1373
|
-
const data = await
|
|
1374
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1374
1375
|
let contents = {};
|
|
1375
1376
|
contents = (0, import_smithy_client._json)(data);
|
|
1376
1377
|
const response = {
|
|
@@ -1383,7 +1384,7 @@ var de_StartSavingsPlansPurchaseRecommendationGenerationCommand = /* @__PURE__ *
|
|
|
1383
1384
|
if (output.statusCode >= 300) {
|
|
1384
1385
|
return de_CommandError(output, context);
|
|
1385
1386
|
}
|
|
1386
|
-
const data = await
|
|
1387
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1387
1388
|
let contents = {};
|
|
1388
1389
|
contents = (0, import_smithy_client._json)(data);
|
|
1389
1390
|
const response = {
|
|
@@ -1396,7 +1397,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1396
1397
|
if (output.statusCode >= 300) {
|
|
1397
1398
|
return de_CommandError(output, context);
|
|
1398
1399
|
}
|
|
1399
|
-
const data = await
|
|
1400
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1400
1401
|
let contents = {};
|
|
1401
1402
|
contents = (0, import_smithy_client._json)(data);
|
|
1402
1403
|
const response = {
|
|
@@ -1409,7 +1410,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1409
1410
|
if (output.statusCode >= 300) {
|
|
1410
1411
|
return de_CommandError(output, context);
|
|
1411
1412
|
}
|
|
1412
|
-
const data = await
|
|
1413
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1413
1414
|
let contents = {};
|
|
1414
1415
|
contents = (0, import_smithy_client._json)(data);
|
|
1415
1416
|
const response = {
|
|
@@ -1422,7 +1423,7 @@ var de_UpdateAnomalyMonitorCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1422
1423
|
if (output.statusCode >= 300) {
|
|
1423
1424
|
return de_CommandError(output, context);
|
|
1424
1425
|
}
|
|
1425
|
-
const data = await
|
|
1426
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1426
1427
|
let contents = {};
|
|
1427
1428
|
contents = (0, import_smithy_client._json)(data);
|
|
1428
1429
|
const response = {
|
|
@@ -1435,7 +1436,7 @@ var de_UpdateAnomalySubscriptionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1435
1436
|
if (output.statusCode >= 300) {
|
|
1436
1437
|
return de_CommandError(output, context);
|
|
1437
1438
|
}
|
|
1438
|
-
const data = await
|
|
1439
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1439
1440
|
let contents = {};
|
|
1440
1441
|
contents = (0, import_smithy_client._json)(data);
|
|
1441
1442
|
const response = {
|
|
@@ -1448,7 +1449,7 @@ var de_UpdateCostAllocationTagsStatusCommand = /* @__PURE__ */ __name(async (out
|
|
|
1448
1449
|
if (output.statusCode >= 300) {
|
|
1449
1450
|
return de_CommandError(output, context);
|
|
1450
1451
|
}
|
|
1451
|
-
const data = await
|
|
1452
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1452
1453
|
let contents = {};
|
|
1453
1454
|
contents = (0, import_smithy_client._json)(data);
|
|
1454
1455
|
const response = {
|
|
@@ -1461,7 +1462,7 @@ var de_UpdateCostCategoryDefinitionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1461
1462
|
if (output.statusCode >= 300) {
|
|
1462
1463
|
return de_CommandError(output, context);
|
|
1463
1464
|
}
|
|
1464
|
-
const data = await
|
|
1465
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1465
1466
|
let contents = {};
|
|
1466
1467
|
contents = (0, import_smithy_client._json)(data);
|
|
1467
1468
|
const response = {
|
|
@@ -1473,9 +1474,9 @@ var de_UpdateCostCategoryDefinitionCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1473
1474
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1474
1475
|
const parsedOutput = {
|
|
1475
1476
|
...output,
|
|
1476
|
-
body: await
|
|
1477
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1477
1478
|
};
|
|
1478
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1479
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1479
1480
|
switch (errorCode) {
|
|
1480
1481
|
case "LimitExceededException":
|
|
1481
1482
|
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
@@ -2047,7 +2048,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2047
2048
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2048
2049
|
cfId: output.headers["x-amz-cf-id"]
|
|
2049
2050
|
}), "deserializeMetadata");
|
|
2050
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2051
2051
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CostExplorerServiceException);
|
|
2052
2052
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2053
2053
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2074,46 +2074,6 @@ function sharedHeaders(operation) {
|
|
|
2074
2074
|
};
|
|
2075
2075
|
}
|
|
2076
2076
|
__name(sharedHeaders, "sharedHeaders");
|
|
2077
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2078
|
-
if (encoded.length) {
|
|
2079
|
-
return JSON.parse(encoded);
|
|
2080
|
-
}
|
|
2081
|
-
return {};
|
|
2082
|
-
}), "parseBody");
|
|
2083
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2084
|
-
const value = await parseBody(errorBody, context);
|
|
2085
|
-
value.message = value.message ?? value.Message;
|
|
2086
|
-
return value;
|
|
2087
|
-
}, "parseErrorBody");
|
|
2088
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2089
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2090
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2091
|
-
let cleanValue = rawValue;
|
|
2092
|
-
if (typeof cleanValue === "number") {
|
|
2093
|
-
cleanValue = cleanValue.toString();
|
|
2094
|
-
}
|
|
2095
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2096
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2097
|
-
}
|
|
2098
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2099
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2100
|
-
}
|
|
2101
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2102
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2103
|
-
}
|
|
2104
|
-
return cleanValue;
|
|
2105
|
-
}, "sanitizeErrorCode");
|
|
2106
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2107
|
-
if (headerKey !== void 0) {
|
|
2108
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2109
|
-
}
|
|
2110
|
-
if (data.code !== void 0) {
|
|
2111
|
-
return sanitizeErrorCode(data.code);
|
|
2112
|
-
}
|
|
2113
|
-
if (data["__type"] !== void 0) {
|
|
2114
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2115
|
-
}
|
|
2116
|
-
}, "loadRestJsonErrorCode");
|
|
2117
2077
|
|
|
2118
2078
|
// src/commands/CreateAnomalyMonitorCommand.ts
|
|
2119
2079
|
var _CreateAnomalyMonitorCommand = class _CreateAnomalyMonitorCommand 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, expectInt32 as __expectInt32, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { CostExplorerServiceException as __BaseException } from "../models/CostExplorerServiceException";
|
|
@@ -1360,43 +1361,3 @@ function sharedHeaders(operation) {
|
|
|
1360
1361
|
"x-amz-target": `AWSInsightsIndexService.${operation}`,
|
|
1361
1362
|
};
|
|
1362
1363
|
}
|
|
1363
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1364
|
-
if (encoded.length) {
|
|
1365
|
-
return JSON.parse(encoded);
|
|
1366
|
-
}
|
|
1367
|
-
return {};
|
|
1368
|
-
});
|
|
1369
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1370
|
-
const value = await parseBody(errorBody, context);
|
|
1371
|
-
value.message = value.message ?? value.Message;
|
|
1372
|
-
return value;
|
|
1373
|
-
};
|
|
1374
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1375
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1376
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1377
|
-
let cleanValue = rawValue;
|
|
1378
|
-
if (typeof cleanValue === "number") {
|
|
1379
|
-
cleanValue = cleanValue.toString();
|
|
1380
|
-
}
|
|
1381
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1382
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1383
|
-
}
|
|
1384
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1385
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1386
|
-
}
|
|
1387
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1388
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1389
|
-
}
|
|
1390
|
-
return cleanValue;
|
|
1391
|
-
};
|
|
1392
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1393
|
-
if (headerKey !== undefined) {
|
|
1394
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1395
|
-
}
|
|
1396
|
-
if (data.code !== undefined) {
|
|
1397
|
-
return sanitizeErrorCode(data.code);
|
|
1398
|
-
}
|
|
1399
|
-
if (data["__type"] !== undefined) {
|
|
1400
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1401
|
-
}
|
|
1402
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cost-explorer",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cost Explorer 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-cost-explorer",
|
|
@@ -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/CostExplorer.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|