openapi: 3.0.0 info: version: '2018-06-26' x-release: v4 title: Amazon Forecast Query Service description: Provides APIs for creating and managing Amazon Forecast resources. x-logo: url: 'https://twitter.com/awscloud/profile_image?size=original' backgroundColor: '#FFFFFF' termsOfService: 'https://aws.amazon.com/service-terms/' contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: 'https://github.com/mermade/aws2openapi' x-twitter: PermittedSoc license: name: Apache 2.0 License url: 'http://www.apache.org/licenses/' x-providerName: amazonaws.com x-serviceName: forecastquery x-aws-signingName: forecast x-origin: - contentType: application/json url: 'https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/forecastquery-2018-06-26.normal.json' converter: url: 'https://github.com/mermade/aws2openapi' version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: 'https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct' x-apisguru-categories: - cloud x-preferred: true externalDocs: description: Amazon Web Services documentation url: 'https://docs.aws.amazon.com/forecastquery/' servers: - url: 'http://forecastquery.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon Forecast Query Service multi-region endpoint - url: 'https://forecastquery.{region}.amazonaws.com' variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The Amazon Forecast Query Service multi-region endpoint - url: 'http://forecastquery.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon Forecast Query Service endpoint for China (Beijing) and China (Ningxia) - url: 'https://forecastquery.{region}.amazonaws.com.cn' variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The Amazon Forecast Query Service endpoint for China (Beijing) and China (Ningxia) x-hasEquivalentPaths: true paths: /#X-Amz-Target=AmazonForecastRuntime.QueryForecast: post: operationId: QueryForecast description: '
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.
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: allOf: - $ref: '#/components/schemas/NextToken' - description: 'If the result of the previous request was truncated, the response includes aNextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.'
ResourceNotFoundException: {}
ResourceInUseException: {}
InvalidInputException: {}
LimitExceededException: {}
InvalidNextTokenException: {}
QueryWhatIfForecastResponse:
type: object
properties:
Forecast:
$ref: '#/components/schemas/Forecast'
QueryWhatIfForecastRequest:
type: object
required:
- WhatIfForecastArn
- Filters
title: QueryWhatIfForecastRequest
properties:
WhatIfForecastArn:
allOf:
- $ref: '#/components/schemas/LongArn'
- description: The Amazon Resource Name (ARN) of the what-if forecast to query.
StartDate:
allOf:
- $ref: '#/components/schemas/DateTime'
- description: '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:
allOf:
- $ref: '#/components/schemas/DateTime'
- description: '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:
allOf:
- $ref: '#/components/schemas/Filters'
- description: '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: allOf: - $ref: '#/components/schemas/NextToken' - description: 'If the result of the previous request was truncated, the response includes aNextToken. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.'
Arn:
type: string
pattern: 'arn:([a-z\d-]+):forecast:.*:.*:.+'
maxLength: 256
AttributeName:
type: string
pattern: '^[a-zA-Z0-9\_\-]+$'
maxLength: 256
AttributeValue:
type: string
maxLength: 256
Timestamp:
type: string
Double:
type: number
format: double
DataPoint:
type: object
properties:
Timestamp:
allOf:
- $ref: '#/components/schemas/Timestamp'
- description: The timestamp of the specific forecast.
Value:
allOf:
- $ref: '#/components/schemas/Double'
- description: The forecast value.
description: The forecast value for a specific date. Part of the Forecast object.
DateTime:
type: string
Filters:
type: object
minProperties: 1
maxProperties: 50
additionalProperties:
$ref: '#/components/schemas/AttributeValue'
Predictions:
type: object
additionalProperties:
$ref: '#/components/schemas/TimeSeries'
Forecast:
type: object
properties:
Predictions:
allOf:
- $ref: '#/components/schemas/Predictions'
- description: 'The forecast.
The string of the string-to-array map is one of the following values:
p10
p50
p90
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.