Skip to content

Commit 4e81e59

Browse files
author
awstools
committed
feat(client-cost-explorer): This release adds the LastUpdatedDate and LastUsedDate timestamps to help you manage your cost allocation tags.
1 parent 736918d commit 4e81e59

File tree

5 files changed

+266
-276
lines changed

5 files changed

+266
-276
lines changed

clients/client-cost-explorer/src/commands/GetSavingsPlanPurchaseRecommendationDetailsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface GetSavingsPlanPurchaseRecommendationDetailsCommandOutput
4646
/**
4747
* @public
4848
* <p>Retrieves the details for a Savings Plan recommendation. These details include the hourly
49-
* data-points that construct the new cost, coverage, and utilization charts.</p>
49+
* data-points that construct the cost, coverage, and utilization charts.</p>
5050
* @example
5151
* Use a bare-bones client and the command you need to make an API call.
5252
* ```javascript

clients/client-cost-explorer/src/commands/ListCostAllocationTagsCommand.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ export interface ListCostAllocationTagsCommandOutput extends ListCostAllocationT
6161
* // TagKey: "STRING_VALUE", // required
6262
* // Type: "AWSGenerated" || "UserDefined", // required
6363
* // Status: "Active" || "Inactive", // required
64+
* // LastUpdatedDate: "STRING_VALUE",
65+
* // LastUsedDate: "STRING_VALUE",
6466
* // },
6567
* // ],
6668
* // NextToken: "STRING_VALUE",

clients/client-cost-explorer/src/endpoint/ruleset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ r={[w]:"booleanEquals",[x]:[true,{[w]:"getAttr",[x]:[{[y]:e},"supportsDualStack"
3131
s=[k],
3232
t=[l],
3333
u=[{[y]:"Region"}];
34-
const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[w]:a,[x]:[j]}],type:b,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{type:b,rules:[{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:j,properties:m,headers:m},type:d}]}]},{type:b,rules:[{conditions:[{[w]:a,[x]:u}],type:b,rules:[{conditions:[{[w]:"aws.partition",[x]:u,assign:e}],type:b,rules:[{conditions:[{[w]:f,[x]:[n,"aws"]},o,p],endpoint:{url:"https://ce.us-east-1.amazonaws.com",properties:{authSchemes:[{name:g,signingName:"ce",signingRegion:"us-east-1"}]},headers:m},type:d},{conditions:[{[w]:f,[x]:[n,"aws-cn"]},o,p],endpoint:{url:"https://ce.cn-northwest-1.amazonaws.com.cn",properties:{authSchemes:[{name:g,signingName:"ce",signingRegion:"cn-northwest-1"}]},headers:m},type:d},{conditions:[k,l],type:b,rules:[{conditions:[q,r],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:s,type:b,rules:[{conditions:[q],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ce-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:t,type:b,rules:[{conditions:[r],type:b,rules:[{type:b,rules:[{endpoint:{url:"https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{type:b,rules:[{endpoint:{url:"https://ce.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]}]},{error:"Invalid Configuration: Missing Region",type:c}]}]};
34+
const _data={version:"1.0",parameters:{Region:h,UseDualStack:i,UseFIPS:i,Endpoint:h},rules:[{conditions:[{[w]:a,[x]:[j]}],type:b,rules:[{conditions:s,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:c},{conditions:t,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:c},{endpoint:{url:j,properties:m,headers:m},type:d}]},{conditions:[{[w]:a,[x]:u}],type:b,rules:[{conditions:[{[w]:"aws.partition",[x]:u,assign:e}],type:b,rules:[{conditions:[{[w]:f,[x]:[n,"aws"]},o,p],endpoint:{url:"https://ce.us-east-1.amazonaws.com",properties:{authSchemes:[{name:g,signingName:"ce",signingRegion:"us-east-1"}]},headers:m},type:d},{conditions:[{[w]:f,[x]:[n,"aws-cn"]},o,p],endpoint:{url:"https://ce.cn-northwest-1.amazonaws.com.cn",properties:{authSchemes:[{name:g,signingName:"ce",signingRegion:"cn-northwest-1"}]},headers:m},type:d},{conditions:[k,l],type:b,rules:[{conditions:[q,r],type:b,rules:[{endpoint:{url:"https://ce-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:c}]},{conditions:s,type:b,rules:[{conditions:[q],type:b,rules:[{endpoint:{url:"https://ce-fips.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]},{error:"FIPS is enabled but this partition does not support FIPS",type:c}]},{conditions:t,type:b,rules:[{conditions:[r],type:b,rules:[{endpoint:{url:"https://ce.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:m,headers:m},type:d}]},{error:"DualStack is enabled but this partition does not support DualStack",type:c}]},{endpoint:{url:"https://ce.{Region}.{PartitionResult#dnsSuffix}",properties:m,headers:m},type:d}]}]},{error:"Invalid Configuration: Missing Region",type:c}]};
3535
export const ruleSet: RuleSetObject = _data;

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4460,6 +4460,18 @@ export interface CostAllocationTag {
44604460
* <p>The status of a cost allocation tag. </p>
44614461
*/
44624462
Status: CostAllocationTagStatus | string | undefined;
4463+
4464+
/**
4465+
* @public
4466+
* <p>The last date that the tag was either activated or deactivated.</p>
4467+
*/
4468+
LastUpdatedDate?: string;
4469+
4470+
/**
4471+
* @public
4472+
* <p>The last month that the tag was used on an Amazon Web Services resource.</p>
4473+
*/
4474+
LastUsedDate?: string;
44634475
}
44644476

44654477
/**

0 commit comments

Comments
 (0)