@aws-sdk/client-personalize 3.41.0 → 3.46.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 (72) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/Personalize.js +120 -0
  3. package/dist-cjs/commands/CreateBatchSegmentJobCommand.js +36 -0
  4. package/dist-cjs/commands/CreateRecommenderCommand.js +36 -0
  5. package/dist-cjs/commands/DeleteRecommenderCommand.js +36 -0
  6. package/dist-cjs/commands/DescribeBatchSegmentJobCommand.js +36 -0
  7. package/dist-cjs/commands/DescribeRecommenderCommand.js +36 -0
  8. package/dist-cjs/commands/ListBatchSegmentJobsCommand.js +36 -0
  9. package/dist-cjs/commands/ListRecommendersCommand.js +36 -0
  10. package/dist-cjs/commands/UpdateRecommenderCommand.js +36 -0
  11. package/dist-cjs/commands/index.js +8 -0
  12. package/dist-cjs/endpoints.js +1 -0
  13. package/dist-cjs/models/models_0.js +147 -3
  14. package/dist-cjs/pagination/ListBatchSegmentJobsPaginator.js +35 -0
  15. package/dist-cjs/pagination/ListRecommendersPaginator.js +35 -0
  16. package/dist-cjs/pagination/index.js +2 -0
  17. package/dist-cjs/protocols/Aws_json1_1.js +891 -28
  18. package/dist-cjs/runtimeConfig.js +0 -2
  19. package/dist-es/Personalize.js +120 -0
  20. package/dist-es/commands/CreateBatchSegmentJobCommand.js +39 -0
  21. package/dist-es/commands/CreateRecommenderCommand.js +39 -0
  22. package/dist-es/commands/DeleteRecommenderCommand.js +39 -0
  23. package/dist-es/commands/DescribeBatchSegmentJobCommand.js +39 -0
  24. package/dist-es/commands/DescribeRecommenderCommand.js +39 -0
  25. package/dist-es/commands/ListBatchSegmentJobsCommand.js +39 -0
  26. package/dist-es/commands/ListRecommendersCommand.js +39 -0
  27. package/dist-es/commands/UpdateRecommenderCommand.js +39 -0
  28. package/dist-es/commands/index.js +8 -0
  29. package/dist-es/endpoints.js +1 -0
  30. package/dist-es/models/models_0.js +97 -0
  31. package/dist-es/pagination/ListBatchSegmentJobsPaginator.js +74 -0
  32. package/dist-es/pagination/ListRecommendersPaginator.js +74 -0
  33. package/dist-es/pagination/index.js +2 -0
  34. package/dist-es/protocols/Aws_json1_1.js +944 -38
  35. package/dist-es/runtimeConfig.js +0 -2
  36. package/dist-types/Personalize.d.ts +137 -8
  37. package/dist-types/PersonalizeClient.d.ts +10 -2
  38. package/dist-types/commands/CreateBatchSegmentJobCommand.d.ts +36 -0
  39. package/dist-types/commands/CreateCampaignCommand.d.ts +1 -1
  40. package/dist-types/commands/CreateDatasetGroupCommand.d.ts +8 -5
  41. package/dist-types/commands/CreateRecommenderCommand.d.ts +84 -0
  42. package/dist-types/commands/CreateSchemaCommand.d.ts +2 -1
  43. package/dist-types/commands/CreateSolutionVersionCommand.d.ts +1 -1
  44. package/dist-types/commands/DeleteRecommenderCommand.d.ts +36 -0
  45. package/dist-types/commands/DescribeBatchSegmentJobCommand.d.ts +37 -0
  46. package/dist-types/commands/DescribeRecommenderCommand.d.ts +47 -0
  47. package/dist-types/commands/ListBatchSegmentJobsCommand.d.ts +36 -0
  48. package/dist-types/commands/ListRecommendersCommand.d.ts +38 -0
  49. package/dist-types/commands/UpdateRecommenderCommand.d.ts +35 -0
  50. package/dist-types/commands/index.d.ts +8 -0
  51. package/dist-types/models/models_0.d.ts +634 -3
  52. package/dist-types/pagination/ListBatchSegmentJobsPaginator.d.ts +4 -0
  53. package/dist-types/pagination/ListRecommendersPaginator.d.ts +4 -0
  54. package/dist-types/pagination/index.d.ts +2 -0
  55. package/dist-types/protocols/Aws_json1_1.d.ts +24 -0
  56. package/dist-types/ts3.4/Personalize.d.ts +40 -0
  57. package/dist-types/ts3.4/PersonalizeClient.d.ts +10 -2
  58. package/dist-types/ts3.4/commands/CreateBatchSegmentJobCommand.d.ts +17 -0
  59. package/dist-types/ts3.4/commands/CreateRecommenderCommand.d.ts +17 -0
  60. package/dist-types/ts3.4/commands/DeleteRecommenderCommand.d.ts +17 -0
  61. package/dist-types/ts3.4/commands/DescribeBatchSegmentJobCommand.d.ts +17 -0
  62. package/dist-types/ts3.4/commands/DescribeRecommenderCommand.d.ts +17 -0
  63. package/dist-types/ts3.4/commands/ListBatchSegmentJobsCommand.d.ts +17 -0
  64. package/dist-types/ts3.4/commands/ListRecommendersCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/UpdateRecommenderCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  67. package/dist-types/ts3.4/models/models_0.d.ts +322 -0
  68. package/dist-types/ts3.4/pagination/ListBatchSegmentJobsPaginator.d.ts +4 -0
  69. package/dist-types/ts3.4/pagination/ListRecommendersPaginator.d.ts +4 -0
  70. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  71. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  72. package/package.json +36 -43
@@ -15,10 +15,8 @@ const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
16
  const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
17
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
- const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const getRuntimeConfig = (config) => {
20
19
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
21
- smithy_client_1.emitWarningIfUnsupportedVersion(process.version);
22
20
  const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
23
21
  return {
24
22
  ...clientSharedValues,
@@ -1,5 +1,6 @@
1
1
  import { __extends } from "tslib";
2
2
  import { CreateBatchInferenceJobCommand, } from "./commands/CreateBatchInferenceJobCommand";
3
+ import { CreateBatchSegmentJobCommand, } from "./commands/CreateBatchSegmentJobCommand";
3
4
  import { CreateCampaignCommand, } from "./commands/CreateCampaignCommand";
4
5
  import { CreateDatasetCommand, } from "./commands/CreateDatasetCommand";
5
6
  import { CreateDatasetExportJobCommand, } from "./commands/CreateDatasetExportJobCommand";
@@ -7,6 +8,7 @@ import { CreateDatasetGroupCommand, } from "./commands/CreateDatasetGroupCommand
7
8
  import { CreateDatasetImportJobCommand, } from "./commands/CreateDatasetImportJobCommand";
8
9
  import { CreateEventTrackerCommand, } from "./commands/CreateEventTrackerCommand";
9
10
  import { CreateFilterCommand, } from "./commands/CreateFilterCommand";
11
+ import { CreateRecommenderCommand, } from "./commands/CreateRecommenderCommand";
10
12
  import { CreateSchemaCommand, } from "./commands/CreateSchemaCommand";
11
13
  import { CreateSolutionCommand, } from "./commands/CreateSolutionCommand";
12
14
  import { CreateSolutionVersionCommand, } from "./commands/CreateSolutionVersionCommand";
@@ -15,10 +17,12 @@ import { DeleteDatasetCommand, } from "./commands/DeleteDatasetCommand";
15
17
  import { DeleteDatasetGroupCommand, } from "./commands/DeleteDatasetGroupCommand";
16
18
  import { DeleteEventTrackerCommand, } from "./commands/DeleteEventTrackerCommand";
17
19
  import { DeleteFilterCommand, } from "./commands/DeleteFilterCommand";
20
+ import { DeleteRecommenderCommand, } from "./commands/DeleteRecommenderCommand";
18
21
  import { DeleteSchemaCommand, } from "./commands/DeleteSchemaCommand";
19
22
  import { DeleteSolutionCommand, } from "./commands/DeleteSolutionCommand";
20
23
  import { DescribeAlgorithmCommand, } from "./commands/DescribeAlgorithmCommand";
21
24
  import { DescribeBatchInferenceJobCommand, } from "./commands/DescribeBatchInferenceJobCommand";
25
+ import { DescribeBatchSegmentJobCommand, } from "./commands/DescribeBatchSegmentJobCommand";
22
26
  import { DescribeCampaignCommand, } from "./commands/DescribeCampaignCommand";
23
27
  import { DescribeDatasetCommand, } from "./commands/DescribeDatasetCommand";
24
28
  import { DescribeDatasetExportJobCommand, } from "./commands/DescribeDatasetExportJobCommand";
@@ -28,11 +32,13 @@ import { DescribeEventTrackerCommand, } from "./commands/DescribeEventTrackerCom
28
32
  import { DescribeFeatureTransformationCommand, } from "./commands/DescribeFeatureTransformationCommand";
29
33
  import { DescribeFilterCommand, } from "./commands/DescribeFilterCommand";
30
34
  import { DescribeRecipeCommand, } from "./commands/DescribeRecipeCommand";
35
+ import { DescribeRecommenderCommand, } from "./commands/DescribeRecommenderCommand";
31
36
  import { DescribeSchemaCommand, } from "./commands/DescribeSchemaCommand";
32
37
  import { DescribeSolutionCommand, } from "./commands/DescribeSolutionCommand";
33
38
  import { DescribeSolutionVersionCommand, } from "./commands/DescribeSolutionVersionCommand";
34
39
  import { GetSolutionMetricsCommand, } from "./commands/GetSolutionMetricsCommand";
35
40
  import { ListBatchInferenceJobsCommand, } from "./commands/ListBatchInferenceJobsCommand";
41
+ import { ListBatchSegmentJobsCommand, } from "./commands/ListBatchSegmentJobsCommand";
36
42
  import { ListCampaignsCommand, } from "./commands/ListCampaignsCommand";
37
43
  import { ListDatasetExportJobsCommand, } from "./commands/ListDatasetExportJobsCommand";
38
44
  import { ListDatasetGroupsCommand, } from "./commands/ListDatasetGroupsCommand";
@@ -41,11 +47,13 @@ import { ListDatasetsCommand, } from "./commands/ListDatasetsCommand";
41
47
  import { ListEventTrackersCommand, } from "./commands/ListEventTrackersCommand";
42
48
  import { ListFiltersCommand } from "./commands/ListFiltersCommand";
43
49
  import { ListRecipesCommand } from "./commands/ListRecipesCommand";
50
+ import { ListRecommendersCommand, } from "./commands/ListRecommendersCommand";
44
51
  import { ListSchemasCommand } from "./commands/ListSchemasCommand";
45
52
  import { ListSolutionsCommand, } from "./commands/ListSolutionsCommand";
46
53
  import { ListSolutionVersionsCommand, } from "./commands/ListSolutionVersionsCommand";
47
54
  import { StopSolutionVersionCreationCommand, } from "./commands/StopSolutionVersionCreationCommand";
48
55
  import { UpdateCampaignCommand, } from "./commands/UpdateCampaignCommand";
56
+ import { UpdateRecommenderCommand, } from "./commands/UpdateRecommenderCommand";
49
57
  import { PersonalizeClient } from "./PersonalizeClient";
50
58
  var Personalize = (function (_super) {
51
59
  __extends(Personalize, _super);
@@ -66,6 +74,20 @@ var Personalize = (function (_super) {
66
74
  return this.send(command, optionsOrCb);
67
75
  }
68
76
  };
77
+ Personalize.prototype.createBatchSegmentJob = function (args, optionsOrCb, cb) {
78
+ var command = new CreateBatchSegmentJobCommand(args);
79
+ if (typeof optionsOrCb === "function") {
80
+ this.send(command, optionsOrCb);
81
+ }
82
+ else if (typeof cb === "function") {
83
+ if (typeof optionsOrCb !== "object")
84
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
85
+ this.send(command, optionsOrCb || {}, cb);
86
+ }
87
+ else {
88
+ return this.send(command, optionsOrCb);
89
+ }
90
+ };
69
91
  Personalize.prototype.createCampaign = function (args, optionsOrCb, cb) {
70
92
  var command = new CreateCampaignCommand(args);
71
93
  if (typeof optionsOrCb === "function") {
@@ -164,6 +186,20 @@ var Personalize = (function (_super) {
164
186
  return this.send(command, optionsOrCb);
165
187
  }
166
188
  };
189
+ Personalize.prototype.createRecommender = function (args, optionsOrCb, cb) {
190
+ var command = new CreateRecommenderCommand(args);
191
+ if (typeof optionsOrCb === "function") {
192
+ this.send(command, optionsOrCb);
193
+ }
194
+ else if (typeof cb === "function") {
195
+ if (typeof optionsOrCb !== "object")
196
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
197
+ this.send(command, optionsOrCb || {}, cb);
198
+ }
199
+ else {
200
+ return this.send(command, optionsOrCb);
201
+ }
202
+ };
167
203
  Personalize.prototype.createSchema = function (args, optionsOrCb, cb) {
168
204
  var command = new CreateSchemaCommand(args);
169
205
  if (typeof optionsOrCb === "function") {
@@ -276,6 +312,20 @@ var Personalize = (function (_super) {
276
312
  return this.send(command, optionsOrCb);
277
313
  }
278
314
  };
315
+ Personalize.prototype.deleteRecommender = function (args, optionsOrCb, cb) {
316
+ var command = new DeleteRecommenderCommand(args);
317
+ if (typeof optionsOrCb === "function") {
318
+ this.send(command, optionsOrCb);
319
+ }
320
+ else if (typeof cb === "function") {
321
+ if (typeof optionsOrCb !== "object")
322
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
323
+ this.send(command, optionsOrCb || {}, cb);
324
+ }
325
+ else {
326
+ return this.send(command, optionsOrCb);
327
+ }
328
+ };
279
329
  Personalize.prototype.deleteSchema = function (args, optionsOrCb, cb) {
280
330
  var command = new DeleteSchemaCommand(args);
281
331
  if (typeof optionsOrCb === "function") {
@@ -332,6 +382,20 @@ var Personalize = (function (_super) {
332
382
  return this.send(command, optionsOrCb);
333
383
  }
334
384
  };
385
+ Personalize.prototype.describeBatchSegmentJob = function (args, optionsOrCb, cb) {
386
+ var command = new DescribeBatchSegmentJobCommand(args);
387
+ if (typeof optionsOrCb === "function") {
388
+ this.send(command, optionsOrCb);
389
+ }
390
+ else if (typeof cb === "function") {
391
+ if (typeof optionsOrCb !== "object")
392
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
393
+ this.send(command, optionsOrCb || {}, cb);
394
+ }
395
+ else {
396
+ return this.send(command, optionsOrCb);
397
+ }
398
+ };
335
399
  Personalize.prototype.describeCampaign = function (args, optionsOrCb, cb) {
336
400
  var command = new DescribeCampaignCommand(args);
337
401
  if (typeof optionsOrCb === "function") {
@@ -458,6 +522,20 @@ var Personalize = (function (_super) {
458
522
  return this.send(command, optionsOrCb);
459
523
  }
460
524
  };
525
+ Personalize.prototype.describeRecommender = function (args, optionsOrCb, cb) {
526
+ var command = new DescribeRecommenderCommand(args);
527
+ if (typeof optionsOrCb === "function") {
528
+ this.send(command, optionsOrCb);
529
+ }
530
+ else if (typeof cb === "function") {
531
+ if (typeof optionsOrCb !== "object")
532
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
533
+ this.send(command, optionsOrCb || {}, cb);
534
+ }
535
+ else {
536
+ return this.send(command, optionsOrCb);
537
+ }
538
+ };
461
539
  Personalize.prototype.describeSchema = function (args, optionsOrCb, cb) {
462
540
  var command = new DescribeSchemaCommand(args);
463
541
  if (typeof optionsOrCb === "function") {
@@ -528,6 +606,20 @@ var Personalize = (function (_super) {
528
606
  return this.send(command, optionsOrCb);
529
607
  }
530
608
  };
609
+ Personalize.prototype.listBatchSegmentJobs = function (args, optionsOrCb, cb) {
610
+ var command = new ListBatchSegmentJobsCommand(args);
611
+ if (typeof optionsOrCb === "function") {
612
+ this.send(command, optionsOrCb);
613
+ }
614
+ else if (typeof cb === "function") {
615
+ if (typeof optionsOrCb !== "object")
616
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
617
+ this.send(command, optionsOrCb || {}, cb);
618
+ }
619
+ else {
620
+ return this.send(command, optionsOrCb);
621
+ }
622
+ };
531
623
  Personalize.prototype.listCampaigns = function (args, optionsOrCb, cb) {
532
624
  var command = new ListCampaignsCommand(args);
533
625
  if (typeof optionsOrCb === "function") {
@@ -640,6 +732,20 @@ var Personalize = (function (_super) {
640
732
  return this.send(command, optionsOrCb);
641
733
  }
642
734
  };
735
+ Personalize.prototype.listRecommenders = function (args, optionsOrCb, cb) {
736
+ var command = new ListRecommendersCommand(args);
737
+ if (typeof optionsOrCb === "function") {
738
+ this.send(command, optionsOrCb);
739
+ }
740
+ else if (typeof cb === "function") {
741
+ if (typeof optionsOrCb !== "object")
742
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
743
+ this.send(command, optionsOrCb || {}, cb);
744
+ }
745
+ else {
746
+ return this.send(command, optionsOrCb);
747
+ }
748
+ };
643
749
  Personalize.prototype.listSchemas = function (args, optionsOrCb, cb) {
644
750
  var command = new ListSchemasCommand(args);
645
751
  if (typeof optionsOrCb === "function") {
@@ -710,6 +816,20 @@ var Personalize = (function (_super) {
710
816
  return this.send(command, optionsOrCb);
711
817
  }
712
818
  };
819
+ Personalize.prototype.updateRecommender = function (args, optionsOrCb, cb) {
820
+ var command = new UpdateRecommenderCommand(args);
821
+ if (typeof optionsOrCb === "function") {
822
+ this.send(command, optionsOrCb);
823
+ }
824
+ else if (typeof cb === "function") {
825
+ if (typeof optionsOrCb !== "object")
826
+ throw new Error("Expect http options but get " + typeof optionsOrCb);
827
+ this.send(command, optionsOrCb || {}, cb);
828
+ }
829
+ else {
830
+ return this.send(command, optionsOrCb);
831
+ }
832
+ };
713
833
  return Personalize;
714
834
  }(PersonalizeClient));
715
835
  export { Personalize };
@@ -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 { CreateBatchSegmentJobRequest, CreateBatchSegmentJobResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateBatchSegmentJobCommand, serializeAws_json1_1CreateBatchSegmentJobCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateBatchSegmentJobCommand = (function (_super) {
7
+ __extends(CreateBatchSegmentJobCommand, _super);
8
+ function CreateBatchSegmentJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateBatchSegmentJobCommand.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 = "PersonalizeClient";
18
+ var commandName = "CreateBatchSegmentJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateBatchSegmentJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateBatchSegmentJobResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateBatchSegmentJobCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateBatchSegmentJobCommand(input, context);
33
+ };
34
+ CreateBatchSegmentJobCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateBatchSegmentJobCommand(output, context);
36
+ };
37
+ return CreateBatchSegmentJobCommand;
38
+ }($Command));
39
+ export { CreateBatchSegmentJobCommand };
@@ -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 { CreateRecommenderRequest, CreateRecommenderResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateRecommenderCommand, serializeAws_json1_1CreateRecommenderCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateRecommenderCommand = (function (_super) {
7
+ __extends(CreateRecommenderCommand, _super);
8
+ function CreateRecommenderCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateRecommenderCommand.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 = "PersonalizeClient";
18
+ var commandName = "CreateRecommenderCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateRecommenderRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateRecommenderResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateRecommenderCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateRecommenderCommand(input, context);
33
+ };
34
+ CreateRecommenderCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateRecommenderCommand(output, context);
36
+ };
37
+ return CreateRecommenderCommand;
38
+ }($Command));
39
+ export { CreateRecommenderCommand };
@@ -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 { DeleteRecommenderRequest } from "../models/models_0";
5
+ import { deserializeAws_json1_1DeleteRecommenderCommand, serializeAws_json1_1DeleteRecommenderCommand, } from "../protocols/Aws_json1_1";
6
+ var DeleteRecommenderCommand = (function (_super) {
7
+ __extends(DeleteRecommenderCommand, _super);
8
+ function DeleteRecommenderCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DeleteRecommenderCommand.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 = "PersonalizeClient";
18
+ var commandName = "DeleteRecommenderCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DeleteRecommenderRequest.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
+ DeleteRecommenderCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DeleteRecommenderCommand(input, context);
33
+ };
34
+ DeleteRecommenderCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DeleteRecommenderCommand(output, context);
36
+ };
37
+ return DeleteRecommenderCommand;
38
+ }($Command));
39
+ export { DeleteRecommenderCommand };
@@ -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 { DescribeBatchSegmentJobRequest, DescribeBatchSegmentJobResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeBatchSegmentJobCommand, serializeAws_json1_1DescribeBatchSegmentJobCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeBatchSegmentJobCommand = (function (_super) {
7
+ __extends(DescribeBatchSegmentJobCommand, _super);
8
+ function DescribeBatchSegmentJobCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeBatchSegmentJobCommand.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 = "PersonalizeClient";
18
+ var commandName = "DescribeBatchSegmentJobCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeBatchSegmentJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeBatchSegmentJobResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeBatchSegmentJobCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DescribeBatchSegmentJobCommand(input, context);
33
+ };
34
+ DescribeBatchSegmentJobCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DescribeBatchSegmentJobCommand(output, context);
36
+ };
37
+ return DescribeBatchSegmentJobCommand;
38
+ }($Command));
39
+ export { DescribeBatchSegmentJobCommand };
@@ -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 { DescribeRecommenderRequest, DescribeRecommenderResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeRecommenderCommand, serializeAws_json1_1DescribeRecommenderCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeRecommenderCommand = (function (_super) {
7
+ __extends(DescribeRecommenderCommand, _super);
8
+ function DescribeRecommenderCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeRecommenderCommand.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 = "PersonalizeClient";
18
+ var commandName = "DescribeRecommenderCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeRecommenderRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeRecommenderResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeRecommenderCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DescribeRecommenderCommand(input, context);
33
+ };
34
+ DescribeRecommenderCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DescribeRecommenderCommand(output, context);
36
+ };
37
+ return DescribeRecommenderCommand;
38
+ }($Command));
39
+ export { DescribeRecommenderCommand };
@@ -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 { ListBatchSegmentJobsRequest, ListBatchSegmentJobsResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListBatchSegmentJobsCommand, serializeAws_json1_1ListBatchSegmentJobsCommand, } from "../protocols/Aws_json1_1";
6
+ var ListBatchSegmentJobsCommand = (function (_super) {
7
+ __extends(ListBatchSegmentJobsCommand, _super);
8
+ function ListBatchSegmentJobsCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListBatchSegmentJobsCommand.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 = "PersonalizeClient";
18
+ var commandName = "ListBatchSegmentJobsCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListBatchSegmentJobsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListBatchSegmentJobsResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListBatchSegmentJobsCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListBatchSegmentJobsCommand(input, context);
33
+ };
34
+ ListBatchSegmentJobsCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListBatchSegmentJobsCommand(output, context);
36
+ };
37
+ return ListBatchSegmentJobsCommand;
38
+ }($Command));
39
+ export { ListBatchSegmentJobsCommand };
@@ -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 { ListRecommendersRequest, ListRecommendersResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListRecommendersCommand, serializeAws_json1_1ListRecommendersCommand, } from "../protocols/Aws_json1_1";
6
+ var ListRecommendersCommand = (function (_super) {
7
+ __extends(ListRecommendersCommand, _super);
8
+ function ListRecommendersCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListRecommendersCommand.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 = "PersonalizeClient";
18
+ var commandName = "ListRecommendersCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListRecommendersRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListRecommendersResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListRecommendersCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListRecommendersCommand(input, context);
33
+ };
34
+ ListRecommendersCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListRecommendersCommand(output, context);
36
+ };
37
+ return ListRecommendersCommand;
38
+ }($Command));
39
+ export { ListRecommendersCommand };
@@ -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 { UpdateRecommenderRequest, UpdateRecommenderResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1UpdateRecommenderCommand, serializeAws_json1_1UpdateRecommenderCommand, } from "../protocols/Aws_json1_1";
6
+ var UpdateRecommenderCommand = (function (_super) {
7
+ __extends(UpdateRecommenderCommand, _super);
8
+ function UpdateRecommenderCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UpdateRecommenderCommand.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 = "PersonalizeClient";
18
+ var commandName = "UpdateRecommenderCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UpdateRecommenderRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UpdateRecommenderResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UpdateRecommenderCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UpdateRecommenderCommand(input, context);
33
+ };
34
+ UpdateRecommenderCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UpdateRecommenderCommand(output, context);
36
+ };
37
+ return UpdateRecommenderCommand;
38
+ }($Command));
39
+ export { UpdateRecommenderCommand };
@@ -1,4 +1,5 @@
1
1
  export * from "./CreateBatchInferenceJobCommand";
2
+ export * from "./CreateBatchSegmentJobCommand";
2
3
  export * from "./CreateCampaignCommand";
3
4
  export * from "./CreateDatasetCommand";
4
5
  export * from "./CreateDatasetExportJobCommand";
@@ -6,6 +7,7 @@ export * from "./CreateDatasetGroupCommand";
6
7
  export * from "./CreateDatasetImportJobCommand";
7
8
  export * from "./CreateEventTrackerCommand";
8
9
  export * from "./CreateFilterCommand";
10
+ export * from "./CreateRecommenderCommand";
9
11
  export * from "./CreateSchemaCommand";
10
12
  export * from "./CreateSolutionCommand";
11
13
  export * from "./CreateSolutionVersionCommand";
@@ -14,10 +16,12 @@ export * from "./DeleteDatasetCommand";
14
16
  export * from "./DeleteDatasetGroupCommand";
15
17
  export * from "./DeleteEventTrackerCommand";
16
18
  export * from "./DeleteFilterCommand";
19
+ export * from "./DeleteRecommenderCommand";
17
20
  export * from "./DeleteSchemaCommand";
18
21
  export * from "./DeleteSolutionCommand";
19
22
  export * from "./DescribeAlgorithmCommand";
20
23
  export * from "./DescribeBatchInferenceJobCommand";
24
+ export * from "./DescribeBatchSegmentJobCommand";
21
25
  export * from "./DescribeCampaignCommand";
22
26
  export * from "./DescribeDatasetCommand";
23
27
  export * from "./DescribeDatasetExportJobCommand";
@@ -27,11 +31,13 @@ export * from "./DescribeEventTrackerCommand";
27
31
  export * from "./DescribeFeatureTransformationCommand";
28
32
  export * from "./DescribeFilterCommand";
29
33
  export * from "./DescribeRecipeCommand";
34
+ export * from "./DescribeRecommenderCommand";
30
35
  export * from "./DescribeSchemaCommand";
31
36
  export * from "./DescribeSolutionCommand";
32
37
  export * from "./DescribeSolutionVersionCommand";
33
38
  export * from "./GetSolutionMetricsCommand";
34
39
  export * from "./ListBatchInferenceJobsCommand";
40
+ export * from "./ListBatchSegmentJobsCommand";
35
41
  export * from "./ListCampaignsCommand";
36
42
  export * from "./ListDatasetExportJobsCommand";
37
43
  export * from "./ListDatasetGroupsCommand";
@@ -40,8 +46,10 @@ export * from "./ListDatasetsCommand";
40
46
  export * from "./ListEventTrackersCommand";
41
47
  export * from "./ListFiltersCommand";
42
48
  export * from "./ListRecipesCommand";
49
+ export * from "./ListRecommendersCommand";
43
50
  export * from "./ListSchemasCommand";
44
51
  export * from "./ListSolutionVersionsCommand";
45
52
  export * from "./ListSolutionsCommand";
46
53
  export * from "./StopSolutionVersionCreationCommand";
47
54
  export * from "./UpdateCampaignCommand";
55
+ export * from "./UpdateRecommenderCommand";
@@ -12,6 +12,7 @@ var partitionHash = {
12
12
  "ap-south-1",
13
13
  "ap-southeast-1",
14
14
  "ap-southeast-2",
15
+ "ap-southeast-3",
15
16
  "ca-central-1",
16
17
  "eu-central-1",
17
18
  "eu-north-1",