@aws-sdk/client-personalize 3.635.0 → 3.642.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.
- package/README.md +8 -0
- package/dist-cjs/index.js +50 -1
- package/dist-es/Personalize.js +2 -0
- package/dist-es/commands/UpdateSolutionCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +30 -0
- package/dist-types/Personalize.d.ts +7 -0
- package/dist-types/PersonalizeClient.d.ts +3 -2
- package/dist-types/commands/CreateSolutionCommand.d.ts +10 -3
- package/dist-types/commands/DescribeSolutionCommand.d.ts +12 -0
- package/dist-types/commands/UpdateSolutionCommand.d.ts +87 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +105 -17
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/Personalize.d.ts +17 -0
- package/dist-types/ts3.4/PersonalizeClient.d.ts +8 -2
- package/dist-types/ts3.4/commands/UpdateSolutionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +20 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +12 -0
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -764,3 +764,11 @@ UpdateRecommender
|
|
|
764
764
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/UpdateRecommenderCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/UpdateRecommenderCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/UpdateRecommenderCommandOutput/)
|
|
765
765
|
|
|
766
766
|
</details>
|
|
767
|
+
<details>
|
|
768
|
+
<summary>
|
|
769
|
+
UpdateSolution
|
|
770
|
+
</summary>
|
|
771
|
+
|
|
772
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/personalize/command/UpdateSolutionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/UpdateSolutionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-personalize/Interface/UpdateSolutionCommandOutput/)
|
|
773
|
+
|
|
774
|
+
</details>
|
package/dist-cjs/index.js
CHANGED
|
@@ -113,6 +113,7 @@ __export(src_exports, {
|
|
|
113
113
|
UpdateDatasetCommand: () => UpdateDatasetCommand,
|
|
114
114
|
UpdateMetricAttributionCommand: () => UpdateMetricAttributionCommand,
|
|
115
115
|
UpdateRecommenderCommand: () => UpdateRecommenderCommand,
|
|
116
|
+
UpdateSolutionCommand: () => UpdateSolutionCommand,
|
|
116
117
|
__Client: () => import_smithy_client.Client,
|
|
117
118
|
paginateListBatchInferenceJobs: () => paginateListBatchInferenceJobs,
|
|
118
119
|
paginateListBatchSegmentJobs: () => paginateListBatchSegmentJobs,
|
|
@@ -906,6 +907,12 @@ var se_UpdateRecommenderCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
906
907
|
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
907
908
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
908
909
|
}, "se_UpdateRecommenderCommand");
|
|
910
|
+
var se_UpdateSolutionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
911
|
+
const headers = sharedHeaders("UpdateSolution");
|
|
912
|
+
let body;
|
|
913
|
+
body = JSON.stringify((0, import_smithy_client._json)(input));
|
|
914
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
915
|
+
}, "se_UpdateSolutionCommand");
|
|
909
916
|
var de_CreateBatchInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
910
917
|
if (output.statusCode >= 300) {
|
|
911
918
|
return de_CommandError(output, context);
|
|
@@ -1786,6 +1793,19 @@ var de_UpdateRecommenderCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1786
1793
|
};
|
|
1787
1794
|
return response;
|
|
1788
1795
|
}, "de_UpdateRecommenderCommand");
|
|
1796
|
+
var de_UpdateSolutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1797
|
+
if (output.statusCode >= 300) {
|
|
1798
|
+
return de_CommandError(output, context);
|
|
1799
|
+
}
|
|
1800
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1801
|
+
let contents = {};
|
|
1802
|
+
contents = (0, import_smithy_client._json)(data);
|
|
1803
|
+
const response = {
|
|
1804
|
+
$metadata: deserializeMetadata(output),
|
|
1805
|
+
...contents
|
|
1806
|
+
};
|
|
1807
|
+
return response;
|
|
1808
|
+
}, "de_UpdateSolutionCommand");
|
|
1789
1809
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1790
1810
|
const parsedOutput = {
|
|
1791
1811
|
...output,
|
|
@@ -2682,6 +2702,7 @@ var de_Solution = /* @__PURE__ */ __name((output, context) => {
|
|
|
2682
2702
|
datasetGroupArn: import_smithy_client.expectString,
|
|
2683
2703
|
eventType: import_smithy_client.expectString,
|
|
2684
2704
|
lastUpdatedDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2705
|
+
latestSolutionUpdate: (_) => de_SolutionUpdateSummary(_, context),
|
|
2685
2706
|
latestSolutionVersion: (_) => de_SolutionVersionSummary(_, context),
|
|
2686
2707
|
name: import_smithy_client.expectString,
|
|
2687
2708
|
performAutoML: import_smithy_client.expectBoolean,
|
|
@@ -2721,6 +2742,16 @@ var de_SolutionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
2721
2742
|
status: import_smithy_client.expectString
|
|
2722
2743
|
});
|
|
2723
2744
|
}, "de_SolutionSummary");
|
|
2745
|
+
var de_SolutionUpdateSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2746
|
+
return (0, import_smithy_client.take)(output, {
|
|
2747
|
+
creationDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2748
|
+
failureReason: import_smithy_client.expectString,
|
|
2749
|
+
lastUpdatedDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
2750
|
+
performAutoTraining: import_smithy_client.expectBoolean,
|
|
2751
|
+
solutionUpdateConfig: import_smithy_client._json,
|
|
2752
|
+
status: import_smithy_client.expectString
|
|
2753
|
+
});
|
|
2754
|
+
}, "de_SolutionUpdateSummary");
|
|
2724
2755
|
var de_SolutionVersion = /* @__PURE__ */ __name((output, context) => {
|
|
2725
2756
|
return (0, import_smithy_client.take)(output, {
|
|
2726
2757
|
creationDateTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
@@ -3909,6 +3940,22 @@ var _UpdateRecommenderCommand = class _UpdateRecommenderCommand extends import_s
|
|
|
3909
3940
|
__name(_UpdateRecommenderCommand, "UpdateRecommenderCommand");
|
|
3910
3941
|
var UpdateRecommenderCommand = _UpdateRecommenderCommand;
|
|
3911
3942
|
|
|
3943
|
+
// src/commands/UpdateSolutionCommand.ts
|
|
3944
|
+
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
var _UpdateSolutionCommand = class _UpdateSolutionCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
3948
|
+
...commonParams
|
|
3949
|
+
}).m(function(Command, cs, config, o) {
|
|
3950
|
+
return [
|
|
3951
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3952
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3953
|
+
];
|
|
3954
|
+
}).s("AmazonPersonalize", "UpdateSolution", {}).n("PersonalizeClient", "UpdateSolutionCommand").f(void 0, void 0).ser(se_UpdateSolutionCommand).de(de_UpdateSolutionCommand).build() {
|
|
3955
|
+
};
|
|
3956
|
+
__name(_UpdateSolutionCommand, "UpdateSolutionCommand");
|
|
3957
|
+
var UpdateSolutionCommand = _UpdateSolutionCommand;
|
|
3958
|
+
|
|
3912
3959
|
// src/Personalize.ts
|
|
3913
3960
|
var commands = {
|
|
3914
3961
|
CreateBatchInferenceJobCommand,
|
|
@@ -3980,7 +4027,8 @@ var commands = {
|
|
|
3980
4027
|
UpdateCampaignCommand,
|
|
3981
4028
|
UpdateDatasetCommand,
|
|
3982
4029
|
UpdateMetricAttributionCommand,
|
|
3983
|
-
UpdateRecommenderCommand
|
|
4030
|
+
UpdateRecommenderCommand,
|
|
4031
|
+
UpdateSolutionCommand
|
|
3984
4032
|
};
|
|
3985
4033
|
var _Personalize = class _Personalize extends PersonalizeClient {
|
|
3986
4034
|
};
|
|
@@ -4129,6 +4177,7 @@ var paginateListSolutions = (0, import_core.createPaginator)(PersonalizeClient,
|
|
|
4129
4177
|
UpdateDatasetCommand,
|
|
4130
4178
|
UpdateMetricAttributionCommand,
|
|
4131
4179
|
UpdateRecommenderCommand,
|
|
4180
|
+
UpdateSolutionCommand,
|
|
4132
4181
|
paginateListBatchInferenceJobs,
|
|
4133
4182
|
paginateListBatchSegmentJobs,
|
|
4134
4183
|
paginateListCampaigns,
|
package/dist-es/Personalize.js
CHANGED
|
@@ -69,6 +69,7 @@ import { UpdateCampaignCommand, } from "./commands/UpdateCampaignCommand";
|
|
|
69
69
|
import { UpdateDatasetCommand, } from "./commands/UpdateDatasetCommand";
|
|
70
70
|
import { UpdateMetricAttributionCommand, } from "./commands/UpdateMetricAttributionCommand";
|
|
71
71
|
import { UpdateRecommenderCommand, } from "./commands/UpdateRecommenderCommand";
|
|
72
|
+
import { UpdateSolutionCommand, } from "./commands/UpdateSolutionCommand";
|
|
72
73
|
import { PersonalizeClient } from "./PersonalizeClient";
|
|
73
74
|
const commands = {
|
|
74
75
|
CreateBatchInferenceJobCommand,
|
|
@@ -141,6 +142,7 @@ const commands = {
|
|
|
141
142
|
UpdateDatasetCommand,
|
|
142
143
|
UpdateMetricAttributionCommand,
|
|
143
144
|
UpdateRecommenderCommand,
|
|
145
|
+
UpdateSolutionCommand,
|
|
144
146
|
};
|
|
145
147
|
export class Personalize extends PersonalizeClient {
|
|
146
148
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_UpdateSolutionCommand, se_UpdateSolutionCommand } from "../protocols/Aws_json1_1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class UpdateSolutionCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("AmazonPersonalize", "UpdateSolution", {})
|
|
19
|
+
.n("PersonalizeClient", "UpdateSolutionCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_UpdateSolutionCommand)
|
|
22
|
+
.de(de_UpdateSolutionCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -423,6 +423,12 @@ export const se_UpdateRecommenderCommand = async (input, context) => {
|
|
|
423
423
|
body = JSON.stringify(_json(input));
|
|
424
424
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
425
|
};
|
|
426
|
+
export const se_UpdateSolutionCommand = async (input, context) => {
|
|
427
|
+
const headers = sharedHeaders("UpdateSolution");
|
|
428
|
+
let body;
|
|
429
|
+
body = JSON.stringify(_json(input));
|
|
430
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
431
|
+
};
|
|
426
432
|
export const de_CreateBatchInferenceJobCommand = async (output, context) => {
|
|
427
433
|
if (output.statusCode >= 300) {
|
|
428
434
|
return de_CommandError(output, context);
|
|
@@ -1303,6 +1309,19 @@ export const de_UpdateRecommenderCommand = async (output, context) => {
|
|
|
1303
1309
|
};
|
|
1304
1310
|
return response;
|
|
1305
1311
|
};
|
|
1312
|
+
export const de_UpdateSolutionCommand = async (output, context) => {
|
|
1313
|
+
if (output.statusCode >= 300) {
|
|
1314
|
+
return de_CommandError(output, context);
|
|
1315
|
+
}
|
|
1316
|
+
const data = await parseBody(output.body, context);
|
|
1317
|
+
let contents = {};
|
|
1318
|
+
contents = _json(data);
|
|
1319
|
+
const response = {
|
|
1320
|
+
$metadata: deserializeMetadata(output),
|
|
1321
|
+
...contents,
|
|
1322
|
+
};
|
|
1323
|
+
return response;
|
|
1324
|
+
};
|
|
1306
1325
|
const de_CommandError = async (output, context) => {
|
|
1307
1326
|
const parsedOutput = {
|
|
1308
1327
|
...output,
|
|
@@ -2233,6 +2252,7 @@ const de_Solution = (output, context) => {
|
|
|
2233
2252
|
datasetGroupArn: __expectString,
|
|
2234
2253
|
eventType: __expectString,
|
|
2235
2254
|
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2255
|
+
latestSolutionUpdate: (_) => de_SolutionUpdateSummary(_, context),
|
|
2236
2256
|
latestSolutionVersion: (_) => de_SolutionVersionSummary(_, context),
|
|
2237
2257
|
name: __expectString,
|
|
2238
2258
|
performAutoML: __expectBoolean,
|
|
@@ -2274,6 +2294,16 @@ const de_SolutionSummary = (output, context) => {
|
|
|
2274
2294
|
status: __expectString,
|
|
2275
2295
|
});
|
|
2276
2296
|
};
|
|
2297
|
+
const de_SolutionUpdateSummary = (output, context) => {
|
|
2298
|
+
return take(output, {
|
|
2299
|
+
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2300
|
+
failureReason: __expectString,
|
|
2301
|
+
lastUpdatedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2302
|
+
performAutoTraining: __expectBoolean,
|
|
2303
|
+
solutionUpdateConfig: _json,
|
|
2304
|
+
status: __expectString,
|
|
2305
|
+
});
|
|
2306
|
+
};
|
|
2277
2307
|
const de_SolutionVersion = (output, context) => {
|
|
2278
2308
|
return take(output, {
|
|
2279
2309
|
creationDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -69,6 +69,7 @@ import { UpdateCampaignCommandInput, UpdateCampaignCommandOutput } from "./comma
|
|
|
69
69
|
import { UpdateDatasetCommandInput, UpdateDatasetCommandOutput } from "./commands/UpdateDatasetCommand";
|
|
70
70
|
import { UpdateMetricAttributionCommandInput, UpdateMetricAttributionCommandOutput } from "./commands/UpdateMetricAttributionCommand";
|
|
71
71
|
import { UpdateRecommenderCommandInput, UpdateRecommenderCommandOutput } from "./commands/UpdateRecommenderCommand";
|
|
72
|
+
import { UpdateSolutionCommandInput, UpdateSolutionCommandOutput } from "./commands/UpdateSolutionCommand";
|
|
72
73
|
import { PersonalizeClient } from "./PersonalizeClient";
|
|
73
74
|
export interface Personalize {
|
|
74
75
|
/**
|
|
@@ -509,6 +510,12 @@ export interface Personalize {
|
|
|
509
510
|
updateRecommender(args: UpdateRecommenderCommandInput, options?: __HttpHandlerOptions): Promise<UpdateRecommenderCommandOutput>;
|
|
510
511
|
updateRecommender(args: UpdateRecommenderCommandInput, cb: (err: any, data?: UpdateRecommenderCommandOutput) => void): void;
|
|
511
512
|
updateRecommender(args: UpdateRecommenderCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateRecommenderCommandOutput) => void): void;
|
|
513
|
+
/**
|
|
514
|
+
* @see {@link UpdateSolutionCommand}
|
|
515
|
+
*/
|
|
516
|
+
updateSolution(args: UpdateSolutionCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSolutionCommandOutput>;
|
|
517
|
+
updateSolution(args: UpdateSolutionCommandInput, cb: (err: any, data?: UpdateSolutionCommandOutput) => void): void;
|
|
518
|
+
updateSolution(args: UpdateSolutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSolutionCommandOutput) => void): void;
|
|
512
519
|
}
|
|
513
520
|
/**
|
|
514
521
|
* <p>Amazon Personalize is a machine learning service that makes it easy to add individualized
|
|
@@ -77,17 +77,18 @@ import { UpdateCampaignCommandInput, UpdateCampaignCommandOutput } from "./comma
|
|
|
77
77
|
import { UpdateDatasetCommandInput, UpdateDatasetCommandOutput } from "./commands/UpdateDatasetCommand";
|
|
78
78
|
import { UpdateMetricAttributionCommandInput, UpdateMetricAttributionCommandOutput } from "./commands/UpdateMetricAttributionCommand";
|
|
79
79
|
import { UpdateRecommenderCommandInput, UpdateRecommenderCommandOutput } from "./commands/UpdateRecommenderCommand";
|
|
80
|
+
import { UpdateSolutionCommandInput, UpdateSolutionCommandOutput } from "./commands/UpdateSolutionCommand";
|
|
80
81
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
81
82
|
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
82
83
|
export { __Client };
|
|
83
84
|
/**
|
|
84
85
|
* @public
|
|
85
86
|
*/
|
|
86
|
-
export type ServiceInputTypes = CreateBatchInferenceJobCommandInput | CreateBatchSegmentJobCommandInput | CreateCampaignCommandInput | CreateDataDeletionJobCommandInput | CreateDatasetCommandInput | CreateDatasetExportJobCommandInput | CreateDatasetGroupCommandInput | CreateDatasetImportJobCommandInput | CreateEventTrackerCommandInput | CreateFilterCommandInput | CreateMetricAttributionCommandInput | CreateRecommenderCommandInput | CreateSchemaCommandInput | CreateSolutionCommandInput | CreateSolutionVersionCommandInput | DeleteCampaignCommandInput | DeleteDatasetCommandInput | DeleteDatasetGroupCommandInput | DeleteEventTrackerCommandInput | DeleteFilterCommandInput | DeleteMetricAttributionCommandInput | DeleteRecommenderCommandInput | DeleteSchemaCommandInput | DeleteSolutionCommandInput | DescribeAlgorithmCommandInput | DescribeBatchInferenceJobCommandInput | DescribeBatchSegmentJobCommandInput | DescribeCampaignCommandInput | DescribeDataDeletionJobCommandInput | DescribeDatasetCommandInput | DescribeDatasetExportJobCommandInput | DescribeDatasetGroupCommandInput | DescribeDatasetImportJobCommandInput | DescribeEventTrackerCommandInput | DescribeFeatureTransformationCommandInput | DescribeFilterCommandInput | DescribeMetricAttributionCommandInput | DescribeRecipeCommandInput | DescribeRecommenderCommandInput | DescribeSchemaCommandInput | DescribeSolutionCommandInput | DescribeSolutionVersionCommandInput | GetSolutionMetricsCommandInput | ListBatchInferenceJobsCommandInput | ListBatchSegmentJobsCommandInput | ListCampaignsCommandInput | ListDataDeletionJobsCommandInput | ListDatasetExportJobsCommandInput | ListDatasetGroupsCommandInput | ListDatasetImportJobsCommandInput | ListDatasetsCommandInput | ListEventTrackersCommandInput | ListFiltersCommandInput | ListMetricAttributionMetricsCommandInput | ListMetricAttributionsCommandInput | ListRecipesCommandInput | ListRecommendersCommandInput | ListSchemasCommandInput | ListSolutionVersionsCommandInput | ListSolutionsCommandInput | ListTagsForResourceCommandInput | StartRecommenderCommandInput | StopRecommenderCommandInput | StopSolutionVersionCreationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignCommandInput | UpdateDatasetCommandInput | UpdateMetricAttributionCommandInput | UpdateRecommenderCommandInput;
|
|
87
|
+
export type ServiceInputTypes = CreateBatchInferenceJobCommandInput | CreateBatchSegmentJobCommandInput | CreateCampaignCommandInput | CreateDataDeletionJobCommandInput | CreateDatasetCommandInput | CreateDatasetExportJobCommandInput | CreateDatasetGroupCommandInput | CreateDatasetImportJobCommandInput | CreateEventTrackerCommandInput | CreateFilterCommandInput | CreateMetricAttributionCommandInput | CreateRecommenderCommandInput | CreateSchemaCommandInput | CreateSolutionCommandInput | CreateSolutionVersionCommandInput | DeleteCampaignCommandInput | DeleteDatasetCommandInput | DeleteDatasetGroupCommandInput | DeleteEventTrackerCommandInput | DeleteFilterCommandInput | DeleteMetricAttributionCommandInput | DeleteRecommenderCommandInput | DeleteSchemaCommandInput | DeleteSolutionCommandInput | DescribeAlgorithmCommandInput | DescribeBatchInferenceJobCommandInput | DescribeBatchSegmentJobCommandInput | DescribeCampaignCommandInput | DescribeDataDeletionJobCommandInput | DescribeDatasetCommandInput | DescribeDatasetExportJobCommandInput | DescribeDatasetGroupCommandInput | DescribeDatasetImportJobCommandInput | DescribeEventTrackerCommandInput | DescribeFeatureTransformationCommandInput | DescribeFilterCommandInput | DescribeMetricAttributionCommandInput | DescribeRecipeCommandInput | DescribeRecommenderCommandInput | DescribeSchemaCommandInput | DescribeSolutionCommandInput | DescribeSolutionVersionCommandInput | GetSolutionMetricsCommandInput | ListBatchInferenceJobsCommandInput | ListBatchSegmentJobsCommandInput | ListCampaignsCommandInput | ListDataDeletionJobsCommandInput | ListDatasetExportJobsCommandInput | ListDatasetGroupsCommandInput | ListDatasetImportJobsCommandInput | ListDatasetsCommandInput | ListEventTrackersCommandInput | ListFiltersCommandInput | ListMetricAttributionMetricsCommandInput | ListMetricAttributionsCommandInput | ListRecipesCommandInput | ListRecommendersCommandInput | ListSchemasCommandInput | ListSolutionVersionsCommandInput | ListSolutionsCommandInput | ListTagsForResourceCommandInput | StartRecommenderCommandInput | StopRecommenderCommandInput | StopSolutionVersionCreationCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateCampaignCommandInput | UpdateDatasetCommandInput | UpdateMetricAttributionCommandInput | UpdateRecommenderCommandInput | UpdateSolutionCommandInput;
|
|
87
88
|
/**
|
|
88
89
|
* @public
|
|
89
90
|
*/
|
|
90
|
-
export type ServiceOutputTypes = CreateBatchInferenceJobCommandOutput | CreateBatchSegmentJobCommandOutput | CreateCampaignCommandOutput | CreateDataDeletionJobCommandOutput | CreateDatasetCommandOutput | CreateDatasetExportJobCommandOutput | CreateDatasetGroupCommandOutput | CreateDatasetImportJobCommandOutput | CreateEventTrackerCommandOutput | CreateFilterCommandOutput | CreateMetricAttributionCommandOutput | CreateRecommenderCommandOutput | CreateSchemaCommandOutput | CreateSolutionCommandOutput | CreateSolutionVersionCommandOutput | DeleteCampaignCommandOutput | DeleteDatasetCommandOutput | DeleteDatasetGroupCommandOutput | DeleteEventTrackerCommandOutput | DeleteFilterCommandOutput | DeleteMetricAttributionCommandOutput | DeleteRecommenderCommandOutput | DeleteSchemaCommandOutput | DeleteSolutionCommandOutput | DescribeAlgorithmCommandOutput | DescribeBatchInferenceJobCommandOutput | DescribeBatchSegmentJobCommandOutput | DescribeCampaignCommandOutput | DescribeDataDeletionJobCommandOutput | DescribeDatasetCommandOutput | DescribeDatasetExportJobCommandOutput | DescribeDatasetGroupCommandOutput | DescribeDatasetImportJobCommandOutput | DescribeEventTrackerCommandOutput | DescribeFeatureTransformationCommandOutput | DescribeFilterCommandOutput | DescribeMetricAttributionCommandOutput | DescribeRecipeCommandOutput | DescribeRecommenderCommandOutput | DescribeSchemaCommandOutput | DescribeSolutionCommandOutput | DescribeSolutionVersionCommandOutput | GetSolutionMetricsCommandOutput | ListBatchInferenceJobsCommandOutput | ListBatchSegmentJobsCommandOutput | ListCampaignsCommandOutput | ListDataDeletionJobsCommandOutput | ListDatasetExportJobsCommandOutput | ListDatasetGroupsCommandOutput | ListDatasetImportJobsCommandOutput | ListDatasetsCommandOutput | ListEventTrackersCommandOutput | ListFiltersCommandOutput | ListMetricAttributionMetricsCommandOutput | ListMetricAttributionsCommandOutput | ListRecipesCommandOutput | ListRecommendersCommandOutput | ListSchemasCommandOutput | ListSolutionVersionsCommandOutput | ListSolutionsCommandOutput | ListTagsForResourceCommandOutput | StartRecommenderCommandOutput | StopRecommenderCommandOutput | StopSolutionVersionCreationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignCommandOutput | UpdateDatasetCommandOutput | UpdateMetricAttributionCommandOutput | UpdateRecommenderCommandOutput;
|
|
91
|
+
export type ServiceOutputTypes = CreateBatchInferenceJobCommandOutput | CreateBatchSegmentJobCommandOutput | CreateCampaignCommandOutput | CreateDataDeletionJobCommandOutput | CreateDatasetCommandOutput | CreateDatasetExportJobCommandOutput | CreateDatasetGroupCommandOutput | CreateDatasetImportJobCommandOutput | CreateEventTrackerCommandOutput | CreateFilterCommandOutput | CreateMetricAttributionCommandOutput | CreateRecommenderCommandOutput | CreateSchemaCommandOutput | CreateSolutionCommandOutput | CreateSolutionVersionCommandOutput | DeleteCampaignCommandOutput | DeleteDatasetCommandOutput | DeleteDatasetGroupCommandOutput | DeleteEventTrackerCommandOutput | DeleteFilterCommandOutput | DeleteMetricAttributionCommandOutput | DeleteRecommenderCommandOutput | DeleteSchemaCommandOutput | DeleteSolutionCommandOutput | DescribeAlgorithmCommandOutput | DescribeBatchInferenceJobCommandOutput | DescribeBatchSegmentJobCommandOutput | DescribeCampaignCommandOutput | DescribeDataDeletionJobCommandOutput | DescribeDatasetCommandOutput | DescribeDatasetExportJobCommandOutput | DescribeDatasetGroupCommandOutput | DescribeDatasetImportJobCommandOutput | DescribeEventTrackerCommandOutput | DescribeFeatureTransformationCommandOutput | DescribeFilterCommandOutput | DescribeMetricAttributionCommandOutput | DescribeRecipeCommandOutput | DescribeRecommenderCommandOutput | DescribeSchemaCommandOutput | DescribeSolutionCommandOutput | DescribeSolutionVersionCommandOutput | GetSolutionMetricsCommandOutput | ListBatchInferenceJobsCommandOutput | ListBatchSegmentJobsCommandOutput | ListCampaignsCommandOutput | ListDataDeletionJobsCommandOutput | ListDatasetExportJobsCommandOutput | ListDatasetGroupsCommandOutput | ListDatasetImportJobsCommandOutput | ListDatasetsCommandOutput | ListEventTrackersCommandOutput | ListFiltersCommandOutput | ListMetricAttributionMetricsCommandOutput | ListMetricAttributionsCommandOutput | ListRecipesCommandOutput | ListRecommendersCommandOutput | ListSchemasCommandOutput | ListSolutionVersionsCommandOutput | ListSolutionsCommandOutput | ListTagsForResourceCommandOutput | StartRecommenderCommandOutput | StopRecommenderCommandOutput | StopSolutionVersionCreationCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateCampaignCommandOutput | UpdateDatasetCommandOutput | UpdateMetricAttributionCommandOutput | UpdateRecommenderCommandOutput | UpdateSolutionCommandOutput;
|
|
91
92
|
/**
|
|
92
93
|
* @public
|
|
93
94
|
*/
|
|
@@ -28,8 +28,10 @@ declare const CreateSolutionCommand_base: {
|
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
30
|
* <important>
|
|
31
|
-
* <p>
|
|
32
|
-
* your solution is active.
|
|
31
|
+
* <p>By default, all new solutions use automatic training. With automatic training, you incur training costs while
|
|
32
|
+
* your solution is active. To avoid unnecessary costs, when you are finished you can
|
|
33
|
+
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html">update the solution</a> to turn off automatic training.
|
|
34
|
+
* For information about training
|
|
33
35
|
* costs, see <a href="https://aws.amazon.com/personalize/pricing/">Amazon Personalize pricing</a>.</p>
|
|
34
36
|
* </important>
|
|
35
37
|
* <p>Creates the configuration for training a model (creating a solution version). This configuration
|
|
@@ -38,7 +40,7 @@ declare const CreateSolutionCommand_base: {
|
|
|
38
40
|
* </p>
|
|
39
41
|
* <p>
|
|
40
42
|
* By default, new solutions use automatic training to create solution versions every 7 days. You can change the training frequency.
|
|
41
|
-
* Automatic solution version creation starts one hour after the solution is ACTIVE. If you manually create a solution version within
|
|
43
|
+
* Automatic solution version creation starts within one hour after the solution is ACTIVE. If you manually create a solution version within
|
|
42
44
|
* the hour, the solution skips the first automatic training. For more information,
|
|
43
45
|
* see <a href="https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html">Configuring automatic training</a>.</p>
|
|
44
46
|
* <p>
|
|
@@ -77,6 +79,11 @@ declare const CreateSolutionCommand_base: {
|
|
|
77
79
|
* <ul>
|
|
78
80
|
* <li>
|
|
79
81
|
* <p>
|
|
82
|
+
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html">UpdateSolution</a>
|
|
83
|
+
* </p>
|
|
84
|
+
* </li>
|
|
85
|
+
* <li>
|
|
86
|
+
* <p>
|
|
80
87
|
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutions.html">ListSolutions</a>
|
|
81
88
|
* </p>
|
|
82
89
|
* </li>
|
|
@@ -129,6 +129,18 @@ declare const DescribeSolutionCommand_base: {
|
|
|
129
129
|
* // lastUpdatedDateTime: new Date("TIMESTAMP"),
|
|
130
130
|
* // failureReason: "STRING_VALUE",
|
|
131
131
|
* // },
|
|
132
|
+
* // latestSolutionUpdate: { // SolutionUpdateSummary
|
|
133
|
+
* // solutionUpdateConfig: { // SolutionUpdateConfig
|
|
134
|
+
* // autoTrainingConfig: {
|
|
135
|
+
* // schedulingExpression: "STRING_VALUE",
|
|
136
|
+
* // },
|
|
137
|
+
* // },
|
|
138
|
+
* // status: "STRING_VALUE",
|
|
139
|
+
* // performAutoTraining: true || false,
|
|
140
|
+
* // creationDateTime: new Date("TIMESTAMP"),
|
|
141
|
+
* // lastUpdatedDateTime: new Date("TIMESTAMP"),
|
|
142
|
+
* // failureReason: "STRING_VALUE",
|
|
143
|
+
* // },
|
|
132
144
|
* // },
|
|
133
145
|
* // };
|
|
134
146
|
*
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { UpdateSolutionRequest, UpdateSolutionResponse } from "../models/models_0";
|
|
4
|
+
import { PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateSolutionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateSolutionCommandInput extends UpdateSolutionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateSolutionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateSolutionCommandOutput extends UpdateSolutionResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateSolutionCommand_base: {
|
|
25
|
+
new (input: UpdateSolutionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateSolutionCommandInput, UpdateSolutionCommandOutput, PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateSolutionCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateSolutionCommandInput, UpdateSolutionCommandOutput, PersonalizeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates an Amazon Personalize solution to use a different automatic training configuration. When you update a solution,
|
|
31
|
+
* you can change whether the solution uses
|
|
32
|
+
* automatic training, and you can change the training frequency. For more information about updating a solution, see
|
|
33
|
+
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/updating-solution.html">Updating a solution</a>.</p>
|
|
34
|
+
* <p>A solution update can be in one of the
|
|
35
|
+
* following states:</p>
|
|
36
|
+
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
37
|
+
* <p>To get the status of a solution update, call the
|
|
38
|
+
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html">DescribeSolution</a> API operation and find the status
|
|
39
|
+
* in the <code>latestSolutionUpdate</code>. </p>
|
|
40
|
+
* @example
|
|
41
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
42
|
+
* ```javascript
|
|
43
|
+
* import { PersonalizeClient, UpdateSolutionCommand } from "@aws-sdk/client-personalize"; // ES Modules import
|
|
44
|
+
* // const { PersonalizeClient, UpdateSolutionCommand } = require("@aws-sdk/client-personalize"); // CommonJS import
|
|
45
|
+
* const client = new PersonalizeClient(config);
|
|
46
|
+
* const input = { // UpdateSolutionRequest
|
|
47
|
+
* solutionArn: "STRING_VALUE", // required
|
|
48
|
+
* performAutoTraining: true || false,
|
|
49
|
+
* solutionUpdateConfig: { // SolutionUpdateConfig
|
|
50
|
+
* autoTrainingConfig: { // AutoTrainingConfig
|
|
51
|
+
* schedulingExpression: "STRING_VALUE",
|
|
52
|
+
* },
|
|
53
|
+
* },
|
|
54
|
+
* };
|
|
55
|
+
* const command = new UpdateSolutionCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* // { // UpdateSolutionResponse
|
|
58
|
+
* // solutionArn: "STRING_VALUE",
|
|
59
|
+
* // };
|
|
60
|
+
*
|
|
61
|
+
* ```
|
|
62
|
+
*
|
|
63
|
+
* @param UpdateSolutionCommandInput - {@link UpdateSolutionCommandInput}
|
|
64
|
+
* @returns {@link UpdateSolutionCommandOutput}
|
|
65
|
+
* @see {@link UpdateSolutionCommandInput} for command's `input` shape.
|
|
66
|
+
* @see {@link UpdateSolutionCommandOutput} for command's `response` shape.
|
|
67
|
+
* @see {@link PersonalizeClientResolvedConfig | config} for PersonalizeClient's `config` shape.
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link InvalidInputException} (client fault)
|
|
70
|
+
* <p>Provide a valid value for the field or parameter.</p>
|
|
71
|
+
*
|
|
72
|
+
* @throws {@link LimitExceededException} (client fault)
|
|
73
|
+
* <p>The limit on the number of requests per second has been exceeded.</p>
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ResourceInUseException} (client fault)
|
|
76
|
+
* <p>The specified resource is in use.</p>
|
|
77
|
+
*
|
|
78
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
79
|
+
* <p>Could not find the specified resource.</p>
|
|
80
|
+
*
|
|
81
|
+
* @throws {@link PersonalizeServiceException}
|
|
82
|
+
* <p>Base exception class for all service exceptions from Personalize service.</p>
|
|
83
|
+
*
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
86
|
+
export declare class UpdateSolutionCommand extends UpdateSolutionCommand_base {
|
|
87
|
+
}
|
|
@@ -1532,7 +1532,7 @@ export interface CreateSolutionRequest {
|
|
|
1532
1532
|
* configuration. For more information about automatic training,
|
|
1533
1533
|
* see <a href="https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html">Configuring automatic training</a>.</p>
|
|
1534
1534
|
* <p>
|
|
1535
|
-
* Automatic solution version creation starts one hour after the solution is ACTIVE. If you manually create a solution version within
|
|
1535
|
+
* Automatic solution version creation starts within one hour after the solution is ACTIVE. If you manually create a solution version within
|
|
1536
1536
|
* the hour, the solution skips the first automatic training.
|
|
1537
1537
|
* </p>
|
|
1538
1538
|
* <p>
|
|
@@ -1566,7 +1566,7 @@ export interface CreateSolutionRequest {
|
|
|
1566
1566
|
*/
|
|
1567
1567
|
eventType?: string;
|
|
1568
1568
|
/**
|
|
1569
|
-
* <p>The configuration
|
|
1569
|
+
* <p>The configuration properties for the solution. When <code>performAutoML</code> is set to
|
|
1570
1570
|
* true, Amazon Personalize only evaluates the <code>autoMLConfig</code> section
|
|
1571
1571
|
* of the solution configuration.</p>
|
|
1572
1572
|
* <note>
|
|
@@ -3085,19 +3085,8 @@ export interface RecommenderUpdateSummary {
|
|
|
3085
3085
|
*/
|
|
3086
3086
|
lastUpdatedDateTime?: Date;
|
|
3087
3087
|
/**
|
|
3088
|
-
* <p>The status of the recommender update
|
|
3089
|
-
* <p>
|
|
3090
|
-
* <ul>
|
|
3091
|
-
* <li>
|
|
3092
|
-
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
3093
|
-
* </li>
|
|
3094
|
-
* <li>
|
|
3095
|
-
* <p>STOP PENDING > STOP IN_PROGRESS > INACTIVE > START PENDING > START IN_PROGRESS > ACTIVE</p>
|
|
3096
|
-
* </li>
|
|
3097
|
-
* <li>
|
|
3098
|
-
* <p>DELETE PENDING > DELETE IN_PROGRESS</p>
|
|
3099
|
-
* </li>
|
|
3100
|
-
* </ul>
|
|
3088
|
+
* <p>The status of the recommender update. A recommender update can be in one of the following states:</p>
|
|
3089
|
+
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
3101
3090
|
* @public
|
|
3102
3091
|
*/
|
|
3103
3092
|
status?: string;
|
|
@@ -3275,6 +3264,55 @@ export interface AutoMLResult {
|
|
|
3275
3264
|
*/
|
|
3276
3265
|
bestRecipeArn?: string;
|
|
3277
3266
|
}
|
|
3267
|
+
/**
|
|
3268
|
+
* <p>The configuration details of the solution update.</p>
|
|
3269
|
+
* @public
|
|
3270
|
+
*/
|
|
3271
|
+
export interface SolutionUpdateConfig {
|
|
3272
|
+
/**
|
|
3273
|
+
* <p>The automatic training configuration to use when <code>performAutoTraining</code> is true.</p>
|
|
3274
|
+
* @public
|
|
3275
|
+
*/
|
|
3276
|
+
autoTrainingConfig?: AutoTrainingConfig;
|
|
3277
|
+
}
|
|
3278
|
+
/**
|
|
3279
|
+
* <p>Provides a summary of the properties of a solution update. For a complete listing, call the
|
|
3280
|
+
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolution.html">DescribeSolution</a> API.</p>
|
|
3281
|
+
* @public
|
|
3282
|
+
*/
|
|
3283
|
+
export interface SolutionUpdateSummary {
|
|
3284
|
+
/**
|
|
3285
|
+
* <p>The configuration details of the solution.</p>
|
|
3286
|
+
* @public
|
|
3287
|
+
*/
|
|
3288
|
+
solutionUpdateConfig?: SolutionUpdateConfig;
|
|
3289
|
+
/**
|
|
3290
|
+
* <p>The status of the solution update. A solution update can be in one of the following states:</p>
|
|
3291
|
+
* <p>CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED</p>
|
|
3292
|
+
* @public
|
|
3293
|
+
*/
|
|
3294
|
+
status?: string;
|
|
3295
|
+
/**
|
|
3296
|
+
* <p>Whether the solution automatically creates solution versions.</p>
|
|
3297
|
+
* @public
|
|
3298
|
+
*/
|
|
3299
|
+
performAutoTraining?: boolean;
|
|
3300
|
+
/**
|
|
3301
|
+
* <p>The date and time (in Unix format) that the solution update was created.</p>
|
|
3302
|
+
* @public
|
|
3303
|
+
*/
|
|
3304
|
+
creationDateTime?: Date;
|
|
3305
|
+
/**
|
|
3306
|
+
* <p>The date and time (in Unix time) that the solution update was last updated.</p>
|
|
3307
|
+
* @public
|
|
3308
|
+
*/
|
|
3309
|
+
lastUpdatedDateTime?: Date;
|
|
3310
|
+
/**
|
|
3311
|
+
* <p>If a solution update fails, the reason behind the failure.</p>
|
|
3312
|
+
* @public
|
|
3313
|
+
*/
|
|
3314
|
+
failureReason?: string;
|
|
3315
|
+
}
|
|
3278
3316
|
/**
|
|
3279
3317
|
* @public
|
|
3280
3318
|
* @enum
|
|
@@ -3342,8 +3380,10 @@ export interface SolutionVersionSummary {
|
|
|
3342
3380
|
}
|
|
3343
3381
|
/**
|
|
3344
3382
|
* <important>
|
|
3345
|
-
* <p>
|
|
3346
|
-
* your solution is active.
|
|
3383
|
+
* <p>By default, all new solutions use automatic training. With automatic training, you incur training costs while
|
|
3384
|
+
* your solution is active. To avoid unnecessary costs, when you are finished you can
|
|
3385
|
+
* <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_UpdateSolution.html">update the solution</a> to turn off automatic training.
|
|
3386
|
+
* For information about training
|
|
3347
3387
|
* costs, see <a href="https://aws.amazon.com/personalize/pricing/">Amazon Personalize pricing</a>.</p>
|
|
3348
3388
|
* </important>
|
|
3349
3389
|
* <p>An object that provides information about a solution. A solution includes the custom recipe, customized parameters, and
|
|
@@ -3445,6 +3485,11 @@ export interface Solution {
|
|
|
3445
3485
|
* @public
|
|
3446
3486
|
*/
|
|
3447
3487
|
latestSolutionVersion?: SolutionVersionSummary;
|
|
3488
|
+
/**
|
|
3489
|
+
* <p>Provides a summary of the latest updates to the solution.</p>
|
|
3490
|
+
* @public
|
|
3491
|
+
*/
|
|
3492
|
+
latestSolutionUpdate?: SolutionUpdateSummary;
|
|
3448
3493
|
}
|
|
3449
3494
|
/**
|
|
3450
3495
|
* @public
|
|
@@ -5255,6 +5300,49 @@ export interface UpdateRecommenderResponse {
|
|
|
5255
5300
|
*/
|
|
5256
5301
|
recommenderArn?: string;
|
|
5257
5302
|
}
|
|
5303
|
+
/**
|
|
5304
|
+
* @public
|
|
5305
|
+
*/
|
|
5306
|
+
export interface UpdateSolutionRequest {
|
|
5307
|
+
/**
|
|
5308
|
+
* <p>The Amazon Resource Name (ARN) of the solution to update.</p>
|
|
5309
|
+
* @public
|
|
5310
|
+
*/
|
|
5311
|
+
solutionArn: string | undefined;
|
|
5312
|
+
/**
|
|
5313
|
+
* <p>Whether the solution uses automatic training to create new solution versions (trained models). You can change the training
|
|
5314
|
+
* frequency by specifying a <code>schedulingExpression</code> in the <code>AutoTrainingConfig</code> as part of solution
|
|
5315
|
+
* configuration. </p>
|
|
5316
|
+
* <p>
|
|
5317
|
+
* If you turn on automatic training, the first automatic training starts within one hour after the solution update
|
|
5318
|
+
* completes. If you manually create a solution version within the hour, the solution skips the first automatic training.
|
|
5319
|
+
* For more information about automatic training,
|
|
5320
|
+
* see <a href="https://docs.aws.amazon.com/personalize/latest/dg/solution-config-auto-training.html">Configuring automatic training</a>.
|
|
5321
|
+
* </p>
|
|
5322
|
+
* <p>
|
|
5323
|
+
* After training starts, you can
|
|
5324
|
+
* get the solution version's Amazon Resource Name (ARN) with the <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_ListSolutionVersions.html">ListSolutionVersions</a> API operation.
|
|
5325
|
+
* To get its status, use the <a href="https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html">DescribeSolutionVersion</a>.
|
|
5326
|
+
* </p>
|
|
5327
|
+
* @public
|
|
5328
|
+
*/
|
|
5329
|
+
performAutoTraining?: boolean;
|
|
5330
|
+
/**
|
|
5331
|
+
* <p>The new configuration details of the solution.</p>
|
|
5332
|
+
* @public
|
|
5333
|
+
*/
|
|
5334
|
+
solutionUpdateConfig?: SolutionUpdateConfig;
|
|
5335
|
+
}
|
|
5336
|
+
/**
|
|
5337
|
+
* @public
|
|
5338
|
+
*/
|
|
5339
|
+
export interface UpdateSolutionResponse {
|
|
5340
|
+
/**
|
|
5341
|
+
* <p>The same solution Amazon Resource Name (ARN) as given in the request.</p>
|
|
5342
|
+
* @public
|
|
5343
|
+
*/
|
|
5344
|
+
solutionArn?: string;
|
|
5345
|
+
}
|
|
5258
5346
|
/**
|
|
5259
5347
|
* @internal
|
|
5260
5348
|
*/
|
|
@@ -70,6 +70,7 @@ import { UpdateCampaignCommandInput, UpdateCampaignCommandOutput } from "../comm
|
|
|
70
70
|
import { UpdateDatasetCommandInput, UpdateDatasetCommandOutput } from "../commands/UpdateDatasetCommand";
|
|
71
71
|
import { UpdateMetricAttributionCommandInput, UpdateMetricAttributionCommandOutput } from "../commands/UpdateMetricAttributionCommand";
|
|
72
72
|
import { UpdateRecommenderCommandInput, UpdateRecommenderCommandOutput } from "../commands/UpdateRecommenderCommand";
|
|
73
|
+
import { UpdateSolutionCommandInput, UpdateSolutionCommandOutput } from "../commands/UpdateSolutionCommand";
|
|
73
74
|
/**
|
|
74
75
|
* serializeAws_json1_1CreateBatchInferenceJobCommand
|
|
75
76
|
*/
|
|
@@ -350,6 +351,10 @@ export declare const se_UpdateMetricAttributionCommand: (input: UpdateMetricAttr
|
|
|
350
351
|
* serializeAws_json1_1UpdateRecommenderCommand
|
|
351
352
|
*/
|
|
352
353
|
export declare const se_UpdateRecommenderCommand: (input: UpdateRecommenderCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
354
|
+
/**
|
|
355
|
+
* serializeAws_json1_1UpdateSolutionCommand
|
|
356
|
+
*/
|
|
357
|
+
export declare const se_UpdateSolutionCommand: (input: UpdateSolutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
353
358
|
/**
|
|
354
359
|
* deserializeAws_json1_1CreateBatchInferenceJobCommand
|
|
355
360
|
*/
|
|
@@ -630,3 +635,7 @@ export declare const de_UpdateMetricAttributionCommand: (output: __HttpResponse,
|
|
|
630
635
|
* deserializeAws_json1_1UpdateRecommenderCommand
|
|
631
636
|
*/
|
|
632
637
|
export declare const de_UpdateRecommenderCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateRecommenderCommandOutput>;
|
|
638
|
+
/**
|
|
639
|
+
* deserializeAws_json1_1UpdateSolutionCommand
|
|
640
|
+
*/
|
|
641
|
+
export declare const de_UpdateSolutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateSolutionCommandOutput>;
|
|
@@ -279,6 +279,10 @@ import {
|
|
|
279
279
|
UpdateRecommenderCommandInput,
|
|
280
280
|
UpdateRecommenderCommandOutput,
|
|
281
281
|
} from "./commands/UpdateRecommenderCommand";
|
|
282
|
+
import {
|
|
283
|
+
UpdateSolutionCommandInput,
|
|
284
|
+
UpdateSolutionCommandOutput,
|
|
285
|
+
} from "./commands/UpdateSolutionCommand";
|
|
282
286
|
import { PersonalizeClient } from "./PersonalizeClient";
|
|
283
287
|
export interface Personalize {
|
|
284
288
|
createBatchInferenceJob(
|
|
@@ -1209,6 +1213,19 @@ export interface Personalize {
|
|
|
1209
1213
|
options: __HttpHandlerOptions,
|
|
1210
1214
|
cb: (err: any, data?: UpdateRecommenderCommandOutput) => void
|
|
1211
1215
|
): void;
|
|
1216
|
+
updateSolution(
|
|
1217
|
+
args: UpdateSolutionCommandInput,
|
|
1218
|
+
options?: __HttpHandlerOptions
|
|
1219
|
+
): Promise<UpdateSolutionCommandOutput>;
|
|
1220
|
+
updateSolution(
|
|
1221
|
+
args: UpdateSolutionCommandInput,
|
|
1222
|
+
cb: (err: any, data?: UpdateSolutionCommandOutput) => void
|
|
1223
|
+
): void;
|
|
1224
|
+
updateSolution(
|
|
1225
|
+
args: UpdateSolutionCommandInput,
|
|
1226
|
+
options: __HttpHandlerOptions,
|
|
1227
|
+
cb: (err: any, data?: UpdateSolutionCommandOutput) => void
|
|
1228
|
+
): void;
|
|
1212
1229
|
}
|
|
1213
1230
|
export declare class Personalize
|
|
1214
1231
|
extends PersonalizeClient
|
|
@@ -325,6 +325,10 @@ import {
|
|
|
325
325
|
UpdateRecommenderCommandInput,
|
|
326
326
|
UpdateRecommenderCommandOutput,
|
|
327
327
|
} from "./commands/UpdateRecommenderCommand";
|
|
328
|
+
import {
|
|
329
|
+
UpdateSolutionCommandInput,
|
|
330
|
+
UpdateSolutionCommandOutput,
|
|
331
|
+
} from "./commands/UpdateSolutionCommand";
|
|
328
332
|
import {
|
|
329
333
|
ClientInputEndpointParameters,
|
|
330
334
|
ClientResolvedEndpointParameters,
|
|
@@ -402,7 +406,8 @@ export type ServiceInputTypes =
|
|
|
402
406
|
| UpdateCampaignCommandInput
|
|
403
407
|
| UpdateDatasetCommandInput
|
|
404
408
|
| UpdateMetricAttributionCommandInput
|
|
405
|
-
| UpdateRecommenderCommandInput
|
|
409
|
+
| UpdateRecommenderCommandInput
|
|
410
|
+
| UpdateSolutionCommandInput;
|
|
406
411
|
export type ServiceOutputTypes =
|
|
407
412
|
| CreateBatchInferenceJobCommandOutput
|
|
408
413
|
| CreateBatchSegmentJobCommandOutput
|
|
@@ -473,7 +478,8 @@ export type ServiceOutputTypes =
|
|
|
473
478
|
| UpdateCampaignCommandOutput
|
|
474
479
|
| UpdateDatasetCommandOutput
|
|
475
480
|
| UpdateMetricAttributionCommandOutput
|
|
476
|
-
| UpdateRecommenderCommandOutput
|
|
481
|
+
| UpdateRecommenderCommandOutput
|
|
482
|
+
| UpdateSolutionCommandOutput;
|
|
477
483
|
export interface ClientDefaults
|
|
478
484
|
extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
479
485
|
requestHandler?: __HttpHandlerUserInput;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import {
|
|
4
|
+
UpdateSolutionRequest,
|
|
5
|
+
UpdateSolutionResponse,
|
|
6
|
+
} from "../models/models_0";
|
|
7
|
+
import {
|
|
8
|
+
PersonalizeClientResolvedConfig,
|
|
9
|
+
ServiceInputTypes,
|
|
10
|
+
ServiceOutputTypes,
|
|
11
|
+
} from "../PersonalizeClient";
|
|
12
|
+
export { __MetadataBearer };
|
|
13
|
+
export { $Command };
|
|
14
|
+
export interface UpdateSolutionCommandInput extends UpdateSolutionRequest {}
|
|
15
|
+
export interface UpdateSolutionCommandOutput
|
|
16
|
+
extends UpdateSolutionResponse,
|
|
17
|
+
__MetadataBearer {}
|
|
18
|
+
declare const UpdateSolutionCommand_base: {
|
|
19
|
+
new (
|
|
20
|
+
input: UpdateSolutionCommandInput
|
|
21
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
22
|
+
UpdateSolutionCommandInput,
|
|
23
|
+
UpdateSolutionCommandOutput,
|
|
24
|
+
PersonalizeClientResolvedConfig,
|
|
25
|
+
ServiceInputTypes,
|
|
26
|
+
ServiceOutputTypes
|
|
27
|
+
>;
|
|
28
|
+
new (
|
|
29
|
+
__0_0: UpdateSolutionCommandInput
|
|
30
|
+
): import("@smithy/smithy-client").CommandImpl<
|
|
31
|
+
UpdateSolutionCommandInput,
|
|
32
|
+
UpdateSolutionCommandOutput,
|
|
33
|
+
PersonalizeClientResolvedConfig,
|
|
34
|
+
ServiceInputTypes,
|
|
35
|
+
ServiceOutputTypes
|
|
36
|
+
>;
|
|
37
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
38
|
+
};
|
|
39
|
+
export declare class UpdateSolutionCommand extends UpdateSolutionCommand_base {}
|
|
@@ -714,6 +714,17 @@ export interface DescribeSolutionRequest {
|
|
|
714
714
|
export interface AutoMLResult {
|
|
715
715
|
bestRecipeArn?: string;
|
|
716
716
|
}
|
|
717
|
+
export interface SolutionUpdateConfig {
|
|
718
|
+
autoTrainingConfig?: AutoTrainingConfig;
|
|
719
|
+
}
|
|
720
|
+
export interface SolutionUpdateSummary {
|
|
721
|
+
solutionUpdateConfig?: SolutionUpdateConfig;
|
|
722
|
+
status?: string;
|
|
723
|
+
performAutoTraining?: boolean;
|
|
724
|
+
creationDateTime?: Date;
|
|
725
|
+
lastUpdatedDateTime?: Date;
|
|
726
|
+
failureReason?: string;
|
|
727
|
+
}
|
|
717
728
|
export declare const TrainingType: {
|
|
718
729
|
readonly AUTOMATIC: "AUTOMATIC";
|
|
719
730
|
readonly MANUAL: "MANUAL";
|
|
@@ -743,6 +754,7 @@ export interface Solution {
|
|
|
743
754
|
creationDateTime?: Date;
|
|
744
755
|
lastUpdatedDateTime?: Date;
|
|
745
756
|
latestSolutionVersion?: SolutionVersionSummary;
|
|
757
|
+
latestSolutionUpdate?: SolutionUpdateSummary;
|
|
746
758
|
}
|
|
747
759
|
export interface DescribeSolutionResponse {
|
|
748
760
|
solution?: Solution;
|
|
@@ -1143,6 +1155,14 @@ export interface UpdateRecommenderRequest {
|
|
|
1143
1155
|
export interface UpdateRecommenderResponse {
|
|
1144
1156
|
recommenderArn?: string;
|
|
1145
1157
|
}
|
|
1158
|
+
export interface UpdateSolutionRequest {
|
|
1159
|
+
solutionArn: string | undefined;
|
|
1160
|
+
performAutoTraining?: boolean;
|
|
1161
|
+
solutionUpdateConfig?: SolutionUpdateConfig;
|
|
1162
|
+
}
|
|
1163
|
+
export interface UpdateSolutionResponse {
|
|
1164
|
+
solutionArn?: string;
|
|
1165
|
+
}
|
|
1146
1166
|
export declare const CreateFilterRequestFilterSensitiveLog: (
|
|
1147
1167
|
obj: CreateFilterRequest
|
|
1148
1168
|
) => any;
|
|
@@ -283,6 +283,10 @@ import {
|
|
|
283
283
|
UpdateRecommenderCommandInput,
|
|
284
284
|
UpdateRecommenderCommandOutput,
|
|
285
285
|
} from "../commands/UpdateRecommenderCommand";
|
|
286
|
+
import {
|
|
287
|
+
UpdateSolutionCommandInput,
|
|
288
|
+
UpdateSolutionCommandOutput,
|
|
289
|
+
} from "../commands/UpdateSolutionCommand";
|
|
286
290
|
export declare const se_CreateBatchInferenceJobCommand: (
|
|
287
291
|
input: CreateBatchInferenceJobCommandInput,
|
|
288
292
|
context: __SerdeContext
|
|
@@ -563,6 +567,10 @@ export declare const se_UpdateRecommenderCommand: (
|
|
|
563
567
|
input: UpdateRecommenderCommandInput,
|
|
564
568
|
context: __SerdeContext
|
|
565
569
|
) => Promise<__HttpRequest>;
|
|
570
|
+
export declare const se_UpdateSolutionCommand: (
|
|
571
|
+
input: UpdateSolutionCommandInput,
|
|
572
|
+
context: __SerdeContext
|
|
573
|
+
) => Promise<__HttpRequest>;
|
|
566
574
|
export declare const de_CreateBatchInferenceJobCommand: (
|
|
567
575
|
output: __HttpResponse,
|
|
568
576
|
context: __SerdeContext
|
|
@@ -843,3 +851,7 @@ export declare const de_UpdateRecommenderCommand: (
|
|
|
843
851
|
output: __HttpResponse,
|
|
844
852
|
context: __SerdeContext
|
|
845
853
|
) => Promise<UpdateRecommenderCommandOutput>;
|
|
854
|
+
export declare const de_UpdateSolutionCommand: (
|
|
855
|
+
output: __HttpResponse,
|
|
856
|
+
context: __SerdeContext
|
|
857
|
+
) => Promise<UpdateSolutionCommandOutput>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-personalize",
|
|
3
3
|
"description": "AWS SDK for JavaScript Personalize Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.642.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-personalize",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.637.0",
|
|
24
|
+
"@aws-sdk/client-sts": "3.637.0",
|
|
25
25
|
"@aws-sdk/core": "3.635.0",
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.637.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.620.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.609.0",
|
|
29
29
|
"@aws-sdk/middleware-recursion-detection": "3.620.0",
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.637.0",
|
|
31
31
|
"@aws-sdk/region-config-resolver": "3.614.0",
|
|
32
32
|
"@aws-sdk/types": "3.609.0",
|
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
+
"@aws-sdk/util-endpoints": "3.637.0",
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.609.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.614.0",
|
|
36
36
|
"@smithy/config-resolver": "^3.0.5",
|