@aws-sdk/client-personalize 3.58.0 → 3.66.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 (70) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/Personalize.js +45 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +72 -4
  8. package/dist-cjs/protocols/Aws_json1_1.js +315 -2
  9. package/dist-es/Personalize.js +45 -0
  10. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  11. package/dist-es/commands/TagResourceCommand.js +39 -0
  12. package/dist-es/commands/UntagResourceCommand.js +39 -0
  13. package/dist-es/commands/index.js +3 -0
  14. package/dist-es/models/models_0.js +52 -0
  15. package/dist-es/protocols/Aws_json1_1.js +403 -47
  16. package/dist-types/Personalize.d.ts +113 -89
  17. package/dist-types/PersonalizeClient.d.ts +5 -2
  18. package/dist-types/commands/CreateBatchInferenceJobCommand.d.ts +3 -1
  19. package/dist-types/commands/CreateBatchSegmentJobCommand.d.ts +2 -1
  20. package/dist-types/commands/CreateCampaignCommand.d.ts +5 -6
  21. package/dist-types/commands/CreateDatasetCommand.d.ts +8 -6
  22. package/dist-types/commands/CreateDatasetExportJobCommand.d.ts +1 -1
  23. package/dist-types/commands/CreateDatasetGroupCommand.d.ts +7 -7
  24. package/dist-types/commands/CreateDatasetImportJobCommand.d.ts +3 -3
  25. package/dist-types/commands/CreateEventTrackerCommand.d.ts +4 -4
  26. package/dist-types/commands/CreateFilterCommand.d.ts +1 -1
  27. package/dist-types/commands/CreateRecommenderCommand.d.ts +5 -5
  28. package/dist-types/commands/CreateSchemaCommand.d.ts +4 -4
  29. package/dist-types/commands/CreateSolutionCommand.d.ts +10 -10
  30. package/dist-types/commands/CreateSolutionVersionCommand.d.ts +9 -10
  31. package/dist-types/commands/DeleteCampaignCommand.d.ts +1 -1
  32. package/dist-types/commands/DeleteDatasetCommand.d.ts +1 -1
  33. package/dist-types/commands/DeleteEventTrackerCommand.d.ts +1 -1
  34. package/dist-types/commands/DeleteSchemaCommand.d.ts +1 -1
  35. package/dist-types/commands/DeleteSolutionCommand.d.ts +2 -2
  36. package/dist-types/commands/DescribeCampaignCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeDatasetCommand.d.ts +1 -1
  38. package/dist-types/commands/DescribeDatasetExportJobCommand.d.ts +1 -1
  39. package/dist-types/commands/DescribeDatasetGroupCommand.d.ts +1 -1
  40. package/dist-types/commands/DescribeDatasetImportJobCommand.d.ts +1 -1
  41. package/dist-types/commands/DescribeEventTrackerCommand.d.ts +1 -1
  42. package/dist-types/commands/DescribeRecipeCommand.d.ts +1 -1
  43. package/dist-types/commands/DescribeSchemaCommand.d.ts +1 -1
  44. package/dist-types/commands/DescribeSolutionCommand.d.ts +1 -1
  45. package/dist-types/commands/DescribeSolutionVersionCommand.d.ts +2 -1
  46. package/dist-types/commands/ListCampaignsCommand.d.ts +1 -1
  47. package/dist-types/commands/ListDatasetExportJobsCommand.d.ts +2 -2
  48. package/dist-types/commands/ListDatasetGroupsCommand.d.ts +1 -1
  49. package/dist-types/commands/ListDatasetImportJobsCommand.d.ts +2 -2
  50. package/dist-types/commands/ListDatasetsCommand.d.ts +1 -1
  51. package/dist-types/commands/ListEventTrackersCommand.d.ts +1 -1
  52. package/dist-types/commands/ListSchemasCommand.d.ts +1 -1
  53. package/dist-types/commands/ListSolutionVersionsCommand.d.ts +1 -2
  54. package/dist-types/commands/ListSolutionsCommand.d.ts +1 -1
  55. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  56. package/dist-types/commands/TagResourceCommand.d.ts +35 -0
  57. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  58. package/dist-types/commands/UpdateCampaignCommand.d.ts +2 -2
  59. package/dist-types/commands/index.d.ts +3 -0
  60. package/dist-types/models/models_0.d.ts +199 -34
  61. package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
  62. package/dist-types/ts3.4/Personalize.d.ts +15 -0
  63. package/dist-types/ts3.4/PersonalizeClient.d.ts +5 -2
  64. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  65. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  66. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  68. package/dist-types/ts3.4/models/models_0.d.ts +97 -0
  69. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +9 -0
  70. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListTagsForResourceCommand, serializeAws_json1_1ListTagsForResourceCommand, } from "../protocols/Aws_json1_1";
