@aws-sdk/client-forecast 3.154.0 → 3.155.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist-cjs/Forecast.js +180 -0
- package/dist-cjs/commands/CreateWhatIfAnalysisCommand.js +36 -0
- package/dist-cjs/commands/CreateWhatIfForecastCommand.js +36 -0
- package/dist-cjs/commands/CreateWhatIfForecastExportCommand.js +36 -0
- package/dist-cjs/commands/DeleteWhatIfAnalysisCommand.js +36 -0
- package/dist-cjs/commands/DeleteWhatIfForecastCommand.js +36 -0
- package/dist-cjs/commands/DeleteWhatIfForecastExportCommand.js +36 -0
- package/dist-cjs/commands/DescribeWhatIfAnalysisCommand.js +36 -0
- package/dist-cjs/commands/DescribeWhatIfForecastCommand.js +36 -0
- package/dist-cjs/commands/DescribeWhatIfForecastExportCommand.js +36 -0
- package/dist-cjs/commands/ListWhatIfAnalysesCommand.js +36 -0
- package/dist-cjs/commands/ListWhatIfForecastExportsCommand.js +36 -0
- package/dist-cjs/commands/ListWhatIfForecastsCommand.js +36 -0
- package/dist-cjs/commands/index.js +12 -0
- package/dist-cjs/models/models_0.js +133 -4
- package/dist-cjs/pagination/ListWhatIfAnalysesPaginator.js +36 -0
- package/dist-cjs/pagination/ListWhatIfForecastExportsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWhatIfForecastsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +3 -0
- package/dist-cjs/protocols/Aws_json1_1.js +1007 -26
- package/dist-es/Forecast.js +180 -0
- package/dist-es/commands/CreateWhatIfAnalysisCommand.js +39 -0
- package/dist-es/commands/CreateWhatIfForecastCommand.js +39 -0
- package/dist-es/commands/CreateWhatIfForecastExportCommand.js +39 -0
- package/dist-es/commands/DeleteWhatIfAnalysisCommand.js +39 -0
- package/dist-es/commands/DeleteWhatIfForecastCommand.js +39 -0
- package/dist-es/commands/DeleteWhatIfForecastExportCommand.js +39 -0
- package/dist-es/commands/DescribeWhatIfAnalysisCommand.js +39 -0
- package/dist-es/commands/DescribeWhatIfForecastCommand.js +39 -0
- package/dist-es/commands/DescribeWhatIfForecastExportCommand.js +39 -0
- package/dist-es/commands/ListWhatIfAnalysesCommand.js +39 -0
- package/dist-es/commands/ListWhatIfForecastExportsCommand.js +39 -0
- package/dist-es/commands/ListWhatIfForecastsCommand.js +39 -0
- package/dist-es/commands/index.js +12 -0
- package/dist-es/models/models_0.js +42 -0
- package/dist-es/pagination/ListWhatIfAnalysesPaginator.js +75 -0
- package/dist-es/pagination/ListWhatIfForecastExportsPaginator.js +75 -0
- package/dist-es/pagination/ListWhatIfForecastsPaginator.js +75 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_json1_1.js +1318 -145
- package/dist-types/Forecast.d.ts +183 -0
- package/dist-types/ForecastClient.d.ts +14 -2
- package/dist-types/commands/CreateWhatIfAnalysisCommand.d.ts +46 -0
- package/dist-types/commands/CreateWhatIfForecastCommand.d.ts +36 -0
- package/dist-types/commands/CreateWhatIfForecastExportCommand.d.ts +51 -0
- package/dist-types/commands/DeleteWhatIfAnalysisCommand.d.ts +37 -0
- package/dist-types/commands/DeleteWhatIfForecastCommand.d.ts +37 -0
- package/dist-types/commands/DeleteWhatIfForecastExportCommand.d.ts +36 -0
- package/dist-types/commands/DescribeWhatIfAnalysisCommand.d.ts +57 -0
- package/dist-types/commands/DescribeWhatIfForecastCommand.d.ts +57 -0
- package/dist-types/commands/DescribeWhatIfForecastExportCommand.d.ts +57 -0
- package/dist-types/commands/ListWhatIfAnalysesCommand.d.ts +35 -0
- package/dist-types/commands/ListWhatIfForecastExportsCommand.d.ts +35 -0
- package/dist-types/commands/ListWhatIfForecastsCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +1918 -840
- package/dist-types/pagination/ListWhatIfAnalysesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWhatIfForecastExportsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWhatIfForecastsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +36 -0
- package/dist-types/ts3.4/Forecast.d.ts +60 -0
- package/dist-types/ts3.4/ForecastClient.d.ts +14 -2
- package/dist-types/ts3.4/commands/CreateWhatIfAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWhatIfForecastCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateWhatIfForecastExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWhatIfAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWhatIfForecastCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteWhatIfForecastExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWhatIfAnalysisCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWhatIfForecastCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeWhatIfForecastExportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWhatIfAnalysesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWhatIfForecastExportsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListWhatIfForecastsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +12 -0
- package/dist-types/ts3.4/models/models_0.d.ts +335 -0
- package/dist-types/ts3.4/pagination/ListWhatIfAnalysesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWhatIfForecastExportsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListWhatIfForecastsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListWhatIfForecastExportsRequestFilterSensitiveLog, ListWhatIfForecastExportsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListWhatIfForecastExportsCommand, serializeAws_json1_1ListWhatIfForecastExportsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListWhatIfForecastExportsCommand = (function (_super) {
|
|
7
|
+
__extends(ListWhatIfForecastExportsCommand, _super);
|
|
8
|
+
function ListWhatIfForecastExportsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListWhatIfForecastExportsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ForecastClient";
|
|
18
|
+
var commandName = "ListWhatIfForecastExportsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListWhatIfForecastExportsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListWhatIfForecastExportsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListWhatIfForecastExportsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListWhatIfForecastExportsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListWhatIfForecastExportsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListWhatIfForecastExportsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListWhatIfForecastExportsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListWhatIfForecastExportsCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListWhatIfForecastsRequestFilterSensitiveLog, ListWhatIfForecastsResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListWhatIfForecastsCommand, serializeAws_json1_1ListWhatIfForecastsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListWhatIfForecastsCommand = (function (_super) {
|
|
7
|
+
__extends(ListWhatIfForecastsCommand, _super);
|
|
8
|
+
function ListWhatIfForecastsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListWhatIfForecastsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "ForecastClient";
|
|
18
|
+
var commandName = "ListWhatIfForecastsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListWhatIfForecastsRequestFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListWhatIfForecastsResponseFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListWhatIfForecastsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListWhatIfForecastsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListWhatIfForecastsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListWhatIfForecastsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListWhatIfForecastsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListWhatIfForecastsCommand };
|
|
@@ -9,6 +9,9 @@ export * from "./CreateForecastExportJobCommand";
|
|
|
9
9
|
export * from "./CreateMonitorCommand";
|
|
10
10
|
export * from "./CreatePredictorBacktestExportJobCommand";
|
|
11
11
|
export * from "./CreatePredictorCommand";
|
|
12
|
+
export * from "./CreateWhatIfAnalysisCommand";
|
|
13
|
+
export * from "./CreateWhatIfForecastCommand";
|
|
14
|
+
export * from "./CreateWhatIfForecastExportCommand";
|
|
12
15
|
export * from "./DeleteDatasetCommand";
|
|
13
16
|
export * from "./DeleteDatasetGroupCommand";
|
|
14
17
|
export * from "./DeleteDatasetImportJobCommand";
|
|
@@ -20,6 +23,9 @@ export * from "./DeleteMonitorCommand";
|
|
|
20
23
|
export * from "./DeletePredictorBacktestExportJobCommand";
|
|
21
24
|
export * from "./DeletePredictorCommand";
|
|
22
25
|
export * from "./DeleteResourceTreeCommand";
|
|
26
|
+
export * from "./DeleteWhatIfAnalysisCommand";
|
|
27
|
+
export * from "./DeleteWhatIfForecastCommand";
|
|
28
|
+
export * from "./DeleteWhatIfForecastExportCommand";
|
|
23
29
|
export * from "./DescribeAutoPredictorCommand";
|
|
24
30
|
export * from "./DescribeDatasetCommand";
|
|
25
31
|
export * from "./DescribeDatasetGroupCommand";
|
|
@@ -31,6 +37,9 @@ export * from "./DescribeForecastExportJobCommand";
|
|
|
31
37
|
export * from "./DescribeMonitorCommand";
|
|
32
38
|
export * from "./DescribePredictorBacktestExportJobCommand";
|
|
33
39
|
export * from "./DescribePredictorCommand";
|
|
40
|
+
export * from "./DescribeWhatIfAnalysisCommand";
|
|
41
|
+
export * from "./DescribeWhatIfForecastCommand";
|
|
42
|
+
export * from "./DescribeWhatIfForecastExportCommand";
|
|
34
43
|
export * from "./GetAccuracyMetricsCommand";
|
|
35
44
|
export * from "./ListDatasetGroupsCommand";
|
|
36
45
|
export * from "./ListDatasetImportJobsCommand";
|
|
@@ -44,6 +53,9 @@ export * from "./ListMonitorsCommand";
|
|
|
44
53
|
export * from "./ListPredictorBacktestExportJobsCommand";
|
|
45
54
|
export * from "./ListPredictorsCommand";
|
|
46
55
|
export * from "./ListTagsForResourceCommand";
|
|
56
|
+
export * from "./ListWhatIfAnalysesCommand";
|
|
57
|
+
export * from "./ListWhatIfForecastExportsCommand";
|
|
58
|
+
export * from "./ListWhatIfForecastsCommand";
|
|
47
59
|
export * from "./ResumeResourceCommand";
|
|
48
60
|
export * from "./StopResourceCommand";
|
|
49
61
|
export * from "./TagResourceCommand";
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { __assign, __extends } from "tslib";
|
|
2
2
|
import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
|
|
3
3
|
import { ForecastServiceException as __BaseException } from "./ForecastServiceException";
|
|
4
|
+
export var Operation;
|
|
5
|
+
(function (Operation) {
|
|
6
|
+
Operation["ADD"] = "ADD";
|
|
7
|
+
Operation["DIVIDE"] = "DIVIDE";
|
|
8
|
+
Operation["MULTIPLY"] = "MULTIPLY";
|
|
9
|
+
Operation["SUBTRACT"] = "SUBTRACT";
|
|
10
|
+
})(Operation || (Operation = {}));
|
|
4
11
|
export var OptimizationMetric;
|
|
5
12
|
(function (OptimizationMetric) {
|
|
6
13
|
OptimizationMetric["AverageWeightedQuantileLoss"] = "AverageWeightedQuantileLoss";
|
|
@@ -149,6 +156,13 @@ export var ScalingType;
|
|
|
149
156
|
ScalingType["Logarithmic"] = "Logarithmic";
|
|
150
157
|
ScalingType["ReverseLogarithmic"] = "ReverseLogarithmic";
|
|
151
158
|
})(ScalingType || (ScalingType = {}));
|
|
159
|
+
export var Condition;
|
|
160
|
+
(function (Condition) {
|
|
161
|
+
Condition["EQUALS"] = "EQUALS";
|
|
162
|
+
Condition["GREATER_THAN"] = "GREATER_THAN";
|
|
163
|
+
Condition["LESS_THAN"] = "LESS_THAN";
|
|
164
|
+
Condition["NOT_EQUALS"] = "NOT_EQUALS";
|
|
165
|
+
})(Condition || (Condition = {}));
|
|
152
166
|
export var State;
|
|
153
167
|
(function (State) {
|
|
154
168
|
State["Active"] = "Active";
|
|
@@ -177,6 +191,7 @@ export var FilterConditionString;
|
|
|
177
191
|
FilterConditionString["IS"] = "IS";
|
|
178
192
|
FilterConditionString["IS_NOT"] = "IS_NOT";
|
|
179
193
|
})(FilterConditionString || (FilterConditionString = {}));
|
|
194
|
+
export var ActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
180
195
|
export var AdditionalDatasetFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
181
196
|
export var AttributeConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
182
197
|
export var DataConfigFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -225,6 +240,15 @@ export var CreatePredictorRequestFilterSensitiveLog = function (obj) { return (_
|
|
|
225
240
|
export var CreatePredictorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
226
241
|
export var CreatePredictorBacktestExportJobRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
|
|
227
242
|
export var CreatePredictorBacktestExportJobResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
243
|
+
export var CreateWhatIfAnalysisRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
|
|
244
|
+
export var CreateWhatIfAnalysisResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
245
|
+
export var TimeSeriesReplacementsDataSourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
246
|
+
export var TimeSeriesConditionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
247
|
+
export var TimeSeriesTransformationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
248
|
+
export var CreateWhatIfForecastRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
|
|
249
|
+
export var CreateWhatIfForecastResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
250
|
+
export var CreateWhatIfForecastExportRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
|
|
251
|
+
export var CreateWhatIfForecastExportResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
228
252
|
export var DeleteDatasetRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
229
253
|
export var DeleteDatasetGroupRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
230
254
|
export var DeleteDatasetImportJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -236,6 +260,9 @@ export var DeleteMonitorRequestFilterSensitiveLog = function (obj) { return (__a
|
|
|
236
260
|
export var DeletePredictorRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
237
261
|
export var DeletePredictorBacktestExportJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
238
262
|
export var DeleteResourceTreeRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
263
|
+
export var DeleteWhatIfAnalysisRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
264
|
+
export var DeleteWhatIfForecastRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
265
|
+
export var DeleteWhatIfForecastExportRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
239
266
|
export var DescribeAutoPredictorRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
240
267
|
export var ExplainabilityInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
241
268
|
export var MonitorInfoFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -268,6 +295,12 @@ export var PredictorExecutionDetailsFilterSensitiveLog = function (obj) { return
|
|
|
268
295
|
export var DescribePredictorResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
269
296
|
export var DescribePredictorBacktestExportJobRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
270
297
|
export var DescribePredictorBacktestExportJobResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
298
|
+
export var DescribeWhatIfAnalysisRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
299
|
+
export var DescribeWhatIfAnalysisResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
300
|
+
export var DescribeWhatIfForecastRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
301
|
+
export var DescribeWhatIfForecastResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
302
|
+
export var DescribeWhatIfForecastExportRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
303
|
+
export var DescribeWhatIfForecastExportResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
271
304
|
export var GetAccuracyMetricsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
272
305
|
export var ErrorMetricFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
273
306
|
export var WeightedQuantileLossFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -314,6 +347,15 @@ export var PredictorSummaryFilterSensitiveLog = function (obj) { return (__assig
|
|
|
314
347
|
export var ListPredictorsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
315
348
|
export var ListTagsForResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
316
349
|
export var ListTagsForResourceResponseFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
|
|
350
|
+
export var ListWhatIfAnalysesRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
351
|
+
export var WhatIfAnalysisSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
352
|
+
export var ListWhatIfAnalysesResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
353
|
+
export var ListWhatIfForecastExportsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
354
|
+
export var WhatIfForecastExportSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
355
|
+
export var ListWhatIfForecastExportsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
356
|
+
export var ListWhatIfForecastsRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
357
|
+
export var WhatIfForecastSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
358
|
+
export var ListWhatIfForecastsResponseFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
317
359
|
export var ResumeResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
318
360
|
export var StopResourceRequestFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
319
361
|
export var TagResourceRequestFilterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return TagFilterSensitiveLog(item); }) }))); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListWhatIfAnalysesCommand, } from "../commands/ListWhatIfAnalysesCommand";
|
|
3
|
+
import { Forecast } from "../Forecast";
|
|
4
|
+
import { ForecastClient } from "../ForecastClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListWhatIfAnalysesCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listWhatIfAnalyses.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListWhatIfAnalyses(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListWhatIfAnalyses_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Forecast)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ForecastClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Forecast | ForecastClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListWhatIfForecastExportsCommand, } from "../commands/ListWhatIfForecastExportsCommand";
|
|
3
|
+
import { Forecast } from "../Forecast";
|
|
4
|
+
import { ForecastClient } from "../ForecastClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListWhatIfForecastExportsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listWhatIfForecastExports.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListWhatIfForecastExports(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListWhatIfForecastExports_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Forecast)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ForecastClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Forecast | ForecastClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListWhatIfForecastsCommand, } from "../commands/ListWhatIfForecastsCommand";
|
|
3
|
+
import { Forecast } from "../Forecast";
|
|
4
|
+
import { ForecastClient } from "../ForecastClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListWhatIfForecastsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listWhatIfForecasts.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListWhatIfForecasts(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListWhatIfForecasts_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Forecast)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof ForecastClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Forecast | ForecastClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -10,3 +10,6 @@ export * from "./ListMonitorEvaluationsPaginator";
|
|
|
10
10
|
export * from "./ListMonitorsPaginator";
|
|
11
11
|
export * from "./ListPredictorBacktestExportJobsPaginator";
|
|
12
12
|
export * from "./ListPredictorsPaginator";
|
|
13
|
+
export * from "./ListWhatIfAnalysesPaginator";
|
|
14
|
+
export * from "./ListWhatIfForecastExportsPaginator";
|
|
15
|
+
export * from "./ListWhatIfForecastsPaginator";
|