{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.forecastquery#AmazonForecastRuntime": { "type": "service", "version": "2018-06-26", "operations": [ { "target": "com.amazonaws.forecastquery#QueryForecast" } ], "traits": { "aws.api#service": { "sdkId": "forecastquery", "arnNamespace": "forecast", "cloudFormationName": "Forecastquery", "cloudTrailEventSource": "forecastquery.amazonaws.com", "endpointPrefix": "forecastquery" }, "aws.auth#sigv4": { "name": "forecast" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "

Provides APIs for creating and managing Amazon Forecast resources.

", "smithy.api#title": "Amazon Forecast Query Service" } }, "com.amazonaws.forecastquery#Arn": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 }, "smithy.api#pattern": "arn:([a-z\\d-]+):forecast:.*:.*:.+" } }, "com.amazonaws.forecastquery#AttributeName": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 }, "smithy.api#pattern": "^[a-zA-Z0-9\\_\\-]+$" } }, "com.amazonaws.forecastquery#AttributeValue": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 256 } } }, "com.amazonaws.forecastquery#DataPoint": { "type": "structure", "members": { "Timestamp": { "target": "com.amazonaws.forecastquery#Timestamp", "traits": { "smithy.api#documentation": "

The timestamp of the specific forecast.

" } }, "Value": { "target": "com.amazonaws.forecastquery#Double", "traits": { "smithy.api#documentation": "

The forecast value.

" } } }, "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.forecastquery#DateTime": { "type": "string" }, "com.amazonaws.forecastquery#Double": { "type": "double", "traits": { "smithy.api#box": {} } }, "com.amazonaws.forecastquery#ErrorMessage": { "type": "string" }, "com.amazonaws.forecastquery#Filters": { "type": "map", "key": { "target": "com.amazonaws.forecastquery#AttributeName" }, "value": { "target": "com.amazonaws.forecastquery#AttributeValue" }, "traits": { "smithy.api#length": { "min": 1, "max": 50 } } }, "com.amazonaws.forecastquery#Forecast": { "type": "structure", "members": { "Predictions": { "target": "com.amazonaws.forecastquery#Predictions", "traits": { "smithy.api#documentation": "

The forecast.

\n

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

\n " } } }, "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.forecastquery#InvalidInputException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.forecastquery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The value is invalid or is too long.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.forecastquery#InvalidNextTokenException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.forecastquery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

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

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.forecastquery#LimitExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.forecastquery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

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

", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.forecastquery#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 3000 } } }, "com.amazonaws.forecastquery#Predictions": { "type": "map", "key": { "target": "com.amazonaws.forecastquery#Statistic" }, "value": { "target": "com.amazonaws.forecastquery#TimeSeries" } }, "com.amazonaws.forecastquery#QueryForecast": { "type": "operation", "input": { "target": "com.amazonaws.forecastquery#QueryForecastRequest" }, "output": { "target": "com.amazonaws.forecastquery#QueryForecastResponse" }, "errors": [ { "target": "com.amazonaws.forecastquery#InvalidInputException" }, { "target": "com.amazonaws.forecastquery#InvalidNextTokenException" }, { "target": "com.amazonaws.forecastquery#LimitExceededException" }, { "target": "com.amazonaws.forecastquery#ResourceInUseException" }, { "target": "com.amazonaws.forecastquery#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Retrieves a forecast for a single item, filtered by the supplied criteria.

\n

The criteria is a key-value pair. The key is either item_id (or the\n equivalent non-timestamp, non-target field) from the TARGET_TIME_SERIES dataset,\n or one of the forecast dimensions specified as part of the FeaturizationConfig\n object.

\n

By default, QueryForecast returns the complete date range for the filtered\n forecast. You can request a specific date range.

\n

To get the full forecast, use the CreateForecastExportJob operation.

\n \n

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

\n
" } }, "com.amazonaws.forecastquery#QueryForecastRequest": { "type": "structure", "members": { "ForecastArn": { "target": "com.amazonaws.forecastquery#Arn", "traits": { "smithy.api#documentation": "

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

", "smithy.api#required": {} } }, "StartDate": { "target": "com.amazonaws.forecastquery#DateTime", "traits": { "smithy.api#documentation": "

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

" } }, "EndDate": { "target": "com.amazonaws.forecastquery#DateTime", "traits": { "smithy.api#documentation": "

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

" } }, "Filters": { "target": "com.amazonaws.forecastquery#Filters", "traits": { "smithy.api#documentation": "

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

\n

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

\n \n \n

To get the full forecast, use the CreateForecastExportJob operation.

", "smithy.api#required": {} } }, "NextToken": { "target": "com.amazonaws.forecastquery#NextToken", "traits": { "smithy.api#documentation": "

If the result of the previous request was truncated, the response includes a\n NextToken. To retrieve the next set of results, use the token in the next\n request. Tokens expire after 24 hours.

" } } } }, "com.amazonaws.forecastquery#QueryForecastResponse": { "type": "structure", "members": { "Forecast": { "target": "com.amazonaws.forecastquery#Forecast", "traits": { "smithy.api#documentation": "

The forecast.

" } } } }, "com.amazonaws.forecastquery#ResourceInUseException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.forecastquery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The specified resource is in use.

", "smithy.api#error": "client", "smithy.api#httpError": 409 } }, "com.amazonaws.forecastquery#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.forecastquery#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

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

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.forecastquery#Statistic": { "type": "string", "traits": { "smithy.api#length": { "min": 0, "max": 4 } } }, "com.amazonaws.forecastquery#TimeSeries": { "type": "list", "member": { "target": "com.amazonaws.forecastquery#DataPoint" } }, "com.amazonaws.forecastquery#Timestamp": { "type": "string" } } }