6
+ var ListTagsForResourceCommand = (function (_super) {
7
+ __extends(ListTagsForResourceCommand, _super);
8
+ function ListTagsForResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListTagsForResourceCommand.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 = "ListTagsForResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListTagsForResourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTagsForResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListTagsForResourceCommand(input, context);
33
+ };
34
+ ListTagsForResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListTagsForResourceCommand(output, context);
36
+ };
37
+ return ListTagsForResourceCommand;
38
+ }($Command));
39
+ export { ListTagsForResourceCommand };
@@ -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 { TagResourceRequest, TagResourceResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1TagResourceCommand, serializeAws_json1_1TagResourceCommand, } from "../protocols/Aws_json1_1";
6
+ var TagResourceCommand = (function (_super) {
7
+ __extends(TagResourceCommand, _super);
8
+ function TagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ TagResourceCommand.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 = "TagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: TagResourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ TagResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1TagResourceCommand(input, context);
33
+ };
34
+ TagResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1TagResourceCommand(output, context);
36
+ };
37
+ return TagResourceCommand;
38
+ }($Command));
39
+ export { TagResourceCommand };
@@ -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 { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1UntagResourceCommand, serializeAws_json1_1UntagResourceCommand, } from "../protocols/Aws_json1_1";
6
+ var UntagResourceCommand = (function (_super) {
7
+ __extends(UntagResourceCommand, _super);
8
+ function UntagResourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ UntagResourceCommand.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 = "UntagResourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: UntagResourceResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ UntagResourceCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1UntagResourceCommand(input, context);
33
+ };
34
+ UntagResourceCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1UntagResourceCommand(output, context);
36
+ };
37
+ return UntagResourceCommand;
38
+ }($Command));
39
+ export { UntagResourceCommand };
@@ -50,6 +50,9 @@ export * from "./ListRecommendersCommand";
50
50
  export * from "./ListSchemasCommand";
51
51
  export * from "./ListSolutionVersionsCommand";
52
52
  export * from "./ListSolutionsCommand";
53
+ export * from "./ListTagsForResourceCommand";
53
54
  export * from "./StopSolutionVersionCreationCommand";
55
+ export * from "./TagResourceCommand";
56
+ export * from "./UntagResourceCommand";
54
57
  export * from "./UpdateCampaignCommand";
55
58
  export * from "./UpdateRecommenderCommand";
@@ -41,6 +41,10 @@ export var BatchInferenceJobOutput;
41
41
  (function (BatchInferenceJobOutput) {
42
42
  BatchInferenceJobOutput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
43
43
  })(BatchInferenceJobOutput || (BatchInferenceJobOutput = {}));
44
+ export var Tag;
45
+ (function (Tag) {
46
+ Tag.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
47
+ })(Tag || (Tag = {}));
44
48
  export var CreateBatchInferenceJobRequest;
45
49
  (function (CreateBatchInferenceJobRequest) {
46
50
  CreateBatchInferenceJobRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -109,6 +113,18 @@ var ResourceNotFoundException = (function (_super) {
109
113
  return ResourceNotFoundException;
110
114
  }(__BaseException));
111
115
  export { ResourceNotFoundException };
116
+ var TooManyTagsException = (function (_super) {
117
+ __extends(TooManyTagsException, _super);
118
+ function TooManyTagsException(opts) {
119
+ var _this = _super.call(this, __assign({ name: "TooManyTagsException", $fault: "client" }, opts)) || this;
120
+ _this.name = "TooManyTagsException";
121
+ _this.$fault = "client";
122
+ Object.setPrototypeOf(_this, TooManyTagsException.prototype);
123
+ return _this;
124
+ }
125
+ return TooManyTagsException;
126
+ }(__BaseException));
127
+ export { TooManyTagsException };
112
128
  export var BatchSegmentJobInput;
113
129
  (function (BatchSegmentJobInput) {
114
130
  BatchSegmentJobInput.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -720,10 +736,46 @@ export var ListSolutionVersionsResponse;
720
736
  (function (ListSolutionVersionsResponse) {
721
737
  ListSolutionVersionsResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
722
738
  })(ListSolutionVersionsResponse || (ListSolutionVersionsResponse = {}));
739
+ export var ListTagsForResourceRequest;
740
+ (function (ListTagsForResourceRequest) {
741
+ ListTagsForResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
742
+ })(ListTagsForResourceRequest || (ListTagsForResourceRequest = {}));
743
+ export var ListTagsForResourceResponse;
744
+ (function (ListTagsForResourceResponse) {
745
+ ListTagsForResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
746
+ })(ListTagsForResourceResponse || (ListTagsForResourceResponse = {}));
723
747
  export var StopSolutionVersionCreationRequest;
724
748
  (function (StopSolutionVersionCreationRequest) {
725
749
  StopSolutionVersionCreationRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
726
750
  })(StopSolutionVersionCreationRequest || (StopSolutionVersionCreationRequest = {}));
751
+ export var TagResourceRequest;
752
+ (function (TagResourceRequest) {
753
+ TagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
754
+ })(TagResourceRequest || (TagResourceRequest = {}));
755
+ export var TagResourceResponse;
756
+ (function (TagResourceResponse) {
757
+ TagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
758
+ })(TagResourceResponse || (TagResourceResponse = {}));
759
+ var TooManyTagKeysException = (function (_super) {
760
+ __extends(TooManyTagKeysException, _super);
761
+ function TooManyTagKeysException(opts) {
762
+ var _this = _super.call(this, __assign({ name: "TooManyTagKeysException", $fault: "client" }, opts)) || this;
763
+ _this.name = "TooManyTagKeysException";
764
+ _this.$fault = "client";
765
+ Object.setPrototypeOf(_this, TooManyTagKeysException.prototype);
766
+ return _this;
767
+ }
768
+ return TooManyTagKeysException;
769
+ }(__BaseException));
770
+ export { TooManyTagKeysException };
771
+ export var UntagResourceRequest;
772
+ (function (UntagResourceRequest) {
773
+ UntagResourceRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
774
+ })(UntagResourceRequest || (UntagResourceRequest = {}));
775
+ export var UntagResourceResponse;
776
+ (function (UntagResourceResponse) {
777
+ UntagResourceResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
778
+ })(UntagResourceResponse || (UntagResourceResponse = {}));
727
779
  export var UpdateCampaignRequest;
728
780
  (function (UpdateCampaignRequest) {
729
781
  UpdateCampaignRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };