@aws-sdk/client-forecast 3.42.0 → 3.47.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +7 -7
  3. package/dist-cjs/Forecast.js +150 -0
  4. package/dist-cjs/commands/CreateAutoPredictorCommand.js +36 -0
  5. package/dist-cjs/commands/CreateExplainabilityCommand.js +36 -0
  6. package/dist-cjs/commands/CreateExplainabilityExportCommand.js +36 -0
  7. package/dist-cjs/commands/DeleteExplainabilityCommand.js +36 -0
  8. package/dist-cjs/commands/DeleteExplainabilityExportCommand.js +36 -0
  9. package/dist-cjs/commands/DescribeAutoPredictorCommand.js +36 -0
  10. package/dist-cjs/commands/DescribeExplainabilityCommand.js +36 -0
  11. package/dist-cjs/commands/DescribeExplainabilityExportCommand.js +36 -0
  12. package/dist-cjs/commands/ListExplainabilitiesCommand.js +36 -0
  13. package/dist-cjs/commands/ListExplainabilityExportsCommand.js +36 -0
  14. package/dist-cjs/commands/index.js +10 -0
  15. package/dist-cjs/endpoints.js +1 -12
  16. package/dist-cjs/models/models_0.js +206 -67
  17. package/dist-cjs/protocols/Aws_json1_1.js +1283 -98
  18. package/dist-cjs/runtimeConfig.browser.js +7 -2
  19. package/dist-cjs/runtimeConfig.js +9 -3
  20. package/dist-es/Forecast.js +150 -0
  21. package/dist-es/commands/CreateAutoPredictorCommand.js +39 -0
  22. package/dist-es/commands/CreateExplainabilityCommand.js +39 -0
  23. package/dist-es/commands/CreateExplainabilityExportCommand.js +39 -0
  24. package/dist-es/commands/DeleteExplainabilityCommand.js +39 -0
  25. package/dist-es/commands/DeleteExplainabilityExportCommand.js +39 -0
  26. package/dist-es/commands/DescribeAutoPredictorCommand.js +39 -0
  27. package/dist-es/commands/DescribeExplainabilityCommand.js +39 -0
  28. package/dist-es/commands/DescribeExplainabilityExportCommand.js +39 -0
  29. package/dist-es/commands/ListExplainabilitiesCommand.js +39 -0
  30. package/dist-es/commands/ListExplainabilityExportsCommand.js +39 -0
  31. package/dist-es/commands/index.js +10 -0
  32. package/dist-es/endpoints.js +1 -12
  33. package/dist-es/models/models_0.js +140 -44
  34. package/dist-es/protocols/Aws_json1_1.js +1367 -138
  35. package/dist-es/runtimeConfig.browser.js +12 -3
  36. package/dist-es/runtimeConfig.js +13 -6
  37. package/dist-types/Forecast.d.ts +306 -40
  38. package/dist-types/ForecastClient.d.ts +17 -3
  39. package/dist-types/commands/CreateAutoPredictorCommand.d.ts +83 -0
  40. package/dist-types/commands/CreateExplainabilityCommand.d.ts +153 -0
  41. package/dist-types/commands/CreateExplainabilityExportCommand.d.ts +43 -0
  42. package/dist-types/commands/CreatePredictorBacktestExportJobCommand.d.ts +4 -4
  43. package/dist-types/commands/CreatePredictorCommand.d.ts +19 -18
  44. package/dist-types/commands/DeleteExplainabilityCommand.d.ts +37 -0
  45. package/dist-types/commands/DeleteExplainabilityExportCommand.d.ts +35 -0
  46. package/dist-types/commands/DeletePredictorCommand.d.ts +2 -3
  47. package/dist-types/commands/DescribeAutoPredictorCommand.d.ts +35 -0
  48. package/dist-types/commands/DescribeExplainabilityCommand.d.ts +35 -0
  49. package/dist-types/commands/DescribeExplainabilityExportCommand.d.ts +35 -0
  50. package/dist-types/commands/DescribePredictorBacktestExportJobCommand.d.ts +1 -1
  51. package/dist-types/commands/DescribePredictorCommand.d.ts +5 -1
  52. package/dist-types/commands/ListExplainabilitiesCommand.d.ts +39 -0
  53. package/dist-types/commands/ListExplainabilityExportsCommand.d.ts +38 -0
  54. package/dist-types/commands/ListPredictorBacktestExportJobsCommand.d.ts +4 -4
  55. package/dist-types/commands/ListPredictorsCommand.d.ts +5 -5
  56. package/dist-types/commands/StopResourceCommand.d.ts +9 -3
  57. package/dist-types/commands/TagResourceCommand.d.ts +4 -1
  58. package/dist-types/commands/index.d.ts +10 -0
  59. package/dist-types/models/models_0.d.ts +2078 -500
  60. package/dist-types/protocols/Aws_json1_1.d.ts +30 -0
  61. package/dist-types/runtimeConfig.browser.d.ts +3 -2
  62. package/dist-types/runtimeConfig.d.ts +4 -3
  63. package/dist-types/runtimeConfig.native.d.ts +1 -0
  64. package/dist-types/ts3.4/Forecast.d.ts +50 -0
  65. package/dist-types/ts3.4/ForecastClient.d.ts +15 -3
  66. package/dist-types/ts3.4/commands/CreateAutoPredictorCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/CreateExplainabilityCommand.d.ts +17 -0
  68. package/dist-types/ts3.4/commands/CreateExplainabilityExportCommand.d.ts +17 -0
  69. package/dist-types/ts3.4/commands/DeleteExplainabilityCommand.d.ts +17 -0
  70. package/dist-types/ts3.4/commands/DeleteExplainabilityExportCommand.d.ts +17 -0
  71. package/dist-types/ts3.4/commands/DescribeAutoPredictorCommand.d.ts +17 -0
  72. package/dist-types/ts3.4/commands/DescribeExplainabilityCommand.d.ts +17 -0
  73. package/dist-types/ts3.4/commands/DescribeExplainabilityExportCommand.d.ts +17 -0
  74. package/dist-types/ts3.4/commands/ListExplainabilitiesCommand.d.ts +17 -0
  75. package/dist-types/ts3.4/commands/ListExplainabilityExportsCommand.d.ts +17 -0
  76. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  77. package/dist-types/ts3.4/models/models_0.d.ts +479 -94
  78. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +30 -0
  79. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
  80. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
  81. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
  82. package/package.json +38 -45
