Skip to main content

cost_forecasts

Creates, updates, deletes, gets or lists a cost_forecasts resource.

Overview

Namecost_forecasts
TypeResource
Idaws.ce.cost_forecasts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
forecast_results_by_timearrayThe forecasts for your query, in order. For DAILY forecasts, this is a list of days. For MONTHLY forecasts, this is a list of months.
totalobjectHow much you are forecasted to spend over the forecast period, in USD.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_cost_forecastselectregionRetrieves 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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
;