@aws-sdk/client-personalize 3.40.0 → 3.45.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 (113) hide show
  1. package/CHANGELOG.md +41 -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 +9 -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-es/Personalize.js +120 -0
  19. package/dist-es/commands/CreateBatchSegmentJobCommand.js +39 -0
  20. package/dist-es/commands/CreateRecommenderCommand.js +39 -0
  21. package/dist-es/commands/DeleteRecommenderCommand.js +39 -0
  22. package/dist-es/commands/DescribeBatchSegmentJobCommand.js +39 -0
  23. package/dist-es/commands/DescribeRecommenderCommand.js +39 -0
  24. package/dist-es/commands/ListBatchSegmentJobsCommand.js +39 -0
  25. package/dist-es/commands/ListRecommendersCommand.js +39 -0
  26. package/dist-es/commands/UpdateRecommenderCommand.js +39 -0
  27. package/dist-es/commands/index.js +8 -0
  28. package/dist-es/endpoints.js +9 -0
  29. package/dist-es/models/models_0.js +97 -0
  30. package/dist-es/pagination/ListBatchSegmentJobsPaginator.js +74 -0
  31. package/dist-es/pagination/ListRecommendersPaginator.js +74 -0
  32. package/dist-es/pagination/index.js +2 -0
  33. package/dist-es/protocols/Aws_json1_1.js +944 -38
  34. package/dist-types/Personalize.d.ts +137 -8
  35. package/dist-types/PersonalizeClient.d.ts +10 -2
  36. package/dist-types/commands/CreateBatchInferenceJobCommand.d.ts +1 -1
  37. package/dist-types/commands/CreateBatchSegmentJobCommand.d.ts +36 -0
  38. package/dist-types/commands/CreateCampaignCommand.d.ts +2 -2
  39. package/dist-types/commands/CreateDatasetCommand.d.ts +1 -1
  40. package/dist-types/commands/CreateDatasetExportJobCommand.d.ts +1 -1
  41. package/dist-types/commands/CreateDatasetGroupCommand.d.ts +9 -6
  42. package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +1 -1
  43. package/dist-types/commands/CreateEventTrackerCommand.d.ts +1 -1
  44. package/dist-types/commands/CreateFilterCommand.d.ts +1 -1
  45. package/dist-types/commands/CreateRecommenderCommand.d.ts +84 -0
  46. package/dist-types/commands/CreateSchemaCommand.d.ts +3 -2
  47. package/dist-types/commands/CreateSolutionCommand.d.ts +1 -1
  48. package/dist-types/commands/CreateSolutionVersionCommand.d.ts +2 -2
  49. package/dist-types/commands/DeleteCampaignCommand.d.ts +1 -1
  50. package/dist-types/commands/DeleteDatasetCommand.d.ts +1 -1
  51. package/dist-types/commands/DeleteDatasetGroupCommand.d.ts +1 -1
  52. package/dist-types/commands/DeleteEventTrackerCommand.d.ts +1 -1
  53. package/dist-types/commands/DeleteFilterCommand.d.ts +1 -1
  54. package/dist-types/commands/DeleteRecommenderCommand.d.ts +36 -0
  55. package/dist-types/commands/DeleteSchemaCommand.d.ts +1 -1
  56. package/dist-types/commands/DeleteSolutionCommand.d.ts +1 -1
  57. package/dist-types/commands/DescribeAlgorithmCommand.d.ts +1 -1
  58. package/dist-types/commands/DescribeBatchInferenceJobCommand.d.ts +1 -1
  59. package/dist-types/commands/DescribeBatchSegmentJobCommand.d.ts +37 -0
  60. package/dist-types/commands/DescribeCampaignCommand.d.ts +1 -1
  61. package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -1
  62. package/dist-types/commands/DescribeDatasetExportJobCommand.d.ts +1 -1
  63. package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +1 -1
  64. package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +1 -1
  65. package/dist-types/commands/DescribeEventTrackerCommand.d.ts +1 -1
  66. package/dist-types/commands/DescribeFeatureTransformationCommand.d.ts +1 -1
  67. package/dist-types/commands/DescribeFilterCommand.d.ts +1 -1
  68. package/dist-types/commands/DescribeRecipeCommand.d.ts +1 -1
  69. package/dist-types/commands/DescribeRecommenderCommand.d.ts +47 -0
  70. package/dist-types/commands/DescribeSchemaCommand.d.ts +1 -1
  71. package/dist-types/commands/DescribeSolutionCommand.d.ts +1 -1
  72. package/dist-types/commands/DescribeSolutionVersionCommand.d.ts +1 -1
  73. package/dist-types/commands/GetSolutionMetricsCommand.d.ts +1 -1
  74. package/dist-types/commands/ListBatchInferenceJobsCommand.d.ts +1 -1
  75. package/dist-types/commands/ListBatchSegmentJobsCommand.d.ts +36 -0
  76. package/dist-types/commands/ListCampaignsCommand.d.ts +1 -1
  77. package/dist-types/commands/ListDatasetExportJobsCommand.d.ts +1 -1
  78. package/dist-types/commands/ListDatasetGroupsCommand.d.ts +1 -1
  79. package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +1 -1
  80. package/dist-types/commands/ListDatasetsCommand.d.ts +1 -1
  81. package/dist-types/commands/ListEventTrackersCommand.d.ts +1 -1
  82. package/dist-types/commands/ListFiltersCommand.d.ts +1 -1
  83. package/dist-types/commands/ListRecipesCommand.d.ts +1 -1
  84. package/dist-types/commands/ListRecommendersCommand.d.ts +38 -0
  85. package/dist-types/commands/ListSchemasCommand.d.ts +1 -1
  86. package/dist-types/commands/ListSolutionVersionsCommand.d.ts +1 -1
  87. package/dist-types/commands/ListSolutionsCommand.d.ts +1 -1
  88. package/dist-types/commands/StopSolutionVersionCreationCommand.d.ts +1 -1
  89. package/dist-types/commands/UpdateCampaignCommand.d.ts +1 -1
  90. package/dist-types/commands/UpdateRecommenderCommand.d.ts +35 -0
  91. package/dist-types/commands/index.d.ts +8 -0
  92. package/dist-types/models/models_0.d.ts +634 -3
  93. package/dist-types/pagination/ListBatchSegmentJobsPaginator.d.ts +4 -0
  94. package/dist-types/pagination/ListRecommendersPaginator.d.ts +4 -0
  95. package/dist-types/pagination/index.d.ts +2 -0
  96. package/dist-types/protocols/Aws_json1_1.d.ts +24 -0
  97. package/dist-types/ts3.4/Personalize.d.ts +40 -0
  98. package/dist-types/ts3.4/PersonalizeClient.d.ts +10 -2
  99. package/dist-types/ts3.4/commands/CreateBatchSegmentJobCommand.d.ts +17 -0
  100. package/dist-types/ts3.4/commands/CreateRecommenderCommand.d.ts +17 -0
  101. package/dist-types/ts3.4/commands/DeleteRecommenderCommand.d.ts +17 -0
  102. package/dist-types/ts3.4/commands/DescribeBatchSegmentJobCommand.d.ts +17 -0
  103. package/dist-types/ts3.4/commands/DescribeRecommenderCommand.d.ts +17 -0
  104. package/dist-types/ts3.4/commands/ListBatchSegmentJobsCommand.d.ts +17 -0
  105. package/dist-types/ts3.4/commands/ListRecommendersCommand.d.ts +17 -0
  106. package/dist-types/ts3.4/commands/UpdateRecommenderCommand.d.ts +17 -0
  107. package/dist-types/ts3.4/commands/index.d.ts +8 -0
  108. package/dist-types/ts3.4/models/models_0.d.ts +322 -0
  109. package/dist-types/ts3.4/pagination/ListBatchSegmentJobsPaginator.d.ts +4 -0
  110. package/dist-types/ts3.4/pagination/ListRecommendersPaginator.d.ts +4 -0
  111. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  112. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
  113. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -3,6 +3,47 @@
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.45.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.44.0...v3.45.0) (2021-12-23)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [3.43.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.42.0...v3.43.0) (2021-11-29)
18
+
19
+
20
+ ### Features
21
+
22
+ * **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))
23
+
24
+
25
+
26
+
27
+
28
+ # [3.42.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.41.0...v3.42.0) (2021-11-19)
29
+
30
+ **Note:** Version bump only for package @aws-sdk/client-personalize
31
+
32
+
33
+
34
+
35
+
36
+ # [3.41.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.40.1...v3.41.0) (2021-11-11)
37
+
38
+
39
+ ### Features
40
+
41
+ * **clients:** update clients as of 2021/11/11 ([#3015](https://github.com/aws/aws-sdk-js-v3/issues/3015)) ([3d82c4e](https://github.com/aws/aws-sdk-js-v3/commit/3d82c4e3c4d174533f46ce35495cf5cffabdb35a))
42
+
43
+
44
+
45
+
46
+
6
47
  # [3.40.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.39.0...v3.40.0) (2021-11-05)
7
48
 
8
49
 
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Personalize = void 0;
4
4
  const CreateBatchInferenceJobCommand_1 = require("./commands/CreateBatchInferenceJobCommand");
5
+ const CreateBatchSegmentJobCommand_1 = require("./commands/CreateBatchSegmentJobCommand");
5
6
  const CreateCampaignCommand_1 = require("./commands/CreateCampaignCommand");
6
7
  const CreateDatasetCommand_1 = require("./commands/CreateDatasetCommand");
7
8
  const CreateDatasetExportJobCommand_1 = require("./commands/CreateDatasetExportJobCommand");
@@ -9,6 +10,7 @@ const CreateDatasetGroupCommand_1 = require("./commands/CreateDatasetGroupComman
9
10
  const CreateDatasetImportJobCommand_1 = require("./commands/CreateDatasetImportJobCommand");
10
11
  const CreateEventTrackerCommand_1 = require("./commands/CreateEventTrackerCommand");
11
12
  const CreateFilterCommand_1 = require("./commands/CreateFilterCommand");
13
+ const CreateRecommenderCommand_1 = require("./commands/CreateRecommenderCommand");
12
14
  const CreateSchemaCommand_1 = require("./commands/CreateSchemaCommand");
13
15
  const CreateSolutionCommand_1 = require("./commands/CreateSolutionCommand");
14
16
  const CreateSolutionVersionCommand_1 = require("./commands/CreateSolutionVersionCommand");
@@ -17,10 +19,12 @@ const DeleteDatasetCommand_1 = require("./commands/DeleteDatasetCommand");
17
19
  const DeleteDatasetGroupCommand_1 = require("./commands/DeleteDatasetGroupCommand");
18
20
  const DeleteEventTrackerCommand_1 = require("./commands/DeleteEventTrackerCommand");
19
21
  const DeleteFilterCommand_1 = require("./commands/DeleteFilterCommand");
22
+ const DeleteRecommenderCommand_1 = require("./commands/DeleteRecommenderCommand");
20
23
  const DeleteSchemaCommand_1 = require("./commands/DeleteSchemaCommand");
21
24
  const DeleteSolutionCommand_1 = require("./commands/DeleteSolutionCommand");
22
25
  const DescribeAlgorithmCommand_1 = require("./commands/DescribeAlgorithmCommand");
23
26
  const DescribeBatchInferenceJobCommand_1 = require("./commands/DescribeBatchInferenceJobCommand");
27
+ const DescribeBatchSegmentJobCommand_1 = require("./commands/DescribeBatchSegmentJobCommand");
24
28
  const DescribeCampaignCommand_1 = require("./commands/DescribeCampaignCommand");
25
29
  const DescribeDatasetCommand_1 = require("./commands/DescribeDatasetCommand");
26
30
  const DescribeDatasetExportJobCommand_1 = require("./commands/DescribeDatasetExportJobCommand");
@@ -30,11 +34,13 @@ const DescribeEventTrackerCommand_1 = require("./commands/DescribeEventTrackerCo
30
34
  const DescribeFeatureTransformationCommand_1 = require("./commands/DescribeFeatureTransformationCommand");
31
35
  const DescribeFilterCommand_1 = require("./commands/DescribeFilterCommand");
32
36
  const DescribeRecipeCommand_1 = require("./commands/DescribeRecipeCommand");
37
+ const DescribeRecommenderCommand_1 = require("./commands/DescribeRecommenderCommand");
33
38
  const DescribeSchemaCommand_1 = require("./commands/DescribeSchemaCommand");
34
39
  const DescribeSolutionCommand_1 = require("./commands/DescribeSolutionCommand");
35
40
  const DescribeSolutionVersionCommand_1 = require("./commands/DescribeSolutionVersionCommand");
36
41
  const GetSolutionMetricsCommand_1 = require("./commands/GetSolutionMetricsCommand");
37
42
  const ListBatchInferenceJobsCommand_1 = require("./commands/ListBatchInferenceJobsCommand");
43
+ const ListBatchSegmentJobsCommand_1 = require("./commands/ListBatchSegmentJobsCommand");
38
44
  const ListCampaignsCommand_1 = require("./commands/ListCampaignsCommand");
39
45
  const ListDatasetExportJobsCommand_1 = require("./commands/ListDatasetExportJobsCommand");
40
46
  const ListDatasetGroupsCommand_1 = require("./commands/ListDatasetGroupsCommand");
@@ -43,11 +49,13 @@ const ListDatasetsCommand_1 = require("./commands/ListDatasetsCommand");
43
49
  const ListEventTrackersCommand_1 = require("./commands/ListEventTrackersCommand");
44
50
  const ListFiltersCommand_1 = require("./commands/ListFiltersCommand");
45
51
  const ListRecipesCommand_1 = require("./commands/ListRecipesCommand");
52
+ const ListRecommendersCommand_1 = require("./commands/ListRecommendersCommand");
46
53
  const ListSchemasCommand_1 = require("./commands/ListSchemasCommand");
47
54
  const ListSolutionsCommand_1 = require("./commands/ListSolutionsCommand");
48
55
  const ListSolutionVersionsCommand_1 = require("./commands/ListSolutionVersionsCommand");
49
56
  const StopSolutionVersionCreationCommand_1 = require("./commands/StopSolutionVersionCreationCommand");
50
57
  const UpdateCampaignCommand_1 = require("./commands/UpdateCampaignCommand");
58
+ const UpdateRecommenderCommand_1 = require("./commands/UpdateRecommenderCommand");
51
59
  const PersonalizeClient_1 = require("./PersonalizeClient");
52
60
  class Personalize extends PersonalizeClient_1.PersonalizeClient {
53
61
  createBatchInferenceJob(args, optionsOrCb, cb) {
@@ -64,6 +72,20 @@ class Personalize extends PersonalizeClient_1.PersonalizeClient {
64
72
  return this.send(command, optionsOrCb);
65
73
  }
66
74
  }
75
+ createBatchSegmentJob(args, optionsOrCb, cb) {
76
+ const command = new CreateBatchSegmentJobCommand_1.CreateBatchSegmentJobCommand(args);
77
+ if (typeof optionsOrCb === "function") {
78
+ this.send(command, optionsOrCb);
79
+ }
80
+ else if (typeof cb === "function") {
81
+ if (typeof optionsOrCb !== "object")
82
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
83
+ this.send(command, optionsOrCb || {}, cb);
84
+ }
85
+ else {
86
+ return this.send(command, optionsOrCb);
87
+ }
88
+ }
67
89
  createCampaign(args, optionsOrCb, cb) {
68
90
  const command = new CreateCampaignCommand_1.CreateCampaignCommand(args);
69
91
  if (typeof optionsOrCb === "function") {
@@ -162,6 +184,20 @@ class Personalize extends PersonalizeClient_1.PersonalizeClient {
162
184
  return this.send(command, optionsOrCb);
163
185
  }
164
186
  }
187
+ createRecommender(args, optionsOrCb, cb) {
188
+ const command = new CreateRecommenderCommand_1.CreateRecommenderCommand(args);
189
+ if (typeof optionsOrCb === "function") {
190
+ this.send(command, optionsOrCb);
191
+ }
192
+ else if (typeof cb === "function") {
193
+ if (typeof optionsOrCb !== "object")
194
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
195
+ this.send(command, optionsOrCb || {}, cb);
196
+ }
197
+ else {
198
+ return this.send(command, optionsOrCb);
199
+ }
200
+ }
165
201
  createSchema(args, optionsOrCb, cb) {
166
202
  const command = new CreateSchemaCommand_1.CreateSchemaCommand(args);
167
203
  if (typeof optionsOrCb === "function") {
@@ -274,6 +310,20 @@ class Personalize extends PersonalizeClient_1.PersonalizeClient {
274
310
  return this.send(command, optionsOrCb);
275
311
  }
276
312
  }
313
+ deleteRecommender(args, optionsOrCb, cb) {
314
+ const command = new DeleteRecommenderCommand_1.DeleteRecommenderCommand(args);
315
+ if (typeof optionsOrCb === "function") {
316
+ this.send(command, optionsOrCb);
317
+ }
318
+ else if (typeof cb === "function") {
319
+ if (typeof optionsOrCb !== "object")
320
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
321
+ this.send(command, optionsOrCb || {}, cb);
322
+ }
323
+ else {
324
+ return this.send(command, optionsOrCb);
325
+ }
326
+ }
277
327
  deleteSchema(args, optionsOrCb, cb) {
278
328
  const command = new DeleteSchemaCommand_1.DeleteSchemaCommand(args);
279
329
  if (typeof optionsOrCb === "function") {
@@ -330,6 +380,20 @@ class Personalize extends PersonalizeClient_1.PersonalizeClient {
330
380
  return this.send(command, optionsOrCb);
331
381
  }
332
382
  }
383
+ describeBatchSegmentJob(args, optionsOrCb, cb) {
384
+ const command = new DescribeBatchSegmentJobCommand_1.DescribeBatchSegmentJobCommand(args);
385
+ if (typeof optionsOrCb === "function") {
386
+ this.send(command, optionsOrCb);
387
+ }
388
+ else if (typeof cb === "function") {
389
+ if (typeof optionsOrCb !== "object")
390
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
391
+ this.send(command, optionsOrCb || {}, cb);
392
+ }
393
+ else {
394
+ return this.send(command, optionsOrCb);
395
+ }
396
+ }
333
397
  describeCampaign(args, optionsOrCb, cb) {
334
398
  const command = new DescribeCampaignCommand_1.DescribeCampaignCommand(args);
335
399
  if (typeof optionsOrCb === "function") {
@@ -456,6 +520,20 @@ class Personalize extends PersonalizeClient_1.PersonalizeClient {
456
520
  return this.send(command, optionsOrCb);
457
521
  }
458
522
  }
523
+ describeRecommender(args, optionsOrCb, cb) {
524
+ const command = new DescribeRecommenderCommand_1.DescribeRecommenderCommand(args);
525
+ if (typeof optionsOrCb === "function") {
526
+ this.send(command, optionsOrCb);
527
+ }
528
+ else if (typeof cb === "function") {
529
+ if (typeof optionsOrCb !== "object")
530
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
531
+ this.send(command, optionsOrCb || {}, cb);
532
+ }
533
+ else {
534
+ return this.send(command, optionsOrCb);
535
+ }
536
+ }
459
537
  describeSchema(args, optionsOrCb, cb) {
460
538
  const command = new DescribeSchemaCommand_1.DescribeSchemaCommand(args);
461
539
  if (typeof optionsOrCb === "function") {
@@ -526,6 +604,20 @@ class Personalize extends PersonalizeClient_1.PersonalizeClient {
526
604
  return this.send(command, optionsOrCb);
527
605
  }
528
606
  }
607
+ listBatchSegmentJobs(args, optionsOrCb, cb) {
608
+ const command = new ListBatchSegmentJobsCommand_1.ListBatchSegmentJobsCommand(args);
609
+ if (typeof optionsOrCb === "function") {
610
+ this.send(command, optionsOrCb);
611
+ }
612
+ else if (typeof cb === "function") {
613
+ if (typeof optionsOrCb !== "object")
614
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
615
+ this.send(command, optionsOrCb || {}, cb);
616
+ }
617
+ else {
618
+ return this.send(command, optionsOrCb);
619
+ }
620
+ }
529
621
  listCampaigns(args, optionsOrCb, cb) {
530
622
  const command = new ListCampaignsCommand_1.ListCampaignsCommand(args);
531
623
  if (typeof optionsOrCb === "function") {
@@ -638,6 +730,20 @@ class Personalize extends PersonalizeClient_1.PersonalizeClient {
638
730
  return this.send(command, optionsOrCb);
639
731
  }
640
732
  }
733
+ listRecommenders(args, optionsOrCb, cb) {
734
+ const command = new ListRecommendersCommand_1.ListRecommendersCommand(args);
735
+ if (typeof optionsOrCb === "function") {
736
+ this.send(command, optionsOrCb);
737
+ }
738
+ else if (typeof cb === "function") {
739
+ if (typeof optionsOrCb !== "object")
740
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
741
+ this.send(command, optionsOrCb || {}, cb);
742
+ }
743
+ else {
744
+ return this.send(command, optionsOrCb);
745
+ }
746
+ }
641
747
  listSchemas(args, optionsOrCb, cb) {
642
748
  const command = new ListSchemasCommand_1.ListSchemasCommand(args);
643
749
  if (typeof optionsOrCb === "function") {
@@ -708,5 +814,19 @@ class Personalize extends PersonalizeClient_1.PersonalizeClient {
708
814
  return this.send(command, optionsOrCb);
709
815
  }
710
816
  }
817
+ updateRecommender(args, optionsOrCb, cb) {
818
+ const command = new UpdateRecommenderCommand_1.UpdateRecommenderCommand(args);
819
+ if (typeof optionsOrCb === "function") {
820
+ this.send(command, optionsOrCb);
821
+ }
822
+ else if (typeof cb === "function") {
823
+ if (typeof optionsOrCb !== "object")
824
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
825
+ this.send(command, optionsOrCb || {}, cb);
826
+ }
827
+ else {
828
+ return this.send(command, optionsOrCb);
829
+ }
830
+ }
711
831
  }
712
832
  exports.Personalize = Personalize;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateBatchSegmentJobCommand = 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 CreateBatchSegmentJobCommand 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 = "PersonalizeClient";
18
+ const commandName = "CreateBatchSegmentJobCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateBatchSegmentJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateBatchSegmentJobResponse.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_1CreateBatchSegmentJobCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateBatchSegmentJobCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateBatchSegmentJobCommand = CreateBatchSegmentJobCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CreateRecommenderCommand = 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 CreateRecommenderCommand 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 = "PersonalizeClient";
18
+ const commandName = "CreateRecommenderCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.CreateRecommenderRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.CreateRecommenderResponse.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_1CreateRecommenderCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1CreateRecommenderCommand(output, context);
34
+ }
35
+ }
36
+ exports.CreateRecommenderCommand = CreateRecommenderCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeleteRecommenderCommand = 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 DeleteRecommenderCommand 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 = "PersonalizeClient";
18
+ const commandName = "DeleteRecommenderCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DeleteRecommenderRequest.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_1DeleteRecommenderCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DeleteRecommenderCommand(output, context);
34
+ }
35
+ }
36
+ exports.DeleteRecommenderCommand = DeleteRecommenderCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeBatchSegmentJobCommand = 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 DescribeBatchSegmentJobCommand 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 = "PersonalizeClient";
18
+ const commandName = "DescribeBatchSegmentJobCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeBatchSegmentJobRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeBatchSegmentJobResponse.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_1DescribeBatchSegmentJobCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DescribeBatchSegmentJobCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeBatchSegmentJobCommand = DescribeBatchSegmentJobCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DescribeRecommenderCommand = 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 DescribeRecommenderCommand 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 = "PersonalizeClient";
18
+ const commandName = "DescribeRecommenderCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.DescribeRecommenderRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.DescribeRecommenderResponse.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_1DescribeRecommenderCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1DescribeRecommenderCommand(output, context);
34
+ }
35
+ }
36
+ exports.DescribeRecommenderCommand = DescribeRecommenderCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListBatchSegmentJobsCommand = 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 ListBatchSegmentJobsCommand 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 = "PersonalizeClient";
18
+ const commandName = "ListBatchSegmentJobsCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListBatchSegmentJobsRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListBatchSegmentJobsResponse.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_1ListBatchSegmentJobsCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1ListBatchSegmentJobsCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListBatchSegmentJobsCommand = ListBatchSegmentJobsCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListRecommendersCommand = 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 ListRecommendersCommand 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 = "PersonalizeClient";
18
+ const commandName = "ListRecommendersCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.ListRecommendersRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.ListRecommendersResponse.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_1ListRecommendersCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1ListRecommendersCommand(output, context);
34
+ }
35
+ }
36
+ exports.ListRecommendersCommand = ListRecommendersCommand;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRecommenderCommand = 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 UpdateRecommenderCommand 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 = "PersonalizeClient";
18
+ const commandName = "UpdateRecommenderCommand";
19
+ const handlerExecutionContext = {
20
+ logger,
21
+ clientName,
22
+ commandName,
23
+ inputFilterSensitiveLog: models_0_1.UpdateRecommenderRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: models_0_1.UpdateRecommenderResponse.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_1UpdateRecommenderCommand(input, context);
31
+ }
32
+ deserialize(output, context) {
33
+ return Aws_json1_1_1.deserializeAws_json1_1UpdateRecommenderCommand(output, context);
34
+ }
35
+ }
36
+ exports.UpdateRecommenderCommand = UpdateRecommenderCommand;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CreateBatchInferenceJobCommand"), exports);
5
+ tslib_1.__exportStar(require("./CreateBatchSegmentJobCommand"), exports);
5
6
  tslib_1.__exportStar(require("./CreateCampaignCommand"), exports);
6
7
  tslib_1.__exportStar(require("./CreateDatasetCommand"), exports);
7
8
  tslib_1.__exportStar(require("./CreateDatasetExportJobCommand"), exports);
@@ -9,6 +10,7 @@ tslib_1.__exportStar(require("./CreateDatasetGroupCommand"), exports);
9
10
  tslib_1.__exportStar(require("./CreateDatasetImportJobCommand"), exports);
10
11
  tslib_1.__exportStar(require("./CreateEventTrackerCommand"), exports);
11
12
  tslib_1.__exportStar(require("./CreateFilterCommand"), exports);
13
+ tslib_1.__exportStar(require("./CreateRecommenderCommand"), exports);
12
14
  tslib_1.__exportStar(require("./CreateSchemaCommand"), exports);
13
15
  tslib_1.__exportStar(require("./CreateSolutionCommand"), exports);
14
16
  tslib_1.__exportStar(require("./CreateSolutionVersionCommand"), exports);
@@ -17,10 +19,12 @@ tslib_1.__exportStar(require("./DeleteDatasetCommand"), exports);
17
19
  tslib_1.__exportStar(require("./DeleteDatasetGroupCommand"), exports);
18
20
  tslib_1.__exportStar(require("./DeleteEventTrackerCommand"), exports);
19
21
  tslib_1.__exportStar(require("./DeleteFilterCommand"), exports);
22
+ tslib_1.__exportStar(require("./DeleteRecommenderCommand"), exports);
20
23
  tslib_1.__exportStar(require("./DeleteSchemaCommand"), exports);
21
24
  tslib_1.__exportStar(require("./DeleteSolutionCommand"), exports);
22
25
  tslib_1.__exportStar(require("./DescribeAlgorithmCommand"), exports);
23
26
  tslib_1.__exportStar(require("./DescribeBatchInferenceJobCommand"), exports);
27
+ tslib_1.__exportStar(require("./DescribeBatchSegmentJobCommand"), exports);
24
28
  tslib_1.__exportStar(require("./DescribeCampaignCommand"), exports);
25
29
  tslib_1.__exportStar(require("./DescribeDatasetCommand"), exports);
26
30
  tslib_1.__exportStar(require("./DescribeDatasetExportJobCommand"), exports);
@@ -30,11 +34,13 @@ tslib_1.__exportStar(require("./DescribeEventTrackerCommand"), exports);
30
34
  tslib_1.__exportStar(require("./DescribeFeatureTransformationCommand"), exports);
31
35
  tslib_1.__exportStar(require("./DescribeFilterCommand"), exports);
32
36
  tslib_1.__exportStar(require("./DescribeRecipeCommand"), exports);
37
+ tslib_1.__exportStar(require("./DescribeRecommenderCommand"), exports);
33
38
  tslib_1.__exportStar(require("./DescribeSchemaCommand"), exports);
34
39
  tslib_1.__exportStar(require("./DescribeSolutionCommand"), exports);
35
40
  tslib_1.__exportStar(require("./DescribeSolutionVersionCommand"), exports);
36
41
  tslib_1.__exportStar(require("./GetSolutionMetricsCommand"), exports);
37
42
  tslib_1.__exportStar(require("./ListBatchInferenceJobsCommand"), exports);
43
+ tslib_1.__exportStar(require("./ListBatchSegmentJobsCommand"), exports);
38
44
  tslib_1.__exportStar(require("./ListCampaignsCommand"), exports);
39
45
  tslib_1.__exportStar(require("./ListDatasetExportJobsCommand"), exports);
40
46
  tslib_1.__exportStar(require("./ListDatasetGroupsCommand"), exports);
@@ -43,8 +49,10 @@ tslib_1.__exportStar(require("./ListDatasetsCommand"), exports);
43
49
  tslib_1.__exportStar(require("./ListEventTrackersCommand"), exports);
44
50
  tslib_1.__exportStar(require("./ListFiltersCommand"), exports);
45
51
  tslib_1.__exportStar(require("./ListRecipesCommand"), exports);
52
+ tslib_1.__exportStar(require("./ListRecommendersCommand"), exports);
46
53
  tslib_1.__exportStar(require("./ListSchemasCommand"), exports);
47
54
  tslib_1.__exportStar(require("./ListSolutionVersionsCommand"), exports);
48
55
  tslib_1.__exportStar(require("./ListSolutionsCommand"), exports);
49
56
  tslib_1.__exportStar(require("./StopSolutionVersionCreationCommand"), exports);
50
57
  tslib_1.__exportStar(require("./UpdateCampaignCommand"), exports);
58
+ tslib_1.__exportStar(require("./UpdateRecommenderCommand"), exports);
@@ -14,6 +14,7 @@ const partitionHash = {
14
14
  "ap-south-1",
15
15
  "ap-southeast-1",
16
16
  "ap-southeast-2",
17
+ "ap-southeast-3",
17
18
  "ca-central-1",
18
19
  "eu-central-1",
19
20
  "eu-north-1",
@@ -78,6 +79,10 @@ const partitionHash = {
78
79
  hostname: "personalize.{region}.c2s.ic.gov",
79
80
  tags: [],
80
81
  },
82
+ {
83
+ hostname: "personalize-fips.{region}.c2s.ic.gov",
84
+ tags: ["fips"],
85
+ },
81
86
  ],
82
87
  },
83
88
  "aws-iso-b": {
@@ -88,6 +93,10 @@ const partitionHash = {
88
93
  hostname: "personalize.{region}.sc2s.sgov.gov",
89
94
  tags: [],
90
95
  },
96
+ {
97
+ hostname: "personalize-fips.{region}.sc2s.sgov.gov",
98
+ tags: ["fips"],
99
+ },
91
100
  ],
92
101
  },
93
102
  "aws-us-gov": {