@aws-sdk/client-personalize 3.72.0 → 3.75.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.
@@ -586,6 +586,28 @@ export var serializeAws_json1_1ListTagsForResourceCommand = function (input, con
586
586
  return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
587
587
  });
588
588
  }); };
589
+ export var serializeAws_json1_1StartRecommenderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
590
+ var headers, body;
591
+ return __generator(this, function (_a) {
592
+ headers = {
593
+ "content-type": "application/x-amz-json-1.1",
594
+ "x-amz-target": "AmazonPersonalize.StartRecommender",
595
+ };
596
+ body = JSON.stringify(serializeAws_json1_1StartRecommenderRequest(input, context));
597
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
598
+ });
599
+ }); };
600
+ export var serializeAws_json1_1StopRecommenderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
601
+ var headers, body;
602
+ return __generator(this, function (_a) {
603
+ headers = {
604
+ "content-type": "application/x-amz-json-1.1",
605
+ "x-amz-target": "AmazonPersonalize.StopRecommender",
606
+ };
607
+ body = JSON.stringify(serializeAws_json1_1StopRecommenderRequest(input, context));
608
+ return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
609
+ });
610
+ }); };
589
611
  export var serializeAws_json1_1StopSolutionVersionCreationCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
590
612
  var headers, body;
591
613
  return __generator(this, function (_a) {
@@ -3715,6 +3737,122 @@ var deserializeAws_json1_1ListTagsForResourceCommandError = function (output, co
3715
3737
  }
3716
3738
  });
3717
3739
  }); };
3740
+ export var deserializeAws_json1_1StartRecommenderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3741
+ var data, contents, response;
3742
+ return __generator(this, function (_a) {
3743
+ switch (_a.label) {
3744
+ case 0:
3745
+ if (output.statusCode >= 300) {
3746
+ return [2, deserializeAws_json1_1StartRecommenderCommandError(output, context)];
3747
+ }
3748
+ return [4, parseBody(output.body, context)];
3749
+ case 1:
3750
+ data = _a.sent();
3751
+ contents = {};
3752
+ contents = deserializeAws_json1_1StartRecommenderResponse(data, context);
3753
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3754
+ return [2, Promise.resolve(response)];
3755
+ }
3756
+ });
3757
+ }); };
3758
+ var deserializeAws_json1_1StartRecommenderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3759
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
3760
+ var _c;
3761
+ return __generator(this, function (_d) {
3762
+ switch (_d.label) {
3763
+ case 0:
3764
+ _a = [__assign({}, output)];
3765
+ _c = {};
3766
+ return [4, parseBody(output.body, context)];
3767
+ case 1:
3768
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3769
+ errorCode = "UnknownError";
3770
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3771
+ _b = errorCode;
3772
+ switch (_b) {
3773
+ case "InvalidInputException": return [3, 2];
3774
+ case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
3775
+ case "ResourceInUseException": return [3, 4];
3776
+ case "com.amazonaws.personalize#ResourceInUseException": return [3, 4];
3777
+ case "ResourceNotFoundException": return [3, 6];
3778
+ case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 6];
3779
+ }
3780
+ return [3, 8];
3781
+ case 2: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
3782
+ case 3: throw _d.sent();
3783
+ case 4: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
3784
+ case 5: throw _d.sent();
3785
+ case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3786
+ case 7: throw _d.sent();
3787
+ case 8:
3788
+ parsedBody = parsedOutput.body;
3789
+ response = new __BaseException({
3790
+ name: parsedBody.code || parsedBody.Code || errorCode,
3791
+ $fault: "client",
3792
+ $metadata: deserializeMetadata(output),
3793
+ });
3794
+ throw __decorateServiceException(response, parsedBody);
3795
+ }
3796
+ });
3797
+ }); };
3798
+ export var deserializeAws_json1_1StopRecommenderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3799
+ var data, contents, response;
3800
+ return __generator(this, function (_a) {
3801
+ switch (_a.label) {
3802
+ case 0:
3803
+ if (output.statusCode >= 300) {
3804
+ return [2, deserializeAws_json1_1StopRecommenderCommandError(output, context)];
3805
+ }
3806
+ return [4, parseBody(output.body, context)];
3807
+ case 1:
3808
+ data = _a.sent();
3809
+ contents = {};
3810
+ contents = deserializeAws_json1_1StopRecommenderResponse(data, context);
3811
+ response = __assign({ $metadata: deserializeMetadata(output) }, contents);
3812
+ return [2, Promise.resolve(response)];
3813
+ }
3814
+ });
3815
+ }); };
3816
+ var deserializeAws_json1_1StopRecommenderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3817
+ var parsedOutput, _a, response, errorCode, _b, parsedBody;
3818
+ var _c;
3819
+ return __generator(this, function (_d) {
3820
+ switch (_d.label) {
3821
+ case 0:
3822
+ _a = [__assign({}, output)];
3823
+ _c = {};
3824
+ return [4, parseBody(output.body, context)];
3825
+ case 1:
3826
+ parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
3827
+ errorCode = "UnknownError";
3828
+ errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3829
+ _b = errorCode;
3830
+ switch (_b) {
3831
+ case "InvalidInputException": return [3, 2];
3832
+ case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
3833
+ case "ResourceInUseException": return [3, 4];
3834
+ case "com.amazonaws.personalize#ResourceInUseException": return [3, 4];
3835
+ case "ResourceNotFoundException": return [3, 6];
3836
+ case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 6];
3837
+ }
3838
+ return [3, 8];
3839
+ case 2: return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
3840
+ case 3: throw _d.sent();
3841
+ case 4: return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
3842
+ case 5: throw _d.sent();
3843
+ case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
3844
+ case 7: throw _d.sent();
3845
+ case 8:
3846
+ parsedBody = parsedOutput.body;
3847
+ response = new __BaseException({
3848
+ name: parsedBody.code || parsedBody.Code || errorCode,
3849
+ $fault: "client",
3850
+ $metadata: deserializeMetadata(output),
3851
+ });
3852
+ throw __decorateServiceException(response, parsedBody);
3853
+ }
3854
+ });
3855
+ }); };
3718
3856
  export var deserializeAws_json1_1StopSolutionVersionCreationCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
3719
3857
  var response;
