UNPKG

54.1 kBTypeScriptView Raw
1import {Request} from '../lib/request';
2import {Response} from '../lib/response';
3import {AWSError} from '../lib/error';
4import {Service} from '../lib/service';
5import {ServiceConfigurationOptions} from '../lib/service';
6import {ConfigBase as Config} from '../lib/config';
7interface Blob {}
8declare class CostExplorer extends Service {
9 /**
10 * Constructs a service object. This object has one method for each API operation.
11 */
12 constructor(options?: CostExplorer.Types.ClientConfiguration)
13 config: Config & CostExplorer.Types.ClientConfiguration;
14 /**
15 * Retrieves cost and usage metrics for your account. You can specify which cost and usage-related metric, such as BlendedCosts or UsageQuantity, that you want the request to return. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Master accounts in an organization in AWS Organizations have access to all member accounts.
16 */
17 getCostAndUsage(params: CostExplorer.Types.GetCostAndUsageRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetCostAndUsageResponse) => void): Request<CostExplorer.Types.GetCostAndUsageResponse, AWSError>;
18 /**
19 * Retrieves cost and usage metrics for your account. You can specify which cost and usage-related metric, such as BlendedCosts or UsageQuantity, that you want the request to return. You can also filter and group your data by various dimensions, such as SERVICE or AZ, in a specific time range. For a complete list of valid dimensions, see the GetDimensionValues operation. Master accounts in an organization in AWS Organizations have access to all member accounts.
20 */
21 getCostAndUsage(callback?: (err: AWSError, data: CostExplorer.Types.GetCostAndUsageResponse) => void): Request<CostExplorer.Types.GetCostAndUsageResponse, AWSError>;
22 /**
23 * Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time period that you select, based on your past costs.
24 */
25 getCostForecast(params: CostExplorer.Types.GetCostForecastRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetCostForecastResponse) => void): Request<CostExplorer.Types.GetCostForecastResponse, AWSError>;
26 /**
27 * Retrieves a forecast for how much Amazon Web Services predicts that you will spend over the forecast time period that you select, based on your past costs.
28 */
29 getCostForecast(callback?: (err: AWSError, data: CostExplorer.Types.GetCostForecastResponse) => void): Request<CostExplorer.Types.GetCostForecastResponse, AWSError>;
30 /**
31 * Retrieves all available filter values for a specified filter over a period of time. You can search the dimension values for an arbitrary string.
32 */
33 getDimensionValues(params: CostExplorer.Types.GetDimensionValuesRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetDimensionValuesResponse) => void): Request<CostExplorer.Types.GetDimensionValuesResponse, AWSError>;
34 /**
35 * Retrieves all available filter values for a specified filter over a period of time. You can search the dimension values for an arbitrary string.
36 */
37 getDimensionValues(callback?: (err: AWSError, data: CostExplorer.Types.GetDimensionValuesResponse) => void): Request<CostExplorer.Types.GetDimensionValuesResponse, AWSError>;
38 /**
39 * Retrieves the reservation coverage for your account. This enables you to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a reservation. An organization's master account can see the coverage of the associated member accounts. For any time period, you can filter data about reservation usage by the following dimensions: AZ CACHE_ENGINE DATABASE_ENGINE DEPLOYMENT_OPTION INSTANCE_TYPE LINKED_ACCOUNT OPERATING_SYSTEM PLATFORM REGION SERVICE TAG TENANCY To determine valid values for a dimension, use the GetDimensionValues operation.
40 */
41 getReservationCoverage(params: CostExplorer.Types.GetReservationCoverageRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetReservationCoverageResponse) => void): Request<CostExplorer.Types.GetReservationCoverageResponse, AWSError>;
42 /**
43 * Retrieves the reservation coverage for your account. This enables you to see how much of your Amazon Elastic Compute Cloud, Amazon ElastiCache, Amazon Relational Database Service, or Amazon Redshift usage is covered by a reservation. An organization's master account can see the coverage of the associated member accounts. For any time period, you can filter data about reservation usage by the following dimensions: AZ CACHE_ENGINE DATABASE_ENGINE DEPLOYMENT_OPTION INSTANCE_TYPE LINKED_ACCOUNT OPERATING_SYSTEM PLATFORM REGION SERVICE TAG TENANCY To determine valid values for a dimension, use the GetDimensionValues operation.
44 */
45 getReservationCoverage(callback?: (err: AWSError, data: CostExplorer.Types.GetReservationCoverageResponse) => void): Request<CostExplorer.Types.GetReservationCoverageResponse, AWSError>;
46 /**
47 * Gets recommendations for which reservations to purchase. These recommendations could help you reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing. AWS generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage into categories that are eligible for a reservation. After AWS has these categories, it simulates every combination of reservations in each category of usage to identify the best number of each type of RI to purchase to maximize your estimated savings. For example, AWS automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon) Region and recommends that you buy size-flexible regional reservations to apply to the c4 family usage. AWS recommends the smallest size instance in an instance family. This makes it easier to purchase a size-flexible RI. AWS also shows the equal number of normalized units so that you can purchase any instance size that you want. For this example, your RI recommendation would be for c4.large because that is the smallest size instance in the c4 instance family.
48 */
49 getReservationPurchaseRecommendation(params: CostExplorer.Types.GetReservationPurchaseRecommendationRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetReservationPurchaseRecommendationResponse) => void): Request<CostExplorer.Types.GetReservationPurchaseRecommendationResponse, AWSError>;
50 /**
51 * Gets recommendations for which reservations to purchase. These recommendations could help you reduce your costs. Reservations provide a discounted hourly rate (up to 75%) compared to On-Demand pricing. AWS generates your recommendations by identifying your On-Demand usage during a specific time period and collecting your usage into categories that are eligible for a reservation. After AWS has these categories, it simulates every combination of reservations in each category of usage to identify the best number of each type of RI to purchase to maximize your estimated savings. For example, AWS automatically aggregates your Amazon EC2 Linux, shared tenancy, and c4 family usage in the US West (Oregon) Region and recommends that you buy size-flexible regional reservations to apply to the c4 family usage. AWS recommends the smallest size instance in an instance family. This makes it easier to purchase a size-flexible RI. AWS also shows the equal number of normalized units so that you can purchase any instance size that you want. For this example, your RI recommendation would be for c4.large because that is the smallest size instance in the c4 instance family.
52 */
53 getReservationPurchaseRecommendation(callback?: (err: AWSError, data: CostExplorer.Types.GetReservationPurchaseRecommendationResponse) => void): Request<CostExplorer.Types.GetReservationPurchaseRecommendationResponse, AWSError>;
54 /**
55 * Retrieves the reservation utilization for your account. Master accounts in an organization have access to member accounts. You can filter data by dimensions in a time period. You can use GetDimensionValues to determine the possible dimension values. Currently, you can group only by SUBSCRIPTION_ID.
56 */
57 getReservationUtilization(params: CostExplorer.Types.GetReservationUtilizationRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetReservationUtilizationResponse) => void): Request<CostExplorer.Types.GetReservationUtilizationResponse, AWSError>;
58 /**
59 * Retrieves the reservation utilization for your account. Master accounts in an organization have access to member accounts. You can filter data by dimensions in a time period. You can use GetDimensionValues to determine the possible dimension values. Currently, you can group only by SUBSCRIPTION_ID.
60 */
61 getReservationUtilization(callback?: (err: AWSError, data: CostExplorer.Types.GetReservationUtilizationResponse) => void): Request<CostExplorer.Types.GetReservationUtilizationResponse, AWSError>;
62 /**
63 * Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.
64 */
65 getTags(params: CostExplorer.Types.GetTagsRequest, callback?: (err: AWSError, data: CostExplorer.Types.GetTagsResponse) => void): Request<CostExplorer.Types.GetTagsResponse, AWSError>;
66 /**
67 * Queries for available tag keys and tag values for a specified period. You can search the tag values for an arbitrary string.
68 */
69 getTags(callback?: (err: AWSError, data: CostExplorer.Types.GetTagsResponse) => void): Request<CostExplorer.Types.GetTagsResponse, AWSError>;
70}
71declare namespace CostExplorer {
72 export type AccountScope = "PAYER"|"LINKED"|string;
73 export type AmortizedRecurringFee = string;
74 export type AmortizedUpfrontFee = string;
75 export type AttributeType = string;
76 export type AttributeValue = string;
77 export type Attributes = {[key: string]: AttributeValue};
78 export type Context = "COST_AND_USAGE"|"RESERVATIONS"|string;
79 export interface Coverage {
80 /**
81 * The amount of instance usage that the reservation covered, in hours.
82 */
83 CoverageHours?: CoverageHours;
84 /**
85 * The amount of instance usage that the reservation covered, in normalized units.
86 */
87 CoverageNormalizedUnits?: CoverageNormalizedUnits;
88 /**
89 * The amount of cost that the reservation covered.
90 */
91 CoverageCost?: CoverageCost;
92 }
93 export interface CoverageByTime {
94 /**
95 * The period that this coverage was used over.
96 */
97 TimePeriod?: DateInterval;
98 /**
99 * The groups of instances that the reservation covered.
100 */
101 Groups?: ReservationCoverageGroups;
102 /**
103 * The total reservation coverage, in hours.
104 */
105 Total?: Coverage;
106 }
107 export interface CoverageCost {
108 /**
109 * How much an On-Demand instance cost.
110 */
111 OnDemandCost?: OnDemandCost;
112 }
113 export interface CoverageHours {
114 /**
115 * The number of instance running hours that On-Demand Instances covered.
116 */
117 OnDemandHours?: OnDemandHours;
118 /**
119 * The number of instance running hours that reservations covered.
120 */
121 ReservedHours?: ReservedHours;
122 /**
123 * The total instance usage, in hours.
124 */
125 TotalRunningHours?: TotalRunningHours;
126 /**
127 * The percentage of instance hours that a reservation covered.
128 */
129 CoverageHoursPercentage?: CoverageHoursPercentage;
130 }
131 export type CoverageHoursPercentage = string;
132 export interface CoverageNormalizedUnits {
133 /**
134 * The number of normalized units that are covered by On-Demand Instances instead of a reservation.
135 */
136 OnDemandNormalizedUnits?: OnDemandNormalizedUnits;
137 /**
138 * The number of normalized units that a reservation covers.
139 */
140 ReservedNormalizedUnits?: ReservedNormalizedUnits;
141 /**
142 * The total number of normalized units that you used.
143 */
144 TotalRunningNormalizedUnits?: TotalRunningNormalizedUnits;
145 /**
146 * The percentage of your used instance normalized units that a reservation covers.
147 */
148 CoverageNormalizedUnitsPercentage?: CoverageNormalizedUnitsPercentage;
149 }
150 export type CoverageNormalizedUnitsPercentage = string;
151 export type CoveragesByTime = CoverageByTime[];
152 export interface DateInterval {
153 /**
154 * The beginning of the time period that you want the usage and costs for. The start date is inclusive. For example, if start is 2017-01-01, AWS retrieves cost and usage data starting at 2017-01-01 up to the end date.
155 */
156 Start: YearMonthDay;
157 /**
158 * The end of the time period that you want the usage and costs for. The end date is exclusive. For example, if end is 2017-05-01, AWS retrieves cost and usage data from the start date up to, but not including, 2017-05-01.
159 */
160 End: YearMonthDay;
161 }
162 export type Dimension = "AZ"|"INSTANCE_TYPE"|"LINKED_ACCOUNT"|"OPERATION"|"PURCHASE_TYPE"|"REGION"|"SERVICE"|"USAGE_TYPE"|"USAGE_TYPE_GROUP"|"RECORD_TYPE"|"OPERATING_SYSTEM"|"TENANCY"|"SCOPE"|"PLATFORM"|"SUBSCRIPTION_ID"|"LEGAL_ENTITY_NAME"|"DEPLOYMENT_OPTION"|"DATABASE_ENGINE"|"CACHE_ENGINE"|"INSTANCE_TYPE_FAMILY"|"BILLING_ENTITY"|"RESERVATION_ID"|string;
163 export interface DimensionValues {
164 /**
165 * The names of the metadata types that you can use to filter and group your results. For example, AZ returns a list of Availability Zones.
166 */
167 Key?: Dimension;
168 /**
169 * The metadata values that you can use to filter and group your results. You can use GetDimensionValues to find specific values. Valid values for the SERVICE dimension are Amazon Elastic Compute Cloud - Compute, Amazon Elasticsearch Service, Amazon ElastiCache, Amazon Redshift, and Amazon Relational Database Service.
170 */
171 Values?: Values;
172 }
173 export interface DimensionValuesWithAttributes {
174 /**
175 * The value of a dimension with a specific attribute.
176 */
177 Value?: Value;
178 /**
179 * The attribute that applies to a specific Dimension.
180 */
181 Attributes?: Attributes;
182 }
183 export type DimensionValuesWithAttributesList = DimensionValuesWithAttributes[];
184 export interface EC2InstanceDetails {
185 /**
186 * The instance family of the recommended reservation.
187 */
188 Family?: GenericString;
189 /**
190 * The type of instance that AWS recommends.
191 */
192 InstanceType?: GenericString;
193 /**
194 * The AWS Region of the recommended reservation.
195 */
196 Region?: GenericString;
197 /**
198 * The Availability Zone of the recommended reservation.
199 */
200 AvailabilityZone?: GenericString;
201 /**
202 * The platform of the recommended reservation. The platform is the specific combination of operating system, license model, and software on an instance.
203 */
204 Platform?: GenericString;
205 /**
206 * Whether the recommended reservation is dedicated or shared.
207 */
208 Tenancy?: GenericString;
209 /**
210 * Whether the recommendation is for a current-generation instance.
211 */
212 CurrentGeneration?: GenericBoolean;
213 /**
214 * Whether the recommended reservation is size flexible.
215 */
216 SizeFlexEligible?: GenericBoolean;
217 }
218 export interface EC2Specification {
219 /**
220 * Whether you want a recommendation for standard or convertible reservations.
221 */
222 OfferingClass?: OfferingClass;
223 }
224 export interface ESInstanceDetails {
225 /**
226 * The class of instance that AWS recommends.
227 */
228 InstanceClass?: GenericString;
229 /**
230 * The size of instance that AWS recommends.
231 */
232 InstanceSize?: GenericString;
233 /**
234 * The AWS Region of the recommended reservation.
235 */
236 Region?: GenericString;
237 /**
238 * Whether the recommendation is for a current-generation instance.
239 */
240 CurrentGeneration?: GenericBoolean;
241 /**
242 * Whether the recommended reservation is size flexible.
243 */
244 SizeFlexEligible?: GenericBoolean;
245 }
246 export interface ElastiCacheInstanceDetails {
247 /**
248 * The instance family of the recommended reservation.
249 */
250 Family?: GenericString;
251 /**
252 * The type of node that AWS recommends.
253 */
254 NodeType?: GenericString;
255 /**
256 * The AWS Region of the recommended reservation.
257 */
258 Region?: GenericString;
259 /**
260 * The description of the recommended reservation.
261 */
262 ProductDescription?: GenericString;
263 /**
264 * Whether the recommendation is for a current generation instance.
265 */
266 CurrentGeneration?: GenericBoolean;
267 /**
268 * Whether the recommended reservation is size flexible.
269 */
270 SizeFlexEligible?: GenericBoolean;
271 }
272 export type Entity = string;
273 export type Estimated = boolean;
274 export interface Expression {
275 /**
276 * Return results that match either Dimension object.
277 */
278 Or?: Expressions;
279 /**
280 * Return results that match both Dimension objects.
281 */
282 And?: Expressions;
283 /**
284 * Return results that don't match a Dimension object.
285 */
286 Not?: Expression;
287 /**
288 * The specific Dimension to use for Expression.
289 */
290 Dimensions?: DimensionValues;
291 /**
292 * The specific Tag to use for Expression.
293 */
294 Tags?: TagValues;
295 }
296 export type Expressions = Expression[];
297 export interface ForecastResult {
298 /**
299 * The period of time that the forecast covers.
300 */
301 TimePeriod?: DateInterval;
302 /**
303 * The mean value of the forecast.
304 */
305 MeanValue?: GenericString;
306 /**
307 * The lower limit for the prediction interval.
308 */
309 PredictionIntervalLowerBound?: GenericString;
310 /**
311 * The upper limit for the prediction interval.
312 */
313 PredictionIntervalUpperBound?: GenericString;
314 }
315 export type ForecastResultsByTime = ForecastResult[];
316 export type GenericBoolean = boolean;
317 export type GenericString = string;
318 export interface GetCostAndUsageRequest {
319 /**
320 * Sets the start and end dates for retrieving AWS costs. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.
321 */
322 TimePeriod: DateInterval;
323 /**
324 * Sets the AWS cost granularity to MONTHLY or DAILY. If Granularity isn't set, the response object doesn't include the Granularity, either MONTHLY or DAILY. The GetCostAndUsageRequest operation supports only DAILY and MONTHLY granularities.
325 */
326 Granularity?: Granularity;
327 /**
328 * Filters AWS costs by different dimensions. For example, you can specify SERVICE and LINKED_ACCOUNT and get the costs that are associated with that account's usage of that service. You can nest Expression objects to define any combination of dimension filters. For more information, see Expression.
329 */
330 Filter?: Expression;
331 /**
332 * Which metrics are returned in the query. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?. Valid values are AmortizedCost, BlendedCost, NetAmortizedCost, NetUnblendedCost, NormalizedUsageAmount, UnblendedCost, and UsageQuantity. If you return the UsageQuantity metric, the service aggregates all usage numbers without taking into account the units. For example, if you aggregate usageQuantity across all of Amazon EC2, the results aren't meaningful because Amazon EC2 compute hours and data transfer are measured in different units (for example, hours vs. GB). To get more meaningful UsageQuantity metrics, filter by UsageType or UsageTypeGroups. Metrics is required for GetCostAndUsage requests.
333 */
334 Metrics?: MetricNames;
335 /**
336 * You can group AWS costs using up to two different groups, either dimensions, tag keys, or both. When you group by tag key, you get all tag values, including empty strings. Valid values are AZ, INSTANCE_TYPE, LEGAL_ENTITY_NAME, LINKED_ACCOUNT, OPERATION, PLATFORM, PURCHASE_TYPE, SERVICE, TAGS, TENANCY, and USAGE_TYPE.
337 */
338 GroupBy?: GroupDefinitions;
339 /**
340 * The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
341 */
342 NextPageToken?: NextPageToken;
343 }
344 export interface GetCostAndUsageResponse {
345 /**
346 * The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
347 */
348 NextPageToken?: NextPageToken;
349 /**
350 * The groups that are specified by the Filter or GroupBy parameters in the request.
351 */
352 GroupDefinitions?: GroupDefinitions;
353 /**
354 * The time period that is covered by the results in the response.
355 */
356 ResultsByTime?: ResultsByTime;
357 }
358 export interface GetCostForecastRequest {
359 /**
360 * The period of time that you want the forecast to cover.
361 */
362 TimePeriod: DateInterval;
363 /**
364 * Which metric Cost Explorer uses to create your forecast. For more information about blended and unblended rates, see Why does the "blended" annotation appear on some line items in my bill?. Valid values for a GetCostForecast call are the following: AmortizedCost BlendedCost NetAmortizedCost NetUnblendedCost UnblendedCost
365 */
366 Metric: Metric;
367 /**
368 * How granular you want the forecast to be. You can get 3 months of DAILY forecasts or 12 months of MONTHLY forecasts. The GetCostForecast operation supports only DAILY and MONTHLY granularities.
369 */
370 Granularity: Granularity;
371 /**
372 * The filters that you want to use to filter your forecast. Cost Explorer API supports all of the Cost Explorer filters.
373 */
374 Filter?: Expression;
375 /**
376 * Cost Explorer always returns the mean forecast as a single point. You can request a prediction interval around the mean by specifying a confidence level. The higher the confidence level, the more confident Cost Explorer is about the actual value falling in the prediction interval. Higher confidence levels result in wider prediction intervals.
377 */
378 PredictionIntervalLevel?: PredictionIntervalLevel;
379 }
380 export interface GetCostForecastResponse {
381 /**
382 * How much you are forecasted to spend over the forecast period, in USD.
383 */
384 Total?: MetricValue;
385 /**
386 * The forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.
387 */
388 ForecastResultsByTime?: ForecastResultsByTime;
389 }
390 export interface GetDimensionValuesRequest {
391 /**
392 * The value that you want to search the filter values for.
393 */
394 SearchString?: SearchString;
395 /**
396 * The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.
397 */
398 TimePeriod: DateInterval;
399 /**
400 * The name of the dimension. Each Dimension is available for a different Context. For more information, see Context.
401 */
402 Dimension: Dimension;
403 /**
404 * The context for the call to GetDimensionValues. This can be RESERVATIONS or COST_AND_USAGE. The default value is COST_AND_USAGE. If the context is set to RESERVATIONS, the resulting dimension values can be used in the GetReservationUtilization operation. If the context is set to COST_AND_USAGE, the resulting dimension values can be used in the GetCostAndUsage operation. If you set the context to COST_AND_USAGE, you can use the following dimensions for searching: AZ - The Availability Zone. An example is us-east-1a. DATABASE_ENGINE - The Amazon Relational Database Service database. Examples are Aurora or MySQL. INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge. LEGAL_ENTITY_NAME - The name of the organization that sells you AWS services, such as Amazon Web Services. LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the AWS ID of the member account. OPERATING_SYSTEM - The operating system. Examples are Windows or Linux. OPERATION - The action performed. Examples include RunInstance and CreateBucket. PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux. PURCHASE_TYPE - The reservation type of the purchase to which this usage is related. Examples include On-Demand Instances and Standard Reserved Instances. SERVICE - The AWS service such as Amazon DynamoDB. USAGE_TYPE - The type of usage. An example is DataTransfer-In-Bytes. The response for the GetDimensionValues operation includes a unit attribute. Examples include GB and Hrs. USAGE_TYPE_GROUP - The grouping of common usage types. An example is Amazon EC2: CloudWatch – Alarms. The response for this operation includes a unit attribute. RECORD_TYPE - The different types of charges such as RI fees, usage costs, tax refunds, and credits. If you set the context to RESERVATIONS, you can use the following dimensions for searching: AZ - The Availability Zone. An example is us-east-1a. CACHE_ENGINE - The Amazon ElastiCache operating system. Examples are Windows or Linux. DEPLOYMENT_OPTION - The scope of Amazon Relational Database Service deployments. Valid values are SingleAZ and MultiAZ. INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge. LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the AWS ID of the member account. PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux. REGION - The AWS Region. SCOPE (Utilization only) - The scope of a Reserved Instance (RI). Values are regional or a single Availability Zone. TAG (Coverage only) - The tags that are associated with a Reserved Instance (RI). TENANCY - The tenancy of a resource. Examples are shared or dedicated.
405 */
406 Context?: Context;
407 /**
408 * The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
409 */
410 NextPageToken?: NextPageToken;
411 }
412 export interface GetDimensionValuesResponse {
413 /**
414 * The filters that you used to filter your request. Some dimensions are available only for a specific context. If you set the context to COST_AND_USAGE, you can use the following dimensions for searching: AZ - The Availability Zone. An example is us-east-1a. DATABASE_ENGINE - The Amazon Relational Database Service database. Examples are Aurora or MySQL. INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge. LEGAL_ENTITY_NAME - The name of the organization that sells you AWS services, such as Amazon Web Services. LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the AWS ID of the member account. OPERATING_SYSTEM - The operating system. Examples are Windows or Linux. OPERATION - The action performed. Examples include RunInstance and CreateBucket. PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux. PURCHASE_TYPE - The reservation type of the purchase to which this usage is related. Examples include On-Demand Instances and Standard Reserved Instances. SERVICE - The AWS service such as Amazon DynamoDB. USAGE_TYPE - The type of usage. An example is DataTransfer-In-Bytes. The response for the GetDimensionValues operation includes a unit attribute. Examples include GB and Hrs. USAGE_TYPE_GROUP - The grouping of common usage types. An example is Amazon EC2: CloudWatch – Alarms. The response for this operation includes a unit attribute. RECORD_TYPE - The different types of charges such as RI fees, usage costs, tax refunds, and credits. If you set the context to RESERVATIONS, you can use the following dimensions for searching: AZ - The Availability Zone. An example is us-east-1a. CACHE_ENGINE - The Amazon ElastiCache operating system. Examples are Windows or Linux. DEPLOYMENT_OPTION - The scope of Amazon Relational Database Service deployments. Valid values are SingleAZ and MultiAZ. INSTANCE_TYPE - The type of Amazon EC2 instance. An example is m4.xlarge. LINKED_ACCOUNT - The description in the attribute map that includes the full name of the member account. The value field contains the AWS ID of the member account. PLATFORM - The Amazon EC2 operating system. Examples are Windows or Linux. REGION - The AWS Region. SCOPE (Utilization only) - The scope of a Reserved Instance (RI). Values are regional or a single Availability Zone. TAG (Coverage only) - The tags that are associated with a Reserved Instance (RI). TENANCY - The tenancy of a resource. Examples are shared or dedicated.
415 */
416 DimensionValues: DimensionValuesWithAttributesList;
417 /**
418 * The number of results that AWS returned at one time.
419 */
420 ReturnSize: PageSize;
421 /**
422 * The total number of search results.
423 */
424 TotalSize: PageSize;
425 /**
426 * The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
427 */
428 NextPageToken?: NextPageToken;
429 }
430 export interface GetReservationCoverageRequest {
431 /**
432 * The start and end dates of the period that you want to retrieve data about reservation coverage for. You can retrieve data for a maximum of 13 months: the last 12 months and the current month. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.
433 */
434 TimePeriod: DateInterval;
435 /**
436 * You can group the data by the following attributes: AZ CACHE_ENGINE DATABASE_ENGINE DEPLOYMENT_OPTION INSTANCE_TYPE LINKED_ACCOUNT OPERATING_SYSTEM PLATFORM REGION TENANCY
437 */
438 GroupBy?: GroupDefinitions;
439 /**
440 * The granularity of the AWS cost data for the reservation. Valid values are MONTHLY and DAILY. If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY. The GetReservationCoverage operation supports only DAILY and MONTHLY granularities.
441 */
442 Granularity?: Granularity;
443 /**
444 * Filters utilization data by dimensions. You can filter by the following dimensions: AZ CACHE_ENGINE DATABASE_ENGINE DEPLOYMENT_OPTION INSTANCE_TYPE LINKED_ACCOUNT OPERATING_SYSTEM PLATFORM REGION SERVICE TAG TENANCY GetReservationCoverage uses the same Expression object as the other operations, but only AND is supported among each dimension. You can nest only one level deep. If there are multiple values for a dimension, they are OR'd together. If you don't provide a SERVICE filter, Cost Explorer defaults to EC2.
445 */
446 Filter?: Expression;
447 /**
448 * The measurement that you want your reservation coverage reported in. Valid values are Hour, Unit, and Cost. You can use multiple values in a request.
449 */
450 Metrics?: MetricNames;
451 /**
452 * The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
453 */
454 NextPageToken?: NextPageToken;
455 }
456 export interface GetReservationCoverageResponse {
457 /**
458 * The amount of time that your reservations covered.
459 */
460 CoveragesByTime: CoveragesByTime;
461 /**
462 * The total amount of instance usage that a reservation covered.
463 */
464 Total?: Coverage;
465 /**
466 * The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
467 */
468 NextPageToken?: NextPageToken;
469 }
470 export interface GetReservationPurchaseRecommendationRequest {
471 /**
472 * The account ID that is associated with the recommendation.
473 */
474 AccountId?: GenericString;
475 /**
476 * The specific service that you want recommendations for.
477 */
478 Service: GenericString;
479 /**
480 * The account scope that you want recommendations for. PAYER means that AWS includes the master account and any member accounts when it calculates its recommendations. LINKED means that AWS includes only member accounts when it calculates its recommendations. Valid values are PAYER and LINKED.
481 */
482 AccountScope?: AccountScope;
483 /**
484 * The number of previous days that you want AWS to consider when it calculates your recommendations.
485 */
486 LookbackPeriodInDays?: LookbackPeriodInDays;
487 /**
488 * The reservation term that you want recommendations for.
489 */
490 TermInYears?: TermInYears;
491 /**
492 * The reservation purchase option that you want recommendations for.
493 */
494 PaymentOption?: PaymentOption;
495 /**
496 * The hardware specifications for the service instances that you want recommendations for, such as standard or convertible Amazon EC2 instances.
497 */
498 ServiceSpecification?: ServiceSpecification;
499 /**
500 * The number of recommendations that you want returned in a single response object.
501 */
502 PageSize?: NonNegativeInteger;
503 /**
504 * The pagination token that indicates the next set of results that you want to retrieve.
505 */
506 NextPageToken?: NextPageToken;
507 }
508 export interface GetReservationPurchaseRecommendationResponse {
509 /**
510 * Information about this specific recommendation call, such as the time stamp for when Cost Explorer generated this recommendation.
511 */
512 Metadata?: ReservationPurchaseRecommendationMetadata;
513 /**
514 * Recommendations for reservations to purchase.
515 */
516 Recommendations?: ReservationPurchaseRecommendations;
517 /**
518 * The pagination token for the next set of retrievable results.
519 */
520 NextPageToken?: NextPageToken;
521 }
522 export interface GetReservationUtilizationRequest {
523 /**
524 * Sets the start and end dates for retrieving RI utilization. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.
525 */
526 TimePeriod: DateInterval;
527 /**
528 * Groups only by SUBSCRIPTION_ID. Metadata is included.
529 */
530 GroupBy?: GroupDefinitions;
531 /**
532 * If GroupBy is set, Granularity can't be set. If Granularity isn't set, the response object doesn't include Granularity, either MONTHLY or DAILY. If both GroupBy and Granularity aren't set, GetReservationUtilization defaults to DAILY. The GetReservationUtilization operation supports only DAILY and MONTHLY granularities.
533 */
534 Granularity?: Granularity;
535 /**
536 * Filters utilization data by dimensions. You can filter by the following dimensions: AZ CACHE_ENGINE DATABASE_ENGINE DEPLOYMENT_OPTION INSTANCE_TYPE LINKED_ACCOUNT OPERATING_SYSTEM PLATFORM REGION SERVICE SCOPE TENANCY GetReservationUtilization uses the same Expression object as the other operations, but only AND is supported among each dimension, and nesting is supported up to only one level deep. If there are multiple values for a dimension, they are OR'd together.
537 */
538 Filter?: Expression;
539 /**
540 * The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
541 */
542 NextPageToken?: NextPageToken;
543 }
544 export interface GetReservationUtilizationResponse {
545 /**
546 * The amount of time that you used your RIs.
547 */
548 UtilizationsByTime: UtilizationsByTime;
549 /**
550 * The total amount of time that you used your RIs.
551 */
552 Total?: ReservationAggregates;
553 /**
554 * The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
555 */
556 NextPageToken?: NextPageToken;
557 }
558 export interface GetTagsRequest {
559 /**
560 * The value that you want to search for.
561 */
562 SearchString?: SearchString;
563 /**
564 * The start and end dates for retrieving the dimension values. The start date is inclusive, but the end date is exclusive. For example, if start is 2017-01-01 and end is 2017-05-01, then the cost and usage data is retrieved from 2017-01-01 up to and including 2017-04-30 but not including 2017-05-01.
565 */
566 TimePeriod: DateInterval;
567 /**
568 * The key of the tag that you want to return values for.
569 */
570 TagKey?: TagKey;
571 /**
572 * The token to retrieve the next set of results. AWS provides the token when the response from a previous call has more results than the maximum page size.
573 */
574 NextPageToken?: NextPageToken;
575 }
576 export interface GetTagsResponse {
577 /**
578 * The token for the next set of retrievable results. AWS provides the token when the response from a previous call has more results than the maximum page size.
579 */
580 NextPageToken?: NextPageToken;
581 /**
582 * The tags that match your request.
583 */
584 Tags: TagList;
585 /**
586 * The number of query results that AWS returns at a time.
587 */
588 ReturnSize: PageSize;
589 /**
590 * The total number of query results.
591 */
592 TotalSize: PageSize;
593 }
594 export type Granularity = "DAILY"|"MONTHLY"|"HOURLY"|string;
595 export interface Group {
596 /**
597 * The keys that are included in this group.
598 */
599 Keys?: Keys;
600 /**
601 * The metrics that are included in this group.
602 */
603 Metrics?: Metrics;
604 }
605 export interface GroupDefinition {
606 /**
607 * The string that represents the type of group.
608 */
609 Type?: GroupDefinitionType;
610 /**
611 * The string that represents a key for a specified group.
612 */
613 Key?: GroupDefinitionKey;
614 }
615 export type GroupDefinitionKey = string;
616 export type GroupDefinitionType = "DIMENSION"|"TAG"|string;
617 export type GroupDefinitions = GroupDefinition[];
618 export type Groups = Group[];
619 export interface InstanceDetails {
620 /**
621 * The Amazon EC2 instances that AWS recommends that you purchase.
622 */
623 EC2InstanceDetails?: EC2InstanceDetails;
624 /**
625 * The Amazon RDS instances that AWS recommends that you purchase.
626 */
627 RDSInstanceDetails?: RDSInstanceDetails;
628 /**
629 * The Amazon Redshift instances that AWS recommends that you purchase.
630 */
631 RedshiftInstanceDetails?: RedshiftInstanceDetails;
632 /**
633 * The ElastiCache instances that AWS recommends that you purchase.
634 */
635 ElastiCacheInstanceDetails?: ElastiCacheInstanceDetails;
636 /**
637 * The Amazon ES instances that AWS recommends that you purchase.
638 */
639 ESInstanceDetails?: ESInstanceDetails;
640 }
641 export type Key = string;
642 export type Keys = Key[];
643 export type LookbackPeriodInDays = "SEVEN_DAYS"|"THIRTY_DAYS"|"SIXTY_DAYS"|string;
644 export type Metric = "BLENDED_COST"|"UNBLENDED_COST"|"AMORTIZED_COST"|"NET_UNBLENDED_COST"|"NET_AMORTIZED_COST"|"USAGE_QUANTITY"|"NORMALIZED_USAGE_AMOUNT"|string;
645 export type MetricAmount = string;
646 export type MetricName = string;
647 export type MetricNames = MetricName[];
648 export type MetricUnit = string;
649 export interface MetricValue {
650 /**
651 * The actual number that represents the metric.
652 */
653 Amount?: MetricAmount;
654 /**
655 * The unit that the metric is given in.
656 */
657 Unit?: MetricUnit;
658 }
659 export type Metrics = {[key: string]: MetricValue};
660 export type NetRISavings = string;
661 export type NextPageToken = string;
662 export type NonNegativeInteger = number;
663 export type OfferingClass = "STANDARD"|"CONVERTIBLE"|string;
664 export type OnDemandCost = string;
665 export type OnDemandCostOfRIHoursUsed = string;
666 export type OnDemandHours = string;
667 export type OnDemandNormalizedUnits = string;
668 export type PageSize = number;
669 export type PaymentOption = "NO_UPFRONT"|"PARTIAL_UPFRONT"|"ALL_UPFRONT"|"LIGHT_UTILIZATION"|"MEDIUM_UTILIZATION"|"HEAVY_UTILIZATION"|string;
670 export type PredictionIntervalLevel = number;
671 export type PurchasedHours = string;
672 export type PurchasedUnits = string;
673 export interface RDSInstanceDetails {
674 /**
675 * The instance family of the recommended reservation.
676 */
677 Family?: GenericString;
678 /**
679 * The type of instance that AWS recommends.
680 */
681 InstanceType?: GenericString;
682 /**
683 * The AWS Region of the recommended reservation.
684 */
685 Region?: GenericString;
686 /**
687 * The database engine that the recommended reservation supports.
688 */
689 DatabaseEngine?: GenericString;
690 /**
691 * The database edition that the recommended reservation supports.
692 */
693 DatabaseEdition?: GenericString;
694 /**
695 * Whether the recommendation is for a reservation in a single Availability Zone or a reservation with a backup in a second Availability Zone.
696 */
697 DeploymentOption?: GenericString;
698 /**
699 * The license model that the recommended reservation supports.
700 */
701 LicenseModel?: GenericString;
702 /**
703 * Whether the recommendation is for a current-generation instance.
704 */
705 CurrentGeneration?: GenericBoolean;
706 /**
707 * Whether the recommended reservation is size flexible.
708 */
709 SizeFlexEligible?: GenericBoolean;
710 }
711 export interface RedshiftInstanceDetails {
712 /**
713 * The instance family of the recommended reservation.
714 */
715 Family?: GenericString;
716 /**
717 * The type of node that AWS recommends.
718 */
719 NodeType?: GenericString;
720 /**
721 * The AWS Region of the recommended reservation.
722 */
723 Region?: GenericString;
724 /**
725 * Whether the recommendation is for a current-generation instance.
726 */
727 CurrentGeneration?: GenericBoolean;
728 /**
729 * Whether the recommended reservation is size flexible.
730 */
731 SizeFlexEligible?: GenericBoolean;
732 }
733 export interface ReservationAggregates {
734 /**
735 * The percentage of reservation time that you used.
736 */
737 UtilizationPercentage?: UtilizationPercentage;
738 /**
739 * The percentage of Amazon EC2 reservation time that you used, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.
740 */
741 UtilizationPercentageInUnits?: UtilizationPercentageInUnits;
742 /**
743 * How many reservation hours that you purchased.
744 */
745 PurchasedHours?: PurchasedHours;
746 /**
747 * How many Amazon EC2 reservation hours that you purchased, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.
748 */
749 PurchasedUnits?: PurchasedUnits;
750 /**
751 * The total number of reservation hours that you used.
752 */
753 TotalActualHours?: TotalActualHours;
754 /**
755 * The total number of Amazon EC2 reservation hours that you used, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.
756 */
757 TotalActualUnits?: TotalActualUnits;
758 /**
759 * The number of reservation hours that you didn't use.
760 */
761 UnusedHours?: UnusedHours;
762 /**
763 * The number of Amazon EC2 reservation hours that you didn't use, converted to normalized units. Normalized units are available only for Amazon EC2 usage after November 11, 2017.
764 */
765 UnusedUnits?: UnusedUnits;
766 /**
767 * How much your reservation would cost if charged On-Demand rates.
768 */
769 OnDemandCostOfRIHoursUsed?: OnDemandCostOfRIHoursUsed;
770 /**
771 * How much you saved due to purchasing and utilizing reservation. AWS calculates this by subtracting TotalAmortizedFee from OnDemandCostOfRIHoursUsed.
772 */
773 NetRISavings?: NetRISavings;
774 /**
775 * How much you could save if you use your entire reservation.
776 */
777 TotalPotentialRISavings?: TotalPotentialRISavings;
778 /**
779 * The upfront cost of your reservation, amortized over the reservation period.
780 */
781 AmortizedUpfrontFee?: AmortizedUpfrontFee;
782 /**
783 * The monthly cost of your reservation, amortized over the reservation period.
784 */
785 AmortizedRecurringFee?: AmortizedRecurringFee;
786 /**
787 * The total cost of your reservation, amortized over the reservation period.
788 */
789 TotalAmortizedFee?: TotalAmortizedFee;
790 }
791 export interface ReservationCoverageGroup {
792 /**
793 * The attributes for this group of reservations.
794 */
795 Attributes?: Attributes;
796 /**
797 * How much instance usage this group of reservations covered.
798 */
799 Coverage?: Coverage;
800 }
801 export type ReservationCoverageGroups = ReservationCoverageGroup[];
802 export type ReservationGroupKey = string;
803 export type ReservationGroupValue = string;
804 export interface ReservationPurchaseRecommendation {
805 /**
806 * The account scope that AWS recommends that you purchase this instance for. For example, you can purchase this reservation for an entire organization in AWS Organizations.
807 */
808 AccountScope?: AccountScope;
809 /**
810 * How many days of previous usage that AWS considers when making this recommendation.
811 */
812 LookbackPeriodInDays?: LookbackPeriodInDays;
813 /**
814 * The term of the reservation that you want recommendations for, in years.
815 */
816 TermInYears?: TermInYears;
817 /**
818 * The payment option for the reservation. For example, AllUpfront or NoUpfront.
819 */
820 PaymentOption?: PaymentOption;
821 /**
822 * Hardware specifications for the service that you want recommendations for.
823 */
824 ServiceSpecification?: ServiceSpecification;
825 /**
826 * Details about the recommended purchases.
827 */
828 RecommendationDetails?: ReservationPurchaseRecommendationDetails;
829 /**
830 * A summary about the recommended purchase.
831 */
832 RecommendationSummary?: ReservationPurchaseRecommendationSummary;
833 }
834 export interface ReservationPurchaseRecommendationDetail {
835 /**
836 * The account that this RI recommendation is for.
837 */
838 AccountId?: GenericString;
839 /**
840 * Details about the instances that AWS recommends that you purchase.
841 */
842 InstanceDetails?: InstanceDetails;
843 /**
844 * The number of instances that AWS recommends that you purchase.
845 */
846 RecommendedNumberOfInstancesToPurchase?: GenericString;
847 /**
848 * The number of normalized units that AWS recommends that you purchase.
849 */
850 RecommendedNormalizedUnitsToPurchase?: GenericString;
851 /**
852 * The minimum number of instances that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.
853 */
854 MinimumNumberOfInstancesUsedPerHour?: GenericString;
855 /**
856 * The minimum number of normalized units that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.
857 */
858 MinimumNormalizedUnitsUsedPerHour?: GenericString;
859 /**
860 * The maximum number of instances that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.
861 */
862 MaximumNumberOfInstancesUsedPerHour?: GenericString;
863 /**
864 * The maximum number of normalized units that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.
865 */
866 MaximumNormalizedUnitsUsedPerHour?: GenericString;
867 /**
868 * The average number of instances that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.
869 */
870 AverageNumberOfInstancesUsedPerHour?: GenericString;
871 /**
872 * The average number of normalized units that you used in an hour during the historical period. AWS uses this to calculate your recommended reservation purchases.
873 */
874 AverageNormalizedUnitsUsedPerHour?: GenericString;
875 /**
876 * The average utilization of your instances. AWS uses this to calculate your recommended reservation purchases.
877 */
878 AverageUtilization?: GenericString;
879 /**
880 * How long AWS estimates that it takes for this instance to start saving you money, in months.
881 */
882 EstimatedBreakEvenInMonths?: GenericString;
883 /**
884 * The currency code that AWS used to calculate the costs for this instance.
885 */
886 CurrencyCode?: GenericString;
887 /**
888 * How much AWS estimates that this specific recommendation could save you in a month.
889 */
890 EstimatedMonthlySavingsAmount?: GenericString;
891 /**
892 * How much AWS estimates that this specific recommendation could save you in a month, as a percentage of your overall costs.
893 */
894 EstimatedMonthlySavingsPercentage?: GenericString;
895 /**
896 * How much AWS estimates that you spend on On-Demand Instances in a month.
897 */
898 EstimatedMonthlyOnDemandCost?: GenericString;
899 /**
900 * How much AWS estimates that you would have spent for all usage during the specified historical period if you had had a reservation.
901 */
902 EstimatedReservationCostForLookbackPeriod?: GenericString;
903 /**
904 * How much purchasing this instance costs you upfront.
905 */
906 UpfrontCost?: GenericString;
907 /**
908 * How much purchasing this instance costs you on a monthly basis.
909 */
910 RecurringStandardMonthlyCost?: GenericString;
911 }
912 export type ReservationPurchaseRecommendationDetails = ReservationPurchaseRecommendationDetail[];
913 export interface ReservationPurchaseRecommendationMetadata {
914 /**
915 * The ID for this specific recommendation.
916 */
917 RecommendationId?: GenericString;
918 /**
919 * The time stamp for when AWS made this recommendation.
920 */
921 GenerationTimestamp?: GenericString;
922 }
923 export interface ReservationPurchaseRecommendationSummary {
924 /**
925 * The total amount that AWS estimates that this recommendation could save you in a month.
926 */
927 TotalEstimatedMonthlySavingsAmount?: GenericString;
928 /**
929 * The total amount that AWS estimates that this recommendation could save you in a month, as a percentage of your costs.
930 */
931 TotalEstimatedMonthlySavingsPercentage?: GenericString;
932 /**
933 * The currency code used for this recommendation.
934 */
935 CurrencyCode?: GenericString;
936 }
937 export type ReservationPurchaseRecommendations = ReservationPurchaseRecommendation[];
938 export interface ReservationUtilizationGroup {
939 /**
940 * The key for a specific reservation attribute.
941 */
942 Key?: ReservationGroupKey;
943 /**
944 * The value of a specific reservation attribute.
945 */
946 Value?: ReservationGroupValue;
947 /**
948 * The attributes for this group of reservations.
949 */
950 Attributes?: Attributes;
951 /**
952 * How much you used this group of reservations.
953 */
954 Utilization?: ReservationAggregates;
955 }
956 export type ReservationUtilizationGroups = ReservationUtilizationGroup[];
957 export type ReservedHours = string;
958 export type ReservedNormalizedUnits = string;
959 export interface ResultByTime {
960 /**
961 * The time period that the result covers.
962 */
963 TimePeriod?: DateInterval;
964 /**
965 * The total amount of cost or usage accrued during the time period.
966 */
967 Total?: Metrics;
968 /**
969 * The groups that this time period includes.
970 */
971 Groups?: Groups;
972 /**
973 * Whether the result is estimated.
974 */
975 Estimated?: Estimated;
976 }
977 export type ResultsByTime = ResultByTime[];
978 export type SearchString = string;
979 export interface ServiceSpecification {
980 /**
981 * The Amazon EC2 hardware specifications that you want AWS to provide recommendations for.
982 */
983 EC2Specification?: EC2Specification;
984 }
985 export type TagKey = string;
986 export type TagList = Entity[];
987 export interface TagValues {
988 /**
989 * The key for the tag.
990 */
991 Key?: TagKey;
992 /**
993 * The specific value of the tag.
994 */
995 Values?: Values;
996 }
997 export type TermInYears = "ONE_YEAR"|"THREE_YEARS"|string;
998 export type TotalActualHours = string;
999 export type TotalActualUnits = string;
1000 export type TotalAmortizedFee = string;
1001 export type TotalPotentialRISavings = string;
1002 export type TotalRunningHours = string;
1003 export type TotalRunningNormalizedUnits = string;
1004 export type UnusedHours = string;
1005 export type UnusedUnits = string;
1006 export interface UtilizationByTime {
1007 /**
1008 * The period of time that this utilization was used for.
1009 */
1010 TimePeriod?: DateInterval;
1011 /**
1012 * The groups that this utilization result uses.
1013 */
1014 Groups?: ReservationUtilizationGroups;
1015 /**
1016 * The total number of reservation hours that were used.
1017 */
1018 Total?: ReservationAggregates;
1019 }
1020 export type UtilizationPercentage = string;
1021 export type UtilizationPercentageInUnits = string;
1022 export type UtilizationsByTime = UtilizationByTime[];
1023 export type Value = string;
1024 export type Values = Value[];
1025 export type YearMonthDay = string;
1026 /**
1027 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1028 */
1029 export type apiVersion = "2017-10-25"|"latest"|string;
1030 export interface ClientApiVersions {
1031 /**
1032 * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
1033 */
1034 apiVersion?: apiVersion;
1035 }
1036 export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
1037 /**
1038 * Contains interfaces for use with the CostExplorer client.
1039 */
1040 export import Types = CostExplorer;
1041}
1042export = CostExplorer;