|
29 | 29 | {"shape":"InvalidNextTokenException"}
|
30 | 30 | ],
|
31 | 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>" |
32 | 49 | }
|
33 | 50 | },
|
34 | 51 | "shapes":{
|
|
75 | 92 | "members":{
|
76 | 93 | "Predictions":{
|
77 | 94 | "shape":"Predictions",
|
78 |
| - "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>" |
| 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>" |
79 | 96 | }
|
80 | 97 | },
|
81 | 98 | "documentation":"<p>Provides information about a forecast. Returned as part of the <a>QueryForecast</a> response.</p>"
|
|
104 | 121 | "documentation":"<p>The limit on the number of requests per second has been exceeded.</p>",
|
105 | 122 | "exception":true
|
106 | 123 | },
|
| 124 | + "LongArn":{ |
| 125 | + "type":"string", |
| 126 | + "max":300, |
| 127 | + "pattern":"arn:([a-z\\d-]+):forecast:.*:.*:.+" |
| 128 | + }, |
107 | 129 | "NextToken":{
|
108 | 130 | "type":"string",
|
109 | 131 | "max":3000,
|
|
152 | 174 | }
|
153 | 175 | }
|
154 | 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 | + }, |
155 | 212 | "ResourceInUseException":{
|
156 | 213 | "type":"structure",
|
157 | 214 | "members":{
|
|
0 commit comments