aws-sdk-for-zig/codegen/models/forecastquery.2018-06-26.json

326 lines
13 KiB
JSON
Raw Permalink Normal View History

2021-05-30 01:17:45 +00:00
{
"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": "<p>Provides APIs for creating and managing Amazon Forecast resources.</p>",
"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": "<p>The timestamp of the specific forecast.</p>"
}
},
"Value": {
"target": "com.amazonaws.forecastquery#Double",
"traits": {
"smithy.api#documentation": "<p>The forecast value.</p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>The forecast value for a specific date. Part of the <a>Forecast</a>\n object.</p>"
}
},
"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": "<p>The forecast.</p>\n <p>The <i>string</i> of the string-to-array map is one of the following\n values:</p>\n <ul>\n <li>\n <p>p10</p>\n </li>\n <li>\n <p>p50</p>\n </li>\n <li>\n <p>p90</p>\n </li>\n </ul>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>Provides information about a forecast. Returned as part of the <a>QueryForecast</a> response.</p>"
}
},
"com.amazonaws.forecastquery#InvalidInputException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.forecastquery#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>The value is invalid or is too long.</p>",
"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": "<p>The token is not valid. Tokens expire after 24 hours.</p>",
"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": "<p>The limit on the number of requests per second has been exceeded.</p>",
"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": "<p>Retrieves a forecast for a single item, filtered by the supplied criteria.</p>\n <p>The criteria is a key-value pair. The key is either <code>item_id</code> (or the\n equivalent non-timestamp, non-target field) from the <code>TARGET_TIME_SERIES</code> dataset,\n or one of the forecast dimensions specified as part of the <code>FeaturizationConfig</code>\n object.</p>\n <p>By default, <code>QueryForecast</code> returns the complete date range for the filtered\n forecast. You can request a specific date range.</p>\n <p>To get the full forecast, use the <a href=\"https://docs.aws.amazon.com/en_us/forecast/latest/dg/API_CreateForecastExportJob.html\">CreateForecastExportJob</a> operation.</p>\n <note>\n <p>The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was\n used to create the predictor.</p>\n </note>"
}
},
"com.amazonaws.forecastquery#QueryForecastRequest": {
"type": "structure",
"members": {
"ForecastArn": {
"target": "com.amazonaws.forecastquery#Arn",
"traits": {
"smithy.api#documentation": "<p>The Amazon Resource Name (ARN) of the forecast to query.</p>",
"smithy.api#required": {}
}
},
"StartDate": {
"target": "com.amazonaws.forecastquery#DateTime",
"traits": {
"smithy.api#documentation": "<p>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.</p>"
}
},
"EndDate": {
"target": "com.amazonaws.forecastquery#DateTime",
"traits": {
"smithy.api#documentation": "<p>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. </p>"
}
},
"Filters": {
"target": "com.amazonaws.forecastquery#Filters",
"traits": {
"smithy.api#documentation": "<p>The filtering criteria to apply when retrieving the forecast. For example, to get the\n forecast for <code>client_21</code> in the electricity usage dataset, specify the\n following:</p>\n <p>\n <code>{\"item_id\" : \"client_21\"}</code>\n </p>\n \n \n <p>To get the full forecast, use the <a href=\"https://docs.aws.amazon.com/en_us/forecast/latest/dg/API_CreateForecastExportJob.html\">CreateForecastExportJob</a> operation.</p>",
"smithy.api#required": {}
}
},
"NextToken": {
"target": "com.amazonaws.forecastquery#NextToken",
"traits": {
"smithy.api#documentation": "<p>If the result of the previous request was truncated, the response includes a\n <code>NextToken</code>. To retrieve the next set of results, use the token in the next\n request. Tokens expire after 24 hours.</p>"
}
}
}
},
"com.amazonaws.forecastquery#QueryForecastResponse": {
"type": "structure",
"members": {
"Forecast": {
"target": "com.amazonaws.forecastquery#Forecast",
"traits": {
"smithy.api#documentation": "<p>The forecast.</p>"
}
}
}
},
"com.amazonaws.forecastquery#ResourceInUseException": {
"type": "structure",
"members": {
"Message": {
"target": "com.amazonaws.forecastquery#ErrorMessage"
}
},
"traits": {
"smithy.api#documentation": "<p>The specified resource is in use.</p>",
"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": "<p>We can't find that resource. Check the information that you've provided and try\n again.</p>",
"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"
}
}
}