Skip to content

Commit 547852b

Browse files
author
AWS
committed
AWS Cost Explorer Service Update: Adds support for backfill of cost allocation tags, with new StartCostAllocationTagBackfill and ListCostAllocationTagBackfillHistory API.
1 parent 1e0a110 commit 547852b

File tree

3 files changed

+133
-0
lines changed

3 files changed

+133
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Cost Explorer Service",
4+
"contributor": "",
5+
"description": "Adds support for backfill of cost allocation tags, with new StartCostAllocationTagBackfill and ListCostAllocationTagBackfillHistory API."
6+
}

services/costexplorer/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
"output_token": "NextToken",
1111
"limit_key": "MaxResults"
1212
},
13+
"ListCostAllocationTagBackfillHistory": {
14+
"input_token": "NextToken",
15+
"output_token": "NextToken",
16+
"limit_key": "MaxResults"
17+
},
1318
"ListCostAllocationTags": {
1419
"input_token": "NextToken",
1520
"output_token": "NextToken",

services/costexplorer/src/main/resources/codegen-resources/service-2.json

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,20 @@
414414
],
415415
"documentation":"<p>Retrieves a forecast for how much Amazon Web Services predicts that you will use over the forecast time period that you select, based on your past usage. </p>"
416416
},
417+
"ListCostAllocationTagBackfillHistory":{
418+
"name":"ListCostAllocationTagBackfillHistory",
419+
"http":{
420+
"method":"POST",
421+
"requestUri":"/"
422+
},
423+
"input":{"shape":"ListCostAllocationTagBackfillHistoryRequest"},
424+
"output":{"shape":"ListCostAllocationTagBackfillHistoryResponse"},
425+
"errors":[
426+
{"shape":"LimitExceededException"},
427+
{"shape":"InvalidNextTokenException"}
428+
],
429+
"documentation":"<p> Retrieves a list of your historical cost allocation tag backfill requests. </p>"
430+
},
417431
"ListCostAllocationTags":{
418432
"name":"ListCostAllocationTags",
419433
"http":{
@@ -483,6 +497,20 @@
483497
],
484498
"documentation":"<p>Modifies the feedback property of a given cost anomaly. </p>"
485499
},
500+
"StartCostAllocationTagBackfill":{
501+
"name":"StartCostAllocationTagBackfill",
502+
"http":{
503+
"method":"POST",
504+
"requestUri":"/"
505+
},
506+
"input":{"shape":"StartCostAllocationTagBackfillRequest"},
507+
"output":{"shape":"StartCostAllocationTagBackfillResponse"},
508+
"errors":[
509+
{"shape":"LimitExceededException"},
510+
{"shape":"BackfillLimitExceededException"}
511+
],
512+
"documentation":"<p> Request a cost allocation tag backfill. This will backfill the activation status (either <code>active</code> or <code>inactive</code>) for all tag keys from <code>para:BackfillFrom</code> up to the when this request is made.</p> <p>You can request a backfill once every 24 hours. </p>"
513+
},
486514
"StartSavingsPlansPurchaseRecommendationGeneration":{
487515
"name":"StartSavingsPlansPurchaseRecommendationGeneration",
488516
"http":{
@@ -819,6 +847,14 @@
819847
"key":{"shape":"AttributeType"},
820848
"value":{"shape":"AttributeValue"}
821849
},
850+
"BackfillLimitExceededException":{
851+
"type":"structure",
852+
"members":{
853+
"Message":{"shape":"ErrorMessage"}
854+
},
855+
"documentation":"<p> A request to backfill is already in progress. Once the previous request is complete, you can create another request. </p>",
856+
"exception":true
857+
},
822858
"BillExpirationException":{
823859
"type":"structure",
824860
"members":{
@@ -866,6 +902,46 @@
866902
},
867903
"documentation":"<p>The cost allocation tag structure. This includes detailed metadata for the <code>CostAllocationTag</code> object. </p>"
868904
},
905+
"CostAllocationTagBackfillRequest":{
906+
"type":"structure",
907+
"members":{
908+
"BackfillFrom":{
909+
"shape":"ZonedDateTime",
910+
"documentation":"<p> The date the backfill starts from. </p>"
911+
},
912+
"RequestedAt":{
913+
"shape":"ZonedDateTime",
914+
"documentation":"<p> The time when the backfill was requested. </p>"
915+
},
916+
"CompletedAt":{
917+
"shape":"ZonedDateTime",
918+
"documentation":"<p> The backfill completion time. </p>"
919+
},
920+
"BackfillStatus":{
921+
"shape":"CostAllocationTagBackfillStatus",
922+
"documentation":"<p> The status of the cost allocation tag backfill request. </p>"
923+
},
924+
"LastUpdatedAt":{
925+
"shape":"ZonedDateTime",
926+
"documentation":"<p> The time when the backfill status was last updated. </p>"
927+
}
928+
},
929+
"documentation":"<p> The cost allocation tag backfill request structure that contains metadata and details of a certain backfill.</p>"
930+
},
931+
"CostAllocationTagBackfillRequestList":{
932+
"type":"list",
933+
"member":{"shape":"CostAllocationTagBackfillRequest"},
934+
"max":1000,
935+
"min":0
936+
},
937+
"CostAllocationTagBackfillStatus":{
938+
"type":"string",
939+
"enum":[
940+
"SUCCEEDED",
941+
"PROCESSING",
942+
"FAILED"
943+
]
944+
},
869945
"CostAllocationTagKeyList":{
870946
"type":"list",
871947
"member":{"shape":"TagKey"},
@@ -3078,6 +3154,33 @@
30783154
"documentation":"<p>You made too many calls in a short period of time. Try again later.</p>",
30793155
"exception":true
30803156
},
3157+
"ListCostAllocationTagBackfillHistoryRequest":{
3158+
"type":"structure",
3159+
"members":{
3160+
"NextToken":{
3161+
"shape":"NextPageToken",
3162+
"documentation":"<p> The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size. </p>"
3163+
},
3164+
"MaxResults":{
3165+
"shape":"CostAllocationTagsMaxResults",
3166+
"documentation":"<p> The maximum number of objects that are returned for this request. </p>",
3167+
"box":true
3168+
}
3169+
}
3170+
},
3171+
"ListCostAllocationTagBackfillHistoryResponse":{
3172+
"type":"structure",
3173+
"members":{
3174+
"BackfillRequests":{
3175+
"shape":"CostAllocationTagBackfillRequestList",
3176+
"documentation":"<p> The list of historical cost allocation tag backfill requests. </p>"
3177+
},
3178+
"NextToken":{
3179+
"shape":"NextPageToken",
3180+
"documentation":"<p> The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size. </p>"
3181+
}
3182+
}
3183+
},
30813184
"ListCostAllocationTagsRequest":{
30823185
"type":"structure",
30833186
"members":{
@@ -4638,6 +4741,25 @@
46384741
"DESCENDING"
46394742
]
46404743
},
4744+
"StartCostAllocationTagBackfillRequest":{
4745+
"type":"structure",
4746+
"required":["BackfillFrom"],
4747+
"members":{
4748+
"BackfillFrom":{
4749+
"shape":"ZonedDateTime",
4750+
"documentation":"<p> The date you want the backfill to start from. The date can only be a first day of the month (a billing start date). Dates can't precede the previous twelve months, or in the future.</p>"
4751+
}
4752+
}
4753+
},
4754+
"StartCostAllocationTagBackfillResponse":{
4755+
"type":"structure",
4756+
"members":{
4757+
"BackfillRequest":{
4758+
"shape":"CostAllocationTagBackfillRequest",
4759+
"documentation":"<p> An object containing detailed metadata of your new backfill request. </p>"
4760+
}
4761+
}
4762+
},
46414763
"StartSavingsPlansPurchaseRecommendationGenerationRequest":{
46424764
"type":"structure",
46434765
"members":{

0 commit comments

Comments
 (0)