cost_forecasts
Creates, updates, deletes, gets or lists a cost_forecasts resource.
Overview
| Name | cost_forecasts |
| Type | Resource |
| Id | aws.ce.cost_forecasts |
Fields
The following fields are returned by SELECT queries:
- get_cost_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 are forecasted to spend over the forecast period, in USD. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_cost_forecast | select | region | 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. |
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_cost_forecast
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.
SELECT
forecast_results_by_time,
total
FROM aws.ce.cost_forecasts
WHERE region = '{{ region }}' -- required
;