package/CHANGELOG.md CHANGED
@@ -3,6 +3,56 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.47.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.46.0...v3.47.0) (2022-01-15)
7
+
8
+
9
+ ### Features
10
+
11
+ * **clients:** update clients to use default values inferred from defaults mode ([#3192](https://github.com/aws/aws-sdk-js-v3/issues/3192)) ([9152e21](https://github.com/aws/aws-sdk-js-v3/commit/9152e210c6ec29f34bb070eaf2874039022e6ab7))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.46.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.45.0...v3.46.0) (2022-01-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **clients:** update clean:dist script to delete dist-* folder ([#3155](https://github.com/aws/aws-sdk-js-v3/issues/3155)) ([cdb1709](https://github.com/aws/aws-sdk-js-v3/commit/cdb17090f82d1fc8755811c82cbed5976ec7e60b))
23
+
24
+
25
+ ### Features
26
+
27
+ * **clients:** extend typedoc.json from root ([#3136](https://github.com/aws/aws-sdk-js-v3/issues/3136)) ([f6a3ef5](https://github.com/aws/aws-sdk-js-v3/commit/f6a3ef541ae2d92872d09d8cab6727911287ebb2))
28
+ * end support for Node.js 10.x ([#3122](https://github.com/aws/aws-sdk-js-v3/issues/3122)) ([7acf18a](https://github.com/aws/aws-sdk-js-v3/commit/7acf18abd3fb1cc461f809110cdb0d7968c2070e))
29
+
30
+
31
+
32
+
33
+
34
+ # [3.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
35
+
36
+
37
+ ### Features
38
+
39
+ * **clients:** update clients as of 2021/12/23 ([#3110](https://github.com/aws/aws-sdk-js-v3/issues/3110)) ([5d638e1](https://github.com/aws/aws-sdk-js-v3/commit/5d638e188ce64fa80fe36b8cba79ba63b80b50b7))
40
+
41
+
42
+
43
+
44
+
45
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
46
+
47
+
48
+ ### Features
49
+
50
+ * **clients:** update clients as of 11/28/2021 ([#3072](https://github.com/aws/aws-sdk-js-v3/issues/3072)) ([2ad1622](https://github.com/aws/aws-sdk-js-v3/commit/2ad1622ba8586b926fe508055211803bb29e3976))
51
+
52
+
53
+
54
+
55
+
6
56
  # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
7
57
 
8
58
  **Note:** Version bump only for package @aws-sdk/client-forecast
package/README.md CHANGED
@@ -24,16 +24,16 @@ using your favorite package manager:
24
24
 
25
25
  The AWS SDK is modulized by clients and commands.
26
26
  To send a request, you only need to import the `ForecastClient` and
27
- the commands you need, for example `CreateDatasetCommand`:
27
+ the commands you need, for example `CreateAutoPredictorCommand`:
28
28
 
29
29
  ```js
30
30
  // ES5 example
31
- const { ForecastClient, CreateDatasetCommand } = require("@aws-sdk/client-forecast");
31
+ const { ForecastClient, CreateAutoPredictorCommand } = require("@aws-sdk/client-forecast");
32
32
  ```
33
33
 
34
34
  ```ts
35
35
  // ES6+ example
36
- import { ForecastClient, CreateDatasetCommand } from "@aws-sdk/client-forecast";
36
+ import { ForecastClient, CreateAutoPredictorCommand } from "@aws-sdk/client-forecast";
37
37
  ```
38
38
 
39
39
  ### Usage
@@ -52,7 +52,7 @@ const client = new ForecastClient({ region: "REGION" });
52
52
  const params = {
53
53
  /** input parameters */
54
54
  };
55
- const command = new CreateDatasetCommand(params);
55
+ const command = new CreateAutoPredictorCommand(params);
56
56
  ```
57
57
 
58
58
  #### Async/await
@@ -131,7 +131,7 @@ const client = new AWS.Forecast({ region: "REGION" });
131
131
 
132
132
  // async/await.
133
133
  try {
134
- const data = await client.createDataset(params);
134
+ const data = await client.createAutoPredictor(params);
135
135
  // process data.
136
136
  } catch (error) {
137
137
  // error handling.
@@ -139,7 +139,7 @@ try {
139
139
 
140
140
  // Promises.
141
141
  client
142
- .createDataset(params)
142
+ .createAutoPredictor(params)
143
143
  .then((data) => {
144
144
  // process data.
145
145
  })
@@ -148,7 +148,7 @@ client
148
148
  });
149
149
 
150
150
  // callbacks.
151
- client.createDataset(params, (err, data) => {
151
+ client.createAutoPredictor(params, (err, data) => {
152
152
  // proccess err and data.
153
153
  });
154
154
  ```
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Forecast = void 0;
4
+ const CreateAutoPredictorCommand_1 = require("./commands/CreateAutoPredictorCommand");
4
5
  const CreateDatasetCommand_1 = require("./commands/CreateDatasetCommand");
5
6
  const CreateDatasetGroupCommand_1 = require("./commands/CreateDatasetGroupCommand");
6
7
  const CreateDatasetImportJobCommand_1 = require("./commands/CreateDatasetImportJobCommand");
8
+ const CreateExplainabilityCommand_1 = require("./commands/CreateExplainabilityCommand");
9
+ const CreateExplainabilityExportCommand_1 = require("./commands/CreateExplainabilityExportCommand");
7
10
  const CreateForecastCommand_1 = require("./commands/CreateForecastCommand");
8
11
  const CreateForecastExportJobCommand_1 = require("./commands/CreateForecastExportJobCommand");
9
12
  const CreatePredictorBacktestExportJobCommand_1 = require("./commands/CreatePredictorBacktestExportJobCommand");
@@ -11,14 +14,19 @@ const CreatePredictorCommand_1 = require("./commands/CreatePredictorCommand");
11
14
  const DeleteDatasetCommand_1 = require("./commands/DeleteDatasetCommand");
12
15
  const DeleteDatasetGroupCommand_1 = require("./commands/DeleteDatasetGroupCommand");
13
16
  const DeleteDatasetImportJobCommand_1 = require("./commands/DeleteDatasetImportJobCommand");
17
+ const DeleteExplainabilityCommand_1 = require("./commands/DeleteExplainabilityCommand");
18
+ const DeleteExplainabilityExportCommand_1 = require("./commands/DeleteExplainabilityExportCommand");
14
19
  const DeleteForecastCommand_1 = require("./commands/DeleteForecastCommand");
15
20
  const DeleteForecastExportJobCommand_1 = require("./commands/DeleteForecastExportJobCommand");
16
21
  const DeletePredictorBacktestExportJobCommand_1 = require("./commands/DeletePredictorBacktestExportJobCommand");
17
22
  const DeletePredictorCommand_1 = require("./commands/DeletePredictorCommand");
18
23
  const DeleteResourceTreeCommand_1 = require("./commands/DeleteResourceTreeCommand");
24
+ const DescribeAutoPredictorCommand_1 = require("./commands/DescribeAutoPredictorCommand");
19
25
  const DescribeDatasetCommand_1 = require("./commands/DescribeDatasetCommand");
20
26
  const DescribeDatasetGroupCommand_1 = require("./commands/DescribeDatasetGroupCommand");
21
27
  const DescribeDatasetImportJobCommand_1 = require("./commands/DescribeDatasetImportJobCommand");
28
+ const DescribeExplainabilityCommand_1 = require("./commands/DescribeExplainabilityCommand");
29
+ const DescribeExplainabilityExportCommand_1 = require("./commands/DescribeExplainabilityExportCommand");
22
30
  const DescribeForecastCommand_1 = require("./commands/DescribeForecastCommand");
23
31
  const DescribeForecastExportJobCommand_1 = require("./commands/DescribeForecastExportJobCommand");
24
32
  const DescribePredictorBacktestExportJobCommand_1 = require("./commands/DescribePredictorBacktestExportJobCommand");
@@ -27,6 +35,8 @@ const GetAccuracyMetricsCommand_1 = require("./commands/GetAccuracyMetricsComman
27
35
  const ListDatasetGroupsCommand_1 = require("./commands/ListDatasetGroupsCommand");
28
36
  const ListDatasetImportJobsCommand_1 = require("./commands/ListDatasetImportJobsCommand");
29
37
  const ListDatasetsCommand_1 = require("./commands/ListDatasetsCommand");
38
+ const ListExplainabilitiesCommand_1 = require("./commands/ListExplainabilitiesCommand");
39
+ const ListExplainabilityExportsCommand_1 = require("./commands/ListExplainabilityExportsCommand");
30
40
  const ListForecastExportJobsCommand_1 = require("./commands/ListForecastExportJobsCommand");
31
41
  const ListForecastsCommand_1 = require("./commands/ListForecastsCommand");
32
42
  const ListPredictorBacktestExportJobsCommand_1 = require("./commands/ListPredictorBacktestExportJobsCommand");
@@ -38,6 +48,20 @@ const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
38
48
  const UpdateDatasetGroupCommand_1 = require("./commands/UpdateDatasetGroupCommand");
39
49
  const ForecastClient_1 = require("./ForecastClient");
40
50
  class Forecast extends ForecastClient_1.ForecastClient {
51
+ createAutoPredictor(args, optionsOrCb, cb) {
52
+ const command = new CreateAutoPredictorCommand_1.CreateAutoPredictorCommand(args);
53
+ if (typeof optionsOrCb === "function") {
54
+ this.send(command, optionsOrCb);
55
+ }
56
+ else if (typeof cb === "function") {
57
+ if (typeof optionsOrCb !== "object")
58
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
59
+ this.send(command, optionsOrCb || {}, cb);
60
+ }
61
+ else {
62
+ return this.send(command, optionsOrCb);
63
+ }
64
+ }
41
65
  createDataset(args, optionsOrCb, cb) {
42
66
  const command = new CreateDatasetCommand_1.CreateDatasetCommand(args);
43
67
  if (typeof optionsOrCb === "function") {
@@ -80,6 +104,34 @@ class Forecast extends ForecastClient_1.ForecastClient {
80
104
  return this.send(command, optionsOrCb);
81
105
  }
82
106
  }
107
+ createExplainability(args, optionsOrCb, cb) {
108
+ const command = new CreateExplainabilityCommand_1.CreateExplainabilityCommand(args);
109
+ if (typeof optionsOrCb === "function") {
110
+ this.send(command, optionsOrCb);
111
+ }
112
+ else if (typeof cb === "function") {
113
+ if (typeof optionsOrCb !== "object")
114
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
115
+ this.send(command, optionsOrCb || {}, cb);
116
+ }
117
+ else {
118
+ return this.send(command, optionsOrCb);
119
+ }
120
+ }
121
+ createExplainabilityExport(args, optionsOrCb, cb) {
122
+ const command = new CreateExplainabilityExportCommand_1.CreateExplainabilityExportCommand(args);
123
+ if (typeof optionsOrCb === "function") {
124
+ this.send(command, optionsOrCb);
125
+ }
126
+ else if (typeof cb === "function") {
127
+ if (typeof optionsOrCb !== "object")
128
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
129
+ this.send(command, optionsOrCb || {}, cb);
130
+ }
131
+ else {
132
+ return this.send(command, optionsOrCb);
133
+ }
134
+ }
83
135
  createForecast(args, optionsOrCb, cb) {
84
136
  const command = new CreateForecastCommand_1.CreateForecastCommand(args);
85
137
  if (typeof optionsOrCb === "function") {
@@ -178,6 +230,34 @@ class Forecast extends ForecastClient_1.ForecastClient {
178
230
  return this.send(command, optionsOrCb);
179
231
  }
180
232
  }
233
+ deleteExplainability(args, optionsOrCb, cb) {
234
+ const command = new DeleteExplainabilityCommand_1.DeleteExplainabilityCommand(args);
235
+ if (typeof optionsOrCb === "function") {
236
+ this.send(command, optionsOrCb);
237
+ }
238
+ else if (typeof cb === "function") {
239
+ if (typeof optionsOrCb !== "object")
240
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
241
+ this.send(command, optionsOrCb || {}, cb);
242
+ }
243
+ else {
244
+ return this.send(command, optionsOrCb);
245
+ }
246
+ }
247
+ deleteExplainabilityExport(args, optionsOrCb, cb) {
248
+ const command = new DeleteExplainabilityExportCommand_1.DeleteExplainabilityExportCommand(args);
249
+ if (typeof optionsOrCb === "function") {
250
+ this.send(command, optionsOrCb);
251
+ }
252
+ else if (typeof cb === "function") {
253
+ if (typeof optionsOrCb !== "object")
254
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
255
+ this.send(command, optionsOrCb || {}, cb);
256
+ }
257
+ else {
258
+ return this.send(command, optionsOrCb);
259
+ }
260
+ }
181
261
  deleteForecast(args, optionsOrCb, cb) {
182
262
  const command = new DeleteForecastCommand_1.DeleteForecastCommand(args);
183
263
  if (typeof optionsOrCb === "function") {
@@ -248,6 +328,20 @@ class Forecast extends ForecastClient_1.ForecastClient {
248
328
  return this.send(command, optionsOrCb);
249
329
  }
250
330
  }
331
+ describeAutoPredictor(args, optionsOrCb, cb) {
332
+ const command = new DescribeAutoPredictorCommand_1.DescribeAutoPredictorCommand(args);
333
+ if (typeof optionsOrCb === "function") {
334
+ this.send(command, optionsOrCb);
335
+ }
336
+ else if (typeof cb === "function") {
337
+ if (typeof optionsOrCb !== "object")
338
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
339
+ this.send(command, optionsOrCb || {}, cb);
340
+ }
341
+ else {
342
+ return this.send(command, optionsOrCb);
343
+ }
344
+ }
251
345
  describeDataset(args, optionsOrCb, cb) {
252
346
  const command = new DescribeDatasetCommand_1.DescribeDatasetCommand(args);
253
347
  if (typeof optionsOrCb === "function") {
@@ -290,6 +384,34 @@ class Forecast extends ForecastClient_1.ForecastClient {
290
384
  return this.send(command, optionsOrCb);
291
385
  }
292
386
  }
387
+ describeExplainability(args, optionsOrCb, cb) {
388
+ const command = new DescribeExplainabilityCommand_1.DescribeExplainabilityCommand(args);
389
+ if (typeof optionsOrCb === "function") {
390
+ this.send(command, optionsOrCb);
391
+ }
392
+ else if (typeof cb === "function") {
393
+ if (typeof optionsOrCb !== "object")
394
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
395
+ this.send(command, optionsOrCb || {}, cb);
396
+ }
397
+ else {
398
+ return this.send(command, optionsOrCb);
399
+ }
400
+ }
401
+ describeExplainabilityExport(args, optionsOrCb, cb) {
402
+ const command = new DescribeExplainabilityExportCommand_1.DescribeExplainabilityExportCommand(args);
403
+ if (typeof optionsOrCb === "function") {
404
+ this.send(command, optionsOrCb);
405
+ }
406
+ else if (typeof cb === "function") {
407
+ if (typeof optionsOrCb !== "object")
408
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
409
+ this.send(command, optionsOrCb || {}, cb);
410
+ }
411
+ else {
412
+ return this.send(command, optionsOrCb);
413
+ }
414
+ }
293
415
  describeForecast(args, optionsOrCb, cb) {
294
416
  const command = new DescribeForecastCommand_1.DescribeForecastCommand(args);
295
417
  if (typeof optionsOrCb === "function") {
@@ -402,6 +524,34 @@ class Forecast extends ForecastClient_1.ForecastClient {
402
524
  return this.send(command, optionsOrCb);
403
525
  }
404
526
  }
527
+ listExplainabilities(args, optionsOrCb, cb) {
528
+ const command = new ListExplainabilitiesCommand_1.ListExplainabilitiesCommand(args);
529
+ if (typeof optionsOrCb === "function") {
530
+ this.send(command, optionsOrCb);
531
+ }
532
+ else if (typeof cb === "function") {
533
+ if (typeof optionsOrCb !== "object")
534
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
535
+ this.send(command, optionsOrCb || {}, cb);
536
+ }
537
+ else {
538
+ return this.send(command, optionsOrCb);
539
+ }
540
+ }
541
+ listExplainabilityExports(args, optionsOrCb, cb) {
542
+ const command = new ListExplainabilityExportsCommand_1.ListExplainabilityExportsCommand(args);
543
+ if (typeof optionsOrCb === "function") {
544
+ this.send(command, optionsOrCb);
545
+ }
546
+ else if (typeof cb === "function") {
547
+ if (typeof optionsOrCb !== "object")
548
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
549
+ this.send(command, optionsOrCb || {}, cb);
550
+ }
551
+ else {
552
+ return this.send(command, optionsOrCb);
553
+ }
554
+ }
405
555
  listForecastExportJobs(args, optionsOrCb, cb) {
406
556
  const command = new ListForecastExportJobsCommand_1.ListForecastExportJobsCommand(args);
407
557
  if (typeof optionsOrCb === "function") {
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateAutoPredictorCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class CreateAutoPredictorCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "CreateAutoPredictorCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateAutoPredictorRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateAutoPredictorResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1CreateAutoPredictorCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateAutoPredictorCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateAutoPredictorCommand = CreateAutoPredictorCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateExplainabilityCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class CreateExplainabilityCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "CreateExplainabilityCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateExplainabilityRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateExplainabilityResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1CreateExplainabilityCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateExplainabilityCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateExplainabilityCommand = CreateExplainabilityCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateExplainabilityExportCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class CreateExplainabilityExportCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "CreateExplainabilityExportCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateExplainabilityExportRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateExplainabilityExportResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1CreateExplainabilityExportCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateExplainabilityExportCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateExplainabilityExportCommand = CreateExplainabilityExportCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteExplainabilityCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DeleteExplainabilityCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "DeleteExplainabilityCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteExplainabilityRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DeleteExplainabilityCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DeleteExplainabilityCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteExplainabilityCommand = DeleteExplainabilityCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteExplainabilityExportCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DeleteExplainabilityExportCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "DeleteExplainabilityExportCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteExplainabilityExportRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: (output) => output,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DeleteExplainabilityExportCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DeleteExplainabilityExportCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteExplainabilityExportCommand = DeleteExplainabilityExportCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeAutoPredictorCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DescribeAutoPredictorCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "DescribeAutoPredictorCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeAutoPredictorRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeAutoPredictorResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DescribeAutoPredictorCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DescribeAutoPredictorCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeAutoPredictorCommand = DescribeAutoPredictorCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeExplainabilityCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DescribeExplainabilityCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "DescribeExplainabilityCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeExplainabilityRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeExplainabilityResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DescribeExplainabilityCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DescribeExplainabilityCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeExplainabilityCommand = DescribeExplainabilityCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeExplainabilityExportCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class DescribeExplainabilityExportCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "DescribeExplainabilityExportCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeExplainabilityExportRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeExplainabilityExportResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1DescribeExplainabilityExportCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DescribeExplainabilityExportCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeExplainabilityExportCommand = DescribeExplainabilityExportCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListExplainabilitiesCommand = void 0;
4
+ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
+ const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const models_0_1 = require("../models/models_0");
7
+ const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
+ class ListExplainabilitiesCommand extends smithy_client_1.Command {
9
+ constructor(input) {
10
+ super();
11
+ this.input = input;
12
+ }
13
+ resolveMiddleware(clientStack, configuration, options) {
14
+ this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ const stack = clientStack.concat(this.middlewareStack);
16
+ const { logger } = configuration;
17
+ const clientName = "ForecastClient";
18
+ const commandName = "ListExplainabilitiesCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListExplainabilitiesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListExplainabilitiesResponse.filterSensitiveLog,
25
+ };
26
+ const { requestHandler } = configuration;
27
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
28
+ }
29
+ serialize(input, context) {
30
+ return Aws_json1_1_1.serializeAws_json1_1ListExplainabilitiesCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1ListExplainabilitiesCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListExplainabilitiesCommand = ListExplainabilitiesCommand;