@aws-sdk/client-forecast 3.95.0 → 3.97.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 +90 -0
- package/dist-cjs/commands/CreateMonitorCommand.js +36 -0
- package/dist-cjs/commands/DeleteMonitorCommand.js +36 -0
- package/dist-cjs/commands/DescribeMonitorCommand.js +36 -0
- package/dist-cjs/commands/ListMonitorEvaluationsCommand.js +36 -0
- package/dist-cjs/commands/ListMonitorsCommand.js +36 -0
- package/dist-cjs/commands/ResumeResourceCommand.js +36 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/models/models_0.js +125 -3
- package/dist-cjs/pagination/ListExplainabilitiesPaginator.js +36 -0
- package/dist-cjs/pagination/ListExplainabilityExportsPaginator.js +36 -0
- package/dist-cjs/pagination/ListMonitorEvaluationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListMonitorsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +539 -2
- package/dist-es/Forecast.js +90 -0
- package/dist-es/commands/CreateMonitorCommand.js +39 -0
- package/dist-es/commands/DeleteMonitorCommand.js +39 -0
- package/dist-es/commands/DescribeMonitorCommand.js +39 -0
- package/dist-es/commands/ListMonitorEvaluationsCommand.js +39 -0
- package/dist-es/commands/ListMonitorsCommand.js +39 -0
- package/dist-es/commands/ResumeResourceCommand.js +39 -0
- package/dist-es/commands/index.js +6 -0
- package/dist-es/models/models_0.js +80 -0
- package/dist-es/pagination/ListExplainabilitiesPaginator.js +75 -0
- package/dist-es/pagination/ListExplainabilityExportsPaginator.js +75 -0
- package/dist-es/pagination/ListMonitorEvaluationsPaginator.js +75 -0
- package/dist-es/pagination/ListMonitorsPaginator.js +75 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +624 -1
- package/dist-types/Forecast.d.ts +133 -45
- package/dist-types/ForecastClient.d.ts +8 -2
- package/dist-types/commands/CreateAutoPredictorCommand.d.ts +7 -5
- package/dist-types/commands/CreateDatasetCommand.d.ts +4 -4
- package/dist-types/commands/CreateDatasetGroupCommand.d.ts +4 -4
- package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +5 -4
- package/dist-types/commands/CreateExplainabilityCommand.d.ts +2 -2
- package/dist-types/commands/CreateMonitorCommand.d.ts +37 -0
- package/dist-types/commands/DeleteDatasetCommand.d.ts +5 -6
- package/dist-types/commands/DeleteDatasetGroupCommand.d.ts +2 -2
- package/dist-types/commands/DeleteDatasetImportJobCommand.d.ts +3 -2
- package/dist-types/commands/DeleteMonitorCommand.d.ts +35 -0
- package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -2
- package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeMonitorCommand.d.ts +72 -0
- package/dist-types/commands/ListDatasetGroupsCommand.d.ts +5 -4
- package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +5 -4
- package/dist-types/commands/ListDatasetsCommand.d.ts +3 -3
- package/dist-types/commands/ListMonitorEvaluationsCommand.d.ts +37 -0
- package/dist-types/commands/ListMonitorsCommand.d.ts +36 -0
- package/dist-types/commands/ResumeResourceCommand.d.ts +35 -0
- package/dist-types/commands/UpdateDatasetGroupCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +6 -0
- package/dist-types/models/models_0.d.ts +660 -62
- package/dist-types/pagination/ListExplainabilitiesPaginator.d.ts +4 -0
- package/dist-types/pagination/ListExplainabilityExportsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMonitorEvaluationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListMonitorsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +18 -0
- package/dist-types/ts3.4/Forecast.d.ts +30 -0
- package/dist-types/ts3.4/ForecastClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/CreateMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeMonitorCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMonitorEvaluationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListMonitorsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ResumeResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +252 -0
- package/dist-types/ts3.4/pagination/ListExplainabilitiesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListExplainabilityExportsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMonitorEvaluationsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListMonitorsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +18 -0
- package/package.json +1 -1
package/dist-es/Forecast.js
CHANGED
|
@@ -7,6 +7,7 @@ import { CreateExplainabilityCommand, } from "./commands/CreateExplainabilityCom
|
|
|
7
7
|
import { CreateExplainabilityExportCommand, } from "./commands/CreateExplainabilityExportCommand";
|
|
8
8
|
import { CreateForecastCommand, } from "./commands/CreateForecastCommand";
|
|
9
9
|
import { CreateForecastExportJobCommand, } from "./commands/CreateForecastExportJobCommand";
|
|
10
|
+
import { CreateMonitorCommand, } from "./commands/CreateMonitorCommand";
|
|
10
11
|
import { CreatePredictorBacktestExportJobCommand, } from "./commands/CreatePredictorBacktestExportJobCommand";
|
|
11
12
|
import { CreatePredictorCommand, } from "./commands/CreatePredictorCommand";
|
|
12
13
|
import { DeleteDatasetCommand, } from "./commands/DeleteDatasetCommand";
|
|
@@ -16,6 +17,7 @@ import { DeleteExplainabilityCommand, } from "./commands/DeleteExplainabilityCom
|
|
|
16
17
|
import { DeleteExplainabilityExportCommand, } from "./commands/DeleteExplainabilityExportCommand";
|
|
17
18
|
import { DeleteForecastCommand, } from "./commands/DeleteForecastCommand";
|
|
18
19
|
import { DeleteForecastExportJobCommand, } from "./commands/DeleteForecastExportJobCommand";
|
|
20
|
+
import { DeleteMonitorCommand, } from "./commands/DeleteMonitorCommand";
|
|
19
21
|
import { DeletePredictorBacktestExportJobCommand, } from "./commands/DeletePredictorBacktestExportJobCommand";
|
|
20
22
|
import { DeletePredictorCommand, } from "./commands/DeletePredictorCommand";
|
|
21
23
|
import { DeleteResourceTreeCommand, } from "./commands/DeleteResourceTreeCommand";
|
|
@@ -27,6 +29,7 @@ import { DescribeExplainabilityCommand, } from "./commands/DescribeExplainabilit
|
|
|
27
29
|
import { DescribeExplainabilityExportCommand, } from "./commands/DescribeExplainabilityExportCommand";
|
|
28
30
|
import { DescribeForecastCommand, } from "./commands/DescribeForecastCommand";
|
|
29
31
|
import { DescribeForecastExportJobCommand, } from "./commands/DescribeForecastExportJobCommand";
|
|
32
|
+
import { DescribeMonitorCommand, } from "./commands/DescribeMonitorCommand";
|
|
30
33
|
import { DescribePredictorBacktestExportJobCommand, } from "./commands/DescribePredictorBacktestExportJobCommand";
|
|
31
34
|
import { DescribePredictorCommand, } from "./commands/DescribePredictorCommand";
|
|
32
35
|
import { GetAccuracyMetricsCommand, } from "./commands/GetAccuracyMetricsCommand";
|
|
@@ -37,9 +40,12 @@ import { ListExplainabilitiesCommand, } from "./commands/ListExplainabilitiesCom
|
|
|
37
40
|
import { ListExplainabilityExportsCommand, } from "./commands/ListExplainabilityExportsCommand";
|
|
38
41
|
import { ListForecastExportJobsCommand, } from "./commands/ListForecastExportJobsCommand";
|
|
39
42
|
import { ListForecastsCommand, } from "./commands/ListForecastsCommand";
|
|
43
|
+
import { ListMonitorEvaluationsCommand, } from "./commands/ListMonitorEvaluationsCommand";
|
|
44
|
+
import { ListMonitorsCommand, } from "./commands/ListMonitorsCommand";
|
|
40
45
|
import { ListPredictorBacktestExportJobsCommand, } from "./commands/ListPredictorBacktestExportJobsCommand";
|
|
41
46
|
import { ListPredictorsCommand, } from "./commands/ListPredictorsCommand";
|
|
42
47
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
48
|
+
import { ResumeResourceCommand, } from "./commands/ResumeResourceCommand";
|
|
43
49
|
import { StopResourceCommand, } from "./commands/StopResourceCommand";
|
|
44
50
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
45
51
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
@@ -162,6 +168,20 @@ var Forecast = (function (_super) {
|
|
|
162
168
|
return this.send(command, optionsOrCb);
|
|
163
169
|
}
|
|
164
170
|
};
|
|
171
|
+
Forecast.prototype.createMonitor = function (args, optionsOrCb, cb) {
|
|
172
|
+
var command = new CreateMonitorCommand(args);
|
|
173
|
+
if (typeof optionsOrCb === "function") {
|
|
174
|
+
this.send(command, optionsOrCb);
|
|
175
|
+
}
|
|
176
|
+
else if (typeof cb === "function") {
|
|
177
|
+
if (typeof optionsOrCb !== "object")
|
|
178
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
179
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
return this.send(command, optionsOrCb);
|
|
183
|
+
}
|
|
184
|
+
};
|
|
165
185
|
Forecast.prototype.createPredictor = function (args, optionsOrCb, cb) {
|
|
166
186
|
var command = new CreatePredictorCommand(args);
|
|
167
187
|
if (typeof optionsOrCb === "function") {
|
|
@@ -288,6 +308,20 @@ var Forecast = (function (_super) {
|
|
|
288
308
|
return this.send(command, optionsOrCb);
|
|
289
309
|
}
|
|
290
310
|
};
|
|
311
|
+
Forecast.prototype.deleteMonitor = function (args, optionsOrCb, cb) {
|
|
312
|
+
var command = new DeleteMonitorCommand(args);
|
|
313
|
+
if (typeof optionsOrCb === "function") {
|
|
314
|
+
this.send(command, optionsOrCb);
|
|
315
|
+
}
|
|
316
|
+
else if (typeof cb === "function") {
|
|
317
|
+
if (typeof optionsOrCb !== "object")
|
|
318
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
319
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
320
|
+
}
|
|
321
|
+
else {
|
|
322
|
+
return this.send(command, optionsOrCb);
|
|
323
|
+
}
|
|
324
|
+
};
|
|
291
325
|
Forecast.prototype.deletePredictor = function (args, optionsOrCb, cb) {
|
|
292
326
|
var command = new DeletePredictorCommand(args);
|
|
293
327
|
if (typeof optionsOrCb === "function") {
|
|
@@ -442,6 +476,20 @@ var Forecast = (function (_super) {
|
|
|
442
476
|
return this.send(command, optionsOrCb);
|
|
443
477
|
}
|
|
444
478
|
};
|
|
479
|
+
Forecast.prototype.describeMonitor = function (args, optionsOrCb, cb) {
|
|
480
|
+
var command = new DescribeMonitorCommand(args);
|
|
481
|
+
if (typeof optionsOrCb === "function") {
|
|
482
|
+
this.send(command, optionsOrCb);
|
|
483
|
+
}
|
|
484
|
+
else if (typeof cb === "function") {
|
|
485
|
+
if (typeof optionsOrCb !== "object")
|
|
486
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
487
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
488
|
+
}
|
|
489
|
+
else {
|
|
490
|
+
return this.send(command, optionsOrCb);
|
|
491
|
+
}
|
|
492
|
+
};
|
|
445
493
|
Forecast.prototype.describePredictor = function (args, optionsOrCb, cb) {
|
|
446
494
|
var command = new DescribePredictorCommand(args);
|
|
447
495
|
if (typeof optionsOrCb === "function") {
|
|
@@ -582,6 +630,34 @@ var Forecast = (function (_super) {
|
|
|
582
630
|
return this.send(command, optionsOrCb);
|
|
583
631
|
}
|
|
584
632
|
};
|
|
633
|
+
Forecast.prototype.listMonitorEvaluations = function (args, optionsOrCb, cb) {
|
|
634
|
+
var command = new ListMonitorEvaluationsCommand(args);
|
|
635
|
+
if (typeof optionsOrCb === "function") {
|
|
636
|
+
this.send(command, optionsOrCb);
|
|
637
|
+
}
|
|
638
|
+
else if (typeof cb === "function") {
|
|
639
|
+
if (typeof optionsOrCb !== "object")
|
|
640
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
641
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
642
|
+
}
|
|
643
|
+
else {
|
|
644
|
+
return this.send(command, optionsOrCb);
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
Forecast.prototype.listMonitors = function (args, optionsOrCb, cb) {
|
|
648
|
+
var command = new ListMonitorsCommand(args);
|
|
649
|
+
if (typeof optionsOrCb === "function") {
|
|
650
|
+
this.send(command, optionsOrCb);
|
|
651
|
+
}
|
|
652
|
+
else if (typeof cb === "function") {
|
|
653
|
+
if (typeof optionsOrCb !== "object")
|
|
654
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
655
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
656
|
+
}
|
|
657
|
+
else {
|
|
658
|
+
return this.send(command, optionsOrCb);
|
|
659
|
+
}
|
|
660
|
+
};
|
|
585
661
|
Forecast.prototype.listPredictorBacktestExportJobs = function (args, optionsOrCb, cb) {
|
|
586
662
|
var command = new ListPredictorBacktestExportJobsCommand(args);
|
|
587
663
|
if (typeof optionsOrCb === "function") {
|
|
@@ -624,6 +700,20 @@ var Forecast = (function (_super) {
|
|
|
624
700
|
return this.send(command, optionsOrCb);
|
|
625
701
|
}
|
|
626
702
|
};
|
|
703
|
+
Forecast.prototype.resumeResource = function (args, optionsOrCb, cb) {
|
|
704
|
+
var command = new ResumeResourceCommand(args);
|
|
705
|
+
if (typeof optionsOrCb === "function") {
|
|
706
|
+
this.send(command, optionsOrCb);
|
|
707
|
+
}
|
|
708
|
+
else if (typeof cb === "function") {
|
|
709
|
+
if (typeof optionsOrCb !== "object")
|
|
710
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
711
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
712
|
+
}
|
|
713
|
+
else {
|
|
714
|
+
return this.send(command, optionsOrCb);
|
|
715
|
+
}
|
|
716
|
+
};
|
|
627
717
|
Forecast.prototype.stopResource = function (args, optionsOrCb, cb) {
|
|
628
718
|
var command = new StopResourceCommand(args);
|
|
629
719
|
if (typeof optionsOrCb === "function") {
|
|
@@ -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 { CreateMonitorRequest, CreateMonitorResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1CreateMonitorCommand, serializeAws_json1_1CreateMonitorCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var CreateMonitorCommand = (function (_super) {
|
|
7
|
+
__extends(CreateMonitorCommand, _super);
|
|
8
|
+
function CreateMonitorCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
CreateMonitorCommand.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 = "CreateMonitorCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: CreateMonitorRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: CreateMonitorResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
CreateMonitorCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1CreateMonitorCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
CreateMonitorCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1CreateMonitorCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return CreateMonitorCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { CreateMonitorCommand };
|
|
@@ -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 { DeleteMonitorRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DeleteMonitorCommand, serializeAws_json1_1DeleteMonitorCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DeleteMonitorCommand = (function (_super) {
|
|
7
|
+
__extends(DeleteMonitorCommand, _super);
|
|
8
|
+
function DeleteMonitorCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DeleteMonitorCommand.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 = "DeleteMonitorCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DeleteMonitorRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DeleteMonitorCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DeleteMonitorCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DeleteMonitorCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DeleteMonitorCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DeleteMonitorCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DeleteMonitorCommand };
|
|
@@ -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 { DescribeMonitorRequest, DescribeMonitorResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1DescribeMonitorCommand, serializeAws_json1_1DescribeMonitorCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var DescribeMonitorCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeMonitorCommand, _super);
|
|
8
|
+
function DescribeMonitorCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeMonitorCommand.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 = "DescribeMonitorCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeMonitorRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeMonitorResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeMonitorCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1DescribeMonitorCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeMonitorCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1DescribeMonitorCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeMonitorCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeMonitorCommand };
|
|
@@ -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 { ListMonitorEvaluationsRequest, ListMonitorEvaluationsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListMonitorEvaluationsCommand, serializeAws_json1_1ListMonitorEvaluationsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListMonitorEvaluationsCommand = (function (_super) {
|
|
7
|
+
__extends(ListMonitorEvaluationsCommand, _super);
|
|
8
|
+
function ListMonitorEvaluationsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListMonitorEvaluationsCommand.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 = "ListMonitorEvaluationsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListMonitorEvaluationsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListMonitorEvaluationsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListMonitorEvaluationsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListMonitorEvaluationsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListMonitorEvaluationsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListMonitorEvaluationsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListMonitorEvaluationsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListMonitorEvaluationsCommand };
|
|
@@ -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 { ListMonitorsRequest, ListMonitorsResponse } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListMonitorsCommand, serializeAws_json1_1ListMonitorsCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ListMonitorsCommand = (function (_super) {
|
|
7
|
+
__extends(ListMonitorsCommand, _super);
|
|
8
|
+
function ListMonitorsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListMonitorsCommand.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 = "ListMonitorsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListMonitorsRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListMonitorsResponse.filterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListMonitorsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ListMonitorsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListMonitorsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ListMonitorsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListMonitorsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListMonitorsCommand };
|
|
@@ -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 { ResumeResourceRequest } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ResumeResourceCommand, serializeAws_json1_1ResumeResourceCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
var ResumeResourceCommand = (function (_super) {
|
|
7
|
+
__extends(ResumeResourceCommand, _super);
|
|
8
|
+
function ResumeResourceCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ResumeResourceCommand.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 = "ResumeResourceCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ResumeResourceRequest.filterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: function (output) { return output; },
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ResumeResourceCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_1ResumeResourceCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ResumeResourceCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_1ResumeResourceCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ResumeResourceCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ResumeResourceCommand };
|
|
@@ -6,6 +6,7 @@ export * from "./CreateExplainabilityCommand";
|
|
|
6
6
|
export * from "./CreateExplainabilityExportCommand";
|
|
7
7
|
export * from "./CreateForecastCommand";
|
|
8
8
|
export * from "./CreateForecastExportJobCommand";
|
|
9
|
+
export * from "./CreateMonitorCommand";
|
|
9
10
|
export * from "./CreatePredictorBacktestExportJobCommand";
|
|
10
11
|
export * from "./CreatePredictorCommand";
|
|
11
12
|
export * from "./DeleteDatasetCommand";
|
|
@@ -15,6 +16,7 @@ export * from "./DeleteExplainabilityCommand";
|
|
|
15
16
|
export * from "./DeleteExplainabilityExportCommand";
|
|
16
17
|
export * from "./DeleteForecastCommand";
|
|
17
18
|
export * from "./DeleteForecastExportJobCommand";
|
|
19
|
+
export * from "./DeleteMonitorCommand";
|
|
18
20
|
export * from "./DeletePredictorBacktestExportJobCommand";
|
|
19
21
|
export * from "./DeletePredictorCommand";
|
|
20
22
|
export * from "./DeleteResourceTreeCommand";
|
|
@@ -26,6 +28,7 @@ export * from "./DescribeExplainabilityCommand";
|
|
|
26
28
|
export * from "./DescribeExplainabilityExportCommand";
|
|
27
29
|
export * from "./DescribeForecastCommand";
|
|
28
30
|
export * from "./DescribeForecastExportJobCommand";
|
|
31
|
+
export * from "./DescribeMonitorCommand";
|
|
29
32
|
export * from "./DescribePredictorBacktestExportJobCommand";
|
|
30
33
|
export * from "./DescribePredictorCommand";
|
|
31
34
|
export * from "./GetAccuracyMetricsCommand";
|
|
@@ -36,9 +39,12 @@ export * from "./ListExplainabilitiesCommand";
|
|
|
36
39
|
export * from "./ListExplainabilityExportsCommand";
|
|
37
40
|
export * from "./ListForecastExportJobsCommand";
|
|
38
41
|
export * from "./ListForecastsCommand";
|
|
42
|
+
export * from "./ListMonitorEvaluationsCommand";
|
|
43
|
+
export * from "./ListMonitorsCommand";
|
|
39
44
|
export * from "./ListPredictorBacktestExportJobsCommand";
|
|
40
45
|
export * from "./ListPredictorsCommand";
|
|
41
46
|
export * from "./ListTagsForResourceCommand";
|
|
47
|
+
export * from "./ResumeResourceCommand";
|
|
42
48
|
export * from "./StopResourceCommand";
|
|
43
49
|
export * from "./TagResourceCommand";
|
|
44
50
|
export * from "./UntagResourceCommand";
|
|
@@ -17,6 +17,10 @@ export var EncryptionConfig;
|
|
|
17
17
|
(function (EncryptionConfig) {
|
|
18
18
|
EncryptionConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
19
19
|
})(EncryptionConfig || (EncryptionConfig = {}));
|
|
20
|
+
export var MonitorConfig;
|
|
21
|
+
(function (MonitorConfig) {
|
|
22
|
+
MonitorConfig.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
23
|
+
})(MonitorConfig || (MonitorConfig = {}));
|
|
20
24
|
export var OptimizationMetric;
|
|
21
25
|
(function (OptimizationMetric) {
|
|
22
26
|
OptimizationMetric["AverageWeightedQuantileLoss"] = "AverageWeightedQuantileLoss";
|
|
@@ -216,6 +220,14 @@ export var CreateForecastExportJobResponse;
|
|
|
216
220
|
(function (CreateForecastExportJobResponse) {
|
|
217
221
|
CreateForecastExportJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
218
222
|
})(CreateForecastExportJobResponse || (CreateForecastExportJobResponse = {}));
|
|
223
|
+
export var CreateMonitorRequest;
|
|
224
|
+
(function (CreateMonitorRequest) {
|
|
225
|
+
CreateMonitorRequest.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return Tag.filterSensitiveLog(item); }) }))); };
|
|
226
|
+
})(CreateMonitorRequest || (CreateMonitorRequest = {}));
|
|
227
|
+
export var CreateMonitorResponse;
|
|
228
|
+
(function (CreateMonitorResponse) {
|
|
229
|
+
CreateMonitorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
230
|
+
})(CreateMonitorResponse || (CreateMonitorResponse = {}));
|
|
219
231
|
export var AutoMLOverrideStrategy;
|
|
220
232
|
(function (AutoMLOverrideStrategy) {
|
|
221
233
|
AutoMLOverrideStrategy["AccuracyOptimized"] = "AccuracyOptimized";
|
|
@@ -320,6 +332,10 @@ export var DeleteForecastExportJobRequest;
|
|
|
320
332
|
(function (DeleteForecastExportJobRequest) {
|
|
321
333
|
DeleteForecastExportJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
322
334
|
})(DeleteForecastExportJobRequest || (DeleteForecastExportJobRequest = {}));
|
|
335
|
+
export var DeleteMonitorRequest;
|
|
336
|
+
(function (DeleteMonitorRequest) {
|
|
337
|
+
DeleteMonitorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
338
|
+
})(DeleteMonitorRequest || (DeleteMonitorRequest = {}));
|
|
323
339
|
export var DeletePredictorRequest;
|
|
324
340
|
(function (DeletePredictorRequest) {
|
|
325
341
|
DeletePredictorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -340,6 +356,10 @@ export var ExplainabilityInfo;
|
|
|
340
356
|
(function (ExplainabilityInfo) {
|
|
341
357
|
ExplainabilityInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
342
358
|
})(ExplainabilityInfo || (ExplainabilityInfo = {}));
|
|
359
|
+
export var MonitorInfo;
|
|
360
|
+
(function (MonitorInfo) {
|
|
361
|
+
MonitorInfo.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
362
|
+
})(MonitorInfo || (MonitorInfo = {}));
|
|
343
363
|
export var State;
|
|
344
364
|
(function (State) {
|
|
345
365
|
State["Active"] = "Active";
|
|
@@ -413,6 +433,26 @@ export var DescribeForecastExportJobResponse;
|
|
|
413
433
|
(function (DescribeForecastExportJobResponse) {
|
|
414
434
|
DescribeForecastExportJobResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
415
435
|
})(DescribeForecastExportJobResponse || (DescribeForecastExportJobResponse = {}));
|
|
436
|
+
export var DescribeMonitorRequest;
|
|
437
|
+
(function (DescribeMonitorRequest) {
|
|
438
|
+
DescribeMonitorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
439
|
+
})(DescribeMonitorRequest || (DescribeMonitorRequest = {}));
|
|
440
|
+
export var BaselineMetric;
|
|
441
|
+
(function (BaselineMetric) {
|
|
442
|
+
BaselineMetric.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
443
|
+
})(BaselineMetric || (BaselineMetric = {}));
|
|
444
|
+
export var PredictorBaseline;
|
|
445
|
+
(function (PredictorBaseline) {
|
|
446
|
+
PredictorBaseline.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
447
|
+
})(PredictorBaseline || (PredictorBaseline = {}));
|
|
448
|
+
export var Baseline;
|
|
449
|
+
(function (Baseline) {
|
|
450
|
+
Baseline.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
451
|
+
})(Baseline || (Baseline = {}));
|
|
452
|
+
export var DescribeMonitorResponse;
|
|
453
|
+
(function (DescribeMonitorResponse) {
|
|
454
|
+
DescribeMonitorResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
455
|
+
})(DescribeMonitorResponse || (DescribeMonitorResponse = {}));
|
|
416
456
|
export var DescribePredictorRequest;
|
|
417
457
|
(function (DescribePredictorRequest) {
|
|
418
458
|
DescribePredictorRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -580,6 +620,42 @@ export var ListForecastsResponse;
|
|
|
580
620
|
(function (ListForecastsResponse) {
|
|
581
621
|
ListForecastsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
582
622
|
})(ListForecastsResponse || (ListForecastsResponse = {}));
|
|
623
|
+
export var ListMonitorEvaluationsRequest;
|
|
624
|
+
(function (ListMonitorEvaluationsRequest) {
|
|
625
|
+
ListMonitorEvaluationsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
626
|
+
})(ListMonitorEvaluationsRequest || (ListMonitorEvaluationsRequest = {}));
|
|
627
|
+
export var MetricResult;
|
|
628
|
+
(function (MetricResult) {
|
|
629
|
+
MetricResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
630
|
+
})(MetricResult || (MetricResult = {}));
|
|
631
|
+
export var MonitorDataSource;
|
|
632
|
+
(function (MonitorDataSource) {
|
|
633
|
+
MonitorDataSource.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
634
|
+
})(MonitorDataSource || (MonitorDataSource = {}));
|
|
635
|
+
export var PredictorEvent;
|
|
636
|
+
(function (PredictorEvent) {
|
|
637
|
+
PredictorEvent.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
638
|
+
})(PredictorEvent || (PredictorEvent = {}));
|
|
639
|
+
export var PredictorMonitorEvaluation;
|
|
640
|
+
(function (PredictorMonitorEvaluation) {
|
|
641
|
+
PredictorMonitorEvaluation.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
642
|
+
})(PredictorMonitorEvaluation || (PredictorMonitorEvaluation = {}));
|
|
643
|
+
export var ListMonitorEvaluationsResponse;
|
|
644
|
+
(function (ListMonitorEvaluationsResponse) {
|
|
645
|
+
ListMonitorEvaluationsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
646
|
+
})(ListMonitorEvaluationsResponse || (ListMonitorEvaluationsResponse = {}));
|
|
647
|
+
export var ListMonitorsRequest;
|
|
648
|
+
(function (ListMonitorsRequest) {
|
|
649
|
+
ListMonitorsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
650
|
+
})(ListMonitorsRequest || (ListMonitorsRequest = {}));
|
|
651
|
+
export var MonitorSummary;
|
|
652
|
+
(function (MonitorSummary) {
|
|
653
|
+
MonitorSummary.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
654
|
+
})(MonitorSummary || (MonitorSummary = {}));
|
|
655
|
+
export var ListMonitorsResponse;
|
|
656
|
+
(function (ListMonitorsResponse) {
|
|
657
|
+
ListMonitorsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
658
|
+
})(ListMonitorsResponse || (ListMonitorsResponse = {}));
|
|
583
659
|
export var ListPredictorBacktestExportJobsRequest;
|
|
584
660
|
(function (ListPredictorBacktestExportJobsRequest) {
|
|
585
661
|
ListPredictorBacktestExportJobsRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -612,6 +688,10 @@ export var ListTagsForResourceResponse;
|
|
|
612
688
|
(function (ListTagsForResourceResponse) {
|
|
613
689
|
ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.Tags && { Tags: obj.Tags.map(function (item) { return Tag.filterSensitiveLog(item); }) }))); };
|
|
614
690
|
})(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
|
|
691
|
+
export var ResumeResourceRequest;
|
|
692
|
+
(function (ResumeResourceRequest) {
|
|
693
|
+
ResumeResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
694
|
+
})(ResumeResourceRequest || (ResumeResourceRequest = {}));
|
|
615
695
|
export var StopResourceRequest;
|
|
616
696
|
(function (StopResourceRequest) {
|
|
617
697
|
StopResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListExplainabilitiesCommand, } from "../commands/ListExplainabilitiesCommand";
|
|
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 ListExplainabilitiesCommand(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.listExplainabilities.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListExplainabilities(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 paginateListExplainabilities_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
|
+
}
|