@aws-sdk/client-cost-explorer 3.99.0 → 3.106.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.
Files changed (47) hide show
  1. package/dist-cjs/CostExplorer.js +30 -0
  2. package/dist-cjs/CostExplorerClient.js +2 -0
  3. package/dist-cjs/commands/ListCostAllocationTagsCommand.js +36 -0
  4. package/dist-cjs/commands/UpdateCostAllocationTagsStatusCommand.js +36 -0
  5. package/dist-cjs/commands/index.js +2 -0
  6. package/dist-cjs/models/models_0.js +54 -2
  7. package/dist-cjs/pagination/ListCostAllocationTagsPaginator.js +36 -0
  8. package/dist-cjs/pagination/index.js +1 -0
  9. package/dist-cjs/protocols/Aws_json1_1.js +192 -2
  10. package/dist-es/CostExplorer.js +30 -0
  11. package/dist-es/CostExplorerClient.js +2 -0
  12. package/dist-es/commands/ListCostAllocationTagsCommand.js +39 -0
  13. package/dist-es/commands/UpdateCostAllocationTagsStatusCommand.js +39 -0
  14. package/dist-es/commands/index.js +2 -0
  15. package/dist-es/models/models_0.js +38 -0
  16. package/dist-es/pagination/ListCostAllocationTagsPaginator.js +75 -0
  17. package/dist-es/pagination/index.js +1 -0
  18. package/dist-es/protocols/Aws_json1_1.js +210 -0
  19. package/dist-types/CostExplorer.d.ts +63 -29
  20. package/dist-types/CostExplorerClient.d.ts +4 -2
  21. package/dist-types/commands/DescribeCostCategoryDefinitionCommand.d.ts +6 -2
  22. package/dist-types/commands/GetCostAndUsageWithResourcesCommand.d.ts +3 -1
  23. package/dist-types/commands/GetReservationCoverageCommand.d.ts +6 -3
  24. package/dist-types/commands/GetReservationPurchaseRecommendationCommand.d.ts +16 -10
  25. package/dist-types/commands/GetRightsizingRecommendationCommand.d.ts +2 -6
  26. package/dist-types/commands/GetSavingsPlansUtilizationCommand.d.ts +1 -1
  27. package/dist-types/commands/ListCostAllocationTagsCommand.d.ts +36 -0
  28. package/dist-types/commands/ListCostCategoryDefinitionsCommand.d.ts +7 -1
  29. package/dist-types/commands/TagResourceCommand.d.ts +2 -2
  30. package/dist-types/commands/UntagResourceCommand.d.ts +2 -3
  31. package/dist-types/commands/UpdateCostAllocationTagsStatusCommand.d.ts +38 -0
  32. package/dist-types/commands/index.d.ts +2 -0
  33. package/dist-types/models/models_0.d.ts +410 -248
  34. package/dist-types/pagination/ListCostAllocationTagsPaginator.d.ts +4 -0
  35. package/dist-types/pagination/index.d.ts +1 -0
  36. package/dist-types/protocols/Aws_json1_1.d.ts +6 -0
  37. package/dist-types/ts3.4/CostExplorer.d.ts +10 -0
  38. package/dist-types/ts3.4/CostExplorerClient.d.ts +4 -2
  39. package/dist-types/ts3.4/commands/ListCostAllocationTagsCommand.d.ts +17 -0
  40. package/dist-types/ts3.4/commands/UpdateCostAllocationTagsStatusCommand.d.ts +17 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +2 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +94 -21
  43. package/dist-types/ts3.4/pagination/ListCostAllocationTagsPaginator.d.ts +4 -0
  44. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  45. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +6 -0
  46. package/package.json +4 -3
  47. package/CHANGELOG.md +0 -3755