3720
3858
  return __generator(this, function (_a) {
@@ -4483,6 +4621,14 @@ var serializeAws_json1_1SolutionConfig = function (input, context) {
4483
4621
  optimizationObjective: serializeAws_json1_1OptimizationObjective(input.optimizationObjective, context),
4484
4622
  }));
4485
4623
  };
4624
+ var serializeAws_json1_1StartRecommenderRequest = function (input, context) {
4625
+ return __assign({}, (input.recommenderArn !== undefined &&
4626
+ input.recommenderArn !== null && { recommenderArn: input.recommenderArn }));
4627
+ };
4628
+ var serializeAws_json1_1StopRecommenderRequest = function (input, context) {
4629
+ return __assign({}, (input.recommenderArn !== undefined &&
4630
+ input.recommenderArn !== null && { recommenderArn: input.recommenderArn }));
4631
+ };
4486
4632
  var serializeAws_json1_1StopSolutionVersionCreationRequest = function (input, context) {
4487
4633
  return __assign({}, (input.solutionVersionArn !== undefined &&
4488
4634
  input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }));
@@ -5928,6 +6074,16 @@ var deserializeAws_json1_1SolutionVersionSummary = function (output, context) {
5928
6074
  status: __expectString(output.status),
5929
6075
  };
5930
6076
  };
