{ "version":"2.0", "metadata":{ "apiVersion":"2018-06-26", "endpointPrefix":"forecastquery", "jsonVersion":"1.1", "protocol":"json", "serviceFullName":"Amazon Forecast Query Service", "serviceId":"forecastquery", "signatureVersion":"v4", "signingName":"forecast", "targetPrefix":"AmazonForecastRuntime", "uid":"forecastquery-2018-06-26" }, "operations":{ "QueryForecast":{ "name":"QueryForecast", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"QueryForecastRequest"}, "output":{"shape":"QueryForecastResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidInputException"}, {"shape":"LimitExceededException"}, {"shape":"InvalidNextTokenException"} ], "documentation":"

Retrieves a forecast 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, the complete date range of the filtered forecast is returned. Optionally, you can request a specific date range within the forecast.

The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.

" } }, "shapes":{ "Arn":{ "type":"string", "max":256, "pattern":"arn:([a-z\\d-]+):forecast:.*:.*:.+" }, "AttributeName":{ "type":"string", "max":256, "pattern":"^[a-zA-Z0-9\\_\\-]+$" }, "AttributeValue":{ "type":"string", "max":256 }, "DataPoint":{ "type":"structure", "members":{ "Timestamp":{ "shape":"Timestamp", "documentation":"

The timestamp of the specific forecast.

" }, "Value":{ "shape":"Double", "documentation":"

The forecast value.

" } }, "documentation":"

The forecast value for a specific date. Part of the Forecast object.

" }, "DateTime":{ "type":"string", "max":20, "pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$" }, "Double":{"type":"double"}, "ErrorMessage":{"type":"string"}, "Filters":{ "type":"map", "key":{"shape":"AttributeName"}, "value":{"shape":"AttributeValue"}, "max":50, "min":1 }, "Forecast":{ "type":"structure", "members":{ "Predictions":{ "shape":"Predictions", "documentation":"

The forecast.

The string of the string to array map is one of the following values:

" } }, "documentation":"

Provides information about a forecast. Returned as part of the QueryForecast response.

" }, "InvalidInputException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The value that you provided was invalid or too long.

", "exception":true }, "InvalidNextTokenException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The token is not valid. Tokens expire after 24 hours.

", "exception":true }, "LimitExceededException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The limit on the number of requests per second has been exceeded.

", "exception":true }, "NextToken":{ "type":"string", "max":3000, "min":1 }, "Predictions":{ "type":"map", "key":{"shape":"Statistic"}, "value":{"shape":"TimeSeries"} }, "QueryForecastRequest":{ "type":"structure", "required":[ "ForecastArn", "Filters" ], "members":{ "ForecastArn":{ "shape":"Arn", "documentation":"

The Amazon Resource Name (ARN) of the forecast to query.

" }, "StartDate":{ "shape":"DateTime", "documentation":"

The start date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss'Z' (ISO 8601 format) For example, \"1970-01-01T00:00:00Z.\"

" }, "EndDate":{ "shape":"DateTime", "documentation":"

The end date for the forecast. Specify the date using this format: yyyy-MM-dd'T'HH:mm:ss'Z' (ISO 8601 format). For example, \"1970-01-01T00:00:00Z.\"

" }, "Filters":{ "shape":"Filters", "documentation":"

The filtering criteria to apply when retrieving the forecast. For example:

To get the full forecast, use the operation.

" }, "NextToken":{ "shape":"NextToken", "documentation":"

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.

" } } }, "QueryForecastResponse":{ "type":"structure", "members":{ "Forecast":{ "shape":"Forecast", "documentation":"

The forecast.

" } } }, "ResourceInUseException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

The specified resource is in use.

", "exception":true }, "ResourceNotFoundException":{ "type":"structure", "members":{ "Message":{"shape":"ErrorMessage"} }, "documentation":"

We can't find that resource. Check the information that you've provided and try again.

", "exception":true }, "Statistic":{ "type":"string", "max":4 }, "TimeSeries":{ "type":"list", "member":{"shape":"DataPoint"} }, "Timestamp":{ "type":"string", "max":20, "pattern":"^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$" } }, "documentation":"

Provides APIs for creating and managing Amazon Forecast resources.

" }