@aws-sdk/client-cost-explorer 3.222.0 → 3.224.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/README.md +4 -4
- package/dist-cjs/CostExplorer.js +30 -0
- package/dist-cjs/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.js +46 -0
- package/dist-cjs/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.js +46 -0
- package/dist-cjs/commands/index.js +2 -0
- package/dist-cjs/endpoint/ruleset.js +11 -20
- package/dist-cjs/models/models_0.js +45 -4
- package/dist-cjs/protocols/Aws_json1_1.js +168 -2
- package/dist-es/CostExplorer.js +30 -0
- package/dist-es/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.js +42 -0
- package/dist-es/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.js +42 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/endpoint/ruleset.js +11 -20
- package/dist-es/models/models_0.js +34 -0
- package/dist-es/protocols/Aws_json1_1.js +163 -1
- package/dist-types/CostExplorer.d.ts +110 -53
- package/dist-types/CostExplorerClient.d.ts +14 -12
- package/dist-types/commands/DeleteCostCategoryDefinitionCommand.d.ts +2 -1
- package/dist-types/commands/GetCostAndUsageCommand.d.ts +2 -1
- package/dist-types/commands/GetCostAndUsageWithResourcesCommand.d.ts +11 -9
- package/dist-types/commands/GetCostCategoriesCommand.d.ts +2 -1
- package/dist-types/commands/GetCostForecastCommand.d.ts +2 -1
- package/dist-types/commands/GetDimensionValuesCommand.d.ts +2 -1
- package/dist-types/commands/GetReservationCoverageCommand.d.ts +6 -5
- package/dist-types/commands/GetReservationPurchaseRecommendationCommand.d.ts +2 -2
- package/dist-types/commands/GetReservationUtilizationCommand.d.ts +4 -3
- package/dist-types/commands/GetRightsizingRecommendationCommand.d.ts +2 -3
- package/dist-types/commands/GetSavingsPlansCoverageCommand.d.ts +8 -3
- package/dist-types/commands/GetSavingsPlansPurchaseRecommendationCommand.d.ts +4 -1
- package/dist-types/commands/GetSavingsPlansUtilizationCommand.d.ts +7 -3
- package/dist-types/commands/GetSavingsPlansUtilizationDetailsCommand.d.ts +10 -3
- package/dist-types/commands/GetTagsCommand.d.ts +2 -1
- package/dist-types/commands/GetUsageForecastCommand.d.ts +2 -1
- package/dist-types/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +38 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +45 -0
- package/dist-types/commands/TagResourceCommand.d.ts +4 -1
- package/dist-types/commands/UpdateCostCategoryDefinitionCommand.d.ts +3 -1
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +589 -317
- package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
- package/dist-types/ts3.4/CostExplorer.d.ts +46 -0
- package/dist-types/ts3.4/CostExplorerClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/ListSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/StartSavingsPlansPurchaseRecommendationGenerationCommand.d.ts +43 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/models/models_0.d.ts +51 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/package.json +28 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
2
2
|
import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { CostExplorerServiceException as __BaseException } from "../models/CostExplorerServiceException";
|
|
4
|
-
import { BillExpirationException, DataUnavailableException, InvalidNextTokenException, LimitExceededException, RequestChangedException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, UnknownMonitorException, UnknownSubscriptionException, UnresolvableUsageUnitException, } from "../models/models_0";
|
|
4
|
+
import { BillExpirationException, DataUnavailableException, GenerationExistsException, InvalidNextTokenException, LimitExceededException, RequestChangedException, ResourceNotFoundException, ServiceQuotaExceededException, TooManyTagsException, UnknownMonitorException, UnknownSubscriptionException, UnresolvableUsageUnitException, } from "../models/models_0";
|
|
5
5
|
export const serializeAws_json1_1CreateAnomalyMonitorCommand = async (input, context) => {
|
|
6
6
|
const headers = {
|
|
7
7
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -245,6 +245,15 @@ export const serializeAws_json1_1ListCostCategoryDefinitionsCommand = async (inp
|
|
|
245
245
|
body = JSON.stringify(serializeAws_json1_1ListCostCategoryDefinitionsRequest(input, context));
|
|
246
246
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
247
|
};
|
|
248
|
+
export const serializeAws_json1_1ListSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
|
|
249
|
+
const headers = {
|
|
250
|
+
"content-type": "application/x-amz-json-1.1",
|
|
251
|
+
"x-amz-target": "AWSInsightsIndexService.ListSavingsPlansPurchaseRecommendationGeneration",
|
|
252
|
+
};
|
|
253
|
+
let body;
|
|
254
|
+
body = JSON.stringify(serializeAws_json1_1ListSavingsPlansPurchaseRecommendationGenerationRequest(input, context));
|
|
255
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
256
|
+
};
|
|
248
257
|
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
249
258
|
const headers = {
|
|
250
259
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -263,6 +272,15 @@ export const serializeAws_json1_1ProvideAnomalyFeedbackCommand = async (input, c
|
|
|
263
272
|
body = JSON.stringify(serializeAws_json1_1ProvideAnomalyFeedbackRequest(input, context));
|
|
264
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
265
274
|
};
|
|
275
|
+
export const serializeAws_json1_1StartSavingsPlansPurchaseRecommendationGenerationCommand = async (input, context) => {
|
|
276
|
+
const headers = {
|
|
277
|
+
"content-type": "application/x-amz-json-1.1",
|
|
278
|
+
"x-amz-target": "AWSInsightsIndexService.StartSavingsPlansPurchaseRecommendationGeneration",
|
|
279
|
+
};
|
|
280
|
+
let body;
|
|
281
|
+
body = JSON.stringify(serializeAws_json1_1StartSavingsPlansPurchaseRecommendationGenerationRequest(input, context));
|
|
282
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
283
|
+
};
|
|
266
284
|
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
267
285
|
const headers = {
|
|
268
286
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -1352,6 +1370,42 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsCommandError = async (out
|
|
|
1352
1370
|
});
|
|
1353
1371
|
}
|
|
1354
1372
|
};
|
|
1373
|
+
export const deserializeAws_json1_1ListSavingsPlansPurchaseRecommendationGenerationCommand = async (output, context) => {
|
|
1374
|
+
if (output.statusCode >= 300) {
|
|
1375
|
+
return deserializeAws_json1_1ListSavingsPlansPurchaseRecommendationGenerationCommandError(output, context);
|
|
1376
|
+
}
|
|
1377
|
+
const data = await parseBody(output.body, context);
|
|
1378
|
+
let contents = {};
|
|
1379
|
+
contents = deserializeAws_json1_1ListSavingsPlansPurchaseRecommendationGenerationResponse(data, context);
|
|
1380
|
+
const response = {
|
|
1381
|
+
$metadata: deserializeMetadata(output),
|
|
1382
|
+
...contents,
|
|
1383
|
+
};
|
|
1384
|
+
return Promise.resolve(response);
|
|
1385
|
+
};
|
|
1386
|
+
const deserializeAws_json1_1ListSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
|
|
1387
|
+
const parsedOutput = {
|
|
1388
|
+
...output,
|
|
1389
|
+
body: await parseErrorBody(output.body, context),
|
|
1390
|
+
};
|
|
1391
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1392
|
+
switch (errorCode) {
|
|
1393
|
+
case "InvalidNextTokenException":
|
|
1394
|
+
case "com.amazonaws.costexplorer#InvalidNextTokenException":
|
|
1395
|
+
throw await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context);
|
|
1396
|
+
case "LimitExceededException":
|
|
1397
|
+
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1398
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1399
|
+
default:
|
|
1400
|
+
const parsedBody = parsedOutput.body;
|
|
1401
|
+
throwDefaultError({
|
|
1402
|
+
output,
|
|
1403
|
+
parsedBody,
|
|
1404
|
+
exceptionCtor: __BaseException,
|
|
1405
|
+
errorCode,
|
|
1406
|
+
});
|
|
1407
|
+
}
|
|
1408
|
+
};
|
|
1355
1409
|
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1356
1410
|
if (output.statusCode >= 300) {
|
|
1357
1411
|
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
@@ -1421,6 +1475,45 @@ const deserializeAws_json1_1ProvideAnomalyFeedbackCommandError = async (output,
|
|
|
1421
1475
|
});
|
|
1422
1476
|
}
|
|
1423
1477
|
};
|
|
1478
|
+
export const deserializeAws_json1_1StartSavingsPlansPurchaseRecommendationGenerationCommand = async (output, context) => {
|
|
1479
|
+
if (output.statusCode >= 300) {
|
|
1480
|
+
return deserializeAws_json1_1StartSavingsPlansPurchaseRecommendationGenerationCommandError(output, context);
|
|
1481
|
+
}
|
|
1482
|
+
const data = await parseBody(output.body, context);
|
|
1483
|
+
let contents = {};
|
|
1484
|
+
contents = deserializeAws_json1_1StartSavingsPlansPurchaseRecommendationGenerationResponse(data, context);
|
|
1485
|
+
const response = {
|
|
1486
|
+
$metadata: deserializeMetadata(output),
|
|
1487
|
+
...contents,
|
|
1488
|
+
};
|
|
1489
|
+
return Promise.resolve(response);
|
|
1490
|
+
};
|
|
1491
|
+
const deserializeAws_json1_1StartSavingsPlansPurchaseRecommendationGenerationCommandError = async (output, context) => {
|
|
1492
|
+
const parsedOutput = {
|
|
1493
|
+
...output,
|
|
1494
|
+
body: await parseErrorBody(output.body, context),
|
|
1495
|
+
};
|
|
1496
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1497
|
+
switch (errorCode) {
|
|
1498
|
+
case "GenerationExistsException":
|
|
1499
|
+
case "com.amazonaws.costexplorer#GenerationExistsException":
|
|
1500
|
+
throw await deserializeAws_json1_1GenerationExistsExceptionResponse(parsedOutput, context);
|
|
1501
|
+
case "LimitExceededException":
|
|
1502
|
+
case "com.amazonaws.costexplorer#LimitExceededException":
|
|
1503
|
+
throw await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context);
|
|
1504
|
+
case "ServiceQuotaExceededException":
|
|
1505
|
+
case "com.amazonaws.costexplorer#ServiceQuotaExceededException":
|
|
1506
|
+
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1507
|
+
default:
|
|
1508
|
+
const parsedBody = parsedOutput.body;
|
|
1509
|
+
throwDefaultError({
|
|
1510
|
+
output,
|
|
1511
|
+
parsedBody,
|
|
1512
|
+
exceptionCtor: __BaseException,
|
|
1513
|
+
errorCode,
|
|
1514
|
+
});
|
|
1515
|
+
}
|
|
1516
|
+
};
|
|
1424
1517
|
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1425
1518
|
if (output.statusCode >= 300) {
|
|
1426
1519
|
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
@@ -1661,6 +1754,15 @@ const deserializeAws_json1_1DataUnavailableExceptionResponse = async (parsedOutp
|
|
|
1661
1754
|
});
|
|
1662
1755
|
return __decorateServiceException(exception, body);
|
|
1663
1756
|
};
|
|
1757
|
+
const deserializeAws_json1_1GenerationExistsExceptionResponse = async (parsedOutput, context) => {
|
|
1758
|
+
const body = parsedOutput.body;
|
|
1759
|
+
const deserialized = deserializeAws_json1_1GenerationExistsException(body, context);
|
|
1760
|
+
const exception = new GenerationExistsException({
|
|
1761
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1762
|
+
...deserialized,
|
|
1763
|
+
});
|
|
1764
|
+
return __decorateServiceException(exception, body);
|
|
1765
|
+
};
|
|
1664
1766
|
const deserializeAws_json1_1InvalidNextTokenExceptionResponse = async (parsedOutput, context) => {
|
|
1665
1767
|
const body = parsedOutput.body;
|
|
1666
1768
|
const deserialized = deserializeAws_json1_1InvalidNextTokenException(body, context);
|
|
@@ -2191,6 +2293,16 @@ const serializeAws_json1_1ListCostCategoryDefinitionsRequest = (input, context)
|
|
|
2191
2293
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2192
2294
|
};
|
|
2193
2295
|
};
|
|
2296
|
+
const serializeAws_json1_1ListSavingsPlansPurchaseRecommendationGenerationRequest = (input, context) => {
|
|
2297
|
+
return {
|
|
2298
|
+
...(input.GenerationStatus != null && { GenerationStatus: input.GenerationStatus }),
|
|
2299
|
+
...(input.NextPageToken != null && { NextPageToken: input.NextPageToken }),
|
|
2300
|
+
...(input.PageSize != null && { PageSize: input.PageSize }),
|
|
2301
|
+
...(input.RecommendationIds != null && {
|
|
2302
|
+
RecommendationIds: serializeAws_json1_1RecommendationIdList(input.RecommendationIds, context),
|
|
2303
|
+
}),
|
|
2304
|
+
};
|
|
2305
|
+
};
|
|
2194
2306
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2195
2307
|
return {
|
|
2196
2308
|
...(input.ResourceArn != null && { ResourceArn: input.ResourceArn }),
|
|
@@ -2223,6 +2335,13 @@ const serializeAws_json1_1ProvideAnomalyFeedbackRequest = (input, context) => {
|
|
|
2223
2335
|
...(input.Feedback != null && { Feedback: input.Feedback }),
|
|
2224
2336
|
};
|
|
2225
2337
|
};
|
|
2338
|
+
const serializeAws_json1_1RecommendationIdList = (input, context) => {
|
|
2339
|
+
return input
|
|
2340
|
+
.filter((e) => e != null)
|
|
2341
|
+
.map((entry) => {
|
|
2342
|
+
return entry;
|
|
2343
|
+
});
|
|
2344
|
+
};
|
|
2226
2345
|
const serializeAws_json1_1ResourceTag = (input, context) => {
|
|
2227
2346
|
return {
|
|
2228
2347
|
...(input.Key != null && { Key: input.Key }),
|
|
@@ -2276,6 +2395,9 @@ const serializeAws_json1_1SortDefinitions = (input, context) => {
|
|
|
2276
2395
|
return serializeAws_json1_1SortDefinition(entry, context);
|
|
2277
2396
|
});
|
|
2278
2397
|
};
|
|
2398
|
+
const serializeAws_json1_1StartSavingsPlansPurchaseRecommendationGenerationRequest = (input, context) => {
|
|
2399
|
+
return {};
|
|
2400
|
+
};
|
|
2279
2401
|
const serializeAws_json1_1Subscriber = (input, context) => {
|
|
2280
2402
|
return {
|
|
2281
2403
|
...(input.Address != null && { Address: input.Address }),
|
|
@@ -2922,6 +3044,31 @@ const deserializeAws_json1_1ForecastResultsByTime = (output, context) => {
|
|
|
2922
3044
|
});
|
|
2923
3045
|
return retVal;
|
|
2924
3046
|
};
|
|
3047
|
+
const deserializeAws_json1_1GenerationExistsException = (output, context) => {
|
|
3048
|
+
return {
|
|
3049
|
+
Message: __expectString(output.Message),
|
|
3050
|
+
};
|
|
3051
|
+
};
|
|
3052
|
+
const deserializeAws_json1_1GenerationSummary = (output, context) => {
|
|
3053
|
+
return {
|
|
3054
|
+
EstimatedCompletionTime: __expectString(output.EstimatedCompletionTime),
|
|
3055
|
+
GenerationCompletionTime: __expectString(output.GenerationCompletionTime),
|
|
3056
|
+
GenerationStartedTime: __expectString(output.GenerationStartedTime),
|
|
3057
|
+
GenerationStatus: __expectString(output.GenerationStatus),
|
|
3058
|
+
RecommendationId: __expectString(output.RecommendationId),
|
|
3059
|
+
};
|
|
3060
|
+
};
|
|
3061
|
+
const deserializeAws_json1_1GenerationSummaryList = (output, context) => {
|
|
3062
|
+
const retVal = (output || [])
|
|
3063
|
+
.filter((e) => e != null)
|
|
3064
|
+
.map((entry) => {
|
|
3065
|
+
if (entry === null) {
|
|
3066
|
+
return null;
|
|
3067
|
+
}
|
|
3068
|
+
return deserializeAws_json1_1GenerationSummary(entry, context);
|
|
3069
|
+
});
|
|
3070
|
+
return retVal;
|
|
3071
|
+
};
|
|
2925
3072
|
const deserializeAws_json1_1GetAnomaliesResponse = (output, context) => {
|
|
2926
3073
|
return {
|
|
2927
3074
|
Anomalies: output.Anomalies != null ? deserializeAws_json1_1Anomalies(output.Anomalies, context) : undefined,
|
|
@@ -3194,6 +3341,14 @@ const deserializeAws_json1_1ListCostCategoryDefinitionsResponse = (output, conte
|
|
|
3194
3341
|
NextToken: __expectString(output.NextToken),
|
|
3195
3342
|
};
|
|
3196
3343
|
};
|
|
3344
|
+
const deserializeAws_json1_1ListSavingsPlansPurchaseRecommendationGenerationResponse = (output, context) => {
|
|
3345
|
+
return {
|
|
3346
|
+
GenerationSummaryList: output.GenerationSummaryList != null
|
|
3347
|
+
? deserializeAws_json1_1GenerationSummaryList(output.GenerationSummaryList, context)
|
|
3348
|
+
: undefined,
|
|
3349
|
+
NextPageToken: __expectString(output.NextPageToken),
|
|
3350
|
+
};
|
|
3351
|
+
};
|
|
3197
3352
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
3198
3353
|
return {
|
|
3199
3354
|
ResourceTags: output.ResourceTags != null ? deserializeAws_json1_1ResourceTagList(output.ResourceTags, context) : undefined,
|
|
@@ -3748,6 +3903,13 @@ const deserializeAws_json1_1ServiceSpecification = (output, context) => {
|
|
|
3748
3903
|
: undefined,
|
|
3749
3904
|
};
|
|
3750
3905
|
};
|
|
3906
|
+
const deserializeAws_json1_1StartSavingsPlansPurchaseRecommendationGenerationResponse = (output, context) => {
|
|
3907
|
+
return {
|
|
3908
|
+
EstimatedCompletionTime: __expectString(output.EstimatedCompletionTime),
|
|
3909
|
+
GenerationStartedTime: __expectString(output.GenerationStartedTime),
|
|
3910
|
+
RecommendationId: __expectString(output.RecommendationId),
|
|
3911
|
+
};
|
|
3912
|
+
};
|
|
3751
3913
|
const deserializeAws_json1_1Subscriber = (output, context) => {
|
|
3752
3914
|
return {
|
|
3753
3915
|
Address: __expectString(output.Address),
|
|
@@ -26,8 +26,10 @@ import { GetTagsCommandInput, GetTagsCommandOutput } from "./commands/GetTagsCom
|
|
|
26
26
|
import { GetUsageForecastCommandInput, GetUsageForecastCommandOutput } from "./commands/GetUsageForecastCommand";
|
|
27
27
|
import { ListCostAllocationTagsCommandInput, ListCostAllocationTagsCommandOutput } from "./commands/ListCostAllocationTagsCommand";
|
|
28
28
|
import { ListCostCategoryDefinitionsCommandInput, ListCostCategoryDefinitionsCommandOutput } from "./commands/ListCostCategoryDefinitionsCommand";
|
|
29
|
+
import { ListSavingsPlansPurchaseRecommendationGenerationCommandInput, ListSavingsPlansPurchaseRecommendationGenerationCommandOutput } from "./commands/ListSavingsPlansPurchaseRecommendationGenerationCommand";
|
|
29
30
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
30
31
|
import { ProvideAnomalyFeedbackCommandInput, ProvideAnomalyFeedbackCommandOutput } from "./commands/ProvideAnomalyFeedbackCommand";
|
|
32
|
+
import { StartSavingsPlansPurchaseRecommendationGenerationCommandInput, StartSavingsPlansPurchaseRecommendationGenerationCommandOutput } from "./commands/StartSavingsPlansPurchaseRecommendationGenerationCommand";
|
|
31
33
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
32
34
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
33
35
|
import { UpdateAnomalyMonitorCommandInput, UpdateAnomalyMonitorCommandOutput } from "./commands/UpdateAnomalyMonitorCommand";
|
|
@@ -36,20 +38,20 @@ import { UpdateCostAllocationTagsStatusCommandInput, UpdateCostAllocationTagsSta
|
|
|
36
38
|
import { UpdateCostCategoryDefinitionCommandInput, UpdateCostCategoryDefinitionCommandOutput } from "./commands/UpdateCostCategoryDefinitionCommand";
|
|
37
39
|
import { CostExplorerClient } from "./CostExplorerClient";
|
|
38
40
|
/**
|
|
39
|
-
* <p>You can use the Cost Explorer API to programmatically query your cost and usage data.
|
|
40
|
-
* can query for aggregated data such as total monthly costs or total daily usage. You can
|
|
41
|
-
* query for granular data. This might include the number of daily write operations for
|
|
42
|
-
* DynamoDB database tables in your production environment. </p>
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
41
|
+
* <p>You can use the Cost Explorer API to programmatically query your cost and usage data.
|
|
42
|
+
* You can query for aggregated data such as total monthly costs or total daily usage. You can
|
|
43
|
+
* also query for granular data. This might include the number of daily write operations for
|
|
44
|
+
* Amazon DynamoDB database tables in your production environment. </p>
|
|
45
|
+
* <p>Service Endpoint</p>
|
|
46
|
+
* <p>The Cost Explorer API provides the following endpoint:</p>
|
|
47
|
+
* <ul>
|
|
46
48
|
* <li>
|
|
47
|
-
*
|
|
49
|
+
* <p>
|
|
48
50
|
* <code>https://ce.us-east-1.amazonaws.com</code>
|
|
49
51
|
* </p>
|
|
50
|
-
*
|
|
52
|
+
* </li>
|
|
51
53
|
* </ul>
|
|
52
|
-
*
|
|
54
|
+
* <p>For information about the costs that are associated with the Cost Explorer API, see
|
|
53
55
|
* <a href="http://aws.amazon.com/aws-cost-management/pricing/">Amazon Web Services Cost
|
|
54
56
|
* Management Pricing</a>.</p>
|
|
55
57
|
*/
|
|
@@ -88,7 +90,8 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
88
90
|
deleteAnomalySubscription(args: DeleteAnomalySubscriptionCommandInput, cb: (err: any, data?: DeleteAnomalySubscriptionCommandOutput) => void): void;
|
|
89
91
|
deleteAnomalySubscription(args: DeleteAnomalySubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAnomalySubscriptionCommandOutput) => void): void;
|
|
90
92
|
/**
|
|
91
|
-
* <p>Deletes a Cost Category. Expenses from this month going forward will no longer be
|
|
93
|
+
* <p>Deletes a Cost Category. Expenses from this month going forward will no longer be
|
|
94
|
+
* categorized with this Cost Category.</p>
|
|
92
95
|
*/
|
|
93
96
|
deleteCostCategoryDefinition(args: DeleteCostCategoryDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteCostCategoryDefinitionCommandOutput>;
|
|
94
97
|
deleteCostCategoryDefinition(args: DeleteCostCategoryDefinitionCommandInput, cb: (err: any, data?: DeleteCostCategoryDefinitionCommandOutput) => void): void;
|
|
@@ -131,21 +134,24 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
131
134
|
* <code>BlendedCosts</code> or <code>UsageQuantity</code>. You can also filter and group your
|
|
132
135
|
* data by various dimensions, such as <code>SERVICE</code> or <code>AZ</code>, in a specific
|
|
133
136
|
* time range. For a complete list of valid dimensions, see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetDimensionValues.html">GetDimensionValues</a> operation. Management account in an organization in Organizations have access to all member accounts.</p>
|
|
134
|
-
*
|
|
137
|
+
* <p>For information about filter limitations, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-limits.html">Quotas and restrictions</a>
|
|
138
|
+
* in the <i>Billing and Cost Management User Guide</i>.</p>
|
|
135
139
|
*/
|
|
136
140
|
getCostAndUsage(args: GetCostAndUsageCommandInput, options?: __HttpHandlerOptions): Promise<GetCostAndUsageCommandOutput>;
|
|
137
141
|
getCostAndUsage(args: GetCostAndUsageCommandInput, cb: (err: any, data?: GetCostAndUsageCommandOutput) => void): void;
|
|
138
142
|
getCostAndUsage(args: GetCostAndUsageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCostAndUsageCommandOutput) => void): void;
|
|
139
143
|
/**
|
|
140
|
-
* <p>Retrieves cost and usage metrics with resources for your account. You can specify which
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
144
|
+
* <p>Retrieves cost and usage metrics with resources for your account. You can specify which
|
|
145
|
+
* cost and usage-related metric, such as <code>BlendedCosts</code> or
|
|
146
|
+
* <code>UsageQuantity</code>, that you want the request to return. You can also filter and group
|
|
147
|
+
* your data by various dimensions, such as <code>SERVICE</code> or <code>AZ</code>, in a
|
|
148
|
+
* specific time range. For a complete list of valid dimensions, see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_GetDimensionValues.html">GetDimensionValues</a> operation. Management account in an organization in Organizations have access to all member accounts. This API is currently available for the
|
|
149
|
+
* Amazon Elastic Compute Cloud – Compute service only.</p>
|
|
150
|
+
* <note>
|
|
151
|
+
* <p>This is an opt-in only feature. You can enable this feature from the Cost Explorer
|
|
152
|
+
* Settings page. For information about how to access the Settings page, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-access.html">Controlling
|
|
153
|
+
* Access for Cost Explorer</a> in the <i>Billing and Cost Management User
|
|
154
|
+
* Guide</i>.</p>
|
|
149
155
|
* </note>
|
|
150
156
|
*/
|
|
151
157
|
getCostAndUsageWithResources(args: GetCostAndUsageWithResourcesCommandInput, options?: __HttpHandlerOptions): Promise<GetCostAndUsageWithResourcesCommandOutput>;
|
|
@@ -154,32 +160,35 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
154
160
|
/**
|
|
155
161
|
* <p>Retrieves an array of Cost Category names and values incurred cost.</p>
|
|
156
162
|
* <note>
|
|
157
|
-
* <p>If some Cost Category names and values are not associated with any cost, they will not
|
|
163
|
+
* <p>If some Cost Category names and values are not associated with any cost, they will not
|
|
164
|
+
* be returned by this API.</p>
|
|
158
165
|
* </note>
|
|
159
166
|
*/
|
|
160
167
|
getCostCategories(args: GetCostCategoriesCommandInput, options?: __HttpHandlerOptions): Promise<GetCostCategoriesCommandOutput>;
|
|
161
168
|
getCostCategories(args: GetCostCategoriesCommandInput, cb: (err: any, data?: GetCostCategoriesCommandOutput) => void): void;
|
|
162
169
|
getCostCategories(args: GetCostCategoriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCostCategoriesCommandOutput) => void): void;
|
|
163
170
|
/**
|
|
164
|
-
* <p>Retrieves a forecast for how much Amazon Web Services predicts that you will spend over
|
|
171
|
+
* <p>Retrieves a forecast for how much Amazon Web Services predicts that you will spend over
|
|
172
|
+
* the forecast time period that you select, based on your past costs. </p>
|
|
165
173
|
*/
|
|
166
174
|
getCostForecast(args: GetCostForecastCommandInput, options?: __HttpHandlerOptions): Promise<GetCostForecastCommandOutput>;
|
|
167
175
|
getCostForecast(args: GetCostForecastCommandInput, cb: (err: any, data?: GetCostForecastCommandOutput) => void): void;
|
|
168
176
|
getCostForecast(args: GetCostForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCostForecastCommandOutput) => void): void;
|
|
169
177
|
/**
|
|
170
|
-
* <p>Retrieves all available filter values for a specified filter over a period of time. You
|
|
178
|
+
* <p>Retrieves all available filter values for a specified filter over a period of time. You
|
|
179
|
+
* can search the dimension values for an arbitrary string. </p>
|
|
171
180
|
*/
|
|
172
181
|
getDimensionValues(args: GetDimensionValuesCommandInput, options?: __HttpHandlerOptions): Promise<GetDimensionValuesCommandOutput>;
|
|
173
182
|
getDimensionValues(args: GetDimensionValuesCommandInput, cb: (err: any, data?: GetDimensionValuesCommandOutput) => void): void;
|
|
174
183
|
getDimensionValues(args: GetDimensionValuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDimensionValuesCommandOutput) => void): void;
|
|
175
184
|
/**
|
|
176
|
-
* <p>Retrieves the reservation coverage for your account, which you can use to see how much
|
|
177
|
-
* your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service,
|
|
178
|
-
* Amazon Redshift usage is covered by a reservation. An organization's management account can
|
|
185
|
+
* <p>Retrieves the reservation coverage for your account, which you can use to see how much
|
|
186
|
+
* of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service,
|
|
187
|
+
* or Amazon Redshift usage is covered by a reservation. An organization's management account can
|
|
179
188
|
* see the coverage of the associated member accounts. This supports dimensions, Cost Categories,
|
|
180
189
|
* and nested expressions. For any time period, you can filter data about reservation usage by
|
|
181
190
|
* the following dimensions:</p>
|
|
182
|
-
*
|
|
191
|
+
* <ul>
|
|
183
192
|
* <li>
|
|
184
193
|
* <p>AZ</p>
|
|
185
194
|
* </li>
|
|
@@ -217,7 +226,8 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
217
226
|
* <p>TENANCY</p>
|
|
218
227
|
* </li>
|
|
219
228
|
* </ul>
|
|
220
|
-
*
|
|
229
|
+
* <p>To determine valid values for a dimension, use the <code>GetDimensionValues</code>
|
|
230
|
+
* operation. </p>
|
|
221
231
|
*/
|
|
222
232
|
getReservationCoverage(args: GetReservationCoverageCommandInput, options?: __HttpHandlerOptions): Promise<GetReservationCoverageCommandOutput>;
|
|
223
233
|
getReservationCoverage(args: GetReservationCoverageCommandInput, cb: (err: any, data?: GetReservationCoverageCommandOutput) => void): void;
|
|
@@ -226,12 +236,12 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
226
236
|
* <p>Gets recommendations for reservation purchases. These recommendations might help you to
|
|
227
237
|
* reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to
|
|
228
238
|
* On-Demand pricing.</p>
|
|
229
|
-
*
|
|
239
|
+
* <p>Amazon Web Services generates your recommendations by identifying your On-Demand usage
|
|
230
240
|
* during a specific time period and collecting your usage into categories that are eligible for
|
|
231
241
|
* a reservation. After Amazon Web Services has these categories, it simulates every combination
|
|
232
242
|
* of reservations in each category of usage to identify the best number of each type of Reserved
|
|
233
243
|
* Instance (RI) to purchase to maximize your estimated savings. </p>
|
|
234
|
-
*
|
|
244
|
+
* <p>For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared
|
|
235
245
|
* tenancy, and c4 family usage in the US West (Oregon) Region and recommends that you buy
|
|
236
246
|
* size-flexible regional reservations to apply to the c4 family usage. Amazon Web Services
|
|
237
247
|
* recommends the smallest size instance in an instance family. This makes it easier to purchase
|
|
@@ -244,17 +254,17 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
244
254
|
getReservationPurchaseRecommendation(args: GetReservationPurchaseRecommendationCommandInput, cb: (err: any, data?: GetReservationPurchaseRecommendationCommandOutput) => void): void;
|
|
245
255
|
getReservationPurchaseRecommendation(args: GetReservationPurchaseRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReservationPurchaseRecommendationCommandOutput) => void): void;
|
|
246
256
|
/**
|
|
247
|
-
* <p>Retrieves the reservation utilization for your account. Management account in an
|
|
248
|
-
*
|
|
249
|
-
*
|
|
257
|
+
* <p>Retrieves the reservation utilization for your account. Management account in an
|
|
258
|
+
* organization have access to member accounts. You can filter data by dimensions in a time
|
|
259
|
+
* period. You can use <code>GetDimensionValues</code> to determine the possible dimension
|
|
260
|
+
* values. Currently, you can group only by <code>SUBSCRIPTION_ID</code>. </p>
|
|
250
261
|
*/
|
|
251
262
|
getReservationUtilization(args: GetReservationUtilizationCommandInput, options?: __HttpHandlerOptions): Promise<GetReservationUtilizationCommandOutput>;
|
|
252
263
|
getReservationUtilization(args: GetReservationUtilizationCommandInput, cb: (err: any, data?: GetReservationUtilizationCommandOutput) => void): void;
|
|
253
264
|
getReservationUtilization(args: GetReservationUtilizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReservationUtilizationCommandOutput) => void): void;
|
|
254
265
|
/**
|
|
255
|
-
* <p>Creates recommendations that
|
|
256
|
-
*
|
|
257
|
-
* by identifying idle and underutilized Amazon EC2 instances.</p>
|
|
266
|
+
* <p>Creates recommendations that help you save cost by identifying idle and underutilized
|
|
267
|
+
* Amazon EC2 instances.</p>
|
|
258
268
|
* <p>Recommendations are generated to either downsize or terminate instances, along with
|
|
259
269
|
* providing savings detail and metrics. For more information about calculation and function, see
|
|
260
270
|
* <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-rightsizing.html">Optimizing Your Cost with Rightsizing Recommendations</a> in the <i>Billing and Cost Management User Guide</i>.</p>
|
|
@@ -263,8 +273,12 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
263
273
|
getRightsizingRecommendation(args: GetRightsizingRecommendationCommandInput, cb: (err: any, data?: GetRightsizingRecommendationCommandOutput) => void): void;
|
|
264
274
|
getRightsizingRecommendation(args: GetRightsizingRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRightsizingRecommendationCommandOutput) => void): void;
|
|
265
275
|
/**
|
|
266
|
-
* <p>Retrieves the Savings Plans covered for your account. This enables you to see how much of
|
|
267
|
-
*
|
|
276
|
+
* <p>Retrieves the Savings Plans covered for your account. This enables you to see how much of
|
|
277
|
+
* your cost is covered by a Savings Plan. An organization’s management account can see the
|
|
278
|
+
* coverage of the associated member accounts. This supports dimensions, Cost Categories, and
|
|
279
|
+
* nested expressions. For any time period, you can filter data for Savings Plans usage with the
|
|
280
|
+
* following dimensions:</p>
|
|
281
|
+
* <ul>
|
|
268
282
|
* <li>
|
|
269
283
|
* <p>
|
|
270
284
|
* <code>LINKED_ACCOUNT</code>
|
|
@@ -286,44 +300,61 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
286
300
|
* </p>
|
|
287
301
|
* </li>
|
|
288
302
|
* </ul>
|
|
289
|
-
*
|
|
303
|
+
* <p>To determine valid values for a dimension, use the <code>GetDimensionValues</code>
|
|
304
|
+
* operation.</p>
|
|
290
305
|
*/
|
|
291
306
|
getSavingsPlansCoverage(args: GetSavingsPlansCoverageCommandInput, options?: __HttpHandlerOptions): Promise<GetSavingsPlansCoverageCommandOutput>;
|
|
292
307
|
getSavingsPlansCoverage(args: GetSavingsPlansCoverageCommandInput, cb: (err: any, data?: GetSavingsPlansCoverageCommandOutput) => void): void;
|
|
293
308
|
getSavingsPlansCoverage(args: GetSavingsPlansCoverageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSavingsPlansCoverageCommandOutput) => void): void;
|
|
294
309
|
/**
|
|
295
|
-
* <p>Retrieves
|
|
310
|
+
* <p>Retrieves the Savings Plans recommendations for your account. First use
|
|
311
|
+
* <code>StartSavingsPlansPurchaseRecommendationGeneration</code> to generate a new set of
|
|
312
|
+
* recommendations, and then use <code>GetSavingsPlansPurchaseRecommendation</code> to retrieve
|
|
313
|
+
* them.</p>
|
|
296
314
|
*/
|
|
297
315
|
getSavingsPlansPurchaseRecommendation(args: GetSavingsPlansPurchaseRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<GetSavingsPlansPurchaseRecommendationCommandOutput>;
|
|
298
316
|
getSavingsPlansPurchaseRecommendation(args: GetSavingsPlansPurchaseRecommendationCommandInput, cb: (err: any, data?: GetSavingsPlansPurchaseRecommendationCommandOutput) => void): void;
|
|
299
317
|
getSavingsPlansPurchaseRecommendation(args: GetSavingsPlansPurchaseRecommendationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSavingsPlansPurchaseRecommendationCommandOutput) => void): void;
|
|
300
318
|
/**
|
|
301
|
-
* <p>Retrieves the Savings Plans utilization for your account across date ranges with daily or
|
|
302
|
-
*
|
|
303
|
-
*
|
|
319
|
+
* <p>Retrieves the Savings Plans utilization for your account across date ranges with daily or
|
|
320
|
+
* monthly granularity. Management account in an organization have access to member accounts. You
|
|
321
|
+
* can use <code>GetDimensionValues</code> in <code>SAVINGS_PLANS</code> to determine the
|
|
322
|
+
* possible dimension values.</p>
|
|
323
|
+
* <note>
|
|
324
|
+
* <p>You can't group by any dimension values for
|
|
325
|
+
* <code>GetSavingsPlansUtilization</code>.</p>
|
|
304
326
|
* </note>
|
|
305
327
|
*/
|
|
306
328
|
getSavingsPlansUtilization(args: GetSavingsPlansUtilizationCommandInput, options?: __HttpHandlerOptions): Promise<GetSavingsPlansUtilizationCommandOutput>;
|
|
307
329
|
getSavingsPlansUtilization(args: GetSavingsPlansUtilizationCommandInput, cb: (err: any, data?: GetSavingsPlansUtilizationCommandOutput) => void): void;
|
|
308
330
|
getSavingsPlansUtilization(args: GetSavingsPlansUtilizationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSavingsPlansUtilizationCommandOutput) => void): void;
|
|
309
331
|
/**
|
|
310
|
-
* <p>Retrieves attribute data along with aggregate utilization and savings data for a given
|
|
311
|
-
*
|
|
332
|
+
* <p>Retrieves attribute data along with aggregate utilization and savings data for a given
|
|
333
|
+
* time period. This doesn't support granular or grouped data (daily/monthly) in response. You
|
|
334
|
+
* can't retrieve data by dates in a single response similar to
|
|
335
|
+
* <code>GetSavingsPlanUtilization</code>, but you have the option to make multiple calls to
|
|
336
|
+
* <code>GetSavingsPlanUtilizationDetails</code> by providing individual dates. You can use
|
|
337
|
+
* <code>GetDimensionValues</code> in <code>SAVINGS_PLANS</code> to determine the possible
|
|
338
|
+
* dimension values.</p>
|
|
339
|
+
* <note>
|
|
312
340
|
* <p>
|
|
313
|
-
* <code>GetSavingsPlanUtilizationDetails</code> internally groups data by
|
|
341
|
+
* <code>GetSavingsPlanUtilizationDetails</code> internally groups data by
|
|
342
|
+
* <code>SavingsPlansArn</code>.</p>
|
|
314
343
|
* </note>
|
|
315
344
|
*/
|
|
316
345
|
getSavingsPlansUtilizationDetails(args: GetSavingsPlansUtilizationDetailsCommandInput, options?: __HttpHandlerOptions): Promise<GetSavingsPlansUtilizationDetailsCommandOutput>;
|
|
317
346
|
getSavingsPlansUtilizationDetails(args: GetSavingsPlansUtilizationDetailsCommandInput, cb: (err: any, data?: GetSavingsPlansUtilizationDetailsCommandOutput) => void): void;
|
|
318
347
|
getSavingsPlansUtilizationDetails(args: GetSavingsPlansUtilizationDetailsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSavingsPlansUtilizationDetailsCommandOutput) => void): void;
|
|
319
348
|
/**
|
|
320
|
-
* <p>Queries for available tag keys and tag values for a specified period. You can search
|
|
349
|
+
* <p>Queries for available tag keys and tag values for a specified period. You can search
|
|
350
|
+
* the tag values for an arbitrary string. </p>
|
|
321
351
|
*/
|
|
322
352
|
getTags(args: GetTagsCommandInput, options?: __HttpHandlerOptions): Promise<GetTagsCommandOutput>;
|
|
323
353
|
getTags(args: GetTagsCommandInput, cb: (err: any, data?: GetTagsCommandOutput) => void): void;
|
|
324
354
|
getTags(args: GetTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTagsCommandOutput) => void): void;
|
|
325
355
|
/**
|
|
326
|
-
* <p>Retrieves a forecast for how much Amazon Web Services predicts that you will use
|
|
356
|
+
* <p>Retrieves a forecast for how much Amazon Web Services predicts that you will use
|
|
357
|
+
* over the forecast time period that you select, based on your past usage. </p>
|
|
327
358
|
*/
|
|
328
359
|
getUsageForecast(args: GetUsageForecastCommandInput, options?: __HttpHandlerOptions): Promise<GetUsageForecastCommandOutput>;
|
|
329
360
|
getUsageForecast(args: GetUsageForecastCommandInput, cb: (err: any, data?: GetUsageForecastCommandOutput) => void): void;
|
|
@@ -348,8 +379,15 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
348
379
|
listCostCategoryDefinitions(args: ListCostCategoryDefinitionsCommandInput, cb: (err: any, data?: ListCostCategoryDefinitionsCommandOutput) => void): void;
|
|
349
380
|
listCostCategoryDefinitions(args: ListCostCategoryDefinitionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCostCategoryDefinitionsCommandOutput) => void): void;
|
|
350
381
|
/**
|
|
351
|
-
* <p>
|
|
352
|
-
*
|
|
382
|
+
* <p>Retrieves a list of your historical recommendation generations within the past 30
|
|
383
|
+
* days.</p>
|
|
384
|
+
*/
|
|
385
|
+
listSavingsPlansPurchaseRecommendationGeneration(args: ListSavingsPlansPurchaseRecommendationGenerationCommandInput, options?: __HttpHandlerOptions): Promise<ListSavingsPlansPurchaseRecommendationGenerationCommandOutput>;
|
|
386
|
+
listSavingsPlansPurchaseRecommendationGeneration(args: ListSavingsPlansPurchaseRecommendationGenerationCommandInput, cb: (err: any, data?: ListSavingsPlansPurchaseRecommendationGenerationCommandOutput) => void): void;
|
|
387
|
+
listSavingsPlansPurchaseRecommendationGeneration(args: ListSavingsPlansPurchaseRecommendationGenerationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSavingsPlansPurchaseRecommendationGenerationCommandOutput) => void): void;
|
|
388
|
+
/**
|
|
389
|
+
* <p>Returns a list of resource tags associated with the resource specified by the Amazon
|
|
390
|
+
* Resource Name (ARN). </p>
|
|
353
391
|
*/
|
|
354
392
|
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
355
393
|
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
@@ -360,9 +398,26 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
360
398
|
provideAnomalyFeedback(args: ProvideAnomalyFeedbackCommandInput, options?: __HttpHandlerOptions): Promise<ProvideAnomalyFeedbackCommandOutput>;
|
|
361
399
|
provideAnomalyFeedback(args: ProvideAnomalyFeedbackCommandInput, cb: (err: any, data?: ProvideAnomalyFeedbackCommandOutput) => void): void;
|
|
362
400
|
provideAnomalyFeedback(args: ProvideAnomalyFeedbackCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ProvideAnomalyFeedbackCommandOutput) => void): void;
|
|
401
|
+
/**
|
|
402
|
+
* <p>Requests a Savings Plans recommendation generation. This enables you to calculate a fresh
|
|
403
|
+
* set of Savings Plans recommendations that takes your latest usage data and current Savings
|
|
404
|
+
* Plans inventory into account. You can refresh Savings Plans recommendations up to three times
|
|
405
|
+
* daily for a consolidated billing family.</p>
|
|
406
|
+
* <note>
|
|
407
|
+
* <p>
|
|
408
|
+
* <code>StartSavingsPlansPurchaseRecommendationGeneration</code> has no request syntax
|
|
409
|
+
* because no input parameters are needed to support this operation.</p>
|
|
410
|
+
* </note>
|
|
411
|
+
*/
|
|
412
|
+
startSavingsPlansPurchaseRecommendationGeneration(args: StartSavingsPlansPurchaseRecommendationGenerationCommandInput, options?: __HttpHandlerOptions): Promise<StartSavingsPlansPurchaseRecommendationGenerationCommandOutput>;
|
|
413
|
+
startSavingsPlansPurchaseRecommendationGeneration(args: StartSavingsPlansPurchaseRecommendationGenerationCommandInput, cb: (err: any, data?: StartSavingsPlansPurchaseRecommendationGenerationCommandOutput) => void): void;
|
|
414
|
+
startSavingsPlansPurchaseRecommendationGeneration(args: StartSavingsPlansPurchaseRecommendationGenerationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSavingsPlansPurchaseRecommendationGenerationCommandOutput) => void): void;
|
|
363
415
|
/**
|
|
364
416
|
* <p>An API operation for adding one or more tags (key-value pairs) to a resource.</p>
|
|
365
|
-
* <p>You can use the <code>TagResource</code> operation with a resource that already has tags.
|
|
417
|
+
* <p>You can use the <code>TagResource</code> operation with a resource that already has tags.
|
|
418
|
+
* If you specify a new tag key for the resource, this tag is appended to the list of tags
|
|
419
|
+
* associated with the resource. If you specify a tag key that is already associated with the
|
|
420
|
+
* resource, the new tag value you specify replaces the previous value for that tag.</p>
|
|
366
421
|
* <p>Although the maximum number of array members is 200, user-tag maximum is 50. The remaining
|
|
367
422
|
* are reserved for Amazon Web Services use.</p>
|
|
368
423
|
*/
|
|
@@ -399,7 +454,9 @@ export declare class CostExplorer extends CostExplorerClient {
|
|
|
399
454
|
updateCostAllocationTagsStatus(args: UpdateCostAllocationTagsStatusCommandInput, cb: (err: any, data?: UpdateCostAllocationTagsStatusCommandOutput) => void): void;
|
|
400
455
|
updateCostAllocationTagsStatus(args: UpdateCostAllocationTagsStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCostAllocationTagsStatusCommandOutput) => void): void;
|
|
401
456
|
/**
|
|
402
|
-
* <p>Updates an existing Cost Category. Changes made to the Cost Category rules will be used to
|
|
457
|
+
* <p>Updates an existing Cost Category. Changes made to the Cost Category rules will be used to
|
|
458
|
+
* categorize the current month’s expenses and future expenses. This won’t change categorization
|
|
459
|
+
* for the previous months.</p>
|
|
403
460
|
*/
|
|
404
461
|
updateCostCategoryDefinition(args: UpdateCostCategoryDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCostCategoryDefinitionCommandOutput>;
|
|
405
462
|
updateCostCategoryDefinition(args: UpdateCostCategoryDefinitionCommandInput, cb: (err: any, data?: UpdateCostCategoryDefinitionCommandOutput) => void): void;
|