Skip to content

Commit a4bfd1f

Browse files
author
awstools
committed
feat(client-cost-explorer): This release is to support retroactive Cost Categories. The new field will enable you to retroactively apply new and existing cost category rules to previous months.
1 parent 192b01b commit a4bfd1f

File tree

3 files changed

+995
-720
lines changed

3 files changed

+995
-720
lines changed

clients/client-cost-explorer/src/models/models_0.ts

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export enum Dimension {
224224
export interface DimensionValues {
225225
/**
226226
* <p>The names of the metadata types that you can use to filter and group your results. For
227-
* example, <code>AZ</code> returns a list of Availability Zones.</p>
227+
* example, <code>AZ</code> returns a list of Availability Zones. <code>LINK_ACCOUNT_NAME</code> and <code>SERVICE_CODE</code> can only be used in <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/AAPI_CostCategoryRule.html">CostCategoryRule</a>.</p>
228228
*/
229229
Key?: Dimension | string;
230230

@@ -248,7 +248,7 @@ export interface DimensionValues {
248248
* <p>If <code>Values</code> and <code>Key</code> aren't specified, the <code>ABSENT</code>
249249
* <code>MatchOption</code> is applied to all tags. That is, it's filtered on resources
250250
* with no tags.</p>
251-
* <p>If <code>Values</code> is provided and <code>Key</code> isn't specified, the
251+
* <p>If <code>Key</code> is provided and <code>Values</code> isn't specified, the
252252
* <code>ABSENT</code>
253253
* <code>MatchOption</code> is applied to the tag <code>Key</code> only. That is, it's
254254
* filtered on resources without the given tag key.</p>
@@ -586,7 +586,7 @@ export interface CreateCostCategoryDefinitionResponse {
586586
CostCategoryArn?: string;
587587

588588
/**
589-
* <p>The Cost Category's effective start date. </p>
589+
* <p>The Cost Category's effective start date. It can only be a billing start date (first day of the month).</p>
590590
*/
591591
EffectiveStart?: string;
592592
}
@@ -1271,7 +1271,7 @@ export interface GetDimensionValuesResponse {
12711271
* <p>RECORD_TYPE - The different types of charges such as RI fees, usage costs, tax refunds, and credits.</p>
12721272
* </li>
12731273
* <li>
1274-
* <p>RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only available for last 14 days for EC2-Compute Service.</p>
1274+
* <p>RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only available for last 14 days for EC2-Compute Service. You can opt-in by enabling <code>Hourly</code> and <code>Resource Level Data</code> in Cost Management Console preferences.</p>
12751275
* </li>
12761276
* </ul>
12771277
* <p>If you set the context to <code>RESERVATIONS</code>, you can use the following
@@ -3652,7 +3652,7 @@ export interface UpdateCostCategoryDefinitionResponse {
36523652
CostCategoryArn?: string;
36533653

36543654
/**
3655-
* <p>The Cost Category's effective start date. </p>
3655+
* <p>The Cost Category's effective start date. It can only be a billing start date (first day of the month).</p>
36563656
*/
36573657
EffectiveStart?: string;
36583658
}
@@ -4347,8 +4347,7 @@ export interface GetDimensionValuesRequest {
43474347

43484348
/**
43494349
* <p>The name of the dimension. Each <code>Dimension</code> is available for a different <code>Context</code>.
4350-
* For more information, see <code>Context</code>.
4351-
*
4350+
* For more information, see <code>Context</code>. <code>LINK_ACCOUNT_NAME</code> and <code>SERVICE_CODE</code> can only be used in <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/AAPI_CostCategoryRule.html">CostCategoryRule</a>.
43524351
* </p>
43534352
*/
43544353
Dimension: Dimension | string | undefined;
@@ -4442,9 +4441,8 @@ export interface GetDimensionValuesRequest {
44424441
* <p>REGION - The Amazon Web Services Region.</p>
44434442
* </li>
44444443
* <li>
4445-
* <p>RECORD_TYPE - The different types of charges such as
4446-
* Reserved
4447-
* Instance (RI) fees, usage costs, tax refunds, and credits.</p>
4444+
* <p>RECORD_TYPE - The different types of charges such as Reserved Instance (RI) fees, usage
4445+
* costs, tax refunds, and credits.</p>
44484446
* </li>
44494447
* <li>
44504448
* <p>RESOURCE_ID - The unique identifier of the resource. ResourceId is an opt-in feature only available for last 14 days for EC2-Compute Service.</p>
@@ -5899,12 +5897,12 @@ export interface CostCategory {
58995897
CostCategoryArn: string | undefined;
59005898

59015899
/**
5902-
* <p>The effective state data of your Cost Category.</p>
5900+
* <p>The effective start date of your Cost Category.</p>
59035901
*/
59045902
EffectiveStart: string | undefined;
59055903

59065904
/**
5907-
* <p>The effective end data of your Cost Category.</p>
5905+
* <p>The effective end date of your Cost Category.</p>
59085906
*/
59095907
EffectiveEnd?: string;
59105908

@@ -5950,6 +5948,11 @@ export interface CreateCostCategoryDefinitionRequest {
59505948
*/
59515949
Name: string | undefined;
59525950

5951+
/**
5952+
* <p>The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.</p>
5953+
*/
5954+
EffectiveStart?: string;
5955+
59535956
/**
59545957
* <p>The rule schema version in this particular Cost Category.</p>
59555958
*/
@@ -6027,6 +6030,11 @@ export interface UpdateCostCategoryDefinitionRequest {
60276030
*/
60286031
CostCategoryArn: string | undefined;
60296032

6033+
/**
6034+
* <p>The Cost Category's effective start date. It can only be a billing start date (first day of the month). If the date isn't provided, it's the first day of the current month. Dates can't be before the previous twelve months, or in the future.</p>
6035+
*/
6036+
EffectiveStart?: string;
6037+
60306038
/**
60316039
* <p>The rule schema version in this particular Cost Category.</p>
60326040
*/

clients/client-cost-explorer/src/protocols/Aws_json1_1.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2706,6 +2706,7 @@ const serializeAws_json1_1CreateCostCategoryDefinitionRequest = (
27062706
): any => {
27072707
return {
27082708
...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
2709+
...(input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart }),
27092710
...(input.Name != null && { Name: input.Name }),
27102711
...(input.ResourceTags != null && {
27112712
ResourceTags: serializeAws_json1_1ResourceTagList(input.ResourceTags, context),
@@ -3295,6 +3296,7 @@ const serializeAws_json1_1UpdateCostCategoryDefinitionRequest = (
32953296
return {
32963297
...(input.CostCategoryArn != null && { CostCategoryArn: input.CostCategoryArn }),
32973298
...(input.DefaultValue != null && { DefaultValue: input.DefaultValue }),
3299+
...(input.EffectiveStart != null && { EffectiveStart: input.EffectiveStart }),
32983300
...(input.RuleVersion != null && { RuleVersion: input.RuleVersion }),
32993301
...(input.Rules != null && { Rules: serializeAws_json1_1CostCategoryRulesList(input.Rules, context) }),
33003302
...(input.SplitChargeRules != null && {

0 commit comments

Comments
 (0)