1{ 2 "version":"2.0", 3 "metadata":{ 4 "apiVersion":"2018-06-26", 5 "endpointPrefix":"forecastquery", 6 "jsonVersion":"1.1", 7 "protocol":"json", 8 "serviceFullName":"Amazon Forecast Query Service", 9 "serviceId":"forecastquery", 10 "signatureVersion":"v4", 11 "signingName":"forecast", 12 "targetPrefix":"AmazonForecastRuntime", 13 "uid":"forecastquery-2018-06-26" 14 }, 15 "operations":{ 16 "QueryForecast":{ 17 "name":"QueryForecast", 18 "http":{ 19 "method":"POST", 20 "requestUri":"/" 21 }, 22 "input":{"shape":"QueryForecastRequest"}, 23 "output":{"shape":"QueryForecastResponse"}, 24 "errors":[ 25 {"shape":"ResourceNotFoundException"}, 26 {"shape":"ResourceInUseException"}, 27 {"shape":"InvalidInputException"}, 28 {"shape":"LimitExceededException"}, 29 {"shape":"InvalidNextTokenException"} 30 ], 31 "documentation":"<p>Retrieves a forecast for a single item, filtered by the supplied criteria.</p> <p>The criteria is a key-value pair. The key is either <code>item_id</code> (or the equivalent non-timestamp, non-target field) from the <code>TARGET_TIME_SERIES</code> dataset, or one of the forecast dimensions specified as part of the <code>FeaturizationConfig</code> object.</p> <p>By default, <code>QueryForecast</code> returns the complete date range for the filtered forecast. You can request a specific date range.</p> <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> <note> <p>The forecasts generated by Amazon Forecast are in the same timezone as the dataset that was used to create the predictor.</p> </note>" 32 }, 33 "QueryWhatIfForecast":{ 34 "name":"QueryWhatIfForecast", 35 "http":{ 36 "method":"POST", 37 "requestUri":"/" 38 }, 39 "input":{"shape":"QueryWhatIfForecastRequest"}, 40 "output":{"shape":"QueryWhatIfForecastResponse"}, 41 "errors":[ 42 {"shape":"ResourceNotFoundException"}, 43 {"shape":"ResourceInUseException"}, 44 {"shape":"InvalidInputException"}, 45 {"shape":"LimitExceededException"}, 46 {"shape":"InvalidNextTokenException"} 47 ], 48 "documentation":"<p>Retrieves a what-if forecast.</p>" 49 } 50 }, 51 "shapes":{ 52 "Arn":{ 53 "type":"string", 54 "max":256, 55 "pattern":"arn:([a-z\\d-]+):forecast:.*:.*:.+" 56 }, 57 "AttributeName":{ 58 "type":"string", 59 "max":256, 60 "pattern":"^[a-zA-Z0-9\\_\\-]+$" 61 }, 62 "AttributeValue":{ 63 "type":"string", 64 "max":256 65 }, 66 "DataPoint":{ 67 "type":"structure", 68 "members":{ 69 "Timestamp":{ 70 "shape":"Timestamp", 71 "documentation":"<p>The timestamp of the specific forecast.</p>" 72 }, 73 "Value":{ 74 "shape":"Double", 75 "documentation":"<p>The forecast value.</p>" 76 } 77 }, 78 "documentation":"<p>The forecast value for a specific date. Part of the <a>Forecast</a> object.</p>" 79 }, 80 "DateTime":{"type":"string"}, 81 "Double":{"type":"double"}, 82 "ErrorMessage":{"type":"string"}, 83 "Filters":{ 84 "type":"map", 85 "key":{"shape":"AttributeName"}, 86 "value":{"shape":"AttributeValue"}, 87 "max":50, 88 "min":1 89 }, 90 "Forecast":{ 91 "type":"structure", 92 "members":{ 93 "Predictions":{ 94 "shape":"Predictions", 95 "documentation":"<p>The forecast.</p> <p>The <i>string</i> of the string-to-array map is one of the following values:</p> <ul> <li> <p>p10</p> </li> <li> <p>p50</p> </li> <li> <p>p90</p> </li> </ul> <p>The default setting is <code>[\"0.1\", \"0.5\", \"0.9\"]</code>. Use the optional <code>ForecastTypes</code> parameter of the <a href=\"https://docs.aws.amazon.com/forecast/latest/dg/API_CreateForecast.html\">CreateForecast</a> operation to change the values. The values will vary depending on how this is set, with a minimum of <code>1</code> and a maximum of <code>5.</code> </p>" 96 } 97 }, 98 "documentation":"<p>Provides information about a forecast. Returned as part of the <a>QueryForecast</a> response.</p>" 99 }, 100 "InvalidInputException":{ 101 "type":"structure", 102 "members":{ 103 "Message":{"shape":"ErrorMessage"} 104 }, 105 "documentation":"<p>The value is invalid or is too long.</p>", 106 "exception":true 107 }, 108 "InvalidNextTokenException":{ 109 "type":"structure", 110 "members":{ 111 "Message":{"shape":"ErrorMessage"} 112 }, 113 "documentation":"<p>The token is not valid. Tokens expire after 24 hours.</p>", 114 "exception":true 115 }, 116 "LimitExceededException":{ 117 "type":"structure", 118 "members":{ 119 "Message":{"shape":"ErrorMessage"} 120 }, 121 "documentation":"<p>The limit on the number of requests per second has been exceeded.</p>", 122 "exception":true 123 }, 124 "LongArn":{ 125 "type":"string", 126 "max":300, 127 "pattern":"arn:([a-z\\d-]+):forecast:.*:.*:.+" 128 }, 129 "NextToken":{ 130 "type":"string", 131 "max":3000, 132 "min":1 133 }, 134 "Predictions":{ 135 "type":"map", 136 "key":{"shape":"Statistic"}, 137 "value":{"shape":"TimeSeries"} 138 }, 139 "QueryForecastRequest":{ 140 "type":"structure", 141 "required":[ 142 "ForecastArn", 143 "Filters" 144 ], 145 "members":{ 146 "ForecastArn":{ 147 "shape":"Arn", 148 "documentation":"<p>The Amazon Resource Name (ARN) of the forecast to query.</p>" 149 }, 150 "StartDate":{ 151 "shape":"DateTime", 152 "documentation":"<p>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.</p>" 153 }, 154 "EndDate":{ 155 "shape":"DateTime", 156 "documentation":"<p>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. </p>" 157 }, 158 "Filters":{ 159 "shape":"Filters", 160 "documentation":"<p>The filtering criteria to apply when retrieving the forecast. For example, to get the forecast for <code>client_21</code> in the electricity usage dataset, specify the following:</p> <p> <code>{\"item_id\" : \"client_21\"}</code> </p> <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>" 161 }, 162 "NextToken":{ 163 "shape":"NextToken", 164 "documentation":"<p>If the result of the previous request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.</p>" 165 } 166 } 167 }, 168 "QueryForecastResponse":{ 169 "type":"structure", 170 "members":{ 171 "Forecast":{ 172 "shape":"Forecast", 173 "documentation":"<p>The forecast.</p>" 174 } 175 } 176 }, 177 "QueryWhatIfForecastRequest":{ 178 "type":"structure", 179 "required":[ 180 "WhatIfForecastArn", 181 "Filters" 182 ], 183 "members":{ 184 "WhatIfForecastArn":{ 185 "shape":"LongArn", 186 "documentation":"<p>The Amazon Resource Name (ARN) of the what-if forecast to query.</p>" 187 }, 188 "StartDate":{ 189 "shape":"DateTime", 190 "documentation":"<p>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.</p>" 191 }, 192 "EndDate":{ 193 "shape":"DateTime", 194 "documentation":"<p>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. </p>" 195 }, 196 "Filters":{ 197 "shape":"Filters", 198 "documentation":"<p>The filtering criteria to apply when retrieving the forecast. For example, to get the forecast for <code>client_21</code> in the electricity usage dataset, specify the following:</p> <p> <code>{\"item_id\" : \"client_21\"}</code> </p> <p>To get the full what-if forecast, use the <a href=\"https://docs.aws.amazon.com/en_us/forecast/latest/dg/API_CreateWhatIfForecastExport.html\">CreateForecastExportJob</a> operation.</p>" 199 }, 200 "NextToken":{ 201 "shape":"NextToken", 202 "documentation":"<p>If the result of the previous request was truncated, the response includes a <code>NextToken</code>. To retrieve the next set of results, use the token in the next request. Tokens expire after 24 hours.</p>" 203 } 204 } 205 }, 206 "QueryWhatIfForecastResponse":{ 207 "type":"structure", 208 "members":{ 209 "Forecast":{"shape":"Forecast"} 210 } 211 }, 212 "ResourceInUseException":{ 213 "type":"structure", 214 "members":{ 215 "Message":{"shape":"ErrorMessage"} 216 }, 217 "documentation":"<p>The specified resource is in use.</p>", 218 "exception":true 219 }, 220 "ResourceNotFoundException":{ 221 "type":"structure", 222 "members":{ 223 "Message":{"shape":"ErrorMessage"} 224 }, 225 "documentation":"<p>We can't find that resource. Check the information that you've provided and try again.</p>", 226 "exception":true 227 }, 228 "Statistic":{ 229 "type":"string", 230 "max":4 231 }, 232 "TimeSeries":{ 233 "type":"list", 234 "member":{"shape":"DataPoint"} 235 }, 236 "Timestamp":{"type":"string"} 237 }, 238 "documentation":"<p>Provides APIs for creating and managing Amazon Forecast resources.</p>" 239} 240