query_what_if_forecast
¶
query_what_if_forecast(
what_if_forecast_arn: LongArn,
filters: Filters,
*,
config_overrides: Optional[forecastqueryClientConfig] = None,
start_date: Optional[DateTime] = None,
end_date: Optional[DateTime] = None,
next_token: Optional[NextToken] = None,
) -> QueryWhatIfForecastResponse
Retrieves a what-if forecast.
Parameters:
-
what_if_forecast_arn(LongArn) –The Amazon Resource Name (ARN) of the what-if forecast to query.
-
start_date(Optional[DateTime], default:None) –The start date for the what-if forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T08:00:00.
-
end_date(Optional[DateTime], default:None) –The end date for the what-if forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss (ISO 8601 format). For example, 2015-01-01T20:00:00.
-
filters(Filters) –The filtering criteria to apply when retrieving the forecast. For example, to get the forecast for
client_21in the electricity usage dataset, specify the following:{"item_id" : "client_21"}To get the full what-if forecast, use the CreateForecastExportJob operation.
-
next_token(Optional[NextToken], default:None) –If the result of the previous request was truncated, the response includes a
NextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.
Raises:
-
InvalidInputException–The value is invalid or is too long.
-
InvalidNextTokenException–The token is not valid. Tokens expire after 24 hours.
-
LimitExceededException–The limit on the number of requests per second has been exceeded.
-
ResourceInUseException–The specified resource is in use.
-
ResourceNotFoundException–We can't find that resource. Check the information that you've provided and try again.
-
UnknownServiceError–The service returned an error code this client does not model.