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
Source:R/costexplorer_operations.R
costexplorer_get_usage_forecast.RdRetrieves 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.
See https://www.paws-r-sdk.com/docs/costexplorer_get_usage_forecast/ for full documentation.
Usage
costexplorer_get_usage_forecast(
TimePeriod,
Metric,
Granularity,
Filter = NULL,
BillingViewArn = NULL,
PredictionIntervalLevel = NULL
)Arguments
- TimePeriod
[required] The start and end dates of the period that you want to retrieve usage forecast for. The start date is included in the period, but the end date isn't included in the period. For example, if
startis2017-01-01andendis2017-05-01, then the cost and usage data is retrieved from2017-01-01up to and including2017-04-30but not including2017-05-01. The start date must be equal to or later than the current date to avoid a validation error.- Metric
[required] Which metric Cost Explorer uses to create your forecast.
Valid values for a
get_usage_forecastcall are the following:USAGE_QUANTITY
NORMALIZED_USAGE_AMOUNT
- Granularity
[required] How granular you want the forecast to be. You can get 3 months of
DAILYforecasts or 18 months ofMONTHLYforecasts.The
get_usage_forecastoperation supports onlyDAILYandMONTHLYgranularities.- Filter
The filters that you want to use to filter your forecast. The
get_usage_forecastAPI supports filtering by the following dimensions:AZINSTANCE_TYPELINKED_ACCOUNTLINKED_ACCOUNT_NAMEOPERATIONPURCHASE_TYPEREGIONSERVICEUSAGE_TYPEUSAGE_TYPE_GROUPRECORD_TYPEOPERATING_SYSTEMTENANCYSCOPEPLATFORMSUBSCRIPTION_IDLEGAL_ENTITY_NAMEDEPLOYMENT_OPTIONDATABASE_ENGINEINSTANCE_TYPE_FAMILYBILLING_ENTITYRESERVATION_IDSAVINGS_PLAN_ARN
- BillingViewArn
The Amazon Resource Name (ARN) that uniquely identifies a specific billing view. The ARN is used to specify which particular billing view you want to interact with or retrieve information from when making API calls related to Amazon Web Services Billing and Cost Management features. The BillingViewArn can be retrieved by calling the ListBillingViews API.
- PredictionIntervalLevel
Amazon Web Services 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.