usage_forecasts
Creates, updates, deletes, gets or lists a usage_forecasts resource.
Overview
| Name | usage_forecasts |
| Type | Resource |
| Id | aws.ce.usage_forecasts |
Fields
The following fields are returned by SELECT queries:
- get_usage_forecast
| Name | Datatype | Description |
|---|---|---|
forecast_results_by_time | array | 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. |
total | object | How much you're forecasted to use over the forecast period. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_usage_forecast | select | region | 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. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_usage_forecast
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.
SELECT
forecast_results_by_time,
total
FROM aws.ce.usage_forecasts
WHERE region = '{{ region }}' -- required
;