Skip to content

Commit 9dbb015

Browse files
author
AWS
committed
Amazon Forecast Query Service Update: releasing What-If Analysis APIs
1 parent 8cf41d6 commit 9dbb015

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Forecast Query Service",
4+
"contributor": "",
5+
"description": "releasing What-If Analysis APIs"
6+
}

services/forecastquery/src/main/resources/codegen-resources/service-2.json

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,23 @@
2929
{"shape":"InvalidNextTokenException"}
3030
],
3131
"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>"
3249
}
3350
},
3451
"shapes":{
@@ -75,7 +92,7 @@
7592
"members":{
7693
"Predictions":{
7794
"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>"
7996
}
8097
},
8198
"documentation":"<p>Provides information about a forecast. Returned as part of the <a>QueryForecast</a> response.</p>"
@@ -104,6 +121,11 @@
104121
"documentation":"<p>The limit on the number of requests per second has been exceeded.</p>",
105122
"exception":true
106123
},
124+
"LongArn":{
125+
"type":"string",
126+
"max":300,
127+
"pattern":"arn:([a-z\\d-]+):forecast:.*:.*:.+"
128+
},
107129
"NextToken":{
108130
"type":"string",
109131
"max":3000,
@@ -152,6 +174,41 @@
152174
}
153175
}
154176
},
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+
},
155212
"ResourceInUseException":{
156213
"type":"structure",
157214
"members":{

0 commit comments

Comments
 (0)