@@ -24,6 +24,7 @@ import { GetSavingsPlansUtilizationCommandInput, GetSavingsPlansUtilizationComma
24
24
  import { GetSavingsPlansUtilizationDetailsCommandInput, GetSavingsPlansUtilizationDetailsCommandOutput } from "./commands/GetSavingsPlansUtilizationDetailsCommand";
25
25
  import { GetTagsCommandInput, GetTagsCommandOutput } from "./commands/GetTagsCommand";
26
26
  import { GetUsageForecastCommandInput, GetUsageForecastCommandOutput } from "./commands/GetUsageForecastCommand";
27
+ import { ListCostAllocationTagsCommandInput, ListCostAllocationTagsCommandOutput } from "./commands/ListCostAllocationTagsCommand";
27
28
  import { ListCostCategoryDefinitionsCommandInput, ListCostCategoryDefinitionsCommandOutput } from "./commands/ListCostCategoryDefinitionsCommand";
28
29
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
29
30
  import { ProvideAnomalyFeedbackCommandInput, ProvideAnomalyFeedbackCommandOutput } from "./commands/ProvideAnomalyFeedbackCommand";
@@ -31,6 +32,7 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
31
32
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
32
33
  import { UpdateAnomalyMonitorCommandInput, UpdateAnomalyMonitorCommandOutput } from "./commands/UpdateAnomalyMonitorCommand";
33
34
  import { UpdateAnomalySubscriptionCommandInput, UpdateAnomalySubscriptionCommandOutput } from "./commands/UpdateAnomalySubscriptionCommand";
35
+ import { UpdateCostAllocationTagsStatusCommandInput, UpdateCostAllocationTagsStatusCommandOutput } from "./commands/UpdateCostAllocationTagsStatusCommand";
34
36
  import { UpdateCostCategoryDefinitionCommandInput, UpdateCostCategoryDefinitionCommandOutput } from "./commands/UpdateCostCategoryDefinitionCommand";
35
37
  import { CostExplorerClient } from "./CostExplorerClient";
36
38
  /**
@@ -92,8 +94,12 @@ export declare class CostExplorer extends CostExplorerClient {
92
94
  deleteCostCategoryDefinition(args: DeleteCostCategoryDefinitionCommandInput, cb: (err: any, data?: DeleteCostCategoryDefinitionCommandOutput) => void): void;
93
95
  deleteCostCategoryDefinition(args: DeleteCostCategoryDefinitionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteCostCategoryDefinitionCommandOutput) => void): void;
94
96
  /**
95
- * <p>Returns the name, ARN, rules, definition, and effective dates of a Cost Category that's defined in the account.</p>
96
- * <p>You have the option to use <code>EffectiveOn</code> to return a Cost Category that is active on a specific date. If there is no <code>EffectiveOn</code> specified, you’ll see a Cost Category that is effective on the current date. If Cost Category is still effective, <code>EffectiveEnd</code> is omitted in the response. </p>
97
+ * <p>Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a
98
+ * Cost Category that's defined in the account.</p>
99
+ * <p>You have the option to use <code>EffectiveOn</code> to return a Cost Category that's
100
+ * active on a specific date. If there's no <code>EffectiveOn</code> specified, you see a Cost
101
+ * Category that's effective on the current date. If Cost Category is still effective,
102
+ * <code>EffectiveEnd</code> is omitted in the response. </p>
97
103
  */
98
104
  describeCostCategoryDefinition(args: DescribeCostCategoryDefinitionCommandInput, options?: __HttpHandlerOptions): Promise<DescribeCostCategoryDefinitionCommandOutput>;
99
105
  describeCostCategoryDefinition(args: DescribeCostCategoryDefinitionCommandInput, cb: (err: any, data?: DescribeCostCategoryDefinitionCommandOutput) => void): void;
@@ -137,7 +143,9 @@ export declare class CostExplorer extends CostExplorerClient {
137
143
  * such as <code>SERVICE</code> or <code>AZ</code>, in a specific time range. For a complete list
138
144
  * 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 Amazon Elastic Compute Cloud – Compute service only.</p>
139
145
  * <note>
140
- * <p>This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings page. For information on how to access the Settings page, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-access.html">Controlling Access for Cost Explorer</a> in the <i>Billing and Cost Management User Guide</i>.</p>
146
+ * <p>This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings
147
+ * 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 Access for Cost
148
+ * Explorer</a> in the <i>Billing and Cost Management User Guide</i>.</p>
141
149
  * </note>
142
150
  */
143
151
  getCostAndUsageWithResources(args: GetCostAndUsageWithResourcesCommandInput, options?: __HttpHandlerOptions): Promise<GetCostAndUsageWithResourcesCommandOutput>;
@@ -165,9 +173,12 @@ export declare class CostExplorer extends CostExplorerClient {
165
173
  getDimensionValues(args: GetDimensionValuesCommandInput, cb: (err: any, data?: GetDimensionValuesCommandOutput) => void): void;
166
174
  getDimensionValues(args: GetDimensionValuesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDimensionValuesCommandOutput) => void): void;
167
175
  /**
168
- * <p>Retrieves the reservation coverage for your account. This enables you to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or
169
- * Amazon Redshift usage is covered by a reservation. An organization's management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions.
170
- * For any time period, you can filter data about reservation usage by the following dimensions:</p>
176
+ * <p>Retrieves the reservation coverage for your account, which you can use to see how much of
177
+ * your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or
178
+ * Amazon Redshift usage is covered by a reservation. An organization's management account can
179
+ * see the coverage of the associated member accounts. This supports dimensions, Cost Categories,
180
+ * and nested expressions. For any time period, you can filter data about reservation usage by
181
+ * the following dimensions:</p>
171
182
  * <ul>
172
183
  * <li>
173
184
  * <p>AZ</p>
@@ -212,16 +223,22 @@ export declare class CostExplorer extends CostExplorerClient {
212
223
  getReservationCoverage(args: GetReservationCoverageCommandInput, cb: (err: any, data?: GetReservationCoverageCommandOutput) => void): void;
213
224
  getReservationCoverage(args: GetReservationCoverageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetReservationCoverageCommandOutput) => void): void;
214
225
  /**
215
- * <p>Gets recommendations for which reservations to purchase. These recommendations could help you reduce your costs.
216
- * Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing.</p>
217
- * <p>Amazon Web Services generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage
218
- * into categories that are eligible for a reservation. After Amazon Web Services has these categories, it simulates every combination of reservations
219
- * in each category of usage to identify the best number of each type of RI to purchase to maximize your estimated savings. </p>
220
- * <p>For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon) Region
221
- * and recommends that you buy size-flexible regional reservations to apply to the c4 family usage. Amazon Web Services recommends the smallest size instance
222
- * in an instance family. This makes it easier to purchase a size-flexible RI. Amazon Web Services also shows the equal number of normalized units
223
- * so that you can purchase any instance size that you want. For this example, your RI recommendation would be for <code>c4.large</code>
224
- * because that is the smallest size instance in the c4 instance family.</p>
226
+ * <p>Gets recommendations for reservation purchases. These recommendations might help you to
227
+ * reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to
228
+ * On-Demand pricing.</p>
229
+ * <p>Amazon Web Services generates your recommendations by identifying your On-Demand usage
230
+ * during a specific time period and collecting your usage into categories that are eligible for
231
+ * a reservation. After Amazon Web Services has these categories, it simulates every combination
232
+ * of reservations in each category of usage to identify the best number of each type of Reserved
233
+ * Instance (RI) to purchase to maximize your estimated savings. </p>
234
+ * <p>For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared
235
+ * tenancy, and c4 family usage in the US West (Oregon) Region and recommends that you buy
236
+ * size-flexible regional reservations to apply to the c4 family usage. Amazon Web Services
237
+ * recommends the smallest size instance in an instance family. This makes it easier to purchase
238
+ * a size-flexible Reserved Instance (RI). Amazon Web Services also shows the equal number of
239
+ * normalized units. This way, you can purchase any instance size that you want. For this
240
+ * example, your RI recommendation is for <code>c4.large</code> because that is the smallest size
241
+ * instance in the c4 instance family.</p>
225
242
  */
226
243
  getReservationPurchaseRecommendation(args: GetReservationPurchaseRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<GetReservationPurchaseRecommendationCommandOutput>;
227
244
  getReservationPurchaseRecommendation(args: GetReservationPurchaseRecommendationCommandInput, cb: (err: any, data?: GetReservationPurchaseRecommendationCommandOutput) => void): void;
@@ -239,12 +256,8 @@ export declare class CostExplorer extends CostExplorerClient {
239
256
  * help you save cost
240
257
  * by identifying idle and underutilized Amazon EC2 instances.</p>
241
258
  * <p>Recommendations are generated to either downsize or terminate instances, along with
242
- * providing savings detail and metrics. For details on calculation and function, see
243
- * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-rightsizing.html">Optimizing
244
- * Your Cost with Rightsizing
245
- * Recommendations</a>
246
- * in the <i>Billing and Cost Management User
247
- * Guide</i>.</p>
259
+ * providing savings detail and metrics. For more information about calculation and function, see
260
+ * <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>
248
261
  */
249
262
  getRightsizingRecommendation(args: GetRightsizingRecommendationCommandInput, options?: __HttpHandlerOptions): Promise<GetRightsizingRecommendationCommandOutput>;
250
263
  getRightsizingRecommendation(args: GetRightsizingRecommendationCommandInput, cb: (err: any, data?: GetRightsizingRecommendationCommandOutput) => void): void;
@@ -287,7 +300,7 @@ export declare class CostExplorer extends CostExplorerClient {
287
300
  /**
288
301
  * <p>Retrieves the Savings Plans utilization for your account across date ranges with daily or monthly granularity. Management account in an organization have access to member accounts. You can use <code>GetDimensionValues</code> in <code>SAVINGS_PLANS</code> to determine the possible dimension values.</p>
289
302
  * <note>
290
- * <p>You cannot group by any dimension values for <code>GetSavingsPlansUtilization</code>.</p>
303
+ * <p>You can't group by any dimension values for <code>GetSavingsPlansUtilization</code>.</p>
291
304
  * </note>
292
305
  */
293
306
  getSavingsPlansUtilization(args: GetSavingsPlansUtilizationCommandInput, options?: __HttpHandlerOptions): Promise<GetSavingsPlansUtilizationCommandOutput>;
@@ -316,7 +329,20 @@ export declare class CostExplorer extends CostExplorerClient {
316
329
  getUsageForecast(args: GetUsageForecastCommandInput, cb: (err: any, data?: GetUsageForecastCommandOutput) => void): void;
317
330
  getUsageForecast(args: GetUsageForecastCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUsageForecastCommandOutput) => void): void;
318
331
  /**
319
- * <p>Returns the name, ARN, <code>NumberOfRules</code> and effective dates of all Cost Categories defined in the account. You have the option to use <code>EffectiveOn</code> to return a list of Cost Categories that were active on a specific date. If there is no <code>EffectiveOn</code> specified, you’ll see Cost Categories that are effective on the current date. If Cost Category is still effective, <code>EffectiveEnd</code> is omitted in the response. <code>ListCostCategoryDefinitions</code> supports pagination. The request can have a <code>MaxResults</code> range up to 100.</p>
332
+ * <p>Get a list of cost allocation tags. All inputs in the API are optional and serve as
333
+ * filters. By default, all cost allocation tags are returned. </p>
334
+ */
335
+ listCostAllocationTags(args: ListCostAllocationTagsCommandInput, options?: __HttpHandlerOptions): Promise<ListCostAllocationTagsCommandOutput>;
336
+ listCostAllocationTags(args: ListCostAllocationTagsCommandInput, cb: (err: any, data?: ListCostAllocationTagsCommandOutput) => void): void;
337
+ listCostAllocationTags(args: ListCostAllocationTagsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCostAllocationTagsCommandOutput) => void): void;
338
+ /**
339
+ * <p>Returns the name, Amazon Resource Name (ARN), <code>NumberOfRules</code> and effective
340
+ * dates of all Cost Categories defined in the account. You have the option to use
341
+ * <code>EffectiveOn</code> to return a list of Cost Categories that were active on a specific
342
+ * date. If there is no <code>EffectiveOn</code> specified, you’ll see Cost Categories that are
343
+ * effective on the current date. If Cost Category is still effective, <code>EffectiveEnd</code>
344
+ * is omitted in the response. <code>ListCostCategoryDefinitions</code> supports pagination. The
345
+ * request can have a <code>MaxResults</code> range up to 100.</p>
320
346
  */
321
347
  listCostCategoryDefinitions(args: ListCostCategoryDefinitionsCommandInput, options?: __HttpHandlerOptions): Promise<ListCostCategoryDefinitionsCommandOutput>;
322
348
  listCostCategoryDefinitions(args: ListCostCategoryDefinitionsCommandInput, cb: (err: any, data?: ListCostCategoryDefinitionsCommandOutput) => void): void;
@@ -337,16 +363,15 @@ export declare class CostExplorer extends CostExplorerClient {
337
363
  /**
338
364
  * <p>An API operation for adding one or more tags (key-value pairs) to a resource.</p>
339
365
  * <p>You can use the <code>TagResource</code> operation with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value you specify replaces the previous value for that tag.</p>
340
- * <p>
341
- * Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.</p>
366
+ * <p>Although the maximum number of array members is 200, user-tag maximum is 50. The remaining
367
+ * are reserved for Amazon Web Services use.</p>
342
368
  */
343
369
  tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
344
370
  tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
345
371
  tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
346
372
  /**
347
- * <p>
348
- * Removes one or more tags from a resource. Specify only tag key(s) in your request. Do not specify the value.
349
- * </p>
373
+ * <p>Removes one or more tags from a resource. Specify only tag keys in your request. Don't
374
+ * specify the value. </p>
350
375
  */
351
376
  untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
352
377
  untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
@@ -364,6 +389,15 @@ export declare class CostExplorer extends CostExplorerClient {
364
389
  updateAnomalySubscription(args: UpdateAnomalySubscriptionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateAnomalySubscriptionCommandOutput>;
365
390
  updateAnomalySubscription(args: UpdateAnomalySubscriptionCommandInput, cb: (err: any, data?: UpdateAnomalySubscriptionCommandOutput) => void): void;
366
391
  updateAnomalySubscription(args: UpdateAnomalySubscriptionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAnomalySubscriptionCommandOutput) => void): void;
392
+ /**
393
+ * <p>Updates status for cost allocation tags in bulk, with maximum batch size of 20. If the tag
394
+ * status that's updated is the same as the existing tag status, the request doesn't fail.
395
+ * Instead, it doesn't have any effect on the tag status (for example, activating the active
396
+ * tag). </p>
397
+ */
398
+ updateCostAllocationTagsStatus(args: UpdateCostAllocationTagsStatusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCostAllocationTagsStatusCommandOutput>;
399
+ updateCostAllocationTagsStatus(args: UpdateCostAllocationTagsStatusCommandInput, cb: (err: any, data?: UpdateCostAllocationTagsStatusCommandOutput) => void): void;
400
+ updateCostAllocationTagsStatus(args: UpdateCostAllocationTagsStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateCostAllocationTagsStatusCommandOutput) => void): void;
367
401
  /**
368
402
  * <p>Updates an existing Cost Category. Changes made to the Cost Category rules will be used to categorize the current month’s expenses and future expenses. This won’t change categorization for the previous months.</p>
369
403
  */
@@ -31,6 +31,7 @@ import { GetSavingsPlansUtilizationCommandInput, GetSavingsPlansUtilizationComma
31
31
  import { GetSavingsPlansUtilizationDetailsCommandInput, GetSavingsPlansUtilizationDetailsCommandOutput } from "./commands/GetSavingsPlansUtilizationDetailsCommand";
32
32
  import { GetTagsCommandInput, GetTagsCommandOutput } from "./commands/GetTagsCommand";
33
33
  import { GetUsageForecastCommandInput, GetUsageForecastCommandOutput } from "./commands/GetUsageForecastCommand";
34
+ import { ListCostAllocationTagsCommandInput, ListCostAllocationTagsCommandOutput } from "./commands/ListCostAllocationTagsCommand";
34
35
  import { ListCostCategoryDefinitionsCommandInput, ListCostCategoryDefinitionsCommandOutput } from "./commands/ListCostCategoryDefinitionsCommand";
35
36
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
36
37
  import { ProvideAnomalyFeedbackCommandInput, ProvideAnomalyFeedbackCommandOutput } from "./commands/ProvideAnomalyFeedbackCommand";
@@ -38,9 +39,10 @@ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/Ta
38
39
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
39
40
  import { UpdateAnomalyMonitorCommandInput, UpdateAnomalyMonitorCommandOutput } from "./commands/UpdateAnomalyMonitorCommand";
40
41
  import { UpdateAnomalySubscriptionCommandInput, UpdateAnomalySubscriptionCommandOutput } from "./commands/UpdateAnomalySubscriptionCommand";
42
+ import { UpdateCostAllocationTagsStatusCommandInput, UpdateCostAllocationTagsStatusCommandOutput } from "./commands/UpdateCostAllocationTagsStatusCommand";
41
43
  import { UpdateCostCategoryDefinitionCommandInput, UpdateCostCategoryDefinitionCommandOutput } from "./commands/UpdateCostCategoryDefinitionCommand";
42
- export declare type ServiceInputTypes = CreateAnomalyMonitorCommandInput | CreateAnomalySubscriptionCommandInput | CreateCostCategoryDefinitionCommandInput | DeleteAnomalyMonitorCommandInput | DeleteAnomalySubscriptionCommandInput | DeleteCostCategoryDefinitionCommandInput | DescribeCostCategoryDefinitionCommandInput | GetAnomaliesCommandInput | GetAnomalyMonitorsCommandInput | GetAnomalySubscriptionsCommandInput | GetCostAndUsageCommandInput | GetCostAndUsageWithResourcesCommandInput | GetCostCategoriesCommandInput | GetCostForecastCommandInput | GetDimensionValuesCommandInput | GetReservationCoverageCommandInput | GetReservationPurchaseRecommendationCommandInput | GetReservationUtilizationCommandInput | GetRightsizingRecommendationCommandInput | GetSavingsPlansCoverageCommandInput | GetSavingsPlansPurchaseRecommendationCommandInput | GetSavingsPlansUtilizationCommandInput | GetSavingsPlansUtilizationDetailsCommandInput | GetTagsCommandInput | GetUsageForecastCommandInput | ListCostCategoryDefinitionsCommandInput | ListTagsForResourceCommandInput | ProvideAnomalyFeedbackCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnomalyMonitorCommandInput | UpdateAnomalySubscriptionCommandInput | UpdateCostCategoryDefinitionCommandInput;
43
- export declare type ServiceOutputTypes = CreateAnomalyMonitorCommandOutput | CreateAnomalySubscriptionCommandOutput | CreateCostCategoryDefinitionCommandOutput | DeleteAnomalyMonitorCommandOutput | DeleteAnomalySubscriptionCommandOutput | DeleteCostCategoryDefinitionCommandOutput | DescribeCostCategoryDefinitionCommandOutput | GetAnomaliesCommandOutput | GetAnomalyMonitorsCommandOutput | GetAnomalySubscriptionsCommandOutput | GetCostAndUsageCommandOutput | GetCostAndUsageWithResourcesCommandOutput | GetCostCategoriesCommandOutput | GetCostForecastCommandOutput | GetDimensionValuesCommandOutput | GetReservationCoverageCommandOutput | GetReservationPurchaseRecommendationCommandOutput | GetReservationUtilizationCommandOutput | GetRightsizingRecommendationCommandOutput | GetSavingsPlansCoverageCommandOutput | GetSavingsPlansPurchaseRecommendationCommandOutput | GetSavingsPlansUtilizationCommandOutput | GetSavingsPlansUtilizationDetailsCommandOutput | GetTagsCommandOutput | GetUsageForecastCommandOutput | ListCostCategoryDefinitionsCommandOutput | ListTagsForResourceCommandOutput | ProvideAnomalyFeedbackCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnomalyMonitorCommandOutput | UpdateAnomalySubscriptionCommandOutput | UpdateCostCategoryDefinitionCommandOutput;
44
+ export declare type ServiceInputTypes = CreateAnomalyMonitorCommandInput | CreateAnomalySubscriptionCommandInput | CreateCostCategoryDefinitionCommandInput | DeleteAnomalyMonitorCommandInput | DeleteAnomalySubscriptionCommandInput | DeleteCostCategoryDefinitionCommandInput | DescribeCostCategoryDefinitionCommandInput | GetAnomaliesCommandInput | GetAnomalyMonitorsCommandInput | GetAnomalySubscriptionsCommandInput | GetCostAndUsageCommandInput | GetCostAndUsageWithResourcesCommandInput | GetCostCategoriesCommandInput | GetCostForecastCommandInput | GetDimensionValuesCommandInput | GetReservationCoverageCommandInput | GetReservationPurchaseRecommendationCommandInput | GetReservationUtilizationCommandInput | GetRightsizingRecommendationCommandInput | GetSavingsPlansCoverageCommandInput | GetSavingsPlansPurchaseRecommendationCommandInput | GetSavingsPlansUtilizationCommandInput | GetSavingsPlansUtilizationDetailsCommandInput | GetTagsCommandInput | GetUsageForecastCommandInput | ListCostAllocationTagsCommandInput | ListCostCategoryDefinitionsCommandInput | ListTagsForResourceCommandInput | ProvideAnomalyFeedbackCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateAnomalyMonitorCommandInput | UpdateAnomalySubscriptionCommandInput | UpdateCostAllocationTagsStatusCommandInput | UpdateCostCategoryDefinitionCommandInput;
45
+ export declare type ServiceOutputTypes = CreateAnomalyMonitorCommandOutput | CreateAnomalySubscriptionCommandOutput | CreateCostCategoryDefinitionCommandOutput | DeleteAnomalyMonitorCommandOutput | DeleteAnomalySubscriptionCommandOutput | DeleteCostCategoryDefinitionCommandOutput | DescribeCostCategoryDefinitionCommandOutput | GetAnomaliesCommandOutput | GetAnomalyMonitorsCommandOutput | GetAnomalySubscriptionsCommandOutput | GetCostAndUsageCommandOutput | GetCostAndUsageWithResourcesCommandOutput | GetCostCategoriesCommandOutput | GetCostForecastCommandOutput | GetDimensionValuesCommandOutput | GetReservationCoverageCommandOutput | GetReservationPurchaseRecommendationCommandOutput | GetReservationUtilizationCommandOutput | GetRightsizingRecommendationCommandOutput | GetSavingsPlansCoverageCommandOutput | GetSavingsPlansPurchaseRecommendationCommandOutput | GetSavingsPlansUtilizationCommandOutput | GetSavingsPlansUtilizationDetailsCommandOutput | GetTagsCommandOutput | GetUsageForecastCommandOutput | ListCostAllocationTagsCommandOutput | ListCostCategoryDefinitionsCommandOutput | ListTagsForResourceCommandOutput | ProvideAnomalyFeedbackCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateAnomalyMonitorCommandOutput | UpdateAnomalySubscriptionCommandOutput | UpdateCostAllocationTagsStatusCommandOutput | UpdateCostCategoryDefinitionCommandOutput;
44
46
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
45
47
  /**
46
48
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -7,8 +7,12 @@ export interface DescribeCostCategoryDefinitionCommandInput extends DescribeCost
7
7
  export interface DescribeCostCategoryDefinitionCommandOutput extends DescribeCostCategoryDefinitionResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns the name, ARN, rules, definition, and effective dates of a Cost Category that's defined in the account.</p>
11
- * <p>You have the option to use <code>EffectiveOn</code> to return a Cost Category that is active on a specific date. If there is no <code>EffectiveOn</code> specified, you’ll see a Cost Category that is effective on the current date. If Cost Category is still effective, <code>EffectiveEnd</code> is omitted in the response. </p>
10
+ * <p>Returns the name, Amazon Resource Name (ARN), rules, definition, and effective dates of a
11
+ * Cost Category that's defined in the account.</p>
12
+ * <p>You have the option to use <code>EffectiveOn</code> to return a Cost Category that's
13
+ * active on a specific date. If there's no <code>EffectiveOn</code> specified, you see a Cost
14
+ * Category that's effective on the current date. If Cost Category is still effective,
15
+ * <code>EffectiveEnd</code> is omitted in the response. </p>
12
16
  * @example
13
17
  * Use a bare-bones client and the command you need to make an API call.
14
18
  * ```javascript
@@ -13,7 +13,9 @@ export interface GetCostAndUsageWithResourcesCommandOutput extends GetCostAndUsa
13
13
  * such as <code>SERVICE</code> or <code>AZ</code>, in a specific time range. For a complete list
14
14
  * 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 Amazon Elastic Compute Cloud – Compute service only.</p>
15
15
  * <note>
16
- * <p>This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings page. For information on how to access the Settings page, see <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-access.html">Controlling Access for Cost Explorer</a> in the <i>Billing and Cost Management User Guide</i>.</p>
16
+ * <p>This is an opt-in only feature. You can enable this feature from the Cost Explorer Settings
17
+ * 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 Access for Cost
18
+ * Explorer</a> in the <i>Billing and Cost Management User Guide</i>.</p>
17
19
  * </note>
18
20
  * @example
19
21
  * Use a bare-bones client and the command you need to make an API call.
@@ -7,9 +7,12 @@ export interface GetReservationCoverageCommandInput extends GetReservationCovera
7
7
  export interface GetReservationCoverageCommandOutput extends GetReservationCoverageResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Retrieves the reservation coverage for your account. This enables you to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or
11
- * Amazon Redshift usage is covered by a reservation. An organization's management account can see the coverage of the associated member accounts. This supports dimensions, Cost Categories, and nested expressions.
12
- * For any time period, you can filter data about reservation usage by the following dimensions:</p>
10
+ * <p>Retrieves the reservation coverage for your account, which you can use to see how much of
11
+ * your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or
12
+ * Amazon Redshift usage is covered by a reservation. An organization's management account can
13
+ * see the coverage of the associated member accounts. This supports dimensions, Cost Categories,
14
+ * and nested expressions. For any time period, you can filter data about reservation usage by
15
+ * the following dimensions:</p>
13
16
  * <ul>
14
17
  * <li>
15
18
  * <p>AZ</p>
@@ -7,16 +7,22 @@ export interface GetReservationPurchaseRecommendationCommandInput extends GetRes
7
7
  export interface GetReservationPurchaseRecommendationCommandOutput extends GetReservationPurchaseRecommendationResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Gets recommendations for which reservations to purchase. These recommendations could help you reduce your costs.
11
- * Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing.</p>
12
- * <p>Amazon Web Services generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage
13
- * into categories that are eligible for a reservation. After Amazon Web Services has these categories, it simulates every combination of reservations
14
- * in each category of usage to identify the best number of each type of RI to purchase to maximize your estimated savings. </p>
15
- * <p>For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon) Region
16
- * and recommends that you buy size-flexible regional reservations to apply to the c4 family usage. Amazon Web Services recommends the smallest size instance
17
- * in an instance family. This makes it easier to purchase a size-flexible RI. Amazon Web Services also shows the equal number of normalized units
18
- * so that you can purchase any instance size that you want. For this example, your RI recommendation would be for <code>c4.large</code>
19
- * because that is the smallest size instance in the c4 instance family.</p>
10
+ * <p>Gets recommendations for reservation purchases. These recommendations might help you to
11
+ * reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to
12
+ * On-Demand pricing.</p>
13
+ * <p>Amazon Web Services generates your recommendations by identifying your On-Demand usage
14
+ * during a specific time period and collecting your usage into categories that are eligible for
15
+ * a reservation. After Amazon Web Services has these categories, it simulates every combination
16
+ * of reservations in each category of usage to identify the best number of each type of Reserved
17
+ * Instance (RI) to purchase to maximize your estimated savings. </p>
18
+ * <p>For example, Amazon Web Services automatically aggregates your Amazon EC2 Linux, shared
19
+ * tenancy, and c4 family usage in the US West (Oregon) Region and recommends that you buy
20
+ * size-flexible regional reservations to apply to the c4 family usage. Amazon Web Services
21
+ * recommends the smallest size instance in an instance family. This makes it easier to purchase
22
+ * a size-flexible Reserved Instance (RI). Amazon Web Services also shows the equal number of
23
+ * normalized units. This way, you can purchase any instance size that you want. For this
24
+ * example, your RI recommendation is for <code>c4.large</code> because that is the smallest size
25
+ * instance in the c4 instance family.</p>
20
26
  * @example
21
27
  * Use a bare-bones client and the command you need to make an API call.
22
28
  * ```javascript
@@ -11,12 +11,8 @@ export interface GetRightsizingRecommendationCommandOutput extends GetRightsizin
11
11
  * help you save cost
12
12
  * by identifying idle and underutilized Amazon EC2 instances.</p>
13
13
  * <p>Recommendations are generated to either downsize or terminate instances, along with
14
- * providing savings detail and metrics. For details on calculation and function, see
15
- * <a href="https://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/ce-rightsizing.html">Optimizing
16
- * Your Cost with Rightsizing
17
- * Recommendations</a>
18
- * in the <i>Billing and Cost Management User
19
- * Guide</i>.</p>
14
+ * providing savings detail and metrics. For more information about calculation and function, see
15
+ * <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>
20
16
  * @example
21
17
  * Use a bare-bones client and the command you need to make an API call.
22
18
  * ```javascript
@@ -9,7 +9,7 @@ export interface GetSavingsPlansUtilizationCommandOutput extends GetSavingsPlans
9
9
  /**
10
10
  * <p>Retrieves the Savings Plans utilization for your account across date ranges with daily or monthly granularity. Management account in an organization have access to member accounts. You can use <code>GetDimensionValues</code> in <code>SAVINGS_PLANS</code> to determine the possible dimension values.</p>
11
11
  * <note>
12
- * <p>You cannot group by any dimension values for <code>GetSavingsPlansUtilization</code>.</p>
12
+ * <p>You can't group by any dimension values for <code>GetSavingsPlansUtilization</code>.</p>
13
13
  * </note>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
4
+ import { ListCostAllocationTagsRequest, ListCostAllocationTagsResponse } from "../models/models_0";
5
+ export interface ListCostAllocationTagsCommandInput extends ListCostAllocationTagsRequest {
6
+ }
7
+ export interface ListCostAllocationTagsCommandOutput extends ListCostAllocationTagsResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Get a list of cost allocation tags. All inputs in the API are optional and serve as
11
+ * filters. By default, all cost allocation tags are returned. </p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { CostExplorerClient, ListCostAllocationTagsCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
16
+ * // const { CostExplorerClient, ListCostAllocationTagsCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
17
+ * const client = new CostExplorerClient(config);
18
+ * const command = new ListCostAllocationTagsCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link ListCostAllocationTagsCommandInput} for command's `input` shape.
23
+ * @see {@link ListCostAllocationTagsCommandOutput} for command's `response` shape.
24
+ * @see {@link CostExplorerClientResolvedConfig | config} for CostExplorerClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class ListCostAllocationTagsCommand extends $Command<ListCostAllocationTagsCommandInput, ListCostAllocationTagsCommandOutput, CostExplorerClientResolvedConfig> {
28
+ readonly input: ListCostAllocationTagsCommandInput;
29
+ constructor(input: ListCostAllocationTagsCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListCostAllocationTagsCommandInput, ListCostAllocationTagsCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -7,7 +7,13 @@ export interface ListCostCategoryDefinitionsCommandInput extends ListCostCategor
7
7
  export interface ListCostCategoryDefinitionsCommandOutput extends ListCostCategoryDefinitionsResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>Returns the name, ARN, <code>NumberOfRules</code> and effective dates of all Cost Categories defined in the account. You have the option to use <code>EffectiveOn</code> to return a list of Cost Categories that were active on a specific date. If there is no <code>EffectiveOn</code> specified, you’ll see Cost Categories that are effective on the current date. If Cost Category is still effective, <code>EffectiveEnd</code> is omitted in the response. <code>ListCostCategoryDefinitions</code> supports pagination. The request can have a <code>MaxResults</code> range up to 100.</p>
10
+ * <p>Returns the name, Amazon Resource Name (ARN), <code>NumberOfRules</code> and effective
11
+ * dates of all Cost Categories defined in the account. You have the option to use
12
+ * <code>EffectiveOn</code> to return a list of Cost Categories that were active on a specific
13
+ * date. If there is no <code>EffectiveOn</code> specified, you’ll see Cost Categories that are
14
+ * effective on the current date. If Cost Category is still effective, <code>EffectiveEnd</code>
15
+ * is omitted in the response. <code>ListCostCategoryDefinitions</code> supports pagination. The
16
+ * request can have a <code>MaxResults</code> range up to 100.</p>
11
17
  * @example
12
18
  * Use a bare-bones client and the command you need to make an API call.
13
19
  * ```javascript
@@ -9,8 +9,8 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
9
9
  /**
10
10
  * <p>An API operation for adding one or more tags (key-value pairs) to a resource.</p>
11
11
  * <p>You can use the <code>TagResource</code> operation with a resource that already has tags. If you specify a new tag key for the resource, this tag is appended to the list of tags associated with the resource. If you specify a tag key that is already associated with the resource, the new tag value you specify replaces the previous value for that tag.</p>
12
- * <p>
13
- * Although the maximum number of array members is 200, user-tag maximum is 50. The remaining are reserved for Amazon Web Services use.</p>
12
+ * <p>Although the maximum number of array members is 200, user-tag maximum is 50. The remaining
13
+ * are reserved for Amazon Web Services use.</p>
14
14
  * @example
15
15
  * Use a bare-bones client and the command you need to make an API call.
16
16
  * ```javascript
@@ -7,9 +7,8 @@ export interface UntagResourceCommandInput extends UntagResourceRequest {
7
7
  export interface UntagResourceCommandOutput extends UntagResourceResponse, __MetadataBearer {
8
8
  }
9
9
  /**
10
- * <p>
11
- * Removes one or more tags from a resource. Specify only tag key(s) in your request. Do not specify the value.
12
- * </p>
10
+ * <p>Removes one or more tags from a resource. Specify only tag keys in your request. Don't
11
+ * specify the value. </p>
13
12
  * @example
14
13
  * Use a bare-bones client and the command you need to make an API call.
15
14
  * ```javascript
@@ -0,0 +1,38 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { CostExplorerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CostExplorerClient";
4
+ import { UpdateCostAllocationTagsStatusRequest, UpdateCostAllocationTagsStatusResponse } from "../models/models_0";
5
+ export interface UpdateCostAllocationTagsStatusCommandInput extends UpdateCostAllocationTagsStatusRequest {
6
+ }
7
+ export interface UpdateCostAllocationTagsStatusCommandOutput extends UpdateCostAllocationTagsStatusResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Updates status for cost allocation tags in bulk, with maximum batch size of 20. If the tag
11
+ * status that's updated is the same as the existing tag status, the request doesn't fail.
12
+ * Instead, it doesn't have any effect on the tag status (for example, activating the active
13
+ * tag). </p>
14
+ * @example
15
+ * Use a bare-bones client and the command you need to make an API call.
16
+ * ```javascript
17
+ * import { CostExplorerClient, UpdateCostAllocationTagsStatusCommand } from "@aws-sdk/client-cost-explorer"; // ES Modules import
18
+ * // const { CostExplorerClient, UpdateCostAllocationTagsStatusCommand } = require("@aws-sdk/client-cost-explorer"); // CommonJS import
19
+ * const client = new CostExplorerClient(config);
20
+ * const command = new UpdateCostAllocationTagsStatusCommand(input);
21
+ * const response = await client.send(command);
22
+ * ```
23
+ *
24
+ * @see {@link UpdateCostAllocationTagsStatusCommandInput} for command's `input` shape.
25
+ * @see {@link UpdateCostAllocationTagsStatusCommandOutput} for command's `response` shape.
26
+ * @see {@link CostExplorerClientResolvedConfig | config} for CostExplorerClient's `config` shape.
27
+ *
28
+ */
29
+ export declare class UpdateCostAllocationTagsStatusCommand extends $Command<UpdateCostAllocationTagsStatusCommandInput, UpdateCostAllocationTagsStatusCommandOutput, CostExplorerClientResolvedConfig> {
30
+ readonly input: UpdateCostAllocationTagsStatusCommandInput;
31
+ constructor(input: UpdateCostAllocationTagsStatusCommandInput);
32
+ /**
33
+ * @internal
34
+ */
35
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: CostExplorerClientResolvedConfig, options?: __HttpHandlerOptions): Handler<UpdateCostAllocationTagsStatusCommandInput, UpdateCostAllocationTagsStatusCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -23,6 +23,7 @@ export * from "./GetSavingsPlansUtilizationCommand";
23
23
  export * from "./GetSavingsPlansUtilizationDetailsCommand";
24
24
  export * from "./GetTagsCommand";
25
25
  export * from "./GetUsageForecastCommand";
26
+ export * from "./ListCostAllocationTagsCommand";
26
27
  export * from "./ListCostCategoryDefinitionsCommand";
27
28
  export * from "./ListTagsForResourceCommand";
28
29
  export * from "./ProvideAnomalyFeedbackCommand";
@@ -30,4 +31,5 @@ export * from "./TagResourceCommand";
30
31
  export * from "./UntagResourceCommand";
31
32
  export * from "./UpdateAnomalyMonitorCommand";
32
33
  export * from "./UpdateAnomalySubscriptionCommand";
34
+ export * from "./UpdateCostAllocationTagsStatusCommand";
33
35
  export * from "./UpdateCostCategoryDefinitionCommand";