Skip to main content

usage_forecasts

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

Overview

Nameusage_forecasts
TypeResource
Idaws.ce.usage_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're forecasted to use over the forecast period.

Methods

The following methods are available for this resource:

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

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

SELECT examples

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
;