@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonForecastQuery
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAmazonForecastQuery
instead.
Provides APIs for creating and managing Amazon Forecast resources.
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
QueryForecastResult |
queryForecast(QueryForecastRequest queryForecastRequest)
Retrieves a forecast for a single item, filtered by the supplied criteria.
|
QueryWhatIfForecastResult |
queryWhatIfForecast(QueryWhatIfForecastRequest queryWhatIfForecastRequest)
Retrieves a what-if forecast.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
static final String ENDPOINT_PREFIX
QueryForecastResult queryForecast(QueryForecastRequest queryForecastRequest)
Retrieves a forecast for a single item, filtered by the supplied criteria.
The criteria is a key-value pair. The key is either item_id
(or the equivalent non-timestamp,
non-target field) from the TARGET_TIME_SERIES
dataset, or one of the forecast dimensions specified
as part of the FeaturizationConfig
object.
By default, QueryForecast
returns the complete date range for the filtered forecast. You can request
a specific date range.
To get the full forecast, use the CreateForecastExportJob operation.
The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.
queryForecastRequest
- ResourceNotFoundException
- We can't find that resource. Check the information that you've provided and try again.ResourceInUseException
- The specified resource is in use.InvalidInputException
- The value is invalid or is too long.LimitExceededException
- The limit on the number of requests per second has been exceeded.InvalidNextTokenException
- The token is not valid. Tokens expire after 24 hours.QueryWhatIfForecastResult queryWhatIfForecast(QueryWhatIfForecastRequest queryWhatIfForecastRequest)
Retrieves a what-if forecast.
queryWhatIfForecastRequest
- ResourceNotFoundException
- We can't find that resource. Check the information that you've provided and try again.ResourceInUseException
- The specified resource is in use.InvalidInputException
- The value is invalid or is too long.LimitExceededException
- The limit on the number of requests per second has been exceeded.InvalidNextTokenException
- The token is not valid. Tokens expire after 24 hours.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.