Skip to content

Commit 1b063b8

Browse files
author
AWS
committed
AWS Cost Explorer Service Update: This release introduces the new API 'GetApproximateUsageRecords', which retrieves estimated usage records for hourly granularity or resource-level data at daily granularity.
1 parent 2618c27 commit 1b063b8

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-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": "This release introduces the new API 'GetApproximateUsageRecords', which retrieves estimated usage records for hourly granularity or resource-level data at daily granularity."
6+
}

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,20 @@
155155
],
156156
"documentation":"<p>Retrieves the cost anomaly subscription objects for your account. You can filter using a list of cost anomaly monitor Amazon Resource Names (ARNs). </p>"
157157
},
158+
"GetApproximateUsageRecords":{
159+
"name":"GetApproximateUsageRecords",
160+
"http":{
161+
"method":"POST",
162+
"requestUri":"/"
163+
},
164+
"input":{"shape":"GetApproximateUsageRecordsRequest"},
165+
"output":{"shape":"GetApproximateUsageRecordsResponse"},
166+
"errors":[
167+
{"shape":"LimitExceededException"},
168+
{"shape":"DataUnavailableException"}
169+
],
170+
"documentation":"<p>Retrieves estimated usage records for hourly granularity or resource-level data at daily granularity.</p>"
171+
},
158172
"GetCostAndUsage":{
159173
"name":"GetCostAndUsage",
160174
"http":{
@@ -780,6 +794,18 @@
780794
"type":"list",
781795
"member":{"shape":"AnomalySubscription"}
782796
},
797+
"ApproximateUsageRecordsPerService":{
798+
"type":"map",
799+
"key":{"shape":"GenericString"},
800+
"value":{"shape":"NonNegativeLong"}
801+
},
802+
"ApproximationDimension":{
803+
"type":"string",
804+
"enum":[
805+
"SERVICE",
806+
"RESOURCE"
807+
]
808+
},
783809
"Arn":{
784810
"type":"string",
785811
"max":2048,
@@ -2063,6 +2089,44 @@
20632089
}
20642090
}
20652091
},
2092+
"GetApproximateUsageRecordsRequest":{
2093+
"type":"structure",
2094+
"required":[
2095+
"Granularity",
2096+
"ApproximationDimension"
2097+
],
2098+
"members":{
2099+
"Granularity":{
2100+
"shape":"Granularity",
2101+
"documentation":"<p>How granular you want the data to be. You can enable data at hourly or daily granularity.</p>"
2102+
},
2103+
"Services":{
2104+
"shape":"UsageServices",
2105+
"documentation":"<p>The service metadata for the service or services you want to query. If not specified, all elements are returned.</p>"
2106+
},
2107+
"ApproximationDimension":{
2108+
"shape":"ApproximationDimension",
2109+
"documentation":"<p>The service to evaluate for the usage records. You can choose resource-level data at daily granularity, or hourly granularity with or without resource-level data.</p>"
2110+
}
2111+
}
2112+
},
2113+
"GetApproximateUsageRecordsResponse":{
2114+
"type":"structure",
2115+
"members":{
2116+
"Services":{
2117+
"shape":"ApproximateUsageRecordsPerService",
2118+
"documentation":"<p>The service metadata for the service or services in the response.</p>"
2119+
},
2120+
"TotalRecords":{
2121+
"shape":"NonNegativeLong",
2122+
"documentation":"<p>The total number of usage records for all services in the services list.</p>"
2123+
},
2124+
"LookbackPeriod":{
2125+
"shape":"DateInterval",
2126+
"documentation":"<p>The lookback period that's used for the estimation.</p>"
2127+
}
2128+
}
2129+
},
20662130
"GetCostAndUsageRequest":{
20672131
"type":"structure",
20682132
"required":[
@@ -3297,6 +3361,10 @@
32973361
"type":"integer",
32983362
"min":0
32993363
},
3364+
"NonNegativeLong":{
3365+
"type":"long",
3366+
"min":0
3367+
},
33003368
"NullableNonNegativeDouble":{
33013369
"type":"double",
33023370
"min":0.0
@@ -4995,6 +5063,10 @@
49955063
}
49965064
}
49975065
},
5066+
"UsageServices":{
5067+
"type":"list",
5068+
"member":{"shape":"GenericString"}
5069+
},
49985070
"UtilizationByTime":{
49995071
"type":"structure",
50005072
"members":{

0 commit comments

Comments
 (0)