@aws-sdk/client-cost-explorer 3.58.0 → 3.72.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/CHANGELOG.md +27 -0
- package/README.md +2 -2
- package/dist-cjs/CostExplorer.js +45 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +62 -4
- package/dist-cjs/protocols/Aws_json1_1.js +259 -2
- package/dist-es/CostExplorer.js +45 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
- package/dist-es/commands/TagResourceCommand.js +39 -0
- package/dist-es/commands/UntagResourceCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +43 -0
- package/dist-es/protocols/Aws_json1_1.js +296 -4
- package/dist-types/CostExplorer.d.ts +28 -1
- package/dist-types/CostExplorerClient.d.ts +5 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +36 -0
- package/dist-types/commands/TagResourceCommand.d.ts +38 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateAnomalyMonitorCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +252 -4
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/CostExplorer.d.ts +15 -0
- package/dist-types/ts3.4/CostExplorerClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +75 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
- package/package.json +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = exports.deserializeAws_json1_1UpdateAnomalySubscriptionCommand = exports.deserializeAws_json1_1UpdateAnomalyMonitorCommand = exports.deserializeAws_json1_1ProvideAnomalyFeedbackCommand = exports.deserializeAws_json1_1ListCostCategoryDefinitionsCommand = exports.deserializeAws_json1_1GetUsageForecastCommand = exports.deserializeAws_json1_1GetTagsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationCommand = exports.deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1GetReservationPurchaseRecommendationCommand = exports.deserializeAws_json1_1GetReservationCoverageCommand = exports.deserializeAws_json1_1GetDimensionValuesCommand = exports.deserializeAws_json1_1GetCostForecastCommand = exports.deserializeAws_json1_1GetCostCategoriesCommand = exports.deserializeAws_json1_1GetCostAndUsageWithResourcesCommand = exports.deserializeAws_json1_1GetCostAndUsageCommand = exports.deserializeAws_json1_1GetAnomalySubscriptionsCommand = exports.deserializeAws_json1_1GetAnomalyMonitorsCommand = exports.deserializeAws_json1_1GetAnomaliesCommand = exports.deserializeAws_json1_1DescribeCostCategoryDefinitionCommand = exports.deserializeAws_json1_1DeleteCostCategoryDefinitionCommand = exports.deserializeAws_json1_1DeleteAnomalySubscriptionCommand = exports.deserializeAws_json1_1DeleteAnomalyMonitorCommand = exports.deserializeAws_json1_1CreateCostCategoryDefinitionCommand = exports.deserializeAws_json1_1CreateAnomalySubscriptionCommand = exports.deserializeAws_json1_1CreateAnomalyMonitorCommand = exports.serializeAws_json1_1UpdateCostCategoryDefinitionCommand = exports.serializeAws_json1_1UpdateAnomalySubscriptionCommand = exports.serializeAws_json1_1UpdateAnomalyMonitorCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1ProvideAnomalyFeedbackCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListCostCategoryDefinitionsCommand = exports.serializeAws_json1_1GetUsageForecastCommand = exports.serializeAws_json1_1GetTagsCommand = exports.serializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = exports.serializeAws_json1_1GetSavingsPlansUtilizationCommand = exports.serializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = exports.serializeAws_json1_1GetSavingsPlansCoverageCommand = exports.serializeAws_json1_1GetRightsizingRecommendationCommand = exports.serializeAws_json1_1GetReservationUtilizationCommand = exports.serializeAws_json1_1GetReservationPurchaseRecommendationCommand = exports.serializeAws_json1_1GetReservationCoverageCommand = exports.serializeAws_json1_1GetDimensionValuesCommand = exports.serializeAws_json1_1GetCostForecastCommand = exports.serializeAws_json1_1GetCostCategoriesCommand = exports.serializeAws_json1_1GetCostAndUsageWithResourcesCommand = exports.serializeAws_json1_1GetCostAndUsageCommand = exports.serializeAws_json1_1GetAnomalySubscriptionsCommand = exports.serializeAws_json1_1GetAnomalyMonitorsCommand = exports.serializeAws_json1_1GetAnomaliesCommand = exports.serializeAws_json1_1DescribeCostCategoryDefinitionCommand = exports.serializeAws_json1_1DeleteCostCategoryDefinitionCommand = exports.serializeAws_json1_1DeleteAnomalySubscriptionCommand = exports.serializeAws_json1_1DeleteAnomalyMonitorCommand = exports.serializeAws_json1_1CreateCostCategoryDefinitionCommand = exports.serializeAws_json1_1CreateAnomalySubscriptionCommand = exports.serializeAws_json1_1CreateAnomalyMonitorCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateCostCategoryDefinitionCommand = exports.deserializeAws_json1_1UpdateAnomalySubscriptionCommand = exports.deserializeAws_json1_1UpdateAnomalyMonitorCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1ProvideAnomalyFeedbackCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListCostCategoryDefinitionsCommand = exports.deserializeAws_json1_1GetUsageForecastCommand = exports.deserializeAws_json1_1GetTagsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationDetailsCommand = exports.deserializeAws_json1_1GetSavingsPlansUtilizationCommand = exports.deserializeAws_json1_1GetSavingsPlansPurchaseRecommendationCommand = exports.deserializeAws_json1_1GetSavingsPlansCoverageCommand = exports.deserializeAws_json1_1GetRightsizingRecommendationCommand = exports.deserializeAws_json1_1GetReservationUtilizationCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const CostExplorerServiceException_1 = require("../models/CostExplorerServiceException");
|
|
@@ -266,6 +266,16 @@ const serializeAws_json1_1ListCostCategoryDefinitionsCommand = async (input, con
|
|
|
266
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
267
|
};
|
|
268
268
|
exports.serializeAws_json1_1ListCostCategoryDefinitionsCommand = serializeAws_json1_1ListCostCategoryDefinitionsCommand;
|
|
269
|
+
const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
270
|
+
const headers = {
|
|
271
|
+
"content-type": "application/x-amz-json-1.1",
|
|
272
|
+
"x-amz-target": "AWSInsightsIndexService.ListTagsForResource",
|
|
273
|
+
};
|
|
274
|
+
let body;
|
|
275
|
+
body = JSON.stringify(serializeAws_json1_1ListTagsForResourceRequest(input, context));
|
|
276
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
|
+
};
|
|
278
|
+
exports.serializeAws_json1_1ListTagsForResourceCommand = serializeAws_json1_1ListTagsForResourceCommand;
|
|
269
279
|
const serializeAws_json1_1ProvideAnomalyFeedbackCommand = async (input, context) => {
|
|
270
280
|
const headers = {
|
|
271
281
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -276,6 +286,26 @@ const serializeAws_json1_1ProvideAnomalyFeedbackCommand = async (input, context)
|
|
|
276
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
277
287
|
};
|
|
278
288
|
exports.serializeAws_json1_1ProvideAnomalyFeedbackCommand = serializeAws_json1_1ProvideAnomalyFeedbackCommand;
|
|
289
|
+
const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
290
|
+
const headers = {
|
|
291
|
+
"content-type": "application/x-amz-json-1.1",
|
|
292
|
+
"x-amz-target": "AWSInsightsIndexService.TagResource",
|
|
293
|
+
};
|
|
294
|
+
let body;
|
|
295
|
+
body = JSON.stringify(serializeAws_json1_1TagResourceRequest(input, context));
|
|
296
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
297
|
+
};
|
|
298
|
+
exports.serializeAws_json1_1TagResourceCommand = serializeAws_json1_1TagResourceCommand;
|
|
299
|
+
const serializeAws_json1_1UntagResourceCommand = async (input, context) => {
|
|
300
|
+
const headers = {
|
|
301
|
+
"content-type": "application/x-amz-json-1.1",
|
|
302
|
+
"x-amz-target": "AWSInsightsIndexService.UntagResource",
|
|
303
|
+
};
|
|
304
|
+
let body;
|
|
305
|
+
body = JSON.stringify(serializeAws_json1_1UntagResourceRequest(input, context));
|
|
306
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
|
+
};
|
|
308
|
+
exports.serializeAws_json1_1UntagResourceCommand = serializeAws_json1_1UntagResourceCommand;
|
|
279
309
|
const serializeAws_json1_1UpdateAnomalyMonitorCommand = async (input, context) => {
|
|
280
310
|
const headers = {
|
|
281
311
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1383,6 +1413,45 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = async (out
|
|
|
1383
1413
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1384
1414
|
}
|
|
1385
1415
|
};
|
|
1416
|
+
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1417
|
+
if (output.statusCode >= 300) {
|
|
1418
|
+
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
1419
|
+
}
|
|
1420
|
+
const data = await parseBody(output.body, context);
|
|
1421
|
+
let contents = {};
|
|
1422
|
+
contents = deserializeAws_json1_1ListTagsForResourceResponse(data, context);
|
|
1423
|
+
const response = {
|
|
1424
|
+
$metadata: deserializeMetadata(output),
|
|
1425
|
+
...contents,
|
|
1426
|
+
};
|
|
1427
|
+
return Promise.resolve(response);
|
|
1428
|
+
};
|
|
1429
|
+
exports.deserializeAws_json1_1ListTagsForResourceCommand = deserializeAws_json1_1ListTagsForResourceCommand;
|
|
1430
|
+
const deserializeAws_json1_1ListTagsForResourceCommandError = async (output, context) => {
|
|
1431
|
+
const parsedOutput = {
|
|
1432
|
+
...output,
|
|
1433
|
+
body: await parseBody(output.body, context),
|
|
1434
|
+
};
|
|
1435
|
+
let response;
|
|
1436
|
+
let errorCode = "UnknownError";
|
|
1437
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1438
|
+
switch (errorCode) {
|
|
1439
|
+
case "LimitExceededException":
|
|
1440
|
+
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1441
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1442
|
+
case "ResourceNotFoundException":
|
|
1443
|
+
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
1444
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1445
|
+
default:
|
|
1446
|
+
const parsedBody = parsedOutput.body;
|
|
1447
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1448
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1449
|
+
$fault: "client",
|
|
1450
|
+
$metadata: deserializeMetadata(output),
|
|
1451
|
+
});
|
|
1452
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1453
|
+
}
|
|
1454
|
+
};
|
|
1386
1455
|
const deserializeAws_json1_1ProvideAnomalyFeedbackCommand = async (output, context) => {
|
|
1387
1456
|
if (output.statusCode >= 300) {
|
|
1388
1457
|
return deserializeAws_json1_1ProvideAnomalyFeedbackCommandError(output, context);
|
|
@@ -1419,6 +1488,87 @@ const deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = async (output,
|
|
|
1419
1488
|
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1420
1489
|
}
|
|
1421
1490
|
};
|
|
1491
|
+
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1492
|
+
if (output.statusCode >= 300) {
|
|
1493
|
+
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
1494
|
+
}
|
|
1495
|
+
const data = await parseBody(output.body, context);
|
|
1496
|
+
let contents = {};
|
|
1497
|
+
contents = deserializeAws_json1_1TagResourceResponse(data, context);
|
|
1498
|
+
const response = {
|
|
1499
|
+
$metadata: deserializeMetadata(output),
|
|
1500
|
+
...contents,
|
|
1501
|
+
};
|
|
1502
|
+
return Promise.resolve(response);
|
|
1503
|
+
};
|
|
1504
|
+
exports.deserializeAws_json1_1TagResourceCommand = deserializeAws_json1_1TagResourceCommand;
|
|
1505
|
+
const deserializeAws_json1_1TagResourceCommandError = async (output, context) => {
|
|
1506
|
+
const parsedOutput = {
|
|
1507
|
+
...output,
|
|
1508
|
+
body: await parseBody(output.body, context),
|
|
1509
|
+
};
|
|
1510
|
+
let response;
|
|
1511
|
+
let errorCode = "UnknownError";
|
|
1512
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1513
|
+
switch (errorCode) {
|
|
1514
|
+
case "LimitExceededException":
|
|
1515
|
+
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1516
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1517
|
+
case "ResourceNotFoundException":
|
|
1518
|
+
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
1519
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1520
|
+
case "TooManyTagsException":
|
|
1521
|
+
case "com.amazonaws.costexplorer#TooManyTagsException":
|
|
1522
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
1523
|
+
default:
|
|
1524
|
+
const parsedBody = parsedOutput.body;
|
|
1525
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1526
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1527
|
+
$fault: "client",
|
|
1528
|
+
$metadata: deserializeMetadata(output),
|
|
1529
|
+
});
|
|
1530
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1531
|
+
}
|
|
1532
|
+
};
|
|
1533
|
+
const deserializeAws_json1_1UntagResourceCommand = async (output, context) => {
|
|
1534
|
+
if (output.statusCode >= 300) {
|
|
1535
|
+
return deserializeAws_json1_1UntagResourceCommandError(output, context);
|
|
1536
|
+
}
|
|
1537
|
+
const data = await parseBody(output.body, context);
|
|
1538
|
+
let contents = {};
|
|
1539
|
+
contents = deserializeAws_json1_1UntagResourceResponse(data, context);
|
|
1540
|
+
const response = {
|
|
1541
|
+
$metadata: deserializeMetadata(output),
|
|
1542
|
+
...contents,
|
|
1543
|
+
};
|
|
1544
|
+
return Promise.resolve(response);
|
|
1545
|
+
};
|
|
1546
|
+
exports.deserializeAws_json1_1UntagResourceCommand = deserializeAws_json1_1UntagResourceCommand;
|
|
1547
|
+
const deserializeAws_json1_1UntagResourceCommandError = async (output, context) => {
|
|
1548
|
+
const parsedOutput = {
|
|
1549
|
+
...output,
|
|
1550
|
+
body: await parseBody(output.body, context),
|
|
1551
|
+
};
|
|
1552
|
+
let response;
|
|
1553
|
+
let errorCode = "UnknownError";
|
|
1554
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1555
|
+
switch (errorCode) {
|
|
1556
|
+
case "LimitExceededException":
|
|
1557
|
+
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1558
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1559
|
+
case "ResourceNotFoundException":
|
|
1560
|
+
case "com.amazonaws.costexplorer#ResourceNotFoundException":
|
|
1561
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1562
|
+
default:
|
|
1563
|
+
const parsedBody = parsedOutput.body;
|
|
1564
|
+
response = new CostExplorerServiceException_1.CostExplorerServiceException({
|
|
1565
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
1566
|
+
$fault: "client",
|
|
1567
|
+
$metadata: deserializeMetadata(output),
|
|
1568
|
+
});
|
|
1569
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1570
|
+
}
|
|
1571
|
+
};
|
|
1422
1572
|
const deserializeAws_json1_1UpdateAnomalyMonitorCommand = async (output, context) => {
|
|
1423
1573
|
if (output.statusCode >= 300) {
|
|
1424
1574
|
return deserializeAws_json1_1UpdateAnomalyMonitorCommandError(output, context);
|
|
@@ -1605,6 +1755,15 @@ const deserializeAws_json1_1ServiceQuotaExceededExceptionResponse = async (parse
|
|
|
1605
1755
|
});
|
|
1606
1756
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1607
1757
|
};
|
|
1758
|
+
const deserializeAws_json1_1TooManyTagsExceptionResponse = async (parsedOutput, context) => {
|
|
1759
|
+
const body = parsedOutput.body;
|
|
1760
|
+
const deserialized = deserializeAws_json1_1TooManyTagsException(body, context);
|
|
1761
|
+
const exception = new models_0_1.TooManyTagsException({
|
|
1762
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1763
|
+
...deserialized,
|
|
1764
|
+
});
|
|
1765
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1766
|
+
};
|
|
1608
1767
|
const deserializeAws_json1_1UnknownMonitorExceptionResponse = async (parsedOutput, context) => {
|
|
1609
1768
|
const body = parsedOutput.body;
|
|
1610
1769
|
const deserialized = deserializeAws_json1_1UnknownMonitorException(body, context);
|
|
@@ -1781,6 +1940,10 @@ const serializeAws_json1_1CreateAnomalyMonitorRequest = (input, context) => {
|
|
|
1781
1940
|
input.AnomalyMonitor !== null && {
|
|
1782
1941
|
AnomalyMonitor: serializeAws_json1_1AnomalyMonitor(input.AnomalyMonitor, context),
|
|
1783
1942
|
}),
|
|
1943
|
+
...(input.ResourceTags !== undefined &&
|
|
1944
|
+
input.ResourceTags !== null && {
|
|
1945
|
+
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
1946
|
+
}),
|
|
1784
1947
|
};
|
|
1785
1948
|
};
|
|
1786
1949
|
const serializeAws_json1_1CreateAnomalySubscriptionRequest = (input, context) => {
|
|
@@ -1789,12 +1952,20 @@ const serializeAws_json1_1CreateAnomalySubscriptionRequest = (input, context) =>
|
|
|
1789
1952
|
input.AnomalySubscription !== null && {
|
|
1790
1953
|
AnomalySubscription: serializeAws_json1_1AnomalySubscription(input.AnomalySubscription, context),
|
|
1791
1954
|
}),
|
|
1955
|
+
...(input.ResourceTags !== undefined &&
|
|
1956
|
+
input.ResourceTags !== null && {
|
|
1957
|
+
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
1958
|
+
}),
|
|
1792
1959
|
};
|
|
1793
1960
|
};
|
|
1794
1961
|
const serializeAws_json1_1CreateCostCategoryDefinitionRequest = (input, context) => {
|
|
1795
1962
|
return {
|
|
1796
1963
|
...(input.DefaultValue !== undefined && input.DefaultValue !== null && { DefaultValue: input.DefaultValue }),
|
|
1797
1964
|
...(input.Name !== undefined && input.Name !== null && { Name: input.Name }),
|
|
1965
|
+
...(input.ResourceTags !== undefined &&
|
|
1966
|
+
input.ResourceTags !== null && {
|
|
1967
|
+
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
1968
|
+
}),
|
|
1798
1969
|
...(input.RuleVersion !== undefined && input.RuleVersion !== null && { RuleVersion: input.RuleVersion }),
|
|
1799
1970
|
...(input.Rules !== undefined &&
|
|
1800
1971
|
input.Rules !== null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) }),
|
|
@@ -2146,6 +2317,11 @@ const serializeAws_json1_1ListCostCategoryDefinitionsRequest = (input, context)
|
|
|
2146
2317
|
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
2147
2318
|
};
|
|
2148
2319
|
};
|
|
2320
|
+
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2321
|
+
return {
|
|
2322
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2323
|
+
};
|
|
2324
|
+
};
|
|
2149
2325
|
const serializeAws_json1_1MatchOptions = (input, context) => {
|
|
2150
2326
|
return input
|
|
2151
2327
|
.filter((e) => e != null)
|
|
@@ -2182,6 +2358,32 @@ const serializeAws_json1_1ProvideAnomalyFeedbackRequest = (input, context) => {
|
|
|
2182
2358
|
...(input.Feedback !== undefined && input.Feedback !== null && { Feedback: input.Feedback }),
|
|
2183
2359
|
};
|
|
2184
2360
|
};
|
|
2361
|
+
const serializeAws_json1_1ResourceTag = (input, context) => {
|
|
2362
|
+
return {
|
|
2363
|
+
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
2364
|
+
...(input.Value !== undefined && input.Value !== null && { Value: input.Value }),
|
|
2365
|
+
};
|
|
2366
|
+
};
|
|
2367
|
+
const serializeAws_json1_1ResourceTagKeyList = (input, context) => {
|
|
2368
|
+
return input
|
|
2369
|
+
.filter((e) => e != null)
|
|
2370
|
+
.map((entry) => {
|
|
2371
|
+
if (entry === null) {
|
|
2372
|
+
return null;
|
|
2373
|
+
}
|
|
2374
|
+
return entry;
|
|
2375
|
+
});
|
|
2376
|
+
};
|
|
2377
|
+
const serializeAws_json1_1ResourceTagList = (input, context) => {
|
|
2378
|
+
return input
|
|
2379
|
+
.filter((e) => e != null)
|
|
2380
|
+
.map((entry) => {
|
|
2381
|
+
if (entry === null) {
|
|
2382
|
+
return null;
|
|
2383
|
+
}
|
|
2384
|
+
return serializeAws_json1_1ResourceTag(entry, context);
|
|
2385
|
+
});
|
|
2386
|
+
};
|
|
2185
2387
|
const serializeAws_json1_1RightsizingRecommendationConfiguration = (input, context) => {
|
|
2186
2388
|
return {
|
|
2187
2389
|
...(input.BenefitsConsidered !== undefined &&
|
|
@@ -2241,6 +2443,15 @@ const serializeAws_json1_1Subscribers = (input, context) => {
|
|
|
2241
2443
|
return serializeAws_json1_1Subscriber(entry, context);
|
|
2242
2444
|
});
|
|
2243
2445
|
};
|
|
2446
|
+
const serializeAws_json1_1TagResourceRequest = (input, context) => {
|
|
2447
|
+
return {
|
|
2448
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2449
|
+
...(input.ResourceTags !== undefined &&
|
|
2450
|
+
input.ResourceTags !== null && {
|
|
2451
|
+
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
|
|
2452
|
+
}),
|
|
2453
|
+
};
|
|
2454
|
+
};
|
|
2244
2455
|
const serializeAws_json1_1TagValues = (input, context) => {
|
|
2245
2456
|
return {
|
|
2246
2457
|
...(input.Key !== undefined && input.Key !== null && { Key: input.Key }),
|
|
@@ -2259,6 +2470,15 @@ const serializeAws_json1_1TotalImpactFilter = (input, context) => {
|
|
|
2259
2470
|
input.StartValue !== null && { StartValue: (0, smithy_client_1.serializeFloat)(input.StartValue) }),
|
|
2260
2471
|
};
|
|
2261
2472
|
};
|
|
2473
|
+
const serializeAws_json1_1UntagResourceRequest = (input, context) => {
|
|
2474
|
+
return {
|
|
2475
|
+
...(input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }),
|
|
2476
|
+
...(input.ResourceTagKeys !== undefined &&
|
|
2477
|
+
input.ResourceTagKeys !== null && {
|
|
2478
|
+
ResourceTagKeys: serializeAws_json1_1ResourceTagKeyList(input.ResourceTagKeys, context),
|
|
2479
|
+
}),
|
|
2480
|
+
};
|
|
2481
|
+
};
|
|
2262
2482
|
const serializeAws_json1_1UpdateAnomalyMonitorRequest = (input, context) => {
|
|
2263
2483
|
return {
|
|
2264
2484
|
...(input.MonitorArn !== undefined && input.MonitorArn !== null && { MonitorArn: input.MonitorArn }),
|
|
@@ -3185,6 +3405,13 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsResponse = (output, conte
|
|
|
3185
3405
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
3186
3406
|
};
|
|
3187
3407
|
};
|
|
3408
|
+
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3409
|
+
return {
|
|
3410
|
+
ResourceTags: output.ResourceTags !== undefined && output.ResourceTags !== null
|
|
3411
|
+
? deserializeAws_json1_1ResourceTagList(output.ResourceTags, context)
|
|
3412
|
+
: undefined,
|
|
3413
|
+
};
|
|
3414
|
+
};
|
|
3188
3415
|
const deserializeAws_json1_1MatchOptions = (output, context) => {
|
|
3189
3416
|
const retVal = (output || [])
|
|
3190
3417
|
.filter((e) => e != null)
|
|
@@ -3434,8 +3661,26 @@ const deserializeAws_json1_1ResourceDetails = (output, context) => {
|
|
|
3434
3661
|
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
3435
3662
|
return {
|
|
3436
3663
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3664
|
+
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
3665
|
+
};
|
|
3666
|
+
};
|
|
3667
|
+
const deserializeAws_json1_1ResourceTag = (output, context) => {
|
|
3668
|
+
return {
|
|
3669
|
+
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
3670
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
3437
3671
|
};
|
|
3438
3672
|
};
|
|
3673
|
+
const deserializeAws_json1_1ResourceTagList = (output, context) => {
|
|
3674
|
+
const retVal = (output || [])
|
|
3675
|
+
.filter((e) => e != null)
|
|
3676
|
+
.map((entry) => {
|
|
3677
|
+
if (entry === null) {
|
|
3678
|
+
return null;
|
|
3679
|
+
}
|
|
3680
|
+
return deserializeAws_json1_1ResourceTag(entry, context);
|
|
3681
|
+
});
|
|
3682
|
+
return retVal;
|
|
3683
|
+
};
|
|
3439
3684
|
const deserializeAws_json1_1ResourceUtilization = (output, context) => {
|
|
3440
3685
|
return {
|
|
3441
3686
|
EC2ResourceUtilization: output.EC2ResourceUtilization !== undefined && output.EC2ResourceUtilization !== null
|
|
@@ -3779,6 +4024,9 @@ const deserializeAws_json1_1TagList = (output, context) => {
|
|
|
3779
4024
|
});
|
|
3780
4025
|
return retVal;
|
|
3781
4026
|
};
|
|
4027
|
+
const deserializeAws_json1_1TagResourceResponse = (output, context) => {
|
|
4028
|
+
return {};
|
|
4029
|
+
};
|
|
3782
4030
|
const deserializeAws_json1_1TagValues = (output, context) => {
|
|
3783
4031
|
return {
|
|
3784
4032
|
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
@@ -3835,6 +4083,12 @@ const deserializeAws_json1_1TerminateRecommendationDetail = (output, context) =>
|
|
|
3835
4083
|
EstimatedMonthlySavings: (0, smithy_client_1.expectString)(output.EstimatedMonthlySavings),
|
|
3836
4084
|
};
|
|
3837
4085
|
};
|
|
4086
|
+
const deserializeAws_json1_1TooManyTagsException = (output, context) => {
|
|
4087
|
+
return {
|
|
4088
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
4089
|
+
ResourceName: (0, smithy_client_1.expectString)(output.ResourceName),
|
|
4090
|
+
};
|
|
4091
|
+
};
|
|
3838
4092
|
const deserializeAws_json1_1UnknownMonitorException = (output, context) => {
|
|
3839
4093
|
return {
|
|
3840
4094
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -3850,6 +4104,9 @@ const deserializeAws_json1_1UnresolvableUsageUnitException = (output, context) =
|
|
|
3850
4104
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3851
4105
|
};
|
|
3852
4106
|
};
|
|
4107
|
+
const deserializeAws_json1_1UntagResourceResponse = (output, context) => {
|
|
4108
|
+
return {};
|
|
4109
|
+
};
|
|
3853
4110
|
const deserializeAws_json1_1UpdateAnomalyMonitorResponse = (output, context) => {
|
|
3854
4111
|
return {
|
|
3855
4112
|
MonitorArn: (0, smithy_client_1.expectString)(output.MonitorArn),
|
package/dist-es/CostExplorer.js
CHANGED
|
@@ -25,7 +25,10 @@ import { GetSavingsPlansUtilizationDetailsCommand, } from "./commands/GetSavings
|
|
|
25
25
|
import { GetTagsCommand } from "./commands/GetTagsCommand";
|
|
26
26
|
import { GetUsageForecastCommand, } from "./commands/GetUsageForecastCommand";
|
|
27
27
|
import { ListCostCategoryDefinitionsCommand, } from "./commands/ListCostCategoryDefinitionsCommand";
|
|
28
|
+
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
28
29
|
import { ProvideAnomalyFeedbackCommand, } from "./commands/ProvideAnomalyFeedbackCommand";
|
|
30
|
+
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
31
|
+
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
29
32
|
import { UpdateAnomalyMonitorCommand, } from "./commands/UpdateAnomalyMonitorCommand";
|
|
30
33
|
import { UpdateAnomalySubscriptionCommand, } from "./commands/UpdateAnomalySubscriptionCommand";
|
|
31
34
|
import { UpdateCostCategoryDefinitionCommand, } from "./commands/UpdateCostCategoryDefinitionCommand";
|
|
@@ -399,6 +402,20 @@ var CostExplorer = (function (_super) {
|
|
|
399
402
|
return this.send(command, optionsOrCb);
|
|
400
403
|
}
|
|
401
404
|
};
|
|
405
|
+
CostExplorer.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
|
|
406
|
+
var command = new ListTagsForResourceCommand(args);
|
|
407
|
+
if (typeof optionsOrCb === "function") {
|
|
408
|
+
this.send(command, optionsOrCb);
|
|
409
|
+
}
|
|
410
|
+
else if (typeof cb === "function") {
|
|
411
|
+
if (typeof optionsOrCb !== "object")
|
|
412
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
413
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
return this.send(command, optionsOrCb);
|
|
417
|
+
}
|
|
418
|
+
};
|
|
402
419
|
CostExplorer.prototype.provideAnomalyFeedback = function (args, optionsOrCb, cb) {
|
|
403
420
|
var command = new ProvideAnomalyFeedbackCommand(args);
|
|
404
421
|
if (typeof optionsOrCb === "function") {
|
|
@@ -413,6 +430,34 @@ var CostExplorer = (function (_super) {
|
|
|
413
430
|
return this.send(command, optionsOrCb);
|
|
414
431
|
}
|
|
415
432
|
};
|
|
433
|
+
CostExplorer.prototype.tagResource = function (args, optionsOrCb, cb) {
|
|
434
|
+
var command = new TagResourceCommand(args);
|
|
435
|
+
if (typeof optionsOrCb === "function") {
|
|
436
|
+
this.send(command, optionsOrCb);
|
|
437
|
+
}
|
|
438
|
+
else if (typeof cb === "function") {
|
|
439
|
+
if (typeof optionsOrCb !== "object")
|
|
440
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
441
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
442
|
+
}
|
|
443
|
+
else {
|
|
444
|
+
return this.send(command, optionsOrCb);
|
|
445
|
+
}
|
|
446
|
+
};
|
|
447
|
+
CostExplorer.prototype.untagResource = function (args, optionsOrCb, cb) {
|
|
448
|
+
var command = new UntagResourceCommand(args);
|
|
449
|
+
if (typeof optionsOrCb === "function") {
|
|
450
|
+
this.send(command, optionsOrCb);
|
|
451
|
+
}
|
|
452
|
+
else if (typeof cb === "function") {
|
|
453
|
+
if (typeof optionsOrCb !== "object")
|
|
454
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
455
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
return this.send(command, optionsOrCb);
|
|
459
|
+
}
|
|
460
|
+
};
|
|
416
461
|
CostExplorer.prototype.updateAnomalyMonitor = function (args, optionsOrCb, cb) {
|
|
417
462
|
var command = new UpdateAnomalyMonitorCommand(args);
|
|
418
463
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListTagsForResourceCommand = (function (_super) {
|
|
7
|
+
__extends(ListTagsForResourceCommand, _super);
|
|
8
|
+
function ListTagsForResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListTagsForResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CostExplorerClient";
|
|
18
|
+
var commandName = "ListTagsForResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListTagsForResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListTagsForResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListTagsForResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListTagsForResourceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var TagResourceCommand = (function (_super) {
|
|
7
|
+
__extends(TagResourceCommand, _super);
|
|
8
|
+
function TagResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
TagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CostExplorerClient";
|
|
18
|
+
var commandName = "TagResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
TagResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1TagResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
TagResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1TagResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return TagResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { TagResourceCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var UntagResourceCommand = (function (_super) {
|
|
7
|
+
__extends(UntagResourceCommand, _super);
|
|
8
|
+
function UntagResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
UntagResourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "CostExplorerClient";
|
|
18
|
+
var commandName = "UntagResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
UntagResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1UntagResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
UntagResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1UntagResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return UntagResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { UntagResourceCommand };
|
|
@@ -24,7 +24,10 @@ export * from "./GetSavingsPlansUtilizationDetailsCommand";
|
|
|
24
24
|
export * from "./GetTagsCommand";
|
|
25
25
|
export * from "./GetUsageForecastCommand";
|
|
26
26
|
export * from "./ListCostCategoryDefinitionsCommand";
|
|
27
|
+
export * from "./ListTagsForResourceCommand";
|
|
27
28
|
export * from "./ProvideAnomalyFeedbackCommand";
|
|
29
|
+
export * from "./TagResourceCommand";
|
|
30
|
+
export * from "./UntagResourceCommand";
|
|
28
31
|
export * from "./UpdateAnomalyMonitorCommand";
|
|
29
32
|
export * from "./UpdateAnomalySubscriptionCommand";
|
|
30
33
|
export * from "./UpdateCostCategoryDefinitionCommand";
|
|
@@ -121,6 +121,10 @@ export var AnomalySubscription;
|
|
|
121
121
|
(function (AnomalySubscription) {
|
|
122
122
|
AnomalySubscription.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
123
123
|
})(AnomalySubscription || (AnomalySubscription = {}));
|
|
124
|
+
export var ResourceTag;
|
|
125
|
+
(function (ResourceTag) {
|
|
126
|
+
ResourceTag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
127
|
+
})(ResourceTag || (ResourceTag = {}));
|
|
124
128
|
export var CreateAnomalyMonitorResponse;
|
|
125
129
|
(function (CreateAnomalyMonitorResponse) {
|
|
126
130
|
CreateAnomalyMonitorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -257,6 +261,7 @@ var ResourceNotFoundException = (function (_super) {
|
|
|
257
261
|
_this.$fault = "client";
|
|
258
262
|
Object.setPrototypeOf(_this, ResourceNotFoundException.prototype);
|
|
259
263
|
_this.Message = opts.Message;
|
|
264
|
+
_this.ResourceName = opts.ResourceName;
|
|
260
265
|
return _this;
|
|
261
266
|
}
|
|
262
267
|
return ResourceNotFoundException;
|
|
@@ -785,6 +790,14 @@ export var ListCostCategoryDefinitionsResponse;
|
|
|
785
790
|
(function (ListCostCategoryDefinitionsResponse) {
|
|
786
791
|
ListCostCategoryDefinitionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
787
792
|
})(ListCostCategoryDefinitionsResponse || (ListCostCategoryDefinitionsResponse = {}));
|
|
793
|
+
export var ListTagsForResourceRequest;
|
|
794
|
+
(function (ListTagsForResourceRequest) {
|
|
795
|
+
ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
796
|
+
})(ListTagsForResourceRequest || (ListTagsForResourceRequest = {}));
|
|
797
|
+
export var ListTagsForResourceResponse;
|
|
798
|
+
(function (ListTagsForResourceResponse) {
|
|
799
|
+
ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
800
|
+
})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
|
|
788
801
|
export var ProvideAnomalyFeedbackRequest;
|
|
789
802
|
(function (ProvideAnomalyFeedbackRequest) {
|
|
790
803
|
ProvideAnomalyFeedbackRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -793,6 +806,36 @@ export var ProvideAnomalyFeedbackResponse;
|
|
|
793
806
|
(function (ProvideAnomalyFeedbackResponse) {
|
|
794
807
|
ProvideAnomalyFeedbackResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
795
808
|
})(ProvideAnomalyFeedbackResponse || (ProvideAnomalyFeedbackResponse = {}));
|
|
809
|
+
export var TagResourceRequest;
|
|
810
|
+
(function (TagResourceRequest) {
|
|
811
|
+
TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
812
|
+
})(TagResourceRequest || (TagResourceRequest = {}));
|
|
813
|
+
export var TagResourceResponse;
|
|
814
|
+
(function (TagResourceResponse) {
|
|
815
|
+
TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
816
|
+
})(TagResourceResponse || (TagResourceResponse = {}));
|
|
817
|
+
var TooManyTagsException = (function (_super) {
|
|
818
|
+
__extends(TooManyTagsException, _super);
|
|
819
|
+
function TooManyTagsException(opts) {
|
|
820
|
+
var _this = _super.call(this, __assign({ name: "TooManyTagsException", $fault: "client" }, opts)) || this;
|
|
821
|
+
_this.name = "TooManyTagsException";
|
|
822
|
+
_this.$fault = "client";
|
|
823
|
+
Object.setPrototypeOf(_this, TooManyTagsException.prototype);
|
|
824
|
+
_this.Message = opts.Message;
|
|
825
|
+
_this.ResourceName = opts.ResourceName;
|
|
826
|
+
return _this;
|
|
827
|
+
}
|
|
828
|
+
return TooManyTagsException;
|
|
829
|
+
}(__BaseException));
|
|
830
|
+
export { TooManyTagsException };
|
|
831
|
+
export var UntagResourceRequest;
|
|
832
|
+
(function (UntagResourceRequest) {
|
|
833
|
+
UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
834
|
+
})(UntagResourceRequest || (UntagResourceRequest = {}));
|
|
835
|
+
export var UntagResourceResponse;
|
|
836
|
+
(function (UntagResourceResponse) {
|
|
837
|
+
UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
838
|
+
})(UntagResourceResponse || (UntagResourceResponse = {}));
|
|
796
839
|
export var UpdateAnomalyMonitorRequest;
|
|
797
840
|
(function (UpdateAnomalyMonitorRequest) {
|
|
798
841
|
UpdateAnomalyMonitorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|