Skip to content

Commit

Permalink
feat(client-cost-explorer): This release adds the LastUpdatedDate and…
Browse files Browse the repository at this point in the history
… LastUsedDate timestamps to help you manage your cost allocation tags.
  • Loading branch information
awstools committed Aug 22, 2023
1 parent 736918d commit 4e81e59
Show file tree
Hide file tree
Showing 5 changed files with 266 additions and 276 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface GetSavingsPlanPurchaseRecommendationDetailsCommandOutput
/**
* @public
* <p>Retrieves the details for a Savings Plan recommendation. These details include the hourly
* data-points that construct the new cost, coverage, and utilization charts.</p>
* data-points that construct the cost, coverage, and utilization charts.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export interface ListCostAllocationTagsCommandOutput extends ListCostAllocationT
* // TagKey: "STRING_VALUE", // required
* // Type: "AWSGenerated" || "UserDefined", // required
* // Status: "Active" || "Inactive", // required
* // LastUpdatedDate: "STRING_VALUE",
* // LastUsedDate: "STRING_VALUE",
* // },
* // ],
* // NextToken: "STRING_VALUE",
Expand Down
2 changes: 1 addition & 1 deletion clients/client-cost-explorer/src/endpoint/ruleset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ r={[w]:"booleanEquals",[x]:[true,{[w]:"getAttr",[x]:[{[y]:e},"supportsDualStack"
s=[k],
t=[l],
u=[{[y]:"Region"}];
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}]}]};
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}]};
export const ruleSet: RuleSetObject = _data;
12 changes: 12 additions & 0 deletions clients/client-cost-explorer/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4460,6 +4460,18 @@ export interface CostAllocationTag {
* <p>The status of a cost allocation tag. </p>
*/
Status: CostAllocationTagStatus | string | undefined;

/**
* @public
* <p>The last date that the tag was either activated or deactivated.</p>
*/
LastUpdatedDate?: string;

/**
* @public
* <p>The last month that the tag was used on an Amazon Web Services resource.</p>
*/
LastUsedDate?: string;
}

/**
Expand Down
Loading

0 comments on commit 4e81e59

Please sign in to comment.