6077
+ var deserializeAws_json1_1StartRecommenderResponse = function (output, context) {
6078
+ return {
6079
+ recommenderArn: __expectString(output.recommenderArn),
6080
+ };
6081
+ };
6082
+ var deserializeAws_json1_1StopRecommenderResponse = function (output, context) {
6083
+ return {
6084
+ recommenderArn: __expectString(output.recommenderArn),
6085
+ };
6086
+ };
5931
6087
  var deserializeAws_json1_1Tag = function (output, context) {
5932
6088
  return {
5933
6089
  tagKey: __expectString(output.tagKey),
@@ -52,6 +52,8 @@ import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/Li
52
52
  import { ListSolutionsCommandInput, ListSolutionsCommandOutput } from "./commands/ListSolutionsCommand";
53
53
  import { ListSolutionVersionsCommandInput, ListSolutionVersionsCommandOutput } from "./commands/ListSolutionVersionsCommand";
54
54
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
55
+ import { StartRecommenderCommandInput, StartRecommenderCommandOutput } from "./commands/StartRecommenderCommand";
56
+ import { StopRecommenderCommandInput, StopRecommenderCommandOutput } from "./commands/StopRecommenderCommand";
55
57
  import { StopSolutionVersionCreationCommandInput, StopSolutionVersionCreationCommandOutput } from "./commands/StopSolutionVersionCreationCommand";
56
58
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
57
59
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -1042,6 +1044,19 @@ export declare class Personalize extends PersonalizeClient {
1042
1044
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
1043
1045
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
1044
1046
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
1047
+ /**
1048
+ * <p>Starts a recommender that is INACTIVE. Starting a recommender does not
1049
+ * create any new models, but resumes billing and automatic retraining for the recommender.</p>
1050
+ */
1051
+ startRecommender(args: StartRecommenderCommandInput, options?: __HttpHandlerOptions): Promise<StartRecommenderCommandOutput>;
1052
+ startRecommender(args: StartRecommenderCommandInput, cb: (err: any, data?: StartRecommenderCommandOutput) => void): void;
1053
+ startRecommender(args: StartRecommenderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartRecommenderCommandOutput) => void): void;
1054
+ /**
1055
+ * <p>Stops a recommender that is ACTIVE. Stopping a recommender halts billing and automatic retraining for the recommender.</p>
1056
+ */
1057
+ stopRecommender(args: StopRecommenderCommandInput, options?: __HttpHandlerOptions): Promise<StopRecommenderCommandOutput>;
1058
+ stopRecommender(args: StopRecommenderCommandInput, cb: (err: any, data?: StopRecommenderCommandOutput) => void): void;
1059
+ stopRecommender(args: StopRecommenderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopRecommenderCommandOutput) => void): void;
1045
1060
  /**
1046
1061
  * <p>Stops creating a solution version that is in a state of CREATE_PENDING or CREATE IN_PROGRESS.
1047
1062
  * </p>
@@ -1078,10 +1093,13 @@ export declare class Personalize extends PersonalizeClient {
1078
1093
  * campaign's <code>minProvisionedTPS</code> parameter.</p>
1079
1094
  * <p>To update a campaign, the campaign status must be ACTIVE or CREATE FAILED.
1080
1095
  * Check the campaign status using the <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeCampaign.html">DescribeCampaign</a> operation.</p>
1096
+ *
1081
1097
  * <note>
1082
- * <p>You must wait until the <code>status</code> of the
1083
- * updated campaign is <code>ACTIVE</code> before asking the campaign for recommendations.</p>
1098
+ * <p>You can still get recommendations from a campaign while an update is in progress.
1099
+ * The campaign will use the previous solution version and campaign configuration to generate recommendations until the latest campaign update status is <code>Active</code>.
1100
+ * </p>
1084
1101
  * </note>
1102
+ *
1085
1103
  * <p>For more information on campaigns, see <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_CreateCampaign.html">CreateCampaign</a>.</p>
1086
1104
  */
1087
1105
  updateCampaign(args: UpdateCampaignCommandInput, options?: __HttpHandlerOptions): Promise<UpdateCampaignCommandOutput>;
@@ -59,13 +59,15 @@ import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/Li
59
59
  import { ListSolutionsCommandInput, ListSolutionsCommandOutput } from "./commands/ListSolutionsCommand";
60
60
  import { ListSolutionVersionsCommandInput, ListSolutionVersionsCommandOutput } from "./commands/ListSolutionVersionsCommand";
61
61
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
62
+ import { StartRecommenderCommandInput, StartRecommenderCommandOutput } from "./commands/StartRecommenderCommand";
63
+ import { StopRecommenderCommandInput, StopRecommenderCommandOutput } from "./commands/StopRecommenderCommand";
62
64
  import { StopSolutionVersionCreationCommandInput, StopSolutionVersionCreationCommandOutput } from "./commands/StopSolutionVersionCreationCommand";
63
65
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
64
66
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
65
67
  import { UpdateCampaignCommandInput, UpdateCampaignCommandOutput } from "./commands/UpdateCampaignCommand";
66
68
  import { UpdateRecommenderCommandInput, UpdateRecommenderCommandOutput } from "./commands/UpdateRecommenderCommand";
67
- export declare type ServiceInputTypes = CreateBatchInferenceJobCommandInput | CreateBatchSegmentJobCommandInput | CreateCampaignCommandInput | CreateDatasetCommandInput | CreateDatasetExportJobCommandInput | CreateDatasetGroupCommandInput | CreateDatasetImportJobCommandInput | CreateEventTrackerCommandInput | CreateFilterCommandInput | CreateRecommenderCommandInput | CreateSchemaCommandInput | CreateSolutionCommandInput | CreateSolutionVersionCommandInput | DeleteCampaignCommandInput | DeleteDatasetCommandInput | DeleteDatasetGroupCommandInput | DeleteEventTrackerCommandInput | DeleteFilterCommandInput | DeleteRecommenderCommandInput | DeleteSchemaCommandInput | DeleteSolutionCommandInput | DescribeAlgorithmCommandInput | DescribeBatchInferenceJobCommandInput | DescribeBatchSegmentJobCommandInput | DescribeCampaignCommandInput | DescribeDatasetCommandInput | DescribeDatasetExportJobCommandInput | DescribeDatasetGroupCommandInput | DescribeDatasetImportJobCommandInput | DescribeEventTrackerCommandInput | DescribeFeatureTransformationCommandInput | DescribeFilterCommandInput | DescribeRecipeCommandInput | DescribeRecommenderCommandInput | DescribeSchemaCommandInput | DescribeSolutionCommandInput | DescribeSolutionVersionCommandInput | GetSolutionMetricsCommandInput | ListBatchInferenceJobsCommandInput | ListBatchSegmentJobsCommandInput | ListCampaignsCommandInput | ListDatasetExportJobsCommandInput | ListDatasetGroupsCommandInput | ListDatasetImportJobsCommandInput | ListDatasetsCommandInput | ListEventTrackersCommandInput | ListFiltersCommandInput | ListRecipesCommandInput | ListRecommendersCommandInput | ListSchemasCommandInput | ListSolutionVersionsCommandInput | ListSolutionsCommandInput | ListTagsForResourceCommandInput | StopSolutionVersionCreationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignCommandInput | UpdateRecommenderCommandInput;
68
- export declare type ServiceOutputTypes = CreateBatchInferenceJobCommandOutput | CreateBatchSegmentJobCommandOutput | CreateCampaignCommandOutput | CreateDatasetCommandOutput | CreateDatasetExportJobCommandOutput | CreateDatasetGroupCommandOutput | CreateDatasetImportJobCommandOutput | CreateEventTrackerCommandOutput | CreateFilterCommandOutput | CreateRecommenderCommandOutput | CreateSchemaCommandOutput | CreateSolutionCommandOutput | CreateSolutionVersionCommandOutput | DeleteCampaignCommandOutput | DeleteDatasetCommandOutput | DeleteDatasetGroupCommandOutput | DeleteEventTrackerCommandOutput | DeleteFilterCommandOutput | DeleteRecommenderCommandOutput | DeleteSchemaCommandOutput | DeleteSolutionCommandOutput | DescribeAlgorithmCommandOutput | DescribeBatchInferenceJobCommandOutput | DescribeBatchSegmentJobCommandOutput | DescribeCampaignCommandOutput | DescribeDatasetCommandOutput | DescribeDatasetExportJobCommandOutput | DescribeDatasetGroupCommandOutput | DescribeDatasetImportJobCommandOutput | DescribeEventTrackerCommandOutput | DescribeFeatureTransformationCommandOutput | DescribeFilterCommandOutput | DescribeRecipeCommandOutput | DescribeRecommenderCommandOutput | DescribeSchemaCommandOutput | DescribeSolutionCommandOutput | DescribeSolutionVersionCommandOutput | GetSolutionMetricsCommandOutput | ListBatchInferenceJobsCommandOutput | ListBatchSegmentJobsCommandOutput | ListCampaignsCommandOutput | ListDatasetExportJobsCommandOutput | ListDatasetGroupsCommandOutput | ListDatasetImportJobsCommandOutput | ListDatasetsCommandOutput | ListEventTrackersCommandOutput | ListFiltersCommandOutput | ListRecipesCommandOutput | ListRecommendersCommandOutput | ListSchemasCommandOutput | ListSolutionVersionsCommandOutput | ListSolutionsCommandOutput | ListTagsForResourceCommandOutput | StopSolutionVersionCreationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignCommandOutput | UpdateRecommenderCommandOutput;
69
+ export declare type ServiceInputTypes = CreateBatchInferenceJobCommandInput | CreateBatchSegmentJobCommandInput | CreateCampaignCommandInput | CreateDatasetCommandInput | CreateDatasetExportJobCommandInput | CreateDatasetGroupCommandInput | CreateDatasetImportJobCommandInput | CreateEventTrackerCommandInput | CreateFilterCommandInput | CreateRecommenderCommandInput | CreateSchemaCommandInput | CreateSolutionCommandInput | CreateSolutionVersionCommandInput | DeleteCampaignCommandInput | DeleteDatasetCommandInput | DeleteDatasetGroupCommandInput | DeleteEventTrackerCommandInput | DeleteFilterCommandInput | DeleteRecommenderCommandInput | DeleteSchemaCommandInput | DeleteSolutionCommandInput | DescribeAlgorithmCommandInput | DescribeBatchInferenceJobCommandInput | DescribeBatchSegmentJobCommandInput | DescribeCampaignCommandInput | DescribeDatasetCommandInput | DescribeDatasetExportJobCommandInput | DescribeDatasetGroupCommandInput | DescribeDatasetImportJobCommandInput | DescribeEventTrackerCommandInput | DescribeFeatureTransformationCommandInput | DescribeFilterCommandInput | DescribeRecipeCommandInput | DescribeRecommenderCommandInput | DescribeSchemaCommandInput | DescribeSolutionCommandInput | DescribeSolutionVersionCommandInput | GetSolutionMetricsCommandInput | ListBatchInferenceJobsCommandInput | ListBatchSegmentJobsCommandInput | ListCampaignsCommandInput | ListDatasetExportJobsCommandInput | ListDatasetGroupsCommandInput | ListDatasetImportJobsCommandInput | ListDatasetsCommandInput | ListEventTrackersCommandInput | ListFiltersCommandInput | ListRecipesCommandInput | ListRecommendersCommandInput | ListSchemasCommandInput | ListSolutionVersionsCommandInput | ListSolutionsCommandInput | ListTagsForResourceCommandInput | StartRecommenderCommandInput | StopRecommenderCommandInput | StopSolutionVersionCreationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignCommandInput | UpdateRecommenderCommandInput;
70
+ export declare type ServiceOutputTypes = CreateBatchInferenceJobCommandOutput | CreateBatchSegmentJobCommandOutput | CreateCampaignCommandOutput | CreateDatasetCommandOutput | CreateDatasetExportJobCommandOutput | CreateDatasetGroupCommandOutput | CreateDatasetImportJobCommandOutput | CreateEventTrackerCommandOutput | CreateFilterCommandOutput | CreateRecommenderCommandOutput | CreateSchemaCommandOutput | CreateSolutionCommandOutput | CreateSolutionVersionCommandOutput | DeleteCampaignCommandOutput | DeleteDatasetCommandOutput | DeleteDatasetGroupCommandOutput | DeleteEventTrackerCommandOutput | DeleteFilterCommandOutput | DeleteRecommenderCommandOutput | DeleteSchemaCommandOutput | DeleteSolutionCommandOutput | DescribeAlgorithmCommandOutput | DescribeBatchInferenceJobCommandOutput | DescribeBatchSegmentJobCommandOutput | DescribeCampaignCommandOutput | DescribeDatasetCommandOutput | DescribeDatasetExportJobCommandOutput | DescribeDatasetGroupCommandOutput | DescribeDatasetImportJobCommandOutput | DescribeEventTrackerCommandOutput | DescribeFeatureTransformationCommandOutput | DescribeFilterCommandOutput | DescribeRecipeCommandOutput | DescribeRecommenderCommandOutput | DescribeSchemaCommandOutput | DescribeSolutionCommandOutput | DescribeSolutionVersionCommandOutput | GetSolutionMetricsCommandOutput | ListBatchInferenceJobsCommandOutput | ListBatchSegmentJobsCommandOutput | ListCampaignsCommandOutput | ListDatasetExportJobsCommandOutput | ListDatasetGroupsCommandOutput | ListDatasetImportJobsCommandOutput | ListDatasetsCommandOutput | ListEventTrackersCommandOutput | ListFiltersCommandOutput | ListRecipesCommandOutput | ListRecommendersCommandOutput | ListSchemasCommandOutput | ListSolutionVersionsCommandOutput | ListSolutionsCommandOutput | ListTagsForResourceCommandOutput | StartRecommenderCommandOutput | StopRecommenderCommandOutput | StopSolutionVersionCreationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignCommandOutput | UpdateRecommenderCommandOutput;
69
71
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
70
72
  /**
71
73
  * The HTTP handler to use. Fetch in browser and Https in Nodejs.
@@ -0,0 +1,36 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { StartRecommenderRequest, StartRecommenderResponse } from "../models/models_0";
4
+ import { PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeClient";
5
+ export interface StartRecommenderCommandInput extends StartRecommenderRequest {
6
+ }
7
+ export interface StartRecommenderCommandOutput extends StartRecommenderResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Starts a recommender that is INACTIVE. Starting a recommender does not
11
+ * create any new models, but resumes billing and automatic retraining for the recommender.</p>
12
+ * @example
13
+ * Use a bare-bones client and the command you need to make an API call.
14
+ * ```javascript
15
+ * import { PersonalizeClient, StartRecommenderCommand } from "@aws-sdk/client-personalize"; // ES Modules import
16
+ * // const { PersonalizeClient, StartRecommenderCommand } = require("@aws-sdk/client-personalize"); // CommonJS import
17
+ * const client = new PersonalizeClient(config);
18
+ * const command = new StartRecommenderCommand(input);
19
+ * const response = await client.send(command);
20
+ * ```
21
+ *
22
+ * @see {@link StartRecommenderCommandInput} for command's `input` shape.
23
+ * @see {@link StartRecommenderCommandOutput} for command's `response` shape.
24
+ * @see {@link PersonalizeClientResolvedConfig | config} for PersonalizeClient's `config` shape.
25
+ *
26
+ */
27
+ export declare class StartRecommenderCommand extends $Command<StartRecommenderCommandInput, StartRecommenderCommandOutput, PersonalizeClientResolvedConfig> {
28
+ readonly input: StartRecommenderCommandInput;
29
+ constructor(input: StartRecommenderCommandInput);
30
+ /**
31
+ * @internal
32
+ */
33
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartRecommenderCommandInput, StartRecommenderCommandOutput>;
34
+ private serialize;
35
+ private deserialize;
36
+ }
@@ -0,0 +1,35 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { StopRecommenderRequest, StopRecommenderResponse } from "../models/models_0";
4
+ import { PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeClient";
5
+ export interface StopRecommenderCommandInput extends StopRecommenderRequest {
6
+ }
7
+ export interface StopRecommenderCommandOutput extends StopRecommenderResponse, __MetadataBearer {
8
+ }
9
+ /**
10
+ * <p>Stops a recommender that is ACTIVE. Stopping a recommender halts billing and automatic retraining for the recommender.</p>
11
+ * @example
12
+ * Use a bare-bones client and the command you need to make an API call.
13
+ * ```javascript
14
+ * import { PersonalizeClient, StopRecommenderCommand } from "@aws-sdk/client-personalize"; // ES Modules import
15
+ * // const { PersonalizeClient, StopRecommenderCommand } = require("@aws-sdk/client-personalize"); // CommonJS import
16
+ * const client = new PersonalizeClient(config);
17
+ * const command = new StopRecommenderCommand(input);
18
+ * const response = await client.send(command);
19
+ * ```
20
+ *
21
+ * @see {@link StopRecommenderCommandInput} for command's `input` shape.
22
+ * @see {@link StopRecommenderCommandOutput} for command's `response` shape.
23
+ * @see {@link PersonalizeClientResolvedConfig | config} for PersonalizeClient's `config` shape.
24
+ *
25
+ */
26
+ export declare class StopRecommenderCommand extends $Command<StopRecommenderCommandInput, StopRecommenderCommandOutput, PersonalizeClientResolvedConfig> {
27
+ readonly input: StopRecommenderCommandInput;
28
+ constructor(input: StopRecommenderCommandInput);
29
+ /**
30
+ * @internal
31
+ */
32
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopRecommenderCommandInput, StopRecommenderCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -11,10 +11,13 @@ export interface UpdateCampaignCommandOutput extends UpdateCampaignResponse, __M
11
11
  * campaign's <code>minProvisionedTPS</code> parameter.</p>
12
12
  * <p>To update a campaign, the campaign status must be ACTIVE or CREATE FAILED.
13
13
  * Check the campaign status using the <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeCampaign.html">DescribeCampaign</a> operation.</p>
14
+ *
14
15
  * <note>
15
- * <p>You must wait until the <code>status</code> of the
16
- * updated campaign is <code>ACTIVE</code> before asking the campaign for recommendations.</p>
16
+ * <p>You can still get recommendations from a campaign while an update is in progress.
17
+ * The campaign will use the previous solution version and campaign configuration to generate recommendations until the latest campaign update status is <code>Active</code>.
18
+ * </p>
17
19
  * </note>
20
+ *
18
21
  * <p>For more information on campaigns, see <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_CreateCampaign.html">CreateCampaign</a>.</p>
19
22
  * @example
20
23
  * Use a bare-bones client and the command you need to make an API call.
@@ -51,6 +51,8 @@ export * from "./ListSchemasCommand";
51
51
  export * from "./ListSolutionVersionsCommand";
52
52
  export * from "./ListSolutionsCommand";
53
53
  export * from "./ListTagsForResourceCommand";
54
+ export * from "./StartRecommenderCommand";
55
+ export * from "./StopRecommenderCommand";
54
56
  export * from "./StopSolutionVersionCreationCommand";
55
57
  export * from "./TagResourceCommand";
56
58
  export * from "./UntagResourceCommand";
@@ -4154,6 +4154,54 @@ export declare namespace ListTagsForResourceResponse {
4154
4154
  */
4155
4155
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
4156
4156
  }
4157
+ export interface StartRecommenderRequest {
4158
+ /**
4159
+ * <p>The Amazon Resource Name (ARN) of the recommender to start.</p>
4160
+ */
4161
+ recommenderArn: string | undefined;
4162
+ }
4163
+ export declare namespace StartRecommenderRequest {
4164
+ /**
4165
+ * @internal
4166
+ */
4167
+ const filterSensitiveLog: (obj: StartRecommenderRequest) => any;
4168
+ }
4169
+ export interface StartRecommenderResponse {
4170
+ /**
4171
+ * <p>The Amazon Resource Name (ARN) of the recommender you started.</p>
4172
+ */
4173
+ recommenderArn?: string;
4174
+ }
4175
+ export declare namespace StartRecommenderResponse {
4176
+ /**
4177
+ * @internal
4178
+ */
4179
+ const filterSensitiveLog: (obj: StartRecommenderResponse) => any;
4180
+ }
4181
+ export interface StopRecommenderRequest {
4182
+ /**
4183
+ * <p>The Amazon Resource Name (ARN) of the recommender to stop.</p>
4184
+ */
4185
+ recommenderArn: string | undefined;
4186
+ }
4187
+ export declare namespace StopRecommenderRequest {
4188
+ /**
4189
+ * @internal
4190
+ */
4191
+ const filterSensitiveLog: (obj: StopRecommenderRequest) => any;
4192
+ }
4193
+ export interface StopRecommenderResponse {
4194
+ /**
4195
+ * <p>The Amazon Resource Name (ARN) of the recommender you stopped.</p>
4196
+ */
4197
+ recommenderArn?: string;
4198
+ }
4199
+ export declare namespace StopRecommenderResponse {
4200
+ /**
4201
+ * @internal
4202
+ */
4203
+ const filterSensitiveLog: (obj: StopRecommenderResponse) => any;
4204
+ }
4157
4205
  export interface StopSolutionVersionCreationRequest {
4158
4206
  /**
4159
4207
  * <p>The Amazon Resource Name (ARN) of the solution version you want to stop creating.</p>
@@ -53,6 +53,8 @@ import { ListSchemasCommandInput, ListSchemasCommandOutput } from "../commands/L
53
53
  import { ListSolutionsCommandInput, ListSolutionsCommandOutput } from "../commands/ListSolutionsCommand";
54
54
  import { ListSolutionVersionsCommandInput, ListSolutionVersionsCommandOutput } from "../commands/ListSolutionVersionsCommand";
55
55
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
56
+ import { StartRecommenderCommandInput, StartRecommenderCommandOutput } from "../commands/StartRecommenderCommand";
57
+ import { StopRecommenderCommandInput, StopRecommenderCommandOutput } from "../commands/StopRecommenderCommand";
56
58
  import { StopSolutionVersionCreationCommandInput, StopSolutionVersionCreationCommandOutput } from "../commands/StopSolutionVersionCreationCommand";
57
59
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
58
60
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
@@ -111,6 +113,8 @@ export declare const serializeAws_json1_1ListSchemasCommand: (input: ListSchemas
111
113
  export declare const serializeAws_json1_1ListSolutionsCommand: (input: ListSolutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
112
114
  export declare const serializeAws_json1_1ListSolutionVersionsCommand: (input: ListSolutionVersionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
113
115
  export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
+ export declare const serializeAws_json1_1StartRecommenderCommand: (input: StartRecommenderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
117
+ export declare const serializeAws_json1_1StopRecommenderCommand: (input: StopRecommenderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
114
118
  export declare const serializeAws_json1_1StopSolutionVersionCreationCommand: (input: StopSolutionVersionCreationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
115
119
  export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
120
  export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -169,6 +173,8 @@ export declare const deserializeAws_json1_1ListSchemasCommand: (output: __HttpRe
169
173
  export declare const deserializeAws_json1_1ListSolutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSolutionsCommandOutput>;
170
174
  export declare const deserializeAws_json1_1ListSolutionVersionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSolutionVersionsCommandOutput>;
171
175
  export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
176
+ export declare const deserializeAws_json1_1StartRecommenderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartRecommenderCommandOutput>;
177
+ export declare const deserializeAws_json1_1StopRecommenderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopRecommenderCommandOutput>;
172
178
  export declare const deserializeAws_json1_1StopSolutionVersionCreationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopSolutionVersionCreationCommandOutput>;
173
179
  export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
174
180
  export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
@@ -52,6 +52,8 @@ import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/Li
52
52
  import { ListSolutionsCommandInput, ListSolutionsCommandOutput } from "./commands/ListSolutionsCommand";
53
53
  import { ListSolutionVersionsCommandInput, ListSolutionVersionsCommandOutput } from "./commands/ListSolutionVersionsCommand";
54
54
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
55
+ import { StartRecommenderCommandInput, StartRecommenderCommandOutput } from "./commands/StartRecommenderCommand";
56
+ import { StopRecommenderCommandInput, StopRecommenderCommandOutput } from "./commands/StopRecommenderCommand";
55
57
  import { StopSolutionVersionCreationCommandInput, StopSolutionVersionCreationCommandOutput } from "./commands/StopSolutionVersionCreationCommand";
56
58
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
57
59
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
@@ -273,6 +275,14 @@ export declare class Personalize extends PersonalizeClient {
273
275
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
274
276
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
275
277
 
278
+ startRecommender(args: StartRecommenderCommandInput, options?: __HttpHandlerOptions): Promise<StartRecommenderCommandOutput>;
279
+ startRecommender(args: StartRecommenderCommandInput, cb: (err: any, data?: StartRecommenderCommandOutput) => void): void;
280
+ startRecommender(args: StartRecommenderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartRecommenderCommandOutput) => void): void;
281
+
282
+ stopRecommender(args: StopRecommenderCommandInput, options?: __HttpHandlerOptions): Promise<StopRecommenderCommandOutput>;
283
+ stopRecommender(args: StopRecommenderCommandInput, cb: (err: any, data?: StopRecommenderCommandOutput) => void): void;
284
+ stopRecommender(args: StopRecommenderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopRecommenderCommandOutput) => void): void;
285
+
276
286
  stopSolutionVersionCreation(args: StopSolutionVersionCreationCommandInput, options?: __HttpHandlerOptions): Promise<StopSolutionVersionCreationCommandOutput>;
277
287
  stopSolutionVersionCreation(args: StopSolutionVersionCreationCommandInput, cb: (err: any, data?: StopSolutionVersionCreationCommandOutput) => void): void;
278
288
  stopSolutionVersionCreation(args: StopSolutionVersionCreationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopSolutionVersionCreationCommandOutput) => void): void;
@@ -59,13 +59,15 @@ import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/Li
59
59
  import { ListSolutionsCommandInput, ListSolutionsCommandOutput } from "./commands/ListSolutionsCommand";
60
60
  import { ListSolutionVersionsCommandInput, ListSolutionVersionsCommandOutput } from "./commands/ListSolutionVersionsCommand";
61
61
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
62
+ import { StartRecommenderCommandInput, StartRecommenderCommandOutput } from "./commands/StartRecommenderCommand";
63
+ import { StopRecommenderCommandInput, StopRecommenderCommandOutput } from "./commands/StopRecommenderCommand";
62
64
  import { StopSolutionVersionCreationCommandInput, StopSolutionVersionCreationCommandOutput } from "./commands/StopSolutionVersionCreationCommand";
63
65
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
64
66
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
65
67
  import { UpdateCampaignCommandInput, UpdateCampaignCommandOutput } from "./commands/UpdateCampaignCommand";
66
68
  import { UpdateRecommenderCommandInput, UpdateRecommenderCommandOutput } from "./commands/UpdateRecommenderCommand";
67
- export declare type ServiceInputTypes = CreateBatchInferenceJobCommandInput | CreateBatchSegmentJobCommandInput | CreateCampaignCommandInput | CreateDatasetCommandInput | CreateDatasetExportJobCommandInput | CreateDatasetGroupCommandInput | CreateDatasetImportJobCommandInput | CreateEventTrackerCommandInput | CreateFilterCommandInput | CreateRecommenderCommandInput | CreateSchemaCommandInput | CreateSolutionCommandInput | CreateSolutionVersionCommandInput | DeleteCampaignCommandInput | DeleteDatasetCommandInput | DeleteDatasetGroupCommandInput | DeleteEventTrackerCommandInput | DeleteFilterCommandInput | DeleteRecommenderCommandInput | DeleteSchemaCommandInput | DeleteSolutionCommandInput | DescribeAlgorithmCommandInput | DescribeBatchInferenceJobCommandInput | DescribeBatchSegmentJobCommandInput | DescribeCampaignCommandInput | DescribeDatasetCommandInput | DescribeDatasetExportJobCommandInput | DescribeDatasetGroupCommandInput | DescribeDatasetImportJobCommandInput | DescribeEventTrackerCommandInput | DescribeFeatureTransformationCommandInput | DescribeFilterCommandInput | DescribeRecipeCommandInput | DescribeRecommenderCommandInput | DescribeSchemaCommandInput | DescribeSolutionCommandInput | DescribeSolutionVersionCommandInput | GetSolutionMetricsCommandInput | ListBatchInferenceJobsCommandInput | ListBatchSegmentJobsCommandInput | ListCampaignsCommandInput | ListDatasetExportJobsCommandInput | ListDatasetGroupsCommandInput | ListDatasetImportJobsCommandInput | ListDatasetsCommandInput | ListEventTrackersCommandInput | ListFiltersCommandInput | ListRecipesCommandInput | ListRecommendersCommandInput | ListSchemasCommandInput | ListSolutionVersionsCommandInput | ListSolutionsCommandInput | ListTagsForResourceCommandInput | StopSolutionVersionCreationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignCommandInput | UpdateRecommenderCommandInput;
68
- export declare type ServiceOutputTypes = CreateBatchInferenceJobCommandOutput | CreateBatchSegmentJobCommandOutput | CreateCampaignCommandOutput | CreateDatasetCommandOutput | CreateDatasetExportJobCommandOutput | CreateDatasetGroupCommandOutput | CreateDatasetImportJobCommandOutput | CreateEventTrackerCommandOutput | CreateFilterCommandOutput | CreateRecommenderCommandOutput | CreateSchemaCommandOutput | CreateSolutionCommandOutput | CreateSolutionVersionCommandOutput | DeleteCampaignCommandOutput | DeleteDatasetCommandOutput | DeleteDatasetGroupCommandOutput | DeleteEventTrackerCommandOutput | DeleteFilterCommandOutput | DeleteRecommenderCommandOutput | DeleteSchemaCommandOutput | DeleteSolutionCommandOutput | DescribeAlgorithmCommandOutput | DescribeBatchInferenceJobCommandOutput | DescribeBatchSegmentJobCommandOutput | DescribeCampaignCommandOutput | DescribeDatasetCommandOutput | DescribeDatasetExportJobCommandOutput | DescribeDatasetGroupCommandOutput | DescribeDatasetImportJobCommandOutput | DescribeEventTrackerCommandOutput | DescribeFeatureTransformationCommandOutput | DescribeFilterCommandOutput | DescribeRecipeCommandOutput | DescribeRecommenderCommandOutput | DescribeSchemaCommandOutput | DescribeSolutionCommandOutput | DescribeSolutionVersionCommandOutput | GetSolutionMetricsCommandOutput | ListBatchInferenceJobsCommandOutput | ListBatchSegmentJobsCommandOutput | ListCampaignsCommandOutput | ListDatasetExportJobsCommandOutput | ListDatasetGroupsCommandOutput | ListDatasetImportJobsCommandOutput | ListDatasetsCommandOutput | ListEventTrackersCommandOutput | ListFiltersCommandOutput | ListRecipesCommandOutput | ListRecommendersCommandOutput | ListSchemasCommandOutput | ListSolutionVersionsCommandOutput | ListSolutionsCommandOutput | ListTagsForResourceCommandOutput | StopSolutionVersionCreationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignCommandOutput | UpdateRecommenderCommandOutput;
69
+ export declare type ServiceInputTypes = CreateBatchInferenceJobCommandInput | CreateBatchSegmentJobCommandInput | CreateCampaignCommandInput | CreateDatasetCommandInput | CreateDatasetExportJobCommandInput | CreateDatasetGroupCommandInput | CreateDatasetImportJobCommandInput | CreateEventTrackerCommandInput | CreateFilterCommandInput | CreateRecommenderCommandInput | CreateSchemaCommandInput | CreateSolutionCommandInput | CreateSolutionVersionCommandInput | DeleteCampaignCommandInput | DeleteDatasetCommandInput | DeleteDatasetGroupCommandInput | DeleteEventTrackerCommandInput | DeleteFilterCommandInput | DeleteRecommenderCommandInput | DeleteSchemaCommandInput | DeleteSolutionCommandInput | DescribeAlgorithmCommandInput | DescribeBatchInferenceJobCommandInput | DescribeBatchSegmentJobCommandInput | DescribeCampaignCommandInput | DescribeDatasetCommandInput | DescribeDatasetExportJobCommandInput | DescribeDatasetGroupCommandInput | DescribeDatasetImportJobCommandInput | DescribeEventTrackerCommandInput | DescribeFeatureTransformationCommandInput | DescribeFilterCommandInput | DescribeRecipeCommandInput | DescribeRecommenderCommandInput | DescribeSchemaCommandInput | DescribeSolutionCommandInput | DescribeSolutionVersionCommandInput | GetSolutionMetricsCommandInput | ListBatchInferenceJobsCommandInput | ListBatchSegmentJobsCommandInput | ListCampaignsCommandInput | ListDatasetExportJobsCommandInput | ListDatasetGroupsCommandInput | ListDatasetImportJobsCommandInput | ListDatasetsCommandInput | ListEventTrackersCommandInput | ListFiltersCommandInput | ListRecipesCommandInput | ListRecommendersCommandInput | ListSchemasCommandInput | ListSolutionVersionsCommandInput | ListSolutionsCommandInput | ListTagsForResourceCommandInput | StartRecommenderCommandInput | StopRecommenderCommandInput | StopSolutionVersionCreationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignCommandInput | UpdateRecommenderCommandInput;
70
+ export declare type ServiceOutputTypes = CreateBatchInferenceJobCommandOutput | CreateBatchSegmentJobCommandOutput | CreateCampaignCommandOutput | CreateDatasetCommandOutput | CreateDatasetExportJobCommandOutput | CreateDatasetGroupCommandOutput | CreateDatasetImportJobCommandOutput | CreateEventTrackerCommandOutput | CreateFilterCommandOutput | CreateRecommenderCommandOutput | CreateSchemaCommandOutput | CreateSolutionCommandOutput | CreateSolutionVersionCommandOutput | DeleteCampaignCommandOutput | DeleteDatasetCommandOutput | DeleteDatasetGroupCommandOutput | DeleteEventTrackerCommandOutput | DeleteFilterCommandOutput | DeleteRecommenderCommandOutput | DeleteSchemaCommandOutput | DeleteSolutionCommandOutput | DescribeAlgorithmCommandOutput | DescribeBatchInferenceJobCommandOutput | DescribeBatchSegmentJobCommandOutput | DescribeCampaignCommandOutput | DescribeDatasetCommandOutput | DescribeDatasetExportJobCommandOutput | DescribeDatasetGroupCommandOutput | DescribeDatasetImportJobCommandOutput | DescribeEventTrackerCommandOutput | DescribeFeatureTransformationCommandOutput | DescribeFilterCommandOutput | DescribeRecipeCommandOutput | DescribeRecommenderCommandOutput | DescribeSchemaCommandOutput | DescribeSolutionCommandOutput | DescribeSolutionVersionCommandOutput | GetSolutionMetricsCommandOutput | ListBatchInferenceJobsCommandOutput | ListBatchSegmentJobsCommandOutput | ListCampaignsCommandOutput | ListDatasetExportJobsCommandOutput | ListDatasetGroupsCommandOutput | ListDatasetImportJobsCommandOutput | ListDatasetsCommandOutput | ListEventTrackersCommandOutput | ListFiltersCommandOutput | ListRecipesCommandOutput | ListRecommendersCommandOutput | ListSchemasCommandOutput | ListSolutionVersionsCommandOutput | ListSolutionsCommandOutput | ListTagsForResourceCommandOutput | StartRecommenderCommandOutput | StopRecommenderCommandOutput | StopSolutionVersionCreationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignCommandOutput | UpdateRecommenderCommandOutput;
69
71
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
70
72
 
71
73
  requestHandler?: __HttpHandler;
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { StartRecommenderRequest, StartRecommenderResponse } from "../models/models_0";
4
+ import { PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeClient";
5
+ export interface StartRecommenderCommandInput extends StartRecommenderRequest {
6
+ }
7
+ export interface StartRecommenderCommandOutput extends StartRecommenderResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class StartRecommenderCommand extends $Command<StartRecommenderCommandInput, StartRecommenderCommandOutput, PersonalizeClientResolvedConfig> {
11
+ readonly input: StartRecommenderCommandInput;
12
+ constructor(input: StartRecommenderCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StartRecommenderCommandInput, StartRecommenderCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -0,0 +1,17 @@
1
+ import { Command as $Command } from "@aws-sdk/smithy-client";
2
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
3
+ import { StopRecommenderRequest, StopRecommenderResponse } from "../models/models_0";
4
+ import { PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeClient";
5
+ export interface StopRecommenderCommandInput extends StopRecommenderRequest {
6
+ }
7
+ export interface StopRecommenderCommandOutput extends StopRecommenderResponse, __MetadataBearer {
8
+ }
9
+
10
+ export declare class StopRecommenderCommand extends $Command<StopRecommenderCommandInput, StopRecommenderCommandOutput, PersonalizeClientResolvedConfig> {
11
+ readonly input: StopRecommenderCommandInput;
12
+ constructor(input: StopRecommenderCommandInput);
13
+
14
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: PersonalizeClientResolvedConfig, options?: __HttpHandlerOptions): Handler<StopRecommenderCommandInput, StopRecommenderCommandOutput>;
15
+ private serialize;
16
+ private deserialize;
17
+ }
@@ -51,6 +51,8 @@ export * from "./ListSchemasCommand";
51
51
  export * from "./ListSolutionVersionsCommand";
52
52
  export * from "./ListSolutionsCommand";
53
53
  export * from "./ListTagsForResourceCommand";
54
+ export * from "./StartRecommenderCommand";
55
+ export * from "./StopRecommenderCommand";
54
56
  export * from "./StopSolutionVersionCreationCommand";
55
57
  export * from "./TagResourceCommand";
56
58
  export * from "./UntagResourceCommand";
@@ -2125,6 +2125,38 @@ export declare namespace ListTagsForResourceResponse {
2125
2125
 
2126
2126
  const filterSensitiveLog: (obj: ListTagsForResourceResponse) => any;
2127
2127
  }
2128
+ export interface StartRecommenderRequest {
2129
+
2130
+ recommenderArn: string | undefined;
2131
+ }
2132
+ export declare namespace StartRecommenderRequest {
2133
+
2134
+ const filterSensitiveLog: (obj: StartRecommenderRequest) => any;
2135
+ }
2136
+ export interface StartRecommenderResponse {
2137
+
2138
+ recommenderArn?: string;
2139
+ }
2140
+ export declare namespace StartRecommenderResponse {
2141
+
2142
+ const filterSensitiveLog: (obj: StartRecommenderResponse) => any;
2143
+ }
2144
+ export interface StopRecommenderRequest {
2145
+
2146
+ recommenderArn: string | undefined;
2147
+ }
2148
+ export declare namespace StopRecommenderRequest {
2149
+
2150
+ const filterSensitiveLog: (obj: StopRecommenderRequest) => any;
2151
+ }
2152
+ export interface StopRecommenderResponse {
2153
+
2154
+ recommenderArn?: string;
2155
+ }
2156
+ export declare namespace StopRecommenderResponse {
2157
+
2158
+ const filterSensitiveLog: (obj: StopRecommenderResponse) => any;
2159
+ }
2128
2160
  export interface StopSolutionVersionCreationRequest {
2129
2161
 
2130
2162
  solutionVersionArn: string | undefined;
@@ -53,6 +53,8 @@ import { ListSchemasCommandInput, ListSchemasCommandOutput } from "../commands/L
53
53
  import { ListSolutionsCommandInput, ListSolutionsCommandOutput } from "../commands/ListSolutionsCommand";
54
54
  import { ListSolutionVersionsCommandInput, ListSolutionVersionsCommandOutput } from "../commands/ListSolutionVersionsCommand";
55
55
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
56
+ import { StartRecommenderCommandInput, StartRecommenderCommandOutput } from "../commands/StartRecommenderCommand";
57
+ import { StopRecommenderCommandInput, StopRecommenderCommandOutput } from "../commands/StopRecommenderCommand";
56
58
  import { StopSolutionVersionCreationCommandInput, StopSolutionVersionCreationCommandOutput } from "../commands/StopSolutionVersionCreationCommand";
57
59
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
58
60
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
@@ -111,6 +113,8 @@ export declare const serializeAws_json1_1ListSchemasCommand: (input: ListSchemas
111
113
  export declare const serializeAws_json1_1ListSolutionsCommand: (input: ListSolutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
112
114
  export declare const serializeAws_json1_1ListSolutionVersionsCommand: (input: ListSolutionVersionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
113
115
  export declare const serializeAws_json1_1ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
+ export declare const serializeAws_json1_1StartRecommenderCommand: (input: StartRecommenderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
117
+ export declare const serializeAws_json1_1StopRecommenderCommand: (input: StopRecommenderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
114
118
  export declare const serializeAws_json1_1StopSolutionVersionCreationCommand: (input: StopSolutionVersionCreationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
115
119
  export declare const serializeAws_json1_1TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
116
120
  export declare const serializeAws_json1_1UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
@@ -169,6 +173,8 @@ export declare const deserializeAws_json1_1ListSchemasCommand: (output: __HttpRe
169
173
  export declare const deserializeAws_json1_1ListSolutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSolutionsCommandOutput>;
170
174
  export declare const deserializeAws_json1_1ListSolutionVersionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListSolutionVersionsCommandOutput>;
171
175
  export declare const deserializeAws_json1_1ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
176
+ export declare const deserializeAws_json1_1StartRecommenderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartRecommenderCommandOutput>;
177
+ export declare const deserializeAws_json1_1StopRecommenderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopRecommenderCommandOutput>;
172
178
  export declare const deserializeAws_json1_1StopSolutionVersionCreationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopSolutionVersionCreationCommandOutput>;
173
179
  export declare const deserializeAws_json1_1TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
174
180
  export declare const deserializeAws_json1_1UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;