{ "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 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.

" }, "QueryWhatIfForecast":{ "name":"QueryWhatIfForecast", "http":{ "method":"POST", "requestUri":"/" }, "input":{"shape":"QueryWhatIfForecastRequest"}, "output":{"shape":"QueryWhatIfForecastResponse"}, "errors":[ {"shape":"ResourceNotFoundException"}, {"shape":"ResourceInUseException"}, {"shape":"InvalidInputException"}, {"shape":"LimitExceededException"}, {"shape":"InvalidNextTokenException"} ], "documentation":"

Retrieves a what-if forecast.

" } }, "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"}, "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:

The default setting is [\"0.1\", \"0.5\", \"0.9\"]. Use the optional ForecastTypes parameter of the CreateForecast operation to change the values. The values will vary depending on how this is set, with a minimum of 1 and a maximum of 5.

" } }, "documentation":"

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

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

The value is invalid or is 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 }, "LongArn":{ "type":"string", "max":300, "pattern":"arn:([a-z\\d-]+):forecast:.*:.*:.+" }, "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 (ISO 8601 format). For example, 2015-01-01T08:00:00.

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

The end date for the 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":{ "shape":"Filters", "documentation":"

The filtering criteria to apply when retrieving the forecast. For example, to get the forecast for client_21 in the electricity usage dataset, specify the following:

{\"item_id\" : \"client_21\"}

To get the full forecast, use the CreateForecastExportJob 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.

" } } }, "QueryWhatIfForecastRequest":{ "type":"structure", "required":[ "WhatIfForecastArn", "Filters" ], "members":{ "WhatIfForecastArn":{ "shape":"LongArn", "documentation":"

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

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

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.

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

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":{ "shape":"Filters", "documentation":"

The filtering criteria to apply when retrieving the forecast. For example, to get the forecast for client_21 in the electricity usage dataset, specify the following:

{\"item_id\" : \"client_21\"}

To get the full what-if forecast, use the CreateForecastExportJob 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.

" } } }, "QueryWhatIfForecastResponse":{ "type":"structure", "members":{ "Forecast":{"shape":"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"} }, "documentation":"

Provides APIs for creating and managing Amazon Forecast resources.

" }