@aws-sdk/client-personalize 3.42.0 → 3.47.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/CHANGELOG.md +50 -0
- package/dist-cjs/Personalize.js +120 -0
- package/dist-cjs/commands/CreateBatchSegmentJobCommand.js +36 -0
- package/dist-cjs/commands/CreateRecommenderCommand.js +36 -0
- package/dist-cjs/commands/DeleteRecommenderCommand.js +36 -0
- package/dist-cjs/commands/DescribeBatchSegmentJobCommand.js +36 -0
- package/dist-cjs/commands/DescribeRecommenderCommand.js +36 -0
- package/dist-cjs/commands/ListBatchSegmentJobsCommand.js +36 -0
- package/dist-cjs/commands/ListRecommendersCommand.js +36 -0
- package/dist-cjs/commands/UpdateRecommenderCommand.js +36 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +139 -31
- package/dist-cjs/pagination/ListBatchSegmentJobsPaginator.js +35 -0
- package/dist-cjs/pagination/ListRecommendersPaginator.js +35 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_1.js +891 -28
- package/dist-cjs/runtimeConfig.browser.js +7 -2
- package/dist-cjs/runtimeConfig.js +9 -3
- package/dist-es/Personalize.js +120 -0
- package/dist-es/commands/CreateBatchSegmentJobCommand.js +39 -0
- package/dist-es/commands/CreateRecommenderCommand.js +39 -0
- package/dist-es/commands/DeleteRecommenderCommand.js +39 -0
- package/dist-es/commands/DescribeBatchSegmentJobCommand.js +39 -0
- package/dist-es/commands/DescribeRecommenderCommand.js +39 -0
- package/dist-es/commands/ListBatchSegmentJobsCommand.js +39 -0
- package/dist-es/commands/ListRecommendersCommand.js +39 -0
- package/dist-es/commands/UpdateRecommenderCommand.js +39 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +97 -24
- package/dist-es/pagination/ListBatchSegmentJobsPaginator.js +74 -0
- package/dist-es/pagination/ListRecommendersPaginator.js +74 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_1.js +944 -38
- package/dist-es/runtimeConfig.browser.js +12 -3
- package/dist-es/runtimeConfig.js +13 -6
- package/dist-types/Personalize.d.ts +137 -8
- package/dist-types/PersonalizeClient.d.ts +15 -3
- package/dist-types/commands/CreateBatchSegmentJobCommand.d.ts +36 -0
- package/dist-types/commands/CreateCampaignCommand.d.ts +1 -1
- package/dist-types/commands/CreateDatasetGroupCommand.d.ts +8 -5
- package/dist-types/commands/CreateRecommenderCommand.d.ts +84 -0
- package/dist-types/commands/CreateSchemaCommand.d.ts +2 -1
- package/dist-types/commands/CreateSolutionVersionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteRecommenderCommand.d.ts +36 -0
- package/dist-types/commands/DescribeBatchSegmentJobCommand.d.ts +37 -0
- package/dist-types/commands/DescribeRecommenderCommand.d.ts +47 -0
- package/dist-types/commands/ListBatchSegmentJobsCommand.d.ts +36 -0
- package/dist-types/commands/ListRecommendersCommand.d.ts +38 -0
- package/dist-types/commands/UpdateRecommenderCommand.d.ts +35 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/models/models_0.d.ts +630 -35
- package/dist-types/pagination/ListBatchSegmentJobsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListRecommendersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/runtimeConfig.d.ts +4 -3
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/ts3.4/Personalize.d.ts +40 -0
- package/dist-types/ts3.4/PersonalizeClient.d.ts +13 -3
- package/dist-types/ts3.4/commands/CreateBatchSegmentJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateRecommenderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRecommenderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeBatchSegmentJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeRecommenderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBatchSegmentJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecommendersCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateRecommenderCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/models/models_0.d.ts +320 -22
- package/dist-types/ts3.4/pagination/ListBatchSegmentJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRecommendersPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +24 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +3 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -0
- package/package.json +38 -45
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.serializeAws_json1_1ListSchemasCommand = exports.serializeAws_json1_1ListRecommendersCommand = exports.serializeAws_json1_1ListRecipesCommand = exports.serializeAws_json1_1ListFiltersCommand = exports.serializeAws_json1_1ListEventTrackersCommand = exports.serializeAws_json1_1ListDatasetsCommand = exports.serializeAws_json1_1ListDatasetImportJobsCommand = exports.serializeAws_json1_1ListDatasetGroupsCommand = exports.serializeAws_json1_1ListDatasetExportJobsCommand = exports.serializeAws_json1_1ListCampaignsCommand = exports.serializeAws_json1_1ListBatchSegmentJobsCommand = exports.serializeAws_json1_1ListBatchInferenceJobsCommand = exports.serializeAws_json1_1GetSolutionMetricsCommand = exports.serializeAws_json1_1DescribeSolutionVersionCommand = exports.serializeAws_json1_1DescribeSolutionCommand = exports.serializeAws_json1_1DescribeSchemaCommand = exports.serializeAws_json1_1DescribeRecommenderCommand = exports.serializeAws_json1_1DescribeRecipeCommand = exports.serializeAws_json1_1DescribeFilterCommand = exports.serializeAws_json1_1DescribeFeatureTransformationCommand = exports.serializeAws_json1_1DescribeEventTrackerCommand = exports.serializeAws_json1_1DescribeDatasetImportJobCommand = exports.serializeAws_json1_1DescribeDatasetGroupCommand = exports.serializeAws_json1_1DescribeDatasetExportJobCommand = exports.serializeAws_json1_1DescribeDatasetCommand = exports.serializeAws_json1_1DescribeCampaignCommand = exports.serializeAws_json1_1DescribeBatchSegmentJobCommand = exports.serializeAws_json1_1DescribeBatchInferenceJobCommand = exports.serializeAws_json1_1DescribeAlgorithmCommand = exports.serializeAws_json1_1DeleteSolutionCommand = exports.serializeAws_json1_1DeleteSchemaCommand = exports.serializeAws_json1_1DeleteRecommenderCommand = exports.serializeAws_json1_1DeleteFilterCommand = exports.serializeAws_json1_1DeleteEventTrackerCommand = exports.serializeAws_json1_1DeleteDatasetGroupCommand = exports.serializeAws_json1_1DeleteDatasetCommand = exports.serializeAws_json1_1DeleteCampaignCommand = exports.serializeAws_json1_1CreateSolutionVersionCommand = exports.serializeAws_json1_1CreateSolutionCommand = exports.serializeAws_json1_1CreateSchemaCommand = exports.serializeAws_json1_1CreateRecommenderCommand = exports.serializeAws_json1_1CreateFilterCommand = exports.serializeAws_json1_1CreateEventTrackerCommand = exports.serializeAws_json1_1CreateDatasetImportJobCommand = exports.serializeAws_json1_1CreateDatasetGroupCommand = exports.serializeAws_json1_1CreateDatasetExportJobCommand = exports.serializeAws_json1_1CreateDatasetCommand = exports.serializeAws_json1_1CreateCampaignCommand = exports.serializeAws_json1_1CreateBatchSegmentJobCommand = exports.serializeAws_json1_1CreateBatchInferenceJobCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1ListDatasetsCommand = exports.deserializeAws_json1_1ListDatasetImportJobsCommand = exports.deserializeAws_json1_1ListDatasetGroupsCommand = exports.deserializeAws_json1_1ListDatasetExportJobsCommand = exports.deserializeAws_json1_1ListCampaignsCommand = exports.deserializeAws_json1_1ListBatchSegmentJobsCommand = exports.deserializeAws_json1_1ListBatchInferenceJobsCommand = exports.deserializeAws_json1_1GetSolutionMetricsCommand = exports.deserializeAws_json1_1DescribeSolutionVersionCommand = exports.deserializeAws_json1_1DescribeSolutionCommand = exports.deserializeAws_json1_1DescribeSchemaCommand = exports.deserializeAws_json1_1DescribeRecommenderCommand = exports.deserializeAws_json1_1DescribeRecipeCommand = exports.deserializeAws_json1_1DescribeFilterCommand = exports.deserializeAws_json1_1DescribeFeatureTransformationCommand = exports.deserializeAws_json1_1DescribeEventTrackerCommand = exports.deserializeAws_json1_1DescribeDatasetImportJobCommand = exports.deserializeAws_json1_1DescribeDatasetGroupCommand = exports.deserializeAws_json1_1DescribeDatasetExportJobCommand = exports.deserializeAws_json1_1DescribeDatasetCommand = exports.deserializeAws_json1_1DescribeCampaignCommand = exports.deserializeAws_json1_1DescribeBatchSegmentJobCommand = exports.deserializeAws_json1_1DescribeBatchInferenceJobCommand = exports.deserializeAws_json1_1DescribeAlgorithmCommand = exports.deserializeAws_json1_1DeleteSolutionCommand = exports.deserializeAws_json1_1DeleteSchemaCommand = exports.deserializeAws_json1_1DeleteRecommenderCommand = exports.deserializeAws_json1_1DeleteFilterCommand = exports.deserializeAws_json1_1DeleteEventTrackerCommand = exports.deserializeAws_json1_1DeleteDatasetGroupCommand = exports.deserializeAws_json1_1DeleteDatasetCommand = exports.deserializeAws_json1_1DeleteCampaignCommand = exports.deserializeAws_json1_1CreateSolutionVersionCommand = exports.deserializeAws_json1_1CreateSolutionCommand = exports.deserializeAws_json1_1CreateSchemaCommand = exports.deserializeAws_json1_1CreateRecommenderCommand = exports.deserializeAws_json1_1CreateFilterCommand = exports.deserializeAws_json1_1CreateEventTrackerCommand = exports.deserializeAws_json1_1CreateDatasetImportJobCommand = exports.deserializeAws_json1_1CreateDatasetGroupCommand = exports.deserializeAws_json1_1CreateDatasetExportJobCommand = exports.deserializeAws_json1_1CreateDatasetCommand = exports.deserializeAws_json1_1CreateCampaignCommand = exports.deserializeAws_json1_1CreateBatchSegmentJobCommand = exports.deserializeAws_json1_1CreateBatchInferenceJobCommand = exports.serializeAws_json1_1UpdateRecommenderCommand = exports.serializeAws_json1_1UpdateCampaignCommand = exports.serializeAws_json1_1StopSolutionVersionCreationCommand = exports.serializeAws_json1_1ListSolutionVersionsCommand = exports.serializeAws_json1_1ListSolutionsCommand = void 0;
|
|
5
|
+
exports.deserializeAws_json1_1UpdateRecommenderCommand = exports.deserializeAws_json1_1UpdateCampaignCommand = exports.deserializeAws_json1_1StopSolutionVersionCreationCommand = exports.deserializeAws_json1_1ListSolutionVersionsCommand = exports.deserializeAws_json1_1ListSolutionsCommand = exports.deserializeAws_json1_1ListSchemasCommand = exports.deserializeAws_json1_1ListRecommendersCommand = exports.deserializeAws_json1_1ListRecipesCommand = exports.deserializeAws_json1_1ListFiltersCommand = exports.deserializeAws_json1_1ListEventTrackersCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
8
|
const serializeAws_json1_1CreateBatchInferenceJobCommand = async (input, context) => {
|
|
@@ -14,6 +15,16 @@ const serializeAws_json1_1CreateBatchInferenceJobCommand = async (input, context
|
|
|
14
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
15
16
|
};
|
|
16
17
|
exports.serializeAws_json1_1CreateBatchInferenceJobCommand = serializeAws_json1_1CreateBatchInferenceJobCommand;
|
|
18
|
+
const serializeAws_json1_1CreateBatchSegmentJobCommand = async (input, context) => {
|
|
19
|
+
const headers = {
|
|
20
|
+
"content-type": "application/x-amz-json-1.1",
|
|
21
|
+
"x-amz-target": "AmazonPersonalize.CreateBatchSegmentJob",
|
|
22
|
+
};
|
|
23
|
+
let body;
|
|
24
|
+
body = JSON.stringify(serializeAws_json1_1CreateBatchSegmentJobRequest(input, context));
|
|
25
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
26
|
+
};
|
|
27
|
+
exports.serializeAws_json1_1CreateBatchSegmentJobCommand = serializeAws_json1_1CreateBatchSegmentJobCommand;
|
|
17
28
|
const serializeAws_json1_1CreateCampaignCommand = async (input, context) => {
|
|
18
29
|
const headers = {
|
|
19
30
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -84,6 +95,16 @@ const serializeAws_json1_1CreateFilterCommand = async (input, context) => {
|
|
|
84
95
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
96
|
};
|
|
86
97
|
exports.serializeAws_json1_1CreateFilterCommand = serializeAws_json1_1CreateFilterCommand;
|
|
98
|
+
const serializeAws_json1_1CreateRecommenderCommand = async (input, context) => {
|
|
99
|
+
const headers = {
|
|
100
|
+
"content-type": "application/x-amz-json-1.1",
|
|
101
|
+
"x-amz-target": "AmazonPersonalize.CreateRecommender",
|
|
102
|
+
};
|
|
103
|
+
let body;
|
|
104
|
+
body = JSON.stringify(serializeAws_json1_1CreateRecommenderRequest(input, context));
|
|
105
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
|
+
};
|
|
107
|
+
exports.serializeAws_json1_1CreateRecommenderCommand = serializeAws_json1_1CreateRecommenderCommand;
|
|
87
108
|
const serializeAws_json1_1CreateSchemaCommand = async (input, context) => {
|
|
88
109
|
const headers = {
|
|
89
110
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -164,6 +185,16 @@ const serializeAws_json1_1DeleteFilterCommand = async (input, context) => {
|
|
|
164
185
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
165
186
|
};
|
|
166
187
|
exports.serializeAws_json1_1DeleteFilterCommand = serializeAws_json1_1DeleteFilterCommand;
|
|
188
|
+
const serializeAws_json1_1DeleteRecommenderCommand = async (input, context) => {
|
|
189
|
+
const headers = {
|
|
190
|
+
"content-type": "application/x-amz-json-1.1",
|
|
191
|
+
"x-amz-target": "AmazonPersonalize.DeleteRecommender",
|
|
192
|
+
};
|
|
193
|
+
let body;
|
|
194
|
+
body = JSON.stringify(serializeAws_json1_1DeleteRecommenderRequest(input, context));
|
|
195
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
196
|
+
};
|
|
197
|
+
exports.serializeAws_json1_1DeleteRecommenderCommand = serializeAws_json1_1DeleteRecommenderCommand;
|
|
167
198
|
const serializeAws_json1_1DeleteSchemaCommand = async (input, context) => {
|
|
168
199
|
const headers = {
|
|
169
200
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -204,6 +235,16 @@ const serializeAws_json1_1DescribeBatchInferenceJobCommand = async (input, conte
|
|
|
204
235
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
205
236
|
};
|
|
206
237
|
exports.serializeAws_json1_1DescribeBatchInferenceJobCommand = serializeAws_json1_1DescribeBatchInferenceJobCommand;
|
|
238
|
+
const serializeAws_json1_1DescribeBatchSegmentJobCommand = async (input, context) => {
|
|
239
|
+
const headers = {
|
|
240
|
+
"content-type": "application/x-amz-json-1.1",
|
|
241
|
+
"x-amz-target": "AmazonPersonalize.DescribeBatchSegmentJob",
|
|
242
|
+
};
|
|
243
|
+
let body;
|
|
244
|
+
body = JSON.stringify(serializeAws_json1_1DescribeBatchSegmentJobRequest(input, context));
|
|
245
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
246
|
+
};
|
|
247
|
+
exports.serializeAws_json1_1DescribeBatchSegmentJobCommand = serializeAws_json1_1DescribeBatchSegmentJobCommand;
|
|
207
248
|
const serializeAws_json1_1DescribeCampaignCommand = async (input, context) => {
|
|
208
249
|
const headers = {
|
|
209
250
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -294,6 +335,16 @@ const serializeAws_json1_1DescribeRecipeCommand = async (input, context) => {
|
|
|
294
335
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
295
336
|
};
|
|
296
337
|
exports.serializeAws_json1_1DescribeRecipeCommand = serializeAws_json1_1DescribeRecipeCommand;
|
|
338
|
+
const serializeAws_json1_1DescribeRecommenderCommand = async (input, context) => {
|
|
339
|
+
const headers = {
|
|
340
|
+
"content-type": "application/x-amz-json-1.1",
|
|
341
|
+
"x-amz-target": "AmazonPersonalize.DescribeRecommender",
|
|
342
|
+
};
|
|
343
|
+
let body;
|
|
344
|
+
body = JSON.stringify(serializeAws_json1_1DescribeRecommenderRequest(input, context));
|
|
345
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
346
|
+
};
|
|
347
|
+
exports.serializeAws_json1_1DescribeRecommenderCommand = serializeAws_json1_1DescribeRecommenderCommand;
|
|
297
348
|
const serializeAws_json1_1DescribeSchemaCommand = async (input, context) => {
|
|
298
349
|
const headers = {
|
|
299
350
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -344,6 +395,16 @@ const serializeAws_json1_1ListBatchInferenceJobsCommand = async (input, context)
|
|
|
344
395
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
345
396
|
};
|
|
346
397
|
exports.serializeAws_json1_1ListBatchInferenceJobsCommand = serializeAws_json1_1ListBatchInferenceJobsCommand;
|
|
398
|
+
const serializeAws_json1_1ListBatchSegmentJobsCommand = async (input, context) => {
|
|
399
|
+
const headers = {
|
|
400
|
+
"content-type": "application/x-amz-json-1.1",
|
|
401
|
+
"x-amz-target": "AmazonPersonalize.ListBatchSegmentJobs",
|
|
402
|
+
};
|
|
403
|
+
let body;
|
|
404
|
+
body = JSON.stringify(serializeAws_json1_1ListBatchSegmentJobsRequest(input, context));
|
|
405
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
406
|
+
};
|
|
407
|
+
exports.serializeAws_json1_1ListBatchSegmentJobsCommand = serializeAws_json1_1ListBatchSegmentJobsCommand;
|
|
347
408
|
const serializeAws_json1_1ListCampaignsCommand = async (input, context) => {
|
|
348
409
|
const headers = {
|
|
349
410
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -424,6 +485,16 @@ const serializeAws_json1_1ListRecipesCommand = async (input, context) => {
|
|
|
424
485
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
425
486
|
};
|
|
426
487
|
exports.serializeAws_json1_1ListRecipesCommand = serializeAws_json1_1ListRecipesCommand;
|
|
488
|
+
const serializeAws_json1_1ListRecommendersCommand = async (input, context) => {
|
|
489
|
+
const headers = {
|
|
490
|
+
"content-type": "application/x-amz-json-1.1",
|
|
491
|
+
"x-amz-target": "AmazonPersonalize.ListRecommenders",
|
|
492
|
+
};
|
|
493
|
+
let body;
|
|
494
|
+
body = JSON.stringify(serializeAws_json1_1ListRecommendersRequest(input, context));
|
|
495
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
496
|
+
};
|
|
497
|
+
exports.serializeAws_json1_1ListRecommendersCommand = serializeAws_json1_1ListRecommendersCommand;
|
|
427
498
|
const serializeAws_json1_1ListSchemasCommand = async (input, context) => {
|
|
428
499
|
const headers = {
|
|
429
500
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -474,6 +545,16 @@ const serializeAws_json1_1UpdateCampaignCommand = async (input, context) => {
|
|
|
474
545
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
475
546
|
};
|
|
476
547
|
exports.serializeAws_json1_1UpdateCampaignCommand = serializeAws_json1_1UpdateCampaignCommand;
|
|
548
|
+
const serializeAws_json1_1UpdateRecommenderCommand = async (input, context) => {
|
|
549
|
+
const headers = {
|
|
550
|
+
"content-type": "application/x-amz-json-1.1",
|
|
551
|
+
"x-amz-target": "AmazonPersonalize.UpdateRecommender",
|
|
552
|
+
};
|
|
553
|
+
let body;
|
|
554
|
+
body = JSON.stringify(serializeAws_json1_1UpdateRecommenderRequest(input, context));
|
|
555
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
556
|
+
};
|
|
557
|
+
exports.serializeAws_json1_1UpdateRecommenderCommand = serializeAws_json1_1UpdateRecommenderCommand;
|
|
477
558
|
const deserializeAws_json1_1CreateBatchInferenceJobCommand = async (output, context) => {
|
|
478
559
|
if (output.statusCode >= 300) {
|
|
479
560
|
return deserializeAws_json1_1CreateBatchInferenceJobCommandError(output, context);
|
|
@@ -553,6 +634,85 @@ const deserializeAws_json1_1CreateBatchInferenceJobCommandError = async (output,
|
|
|
553
634
|
delete response.Message;
|
|
554
635
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
555
636
|
};
|
|
637
|
+
const deserializeAws_json1_1CreateBatchSegmentJobCommand = async (output, context) => {
|
|
638
|
+
if (output.statusCode >= 300) {
|
|
639
|
+
return deserializeAws_json1_1CreateBatchSegmentJobCommandError(output, context);
|
|
640
|
+
}
|
|
641
|
+
const data = await parseBody(output.body, context);
|
|
642
|
+
let contents = {};
|
|
643
|
+
contents = deserializeAws_json1_1CreateBatchSegmentJobResponse(data, context);
|
|
644
|
+
const response = {
|
|
645
|
+
$metadata: deserializeMetadata(output),
|
|
646
|
+
...contents,
|
|
647
|
+
};
|
|
648
|
+
return Promise.resolve(response);
|
|
649
|
+
};
|
|
650
|
+
exports.deserializeAws_json1_1CreateBatchSegmentJobCommand = deserializeAws_json1_1CreateBatchSegmentJobCommand;
|
|
651
|
+
const deserializeAws_json1_1CreateBatchSegmentJobCommandError = async (output, context) => {
|
|
652
|
+
const parsedOutput = {
|
|
653
|
+
...output,
|
|
654
|
+
body: await parseBody(output.body, context),
|
|
655
|
+
};
|
|
656
|
+
let response;
|
|
657
|
+
let errorCode = "UnknownError";
|
|
658
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
659
|
+
switch (errorCode) {
|
|
660
|
+
case "InvalidInputException":
|
|
661
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
662
|
+
response = {
|
|
663
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
664
|
+
name: errorCode,
|
|
665
|
+
$metadata: deserializeMetadata(output),
|
|
666
|
+
};
|
|
667
|
+
break;
|
|
668
|
+
case "LimitExceededException":
|
|
669
|
+
case "com.amazonaws.personalize#LimitExceededException":
|
|
670
|
+
response = {
|
|
671
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
672
|
+
name: errorCode,
|
|
673
|
+
$metadata: deserializeMetadata(output),
|
|
674
|
+
};
|
|
675
|
+
break;
|
|
676
|
+
case "ResourceAlreadyExistsException":
|
|
677
|
+
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
678
|
+
response = {
|
|
679
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
680
|
+
name: errorCode,
|
|
681
|
+
$metadata: deserializeMetadata(output),
|
|
682
|
+
};
|
|
683
|
+
break;
|
|
684
|
+
case "ResourceInUseException":
|
|
685
|
+
case "com.amazonaws.personalize#ResourceInUseException":
|
|
686
|
+
response = {
|
|
687
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
688
|
+
name: errorCode,
|
|
689
|
+
$metadata: deserializeMetadata(output),
|
|
690
|
+
};
|
|
691
|
+
break;
|
|
692
|
+
case "ResourceNotFoundException":
|
|
693
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
694
|
+
response = {
|
|
695
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
696
|
+
name: errorCode,
|
|
697
|
+
$metadata: deserializeMetadata(output),
|
|
698
|
+
};
|
|
699
|
+
break;
|
|
700
|
+
default:
|
|
701
|
+
const parsedBody = parsedOutput.body;
|
|
702
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
703
|
+
response = {
|
|
704
|
+
...parsedBody,
|
|
705
|
+
name: `${errorCode}`,
|
|
706
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
707
|
+
$fault: "client",
|
|
708
|
+
$metadata: deserializeMetadata(output),
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
const message = response.message || response.Message || errorCode;
|
|
712
|
+
response.message = message;
|
|
713
|
+
delete response.Message;
|
|
714
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
715
|
+
};
|
|
556
716
|
const deserializeAws_json1_1CreateCampaignCommand = async (output, context) => {
|
|
557
717
|
if (output.statusCode >= 300) {
|
|
558
718
|
return deserializeAws_json1_1CreateCampaignCommandError(output, context);
|
|
@@ -1082,6 +1242,77 @@ const deserializeAws_json1_1CreateFilterCommandError = async (output, context) =
|
|
|
1082
1242
|
delete response.Message;
|
|
1083
1243
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1084
1244
|
};
|
|
1245
|
+
const deserializeAws_json1_1CreateRecommenderCommand = async (output, context) => {
|
|
1246
|
+
if (output.statusCode >= 300) {
|
|
1247
|
+
return deserializeAws_json1_1CreateRecommenderCommandError(output, context);
|
|
1248
|
+
}
|
|
1249
|
+
const data = await parseBody(output.body, context);
|
|
1250
|
+
let contents = {};
|
|
1251
|
+
contents = deserializeAws_json1_1CreateRecommenderResponse(data, context);
|
|
1252
|
+
const response = {
|
|
1253
|
+
$metadata: deserializeMetadata(output),
|
|
1254
|
+
...contents,
|
|
1255
|
+
};
|
|
1256
|
+
return Promise.resolve(response);
|
|
1257
|
+
};
|
|
1258
|
+
exports.deserializeAws_json1_1CreateRecommenderCommand = deserializeAws_json1_1CreateRecommenderCommand;
|
|
1259
|
+
const deserializeAws_json1_1CreateRecommenderCommandError = async (output, context) => {
|
|
1260
|
+
const parsedOutput = {
|
|
1261
|
+
...output,
|
|
1262
|
+
body: await parseBody(output.body, context),
|
|
1263
|
+
};
|
|
1264
|
+
let response;
|
|
1265
|
+
let errorCode = "UnknownError";
|
|
1266
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1267
|
+
switch (errorCode) {
|
|
1268
|
+
case "InvalidInputException":
|
|
1269
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
1270
|
+
response = {
|
|
1271
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1272
|
+
name: errorCode,
|
|
1273
|
+
$metadata: deserializeMetadata(output),
|
|
1274
|
+
};
|
|
1275
|
+
break;
|
|
1276
|
+
case "LimitExceededException":
|
|
1277
|
+
case "com.amazonaws.personalize#LimitExceededException":
|
|
1278
|
+
response = {
|
|
1279
|
+
...(await deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
1280
|
+
name: errorCode,
|
|
1281
|
+
$metadata: deserializeMetadata(output),
|
|
1282
|
+
};
|
|
1283
|
+
break;
|
|
1284
|
+
case "ResourceAlreadyExistsException":
|
|
1285
|
+
case "com.amazonaws.personalize#ResourceAlreadyExistsException":
|
|
1286
|
+
response = {
|
|
1287
|
+
...(await deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1288
|
+
name: errorCode,
|
|
1289
|
+
$metadata: deserializeMetadata(output),
|
|
1290
|
+
};
|
|
1291
|
+
break;
|
|
1292
|
+
case "ResourceNotFoundException":
|
|
1293
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1294
|
+
response = {
|
|
1295
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1296
|
+
name: errorCode,
|
|
1297
|
+
$metadata: deserializeMetadata(output),
|
|
1298
|
+
};
|
|
1299
|
+
break;
|
|
1300
|
+
default:
|
|
1301
|
+
const parsedBody = parsedOutput.body;
|
|
1302
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1303
|
+
response = {
|
|
1304
|
+
...parsedBody,
|
|
1305
|
+
name: `${errorCode}`,
|
|
1306
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1307
|
+
$fault: "client",
|
|
1308
|
+
$metadata: deserializeMetadata(output),
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
const message = response.message || response.Message || errorCode;
|
|
1312
|
+
response.message = message;
|
|
1313
|
+
delete response.Message;
|
|
1314
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1315
|
+
};
|
|
1085
1316
|
const deserializeAws_json1_1CreateSchemaCommand = async (output, context) => {
|
|
1086
1317
|
if (output.statusCode >= 300) {
|
|
1087
1318
|
return deserializeAws_json1_1CreateSchemaCommandError(output, context);
|
|
@@ -1595,6 +1826,66 @@ const deserializeAws_json1_1DeleteFilterCommandError = async (output, context) =
|
|
|
1595
1826
|
delete response.Message;
|
|
1596
1827
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1597
1828
|
};
|
|
1829
|
+
const deserializeAws_json1_1DeleteRecommenderCommand = async (output, context) => {
|
|
1830
|
+
if (output.statusCode >= 300) {
|
|
1831
|
+
return deserializeAws_json1_1DeleteRecommenderCommandError(output, context);
|
|
1832
|
+
}
|
|
1833
|
+
await collectBody(output.body, context);
|
|
1834
|
+
const response = {
|
|
1835
|
+
$metadata: deserializeMetadata(output),
|
|
1836
|
+
};
|
|
1837
|
+
return Promise.resolve(response);
|
|
1838
|
+
};
|
|
1839
|
+
exports.deserializeAws_json1_1DeleteRecommenderCommand = deserializeAws_json1_1DeleteRecommenderCommand;
|
|
1840
|
+
const deserializeAws_json1_1DeleteRecommenderCommandError = async (output, context) => {
|
|
1841
|
+
const parsedOutput = {
|
|
1842
|
+
...output,
|
|
1843
|
+
body: await parseBody(output.body, context),
|
|
1844
|
+
};
|
|
1845
|
+
let response;
|
|
1846
|
+
let errorCode = "UnknownError";
|
|
1847
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1848
|
+
switch (errorCode) {
|
|
1849
|
+
case "InvalidInputException":
|
|
1850
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
1851
|
+
response = {
|
|
1852
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
1853
|
+
name: errorCode,
|
|
1854
|
+
$metadata: deserializeMetadata(output),
|
|
1855
|
+
};
|
|
1856
|
+
break;
|
|
1857
|
+
case "ResourceInUseException":
|
|
1858
|
+
case "com.amazonaws.personalize#ResourceInUseException":
|
|
1859
|
+
response = {
|
|
1860
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
1861
|
+
name: errorCode,
|
|
1862
|
+
$metadata: deserializeMetadata(output),
|
|
1863
|
+
};
|
|
1864
|
+
break;
|
|
1865
|
+
case "ResourceNotFoundException":
|
|
1866
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
1867
|
+
response = {
|
|
1868
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
1869
|
+
name: errorCode,
|
|
1870
|
+
$metadata: deserializeMetadata(output),
|
|
1871
|
+
};
|
|
1872
|
+
break;
|
|
1873
|
+
default:
|
|
1874
|
+
const parsedBody = parsedOutput.body;
|
|
1875
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1876
|
+
response = {
|
|
1877
|
+
...parsedBody,
|
|
1878
|
+
name: `${errorCode}`,
|
|
1879
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
1880
|
+
$fault: "client",
|
|
1881
|
+
$metadata: deserializeMetadata(output),
|
|
1882
|
+
};
|
|
1883
|
+
}
|
|
1884
|
+
const message = response.message || response.Message || errorCode;
|
|
1885
|
+
response.message = message;
|
|
1886
|
+
delete response.Message;
|
|
1887
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
1888
|
+
};
|
|
1598
1889
|
const deserializeAws_json1_1DeleteSchemaCommand = async (output, context) => {
|
|
1599
1890
|
if (output.statusCode >= 300) {
|
|
1600
1891
|
return deserializeAws_json1_1DeleteSchemaCommandError(output, context);
|
|
@@ -1825,6 +2116,61 @@ const deserializeAws_json1_1DescribeBatchInferenceJobCommandError = async (outpu
|
|
|
1825
2116
|
delete response.Message;
|
|
1826
2117
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
1827
2118
|
};
|
|
2119
|
+
const deserializeAws_json1_1DescribeBatchSegmentJobCommand = async (output, context) => {
|
|
2120
|
+
if (output.statusCode >= 300) {
|
|
2121
|
+
return deserializeAws_json1_1DescribeBatchSegmentJobCommandError(output, context);
|
|
2122
|
+
}
|
|
2123
|
+
const data = await parseBody(output.body, context);
|
|
2124
|
+
let contents = {};
|
|
2125
|
+
contents = deserializeAws_json1_1DescribeBatchSegmentJobResponse(data, context);
|
|
2126
|
+
const response = {
|
|
2127
|
+
$metadata: deserializeMetadata(output),
|
|
2128
|
+
...contents,
|
|
2129
|
+
};
|
|
2130
|
+
return Promise.resolve(response);
|
|
2131
|
+
};
|
|
2132
|
+
exports.deserializeAws_json1_1DescribeBatchSegmentJobCommand = deserializeAws_json1_1DescribeBatchSegmentJobCommand;
|
|
2133
|
+
const deserializeAws_json1_1DescribeBatchSegmentJobCommandError = async (output, context) => {
|
|
2134
|
+
const parsedOutput = {
|
|
2135
|
+
...output,
|
|
2136
|
+
body: await parseBody(output.body, context),
|
|
2137
|
+
};
|
|
2138
|
+
let response;
|
|
2139
|
+
let errorCode = "UnknownError";
|
|
2140
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2141
|
+
switch (errorCode) {
|
|
2142
|
+
case "InvalidInputException":
|
|
2143
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
2144
|
+
response = {
|
|
2145
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2146
|
+
name: errorCode,
|
|
2147
|
+
$metadata: deserializeMetadata(output),
|
|
2148
|
+
};
|
|
2149
|
+
break;
|
|
2150
|
+
case "ResourceNotFoundException":
|
|
2151
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2152
|
+
response = {
|
|
2153
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2154
|
+
name: errorCode,
|
|
2155
|
+
$metadata: deserializeMetadata(output),
|
|
2156
|
+
};
|
|
2157
|
+
break;
|
|
2158
|
+
default:
|
|
2159
|
+
const parsedBody = parsedOutput.body;
|
|
2160
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2161
|
+
response = {
|
|
2162
|
+
...parsedBody,
|
|
2163
|
+
name: `${errorCode}`,
|
|
2164
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2165
|
+
$fault: "client",
|
|
2166
|
+
$metadata: deserializeMetadata(output),
|
|
2167
|
+
};
|
|
2168
|
+
}
|
|
2169
|
+
const message = response.message || response.Message || errorCode;
|
|
2170
|
+
response.message = message;
|
|
2171
|
+
delete response.Message;
|
|
2172
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2173
|
+
};
|
|
1828
2174
|
const deserializeAws_json1_1DescribeCampaignCommand = async (output, context) => {
|
|
1829
2175
|
if (output.statusCode >= 300) {
|
|
1830
2176
|
return deserializeAws_json1_1DescribeCampaignCommandError(output, context);
|
|
@@ -2320,6 +2666,61 @@ const deserializeAws_json1_1DescribeRecipeCommandError = async (output, context)
|
|
|
2320
2666
|
delete response.Message;
|
|
2321
2667
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2322
2668
|
};
|
|
2669
|
+
const deserializeAws_json1_1DescribeRecommenderCommand = async (output, context) => {
|
|
2670
|
+
if (output.statusCode >= 300) {
|
|
2671
|
+
return deserializeAws_json1_1DescribeRecommenderCommandError(output, context);
|
|
2672
|
+
}
|
|
2673
|
+
const data = await parseBody(output.body, context);
|
|
2674
|
+
let contents = {};
|
|
2675
|
+
contents = deserializeAws_json1_1DescribeRecommenderResponse(data, context);
|
|
2676
|
+
const response = {
|
|
2677
|
+
$metadata: deserializeMetadata(output),
|
|
2678
|
+
...contents,
|
|
2679
|
+
};
|
|
2680
|
+
return Promise.resolve(response);
|
|
2681
|
+
};
|
|
2682
|
+
exports.deserializeAws_json1_1DescribeRecommenderCommand = deserializeAws_json1_1DescribeRecommenderCommand;
|
|
2683
|
+
const deserializeAws_json1_1DescribeRecommenderCommandError = async (output, context) => {
|
|
2684
|
+
const parsedOutput = {
|
|
2685
|
+
...output,
|
|
2686
|
+
body: await parseBody(output.body, context),
|
|
2687
|
+
};
|
|
2688
|
+
let response;
|
|
2689
|
+
let errorCode = "UnknownError";
|
|
2690
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2691
|
+
switch (errorCode) {
|
|
2692
|
+
case "InvalidInputException":
|
|
2693
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
2694
|
+
response = {
|
|
2695
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
2696
|
+
name: errorCode,
|
|
2697
|
+
$metadata: deserializeMetadata(output),
|
|
2698
|
+
};
|
|
2699
|
+
break;
|
|
2700
|
+
case "ResourceNotFoundException":
|
|
2701
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
2702
|
+
response = {
|
|
2703
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2704
|
+
name: errorCode,
|
|
2705
|
+
$metadata: deserializeMetadata(output),
|
|
2706
|
+
};
|
|
2707
|
+
break;
|
|
2708
|
+
default:
|
|
2709
|
+
const parsedBody = parsedOutput.body;
|
|
2710
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2711
|
+
response = {
|
|
2712
|
+
...parsedBody,
|
|
2713
|
+
name: `${errorCode}`,
|
|
2714
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2715
|
+
$fault: "client",
|
|
2716
|
+
$metadata: deserializeMetadata(output),
|
|
2717
|
+
};
|
|
2718
|
+
}
|
|
2719
|
+
const message = response.message || response.Message || errorCode;
|
|
2720
|
+
response.message = message;
|
|
2721
|
+
delete response.Message;
|
|
2722
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
2723
|
+
};
|
|
2323
2724
|
const deserializeAws_json1_1DescribeSchemaCommand = async (output, context) => {
|
|
2324
2725
|
if (output.statusCode >= 300) {
|
|
2325
2726
|
return deserializeAws_json1_1DescribeSchemaCommandError(output, context);
|
|
@@ -2603,6 +3004,61 @@ const deserializeAws_json1_1ListBatchInferenceJobsCommandError = async (output,
|
|
|
2603
3004
|
delete response.Message;
|
|
2604
3005
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
2605
3006
|
};
|
|
3007
|
+
const deserializeAws_json1_1ListBatchSegmentJobsCommand = async (output, context) => {
|
|
3008
|
+
if (output.statusCode >= 300) {
|
|
3009
|
+
return deserializeAws_json1_1ListBatchSegmentJobsCommandError(output, context);
|
|
3010
|
+
}
|
|
3011
|
+
const data = await parseBody(output.body, context);
|
|
3012
|
+
let contents = {};
|
|
3013
|
+
contents = deserializeAws_json1_1ListBatchSegmentJobsResponse(data, context);
|
|
3014
|
+
const response = {
|
|
3015
|
+
$metadata: deserializeMetadata(output),
|
|
3016
|
+
...contents,
|
|
3017
|
+
};
|
|
3018
|
+
return Promise.resolve(response);
|
|
3019
|
+
};
|
|
3020
|
+
exports.deserializeAws_json1_1ListBatchSegmentJobsCommand = deserializeAws_json1_1ListBatchSegmentJobsCommand;
|
|
3021
|
+
const deserializeAws_json1_1ListBatchSegmentJobsCommandError = async (output, context) => {
|
|
3022
|
+
const parsedOutput = {
|
|
3023
|
+
...output,
|
|
3024
|
+
body: await parseBody(output.body, context),
|
|
3025
|
+
};
|
|
3026
|
+
let response;
|
|
3027
|
+
let errorCode = "UnknownError";
|
|
3028
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3029
|
+
switch (errorCode) {
|
|
3030
|
+
case "InvalidInputException":
|
|
3031
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
3032
|
+
response = {
|
|
3033
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3034
|
+
name: errorCode,
|
|
3035
|
+
$metadata: deserializeMetadata(output),
|
|
3036
|
+
};
|
|
3037
|
+
break;
|
|
3038
|
+
case "InvalidNextTokenException":
|
|
3039
|
+
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3040
|
+
response = {
|
|
3041
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3042
|
+
name: errorCode,
|
|
3043
|
+
$metadata: deserializeMetadata(output),
|
|
3044
|
+
};
|
|
3045
|
+
break;
|
|
3046
|
+
default:
|
|
3047
|
+
const parsedBody = parsedOutput.body;
|
|
3048
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3049
|
+
response = {
|
|
3050
|
+
...parsedBody,
|
|
3051
|
+
name: `${errorCode}`,
|
|
3052
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3053
|
+
$fault: "client",
|
|
3054
|
+
$metadata: deserializeMetadata(output),
|
|
3055
|
+
};
|
|
3056
|
+
}
|
|
3057
|
+
const message = response.message || response.Message || errorCode;
|
|
3058
|
+
response.message = message;
|
|
3059
|
+
delete response.Message;
|
|
3060
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3061
|
+
};
|
|
2606
3062
|
const deserializeAws_json1_1ListCampaignsCommand = async (output, context) => {
|
|
2607
3063
|
if (output.statusCode >= 300) {
|
|
2608
3064
|
return deserializeAws_json1_1ListCampaignsCommandError(output, context);
|
|
@@ -3003,6 +3459,69 @@ const deserializeAws_json1_1ListRecipesCommandError = async (output, context) =>
|
|
|
3003
3459
|
let errorCode = "UnknownError";
|
|
3004
3460
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3005
3461
|
switch (errorCode) {
|
|
3462
|
+
case "InvalidInputException":
|
|
3463
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
3464
|
+
response = {
|
|
3465
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3466
|
+
name: errorCode,
|
|
3467
|
+
$metadata: deserializeMetadata(output),
|
|
3468
|
+
};
|
|
3469
|
+
break;
|
|
3470
|
+
case "InvalidNextTokenException":
|
|
3471
|
+
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3472
|
+
response = {
|
|
3473
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3474
|
+
name: errorCode,
|
|
3475
|
+
$metadata: deserializeMetadata(output),
|
|
3476
|
+
};
|
|
3477
|
+
break;
|
|
3478
|
+
default:
|
|
3479
|
+
const parsedBody = parsedOutput.body;
|
|
3480
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3481
|
+
response = {
|
|
3482
|
+
...parsedBody,
|
|
3483
|
+
name: `${errorCode}`,
|
|
3484
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3485
|
+
$fault: "client",
|
|
3486
|
+
$metadata: deserializeMetadata(output),
|
|
3487
|
+
};
|
|
3488
|
+
}
|
|
3489
|
+
const message = response.message || response.Message || errorCode;
|
|
3490
|
+
response.message = message;
|
|
3491
|
+
delete response.Message;
|
|
3492
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3493
|
+
};
|
|
3494
|
+
const deserializeAws_json1_1ListRecommendersCommand = async (output, context) => {
|
|
3495
|
+
if (output.statusCode >= 300) {
|
|
3496
|
+
return deserializeAws_json1_1ListRecommendersCommandError(output, context);
|
|
3497
|
+
}
|
|
3498
|
+
const data = await parseBody(output.body, context);
|
|
3499
|
+
let contents = {};
|
|
3500
|
+
contents = deserializeAws_json1_1ListRecommendersResponse(data, context);
|
|
3501
|
+
const response = {
|
|
3502
|
+
$metadata: deserializeMetadata(output),
|
|
3503
|
+
...contents,
|
|
3504
|
+
};
|
|
3505
|
+
return Promise.resolve(response);
|
|
3506
|
+
};
|
|
3507
|
+
exports.deserializeAws_json1_1ListRecommendersCommand = deserializeAws_json1_1ListRecommendersCommand;
|
|
3508
|
+
const deserializeAws_json1_1ListRecommendersCommandError = async (output, context) => {
|
|
3509
|
+
const parsedOutput = {
|
|
3510
|
+
...output,
|
|
3511
|
+
body: await parseBody(output.body, context),
|
|
3512
|
+
};
|
|
3513
|
+
let response;
|
|
3514
|
+
let errorCode = "UnknownError";
|
|
3515
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3516
|
+
switch (errorCode) {
|
|
3517
|
+
case "InvalidInputException":
|
|
3518
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
3519
|
+
response = {
|
|
3520
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3521
|
+
name: errorCode,
|
|
3522
|
+
$metadata: deserializeMetadata(output),
|
|
3523
|
+
};
|
|
3524
|
+
break;
|
|
3006
3525
|
case "InvalidNextTokenException":
|
|
3007
3526
|
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3008
3527
|
response = {
|
|
@@ -3074,21 +3593,76 @@ const deserializeAws_json1_1ListSchemasCommandError = async (output, context) =>
|
|
|
3074
3593
|
delete response.Message;
|
|
3075
3594
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3076
3595
|
};
|
|
3077
|
-
const deserializeAws_json1_1ListSolutionsCommand = async (output, context) => {
|
|
3596
|
+
const deserializeAws_json1_1ListSolutionsCommand = async (output, context) => {
|
|
3597
|
+
if (output.statusCode >= 300) {
|
|
3598
|
+
return deserializeAws_json1_1ListSolutionsCommandError(output, context);
|
|
3599
|
+
}
|
|
3600
|
+
const data = await parseBody(output.body, context);
|
|
3601
|
+
let contents = {};
|
|
3602
|
+
contents = deserializeAws_json1_1ListSolutionsResponse(data, context);
|
|
3603
|
+
const response = {
|
|
3604
|
+
$metadata: deserializeMetadata(output),
|
|
3605
|
+
...contents,
|
|
3606
|
+
};
|
|
3607
|
+
return Promise.resolve(response);
|
|
3608
|
+
};
|
|
3609
|
+
exports.deserializeAws_json1_1ListSolutionsCommand = deserializeAws_json1_1ListSolutionsCommand;
|
|
3610
|
+
const deserializeAws_json1_1ListSolutionsCommandError = async (output, context) => {
|
|
3611
|
+
const parsedOutput = {
|
|
3612
|
+
...output,
|
|
3613
|
+
body: await parseBody(output.body, context),
|
|
3614
|
+
};
|
|
3615
|
+
let response;
|
|
3616
|
+
let errorCode = "UnknownError";
|
|
3617
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3618
|
+
switch (errorCode) {
|
|
3619
|
+
case "InvalidInputException":
|
|
3620
|
+
case "com.amazonaws.personalize#InvalidInputException":
|
|
3621
|
+
response = {
|
|
3622
|
+
...(await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)),
|
|
3623
|
+
name: errorCode,
|
|
3624
|
+
$metadata: deserializeMetadata(output),
|
|
3625
|
+
};
|
|
3626
|
+
break;
|
|
3627
|
+
case "InvalidNextTokenException":
|
|
3628
|
+
case "com.amazonaws.personalize#InvalidNextTokenException":
|
|
3629
|
+
response = {
|
|
3630
|
+
...(await deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)),
|
|
3631
|
+
name: errorCode,
|
|
3632
|
+
$metadata: deserializeMetadata(output),
|
|
3633
|
+
};
|
|
3634
|
+
break;
|
|
3635
|
+
default:
|
|
3636
|
+
const parsedBody = parsedOutput.body;
|
|
3637
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3638
|
+
response = {
|
|
3639
|
+
...parsedBody,
|
|
3640
|
+
name: `${errorCode}`,
|
|
3641
|
+
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3642
|
+
$fault: "client",
|
|
3643
|
+
$metadata: deserializeMetadata(output),
|
|
3644
|
+
};
|
|
3645
|
+
}
|
|
3646
|
+
const message = response.message || response.Message || errorCode;
|
|
3647
|
+
response.message = message;
|
|
3648
|
+
delete response.Message;
|
|
3649
|
+
return Promise.reject(Object.assign(new Error(message), response));
|
|
3650
|
+
};
|
|
3651
|
+
const deserializeAws_json1_1ListSolutionVersionsCommand = async (output, context) => {
|
|
3078
3652
|
if (output.statusCode >= 300) {
|
|
3079
|
-
return
|
|
3653
|
+
return deserializeAws_json1_1ListSolutionVersionsCommandError(output, context);
|
|
3080
3654
|
}
|
|
3081
3655
|
const data = await parseBody(output.body, context);
|
|
3082
3656
|
let contents = {};
|
|
3083
|
-
contents =
|
|
3657
|
+
contents = deserializeAws_json1_1ListSolutionVersionsResponse(data, context);
|
|
3084
3658
|
const response = {
|
|
3085
3659
|
$metadata: deserializeMetadata(output),
|
|
3086
3660
|
...contents,
|
|
3087
3661
|
};
|
|
3088
3662
|
return Promise.resolve(response);
|
|
3089
3663
|
};
|
|
3090
|
-
exports.
|
|
3091
|
-
const
|
|
3664
|
+
exports.deserializeAws_json1_1ListSolutionVersionsCommand = deserializeAws_json1_1ListSolutionVersionsCommand;
|
|
3665
|
+
const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, context) => {
|
|
3092
3666
|
const parsedOutput = {
|
|
3093
3667
|
...output,
|
|
3094
3668
|
body: await parseBody(output.body, context),
|
|
@@ -3113,6 +3687,14 @@ const deserializeAws_json1_1ListSolutionsCommandError = async (output, context)
|
|
|
3113
3687
|
$metadata: deserializeMetadata(output),
|
|
3114
3688
|
};
|
|
3115
3689
|
break;
|
|
3690
|
+
case "ResourceNotFoundException":
|
|
3691
|
+
case "com.amazonaws.personalize#ResourceNotFoundException":
|
|
3692
|
+
response = {
|
|
3693
|
+
...(await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3694
|
+
name: errorCode,
|
|
3695
|
+
$metadata: deserializeMetadata(output),
|
|
3696
|
+
};
|
|
3697
|
+
break;
|
|
3116
3698
|
default:
|
|
3117
3699
|
const parsedBody = parsedOutput.body;
|
|
3118
3700
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
@@ -3129,21 +3711,18 @@ const deserializeAws_json1_1ListSolutionsCommandError = async (output, context)
|
|
|
3129
3711
|
delete response.Message;
|
|
3130
3712
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3131
3713
|
};
|
|
3132
|
-
const
|
|
3714
|
+
const deserializeAws_json1_1StopSolutionVersionCreationCommand = async (output, context) => {
|
|
3133
3715
|
if (output.statusCode >= 300) {
|
|
3134
|
-
return
|
|
3716
|
+
return deserializeAws_json1_1StopSolutionVersionCreationCommandError(output, context);
|
|
3135
3717
|
}
|
|
3136
|
-
|
|
3137
|
-
let contents = {};
|
|
3138
|
-
contents = deserializeAws_json1_1ListSolutionVersionsResponse(data, context);
|
|
3718
|
+
await collectBody(output.body, context);
|
|
3139
3719
|
const response = {
|
|
3140
3720
|
$metadata: deserializeMetadata(output),
|
|
3141
|
-
...contents,
|
|
3142
3721
|
};
|
|
3143
3722
|
return Promise.resolve(response);
|
|
3144
3723
|
};
|
|
3145
|
-
exports.
|
|
3146
|
-
const
|
|
3724
|
+
exports.deserializeAws_json1_1StopSolutionVersionCreationCommand = deserializeAws_json1_1StopSolutionVersionCreationCommand;
|
|
3725
|
+
const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (output, context) => {
|
|
3147
3726
|
const parsedOutput = {
|
|
3148
3727
|
...output,
|
|
3149
3728
|
body: await parseBody(output.body, context),
|
|
@@ -3160,10 +3739,10 @@ const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, co
|
|
|
3160
3739
|
$metadata: deserializeMetadata(output),
|
|
3161
3740
|
};
|
|
3162
3741
|
break;
|
|
3163
|
-
case "
|
|
3164
|
-
case "com.amazonaws.personalize#
|
|
3742
|
+
case "ResourceInUseException":
|
|
3743
|
+
case "com.amazonaws.personalize#ResourceInUseException":
|
|
3165
3744
|
response = {
|
|
3166
|
-
...(await
|
|
3745
|
+
...(await deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)),
|
|
3167
3746
|
name: errorCode,
|
|
3168
3747
|
$metadata: deserializeMetadata(output),
|
|
3169
3748
|
};
|
|
@@ -3192,18 +3771,21 @@ const deserializeAws_json1_1ListSolutionVersionsCommandError = async (output, co
|
|
|
3192
3771
|
delete response.Message;
|
|
3193
3772
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3194
3773
|
};
|
|
3195
|
-
const
|
|
3774
|
+
const deserializeAws_json1_1UpdateCampaignCommand = async (output, context) => {
|
|
3196
3775
|
if (output.statusCode >= 300) {
|
|
3197
|
-
return
|
|
3776
|
+
return deserializeAws_json1_1UpdateCampaignCommandError(output, context);
|
|
3198
3777
|
}
|
|
3199
|
-
await
|
|
3778
|
+
const data = await parseBody(output.body, context);
|
|
3779
|
+
let contents = {};
|
|
3780
|
+
contents = deserializeAws_json1_1UpdateCampaignResponse(data, context);
|
|
3200
3781
|
const response = {
|
|
3201
3782
|
$metadata: deserializeMetadata(output),
|
|
3783
|
+
...contents,
|
|
3202
3784
|
};
|
|
3203
3785
|
return Promise.resolve(response);
|
|
3204
3786
|
};
|
|
3205
|
-
exports.
|
|
3206
|
-
const
|
|
3787
|
+
exports.deserializeAws_json1_1UpdateCampaignCommand = deserializeAws_json1_1UpdateCampaignCommand;
|
|
3788
|
+
const deserializeAws_json1_1UpdateCampaignCommandError = async (output, context) => {
|
|
3207
3789
|
const parsedOutput = {
|
|
3208
3790
|
...output,
|
|
3209
3791
|
body: await parseBody(output.body, context),
|
|
@@ -3252,21 +3834,21 @@ const deserializeAws_json1_1StopSolutionVersionCreationCommandError = async (out
|
|
|
3252
3834
|
delete response.Message;
|
|
3253
3835
|
return Promise.reject(Object.assign(new Error(message), response));
|
|
3254
3836
|
};
|
|
3255
|
-
const
|
|
3837
|
+
const deserializeAws_json1_1UpdateRecommenderCommand = async (output, context) => {
|
|
3256
3838
|
if (output.statusCode >= 300) {
|
|
3257
|
-
return
|
|
3839
|
+
return deserializeAws_json1_1UpdateRecommenderCommandError(output, context);
|
|
3258
3840
|
}
|
|
3259
3841
|
const data = await parseBody(output.body, context);
|
|
3260
3842
|
let contents = {};
|
|
3261
|
-
contents =
|
|
3843
|
+
contents = deserializeAws_json1_1UpdateRecommenderResponse(data, context);
|
|
3262
3844
|
const response = {
|
|
3263
3845
|
$metadata: deserializeMetadata(output),
|
|
3264
3846
|
...contents,
|
|
3265
3847
|
};
|
|
3266
3848
|
return Promise.resolve(response);
|
|
3267
3849
|
};
|
|
3268
|
-
exports.
|
|
3269
|
-
const
|
|
3850
|
+
exports.deserializeAws_json1_1UpdateRecommenderCommand = deserializeAws_json1_1UpdateRecommenderCommand;
|
|
3851
|
+
const deserializeAws_json1_1UpdateRecommenderCommandError = async (output, context) => {
|
|
3270
3852
|
const parsedOutput = {
|
|
3271
3853
|
...output,
|
|
3272
3854
|
body: await parseBody(output.body, context),
|
|
@@ -3420,6 +4002,20 @@ const serializeAws_json1_1BatchInferenceJobOutput = (input, context) => {
|
|
|
3420
4002
|
}),
|
|
3421
4003
|
};
|
|
3422
4004
|
};
|
|
4005
|
+
const serializeAws_json1_1BatchSegmentJobInput = (input, context) => {
|
|
4006
|
+
return {
|
|
4007
|
+
...(input.s3DataSource !== undefined &&
|
|
4008
|
+
input.s3DataSource !== null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }),
|
|
4009
|
+
};
|
|
4010
|
+
};
|
|
4011
|
+
const serializeAws_json1_1BatchSegmentJobOutput = (input, context) => {
|
|
4012
|
+
return {
|
|
4013
|
+
...(input.s3DataDestination !== undefined &&
|
|
4014
|
+
input.s3DataDestination !== null && {
|
|
4015
|
+
s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
|
|
4016
|
+
}),
|
|
4017
|
+
};
|
|
4018
|
+
};
|
|
3423
4019
|
const serializeAws_json1_1CampaignConfig = (input, context) => {
|
|
3424
4020
|
return {
|
|
3425
4021
|
...(input.itemExplorationConfig !== undefined &&
|
|
@@ -3490,6 +4086,20 @@ const serializeAws_json1_1CreateBatchInferenceJobRequest = (input, context) => {
|
|
|
3490
4086
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
3491
4087
|
};
|
|
3492
4088
|
};
|
|
4089
|
+
const serializeAws_json1_1CreateBatchSegmentJobRequest = (input, context) => {
|
|
4090
|
+
return {
|
|
4091
|
+
...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
|
|
4092
|
+
...(input.jobInput !== undefined &&
|
|
4093
|
+
input.jobInput !== null && { jobInput: serializeAws_json1_1BatchSegmentJobInput(input.jobInput, context) }),
|
|
4094
|
+
...(input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName }),
|
|
4095
|
+
...(input.jobOutput !== undefined &&
|
|
4096
|
+
input.jobOutput !== null && { jobOutput: serializeAws_json1_1BatchSegmentJobOutput(input.jobOutput, context) }),
|
|
4097
|
+
...(input.numResults !== undefined && input.numResults !== null && { numResults: input.numResults }),
|
|
4098
|
+
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
4099
|
+
...(input.solutionVersionArn !== undefined &&
|
|
4100
|
+
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
4101
|
+
};
|
|
4102
|
+
};
|
|
3493
4103
|
const serializeAws_json1_1CreateCampaignRequest = (input, context) => {
|
|
3494
4104
|
return {
|
|
3495
4105
|
...(input.campaignConfig !== undefined &&
|
|
@@ -3515,6 +4125,7 @@ const serializeAws_json1_1CreateDatasetExportJobRequest = (input, context) => {
|
|
|
3515
4125
|
};
|
|
3516
4126
|
const serializeAws_json1_1CreateDatasetGroupRequest = (input, context) => {
|
|
3517
4127
|
return {
|
|
4128
|
+
...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
|
|
3518
4129
|
...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
|
|
3519
4130
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3520
4131
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
@@ -3554,8 +4165,21 @@ const serializeAws_json1_1CreateFilterRequest = (input, context) => {
|
|
|
3554
4165
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3555
4166
|
};
|
|
3556
4167
|
};
|
|
4168
|
+
const serializeAws_json1_1CreateRecommenderRequest = (input, context) => {
|
|
4169
|
+
return {
|
|
4170
|
+
...(input.datasetGroupArn !== undefined &&
|
|
4171
|
+
input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
|
|
4172
|
+
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
4173
|
+
...(input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }),
|
|
4174
|
+
...(input.recommenderConfig !== undefined &&
|
|
4175
|
+
input.recommenderConfig !== null && {
|
|
4176
|
+
recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
|
|
4177
|
+
}),
|
|
4178
|
+
};
|
|
4179
|
+
};
|
|
3557
4180
|
const serializeAws_json1_1CreateSchemaRequest = (input, context) => {
|
|
3558
4181
|
return {
|
|
4182
|
+
...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
|
|
3559
4183
|
...(input.name !== undefined && input.name !== null && { name: input.name }),
|
|
3560
4184
|
...(input.schema !== undefined && input.schema !== null && { schema: input.schema }),
|
|
3561
4185
|
};
|
|
@@ -3621,6 +4245,12 @@ const serializeAws_json1_1DeleteFilterRequest = (input, context) => {
|
|
|
3621
4245
|
...(input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }),
|
|
3622
4246
|
};
|
|
3623
4247
|
};
|
|
4248
|
+
const serializeAws_json1_1DeleteRecommenderRequest = (input, context) => {
|
|
4249
|
+
return {
|
|
4250
|
+
...(input.recommenderArn !== undefined &&
|
|
4251
|
+
input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
|
|
4252
|
+
};
|
|
4253
|
+
};
|
|
3624
4254
|
const serializeAws_json1_1DeleteSchemaRequest = (input, context) => {
|
|
3625
4255
|
return {
|
|
3626
4256
|
...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
|
|
@@ -3642,6 +4272,12 @@ const serializeAws_json1_1DescribeBatchInferenceJobRequest = (input, context) =>
|
|
|
3642
4272
|
input.batchInferenceJobArn !== null && { batchInferenceJobArn: input.batchInferenceJobArn }),
|
|
3643
4273
|
};
|
|
3644
4274
|
};
|
|
4275
|
+
const serializeAws_json1_1DescribeBatchSegmentJobRequest = (input, context) => {
|
|
4276
|
+
return {
|
|
4277
|
+
...(input.batchSegmentJobArn !== undefined &&
|
|
4278
|
+
input.batchSegmentJobArn !== null && { batchSegmentJobArn: input.batchSegmentJobArn }),
|
|
4279
|
+
};
|
|
4280
|
+
};
|
|
3645
4281
|
const serializeAws_json1_1DescribeCampaignRequest = (input, context) => {
|
|
3646
4282
|
return {
|
|
3647
4283
|
...(input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }),
|
|
@@ -3692,6 +4328,12 @@ const serializeAws_json1_1DescribeRecipeRequest = (input, context) => {
|
|
|
3692
4328
|
...(input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }),
|
|
3693
4329
|
};
|
|
3694
4330
|
};
|
|
4331
|
+
const serializeAws_json1_1DescribeRecommenderRequest = (input, context) => {
|
|
4332
|
+
return {
|
|
4333
|
+
...(input.recommenderArn !== undefined &&
|
|
4334
|
+
input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
|
|
4335
|
+
};
|
|
4336
|
+
};
|
|
3695
4337
|
const serializeAws_json1_1DescribeSchemaRequest = (input, context) => {
|
|
3696
4338
|
return {
|
|
3697
4339
|
...(input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }),
|
|
@@ -3806,6 +4448,14 @@ const serializeAws_json1_1ListBatchInferenceJobsRequest = (input, context) => {
|
|
|
3806
4448
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
3807
4449
|
};
|
|
3808
4450
|
};
|
|
4451
|
+
const serializeAws_json1_1ListBatchSegmentJobsRequest = (input, context) => {
|
|
4452
|
+
return {
|
|
4453
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
4454
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
4455
|
+
...(input.solutionVersionArn !== undefined &&
|
|
4456
|
+
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
4457
|
+
};
|
|
4458
|
+
};
|
|
3809
4459
|
const serializeAws_json1_1ListCampaignsRequest = (input, context) => {
|
|
3810
4460
|
return {
|
|
3811
4461
|
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
@@ -3859,12 +4509,21 @@ const serializeAws_json1_1ListFiltersRequest = (input, context) => {
|
|
|
3859
4509
|
};
|
|
3860
4510
|
const serializeAws_json1_1ListRecipesRequest = (input, context) => {
|
|
3861
4511
|
return {
|
|
4512
|
+
...(input.domain !== undefined && input.domain !== null && { domain: input.domain }),
|
|
3862
4513
|
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
3863
4514
|
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
3864
4515
|
...(input.recipeProvider !== undefined &&
|
|
3865
4516
|
input.recipeProvider !== null && { recipeProvider: input.recipeProvider }),
|
|
3866
4517
|
};
|
|
3867
4518
|
};
|
|
4519
|
+
const serializeAws_json1_1ListRecommendersRequest = (input, context) => {
|
|
4520
|
+
return {
|
|
4521
|
+
...(input.datasetGroupArn !== undefined &&
|
|
4522
|
+
input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn }),
|
|
4523
|
+
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
4524
|
+
...(input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }),
|
|
4525
|
+
};
|
|
4526
|
+
};
|
|
3868
4527
|
const serializeAws_json1_1ListSchemasRequest = (input, context) => {
|
|
3869
4528
|
return {
|
|
3870
4529
|
...(input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults }),
|
|
@@ -3893,6 +4552,14 @@ const serializeAws_json1_1OptimizationObjective = (input, context) => {
|
|
|
3893
4552
|
input.objectiveSensitivity !== null && { objectiveSensitivity: input.objectiveSensitivity }),
|
|
3894
4553
|
};
|
|
3895
4554
|
};
|
|
4555
|
+
const serializeAws_json1_1RecommenderConfig = (input, context) => {
|
|
4556
|
+
return {
|
|
4557
|
+
...(input.itemExplorationConfig !== undefined &&
|
|
4558
|
+
input.itemExplorationConfig !== null && {
|
|
4559
|
+
itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
|
|
4560
|
+
}),
|
|
4561
|
+
};
|
|
4562
|
+
};
|
|
3896
4563
|
const serializeAws_json1_1S3DataConfig = (input, context) => {
|
|
3897
4564
|
return {
|
|
3898
4565
|
...(input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn }),
|
|
@@ -3940,6 +4607,16 @@ const serializeAws_json1_1UpdateCampaignRequest = (input, context) => {
|
|
|
3940
4607
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }),
|
|
3941
4608
|
};
|
|
3942
4609
|
};
|
|
4610
|
+
const serializeAws_json1_1UpdateRecommenderRequest = (input, context) => {
|
|
4611
|
+
return {
|
|
4612
|
+
...(input.recommenderArn !== undefined &&
|
|
4613
|
+
input.recommenderArn !== null && { recommenderArn: input.recommenderArn }),
|
|
4614
|
+
...(input.recommenderConfig !== undefined &&
|
|
4615
|
+
input.recommenderConfig !== null && {
|
|
4616
|
+
recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
|
|
4617
|
+
}),
|
|
4618
|
+
};
|
|
4619
|
+
};
|
|
3943
4620
|
const deserializeAws_json1_1Algorithm = (output, context) => {
|
|
3944
4621
|
return {
|
|
3945
4622
|
algorithmArn: smithy_client_1.expectString(output.algorithmArn),
|
|
@@ -4068,6 +4745,69 @@ const deserializeAws_json1_1BatchInferenceJobSummary = (output, context) => {
|
|
|
4068
4745
|
status: smithy_client_1.expectString(output.status),
|
|
4069
4746
|
};
|
|
4070
4747
|
};
|
|
4748
|
+
const deserializeAws_json1_1BatchSegmentJob = (output, context) => {
|
|
4749
|
+
return {
|
|
4750
|
+
batchSegmentJobArn: smithy_client_1.expectString(output.batchSegmentJobArn),
|
|
4751
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
4752
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
4753
|
+
: undefined,
|
|
4754
|
+
failureReason: smithy_client_1.expectString(output.failureReason),
|
|
4755
|
+
filterArn: smithy_client_1.expectString(output.filterArn),
|
|
4756
|
+
jobInput: output.jobInput !== undefined && output.jobInput !== null
|
|
4757
|
+
? deserializeAws_json1_1BatchSegmentJobInput(output.jobInput, context)
|
|
4758
|
+
: undefined,
|
|
4759
|
+
jobName: smithy_client_1.expectString(output.jobName),
|
|
4760
|
+
jobOutput: output.jobOutput !== undefined && output.jobOutput !== null
|
|
4761
|
+
? deserializeAws_json1_1BatchSegmentJobOutput(output.jobOutput, context)
|
|
4762
|
+
: undefined,
|
|
4763
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4764
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
4765
|
+
: undefined,
|
|
4766
|
+
numResults: smithy_client_1.expectInt32(output.numResults),
|
|
4767
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
4768
|
+
solutionVersionArn: smithy_client_1.expectString(output.solutionVersionArn),
|
|
4769
|
+
status: smithy_client_1.expectString(output.status),
|
|
4770
|
+
};
|
|
4771
|
+
};
|
|
4772
|
+
const deserializeAws_json1_1BatchSegmentJobInput = (output, context) => {
|
|
4773
|
+
return {
|
|
4774
|
+
s3DataSource: output.s3DataSource !== undefined && output.s3DataSource !== null
|
|
4775
|
+
? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context)
|
|
4776
|
+
: undefined,
|
|
4777
|
+
};
|
|
4778
|
+
};
|
|
4779
|
+
const deserializeAws_json1_1BatchSegmentJobOutput = (output, context) => {
|
|
4780
|
+
return {
|
|
4781
|
+
s3DataDestination: output.s3DataDestination !== undefined && output.s3DataDestination !== null
|
|
4782
|
+
? deserializeAws_json1_1S3DataConfig(output.s3DataDestination, context)
|
|
4783
|
+
: undefined,
|
|
4784
|
+
};
|
|
4785
|
+
};
|
|
4786
|
+
const deserializeAws_json1_1BatchSegmentJobs = (output, context) => {
|
|
4787
|
+
return (output || [])
|
|
4788
|
+
.filter((e) => e != null)
|
|
4789
|
+
.map((entry) => {
|
|
4790
|
+
if (entry === null) {
|
|
4791
|
+
return null;
|
|
4792
|
+
}
|
|
4793
|
+
return deserializeAws_json1_1BatchSegmentJobSummary(entry, context);
|
|
4794
|
+
});
|
|
4795
|
+
};
|
|
4796
|
+
const deserializeAws_json1_1BatchSegmentJobSummary = (output, context) => {
|
|
4797
|
+
return {
|
|
4798
|
+
batchSegmentJobArn: smithy_client_1.expectString(output.batchSegmentJobArn),
|
|
4799
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
4800
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
4801
|
+
: undefined,
|
|
4802
|
+
failureReason: smithy_client_1.expectString(output.failureReason),
|
|
4803
|
+
jobName: smithy_client_1.expectString(output.jobName),
|
|
4804
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4805
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
4806
|
+
: undefined,
|
|
4807
|
+
solutionVersionArn: smithy_client_1.expectString(output.solutionVersionArn),
|
|
4808
|
+
status: smithy_client_1.expectString(output.status),
|
|
4809
|
+
};
|
|
4810
|
+
};
|
|
4071
4811
|
const deserializeAws_json1_1Campaign = (output, context) => {
|
|
4072
4812
|
return {
|
|
4073
4813
|
campaignArn: smithy_client_1.expectString(output.campaignArn),
|
|
@@ -4188,6 +4928,11 @@ const deserializeAws_json1_1CreateBatchInferenceJobResponse = (output, context)
|
|
|
4188
4928
|
batchInferenceJobArn: smithy_client_1.expectString(output.batchInferenceJobArn),
|
|
4189
4929
|
};
|
|
4190
4930
|
};
|
|
4931
|
+
const deserializeAws_json1_1CreateBatchSegmentJobResponse = (output, context) => {
|
|
4932
|
+
return {
|
|
4933
|
+
batchSegmentJobArn: smithy_client_1.expectString(output.batchSegmentJobArn),
|
|
4934
|
+
};
|
|
4935
|
+
};
|
|
4191
4936
|
const deserializeAws_json1_1CreateCampaignResponse = (output, context) => {
|
|
4192
4937
|
return {
|
|
4193
4938
|
campaignArn: smithy_client_1.expectString(output.campaignArn),
|
|
@@ -4201,6 +4946,7 @@ const deserializeAws_json1_1CreateDatasetExportJobResponse = (output, context) =
|
|
|
4201
4946
|
const deserializeAws_json1_1CreateDatasetGroupResponse = (output, context) => {
|
|
4202
4947
|
return {
|
|
4203
4948
|
datasetGroupArn: smithy_client_1.expectString(output.datasetGroupArn),
|
|
4949
|
+
domain: smithy_client_1.expectString(output.domain),
|
|
4204
4950
|
};
|
|
4205
4951
|
};
|
|
4206
4952
|
const deserializeAws_json1_1CreateDatasetImportJobResponse = (output, context) => {
|
|
@@ -4224,6 +4970,11 @@ const deserializeAws_json1_1CreateFilterResponse = (output, context) => {
|
|
|
4224
4970
|
filterArn: smithy_client_1.expectString(output.filterArn),
|
|
4225
4971
|
};
|
|
4226
4972
|
};
|
|
4973
|
+
const deserializeAws_json1_1CreateRecommenderResponse = (output, context) => {
|
|
4974
|
+
return {
|
|
4975
|
+
recommenderArn: smithy_client_1.expectString(output.recommenderArn),
|
|
4976
|
+
};
|
|
4977
|
+
};
|
|
4227
4978
|
const deserializeAws_json1_1CreateSchemaResponse = (output, context) => {
|
|
4228
4979
|
return {
|
|
4229
4980
|
schemaArn: smithy_client_1.expectString(output.schemaArn),
|
|
@@ -4312,6 +5063,7 @@ const deserializeAws_json1_1DatasetGroup = (output, context) => {
|
|
|
4312
5063
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
4313
5064
|
: undefined,
|
|
4314
5065
|
datasetGroupArn: smithy_client_1.expectString(output.datasetGroupArn),
|
|
5066
|
+
domain: smithy_client_1.expectString(output.domain),
|
|
4315
5067
|
failureReason: smithy_client_1.expectString(output.failureReason),
|
|
4316
5068
|
kmsKeyArn: smithy_client_1.expectString(output.kmsKeyArn),
|
|
4317
5069
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
@@ -4338,6 +5090,7 @@ const deserializeAws_json1_1DatasetGroupSummary = (output, context) => {
|
|
|
4338
5090
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
4339
5091
|
: undefined,
|
|
4340
5092
|
datasetGroupArn: smithy_client_1.expectString(output.datasetGroupArn),
|
|
5093
|
+
domain: smithy_client_1.expectString(output.domain),
|
|
4341
5094
|
failureReason: smithy_client_1.expectString(output.failureReason),
|
|
4342
5095
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4343
5096
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
@@ -4404,6 +5157,7 @@ const deserializeAws_json1_1DatasetSchema = (output, context) => {
|
|
|
4404
5157
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
4405
5158
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
4406
5159
|
: undefined,
|
|
5160
|
+
domain: smithy_client_1.expectString(output.domain),
|
|
4407
5161
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4408
5162
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
4409
5163
|
: undefined,
|
|
@@ -4417,6 +5171,7 @@ const deserializeAws_json1_1DatasetSchemaSummary = (output, context) => {
|
|
|
4417
5171
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
4418
5172
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
4419
5173
|
: undefined,
|
|
5174
|
+
domain: smithy_client_1.expectString(output.domain),
|
|
4420
5175
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4421
5176
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
4422
5177
|
: undefined,
|
|
@@ -4525,6 +5280,13 @@ const deserializeAws_json1_1DescribeBatchInferenceJobResponse = (output, context
|
|
|
4525
5280
|
: undefined,
|
|
4526
5281
|
};
|
|
4527
5282
|
};
|
|
5283
|
+
const deserializeAws_json1_1DescribeBatchSegmentJobResponse = (output, context) => {
|
|
5284
|
+
return {
|
|
5285
|
+
batchSegmentJob: output.batchSegmentJob !== undefined && output.batchSegmentJob !== null
|
|
5286
|
+
? deserializeAws_json1_1BatchSegmentJob(output.batchSegmentJob, context)
|
|
5287
|
+
: undefined,
|
|
5288
|
+
};
|
|
5289
|
+
};
|
|
4528
5290
|
const deserializeAws_json1_1DescribeCampaignResponse = (output, context) => {
|
|
4529
5291
|
return {
|
|
4530
5292
|
campaign: output.campaign !== undefined && output.campaign !== null
|
|
@@ -4588,6 +5350,13 @@ const deserializeAws_json1_1DescribeRecipeResponse = (output, context) => {
|
|
|
4588
5350
|
: undefined,
|
|
4589
5351
|
};
|
|
4590
5352
|
};
|
|
5353
|
+
const deserializeAws_json1_1DescribeRecommenderResponse = (output, context) => {
|
|
5354
|
+
return {
|
|
5355
|
+
recommender: output.recommender !== undefined && output.recommender !== null
|
|
5356
|
+
? deserializeAws_json1_1Recommender(output.recommender, context)
|
|
5357
|
+
: undefined,
|
|
5358
|
+
};
|
|
5359
|
+
};
|
|
4591
5360
|
const deserializeAws_json1_1DescribeSchemaResponse = (output, context) => {
|
|
4592
5361
|
return {
|
|
4593
5362
|
schema: output.schema !== undefined && output.schema !== null
|
|
@@ -4825,6 +5594,14 @@ const deserializeAws_json1_1ListBatchInferenceJobsResponse = (output, context) =
|
|
|
4825
5594
|
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
4826
5595
|
};
|
|
4827
5596
|
};
|
|
5597
|
+
const deserializeAws_json1_1ListBatchSegmentJobsResponse = (output, context) => {
|
|
5598
|
+
return {
|
|
5599
|
+
batchSegmentJobs: output.batchSegmentJobs !== undefined && output.batchSegmentJobs !== null
|
|
5600
|
+
? deserializeAws_json1_1BatchSegmentJobs(output.batchSegmentJobs, context)
|
|
5601
|
+
: undefined,
|
|
5602
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
5603
|
+
};
|
|
5604
|
+
};
|
|
4828
5605
|
const deserializeAws_json1_1ListCampaignsResponse = (output, context) => {
|
|
4829
5606
|
return {
|
|
4830
5607
|
campaigns: output.campaigns !== undefined && output.campaigns !== null
|
|
@@ -4889,6 +5666,14 @@ const deserializeAws_json1_1ListRecipesResponse = (output, context) => {
|
|
|
4889
5666
|
: undefined,
|
|
4890
5667
|
};
|
|
4891
5668
|
};
|
|
5669
|
+
const deserializeAws_json1_1ListRecommendersResponse = (output, context) => {
|
|
5670
|
+
return {
|
|
5671
|
+
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
5672
|
+
recommenders: output.recommenders !== undefined && output.recommenders !== null
|
|
5673
|
+
? deserializeAws_json1_1Recommenders(output.recommenders, context)
|
|
5674
|
+
: undefined,
|
|
5675
|
+
};
|
|
5676
|
+
};
|
|
4892
5677
|
const deserializeAws_json1_1ListSchemasResponse = (output, context) => {
|
|
4893
5678
|
return {
|
|
4894
5679
|
nextToken: smithy_client_1.expectString(output.nextToken),
|
|
@@ -4962,11 +5747,84 @@ const deserializeAws_json1_1RecipeSummary = (output, context) => {
|
|
|
4962
5747
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
4963
5748
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
4964
5749
|
: undefined,
|
|
5750
|
+
domain: smithy_client_1.expectString(output.domain),
|
|
5751
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
5752
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
5753
|
+
: undefined,
|
|
5754
|
+
name: smithy_client_1.expectString(output.name),
|
|
5755
|
+
recipeArn: smithy_client_1.expectString(output.recipeArn),
|
|
5756
|
+
status: smithy_client_1.expectString(output.status),
|
|
5757
|
+
};
|
|
5758
|
+
};
|
|
5759
|
+
const deserializeAws_json1_1Recommender = (output, context) => {
|
|
5760
|
+
return {
|
|
5761
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
5762
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
5763
|
+
: undefined,
|
|
5764
|
+
datasetGroupArn: smithy_client_1.expectString(output.datasetGroupArn),
|
|
5765
|
+
failureReason: smithy_client_1.expectString(output.failureReason),
|
|
5766
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
5767
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
5768
|
+
: undefined,
|
|
5769
|
+
latestRecommenderUpdate: output.latestRecommenderUpdate !== undefined && output.latestRecommenderUpdate !== null
|
|
5770
|
+
? deserializeAws_json1_1RecommenderUpdateSummary(output.latestRecommenderUpdate, context)
|
|
5771
|
+
: undefined,
|
|
5772
|
+
name: smithy_client_1.expectString(output.name),
|
|
5773
|
+
recipeArn: smithy_client_1.expectString(output.recipeArn),
|
|
5774
|
+
recommenderArn: smithy_client_1.expectString(output.recommenderArn),
|
|
5775
|
+
recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
|
|
5776
|
+
? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
|
|
5777
|
+
: undefined,
|
|
5778
|
+
status: smithy_client_1.expectString(output.status),
|
|
5779
|
+
};
|
|
5780
|
+
};
|
|
5781
|
+
const deserializeAws_json1_1RecommenderConfig = (output, context) => {
|
|
5782
|
+
return {
|
|
5783
|
+
itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
|
|
5784
|
+
? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
|
|
5785
|
+
: undefined,
|
|
5786
|
+
};
|
|
5787
|
+
};
|
|
5788
|
+
const deserializeAws_json1_1Recommenders = (output, context) => {
|
|
5789
|
+
return (output || [])
|
|
5790
|
+
.filter((e) => e != null)
|
|
5791
|
+
.map((entry) => {
|
|
5792
|
+
if (entry === null) {
|
|
5793
|
+
return null;
|
|
5794
|
+
}
|
|
5795
|
+
return deserializeAws_json1_1RecommenderSummary(entry, context);
|
|
5796
|
+
});
|
|
5797
|
+
};
|
|
5798
|
+
const deserializeAws_json1_1RecommenderSummary = (output, context) => {
|
|
5799
|
+
return {
|
|
5800
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
5801
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
5802
|
+
: undefined,
|
|
5803
|
+
datasetGroupArn: smithy_client_1.expectString(output.datasetGroupArn),
|
|
4965
5804
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4966
5805
|
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
4967
5806
|
: undefined,
|
|
4968
5807
|
name: smithy_client_1.expectString(output.name),
|
|
4969
5808
|
recipeArn: smithy_client_1.expectString(output.recipeArn),
|
|
5809
|
+
recommenderArn: smithy_client_1.expectString(output.recommenderArn),
|
|
5810
|
+
recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
|
|
5811
|
+
? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
|
|
5812
|
+
: undefined,
|
|
5813
|
+
status: smithy_client_1.expectString(output.status),
|
|
5814
|
+
};
|
|
5815
|
+
};
|
|
5816
|
+
const deserializeAws_json1_1RecommenderUpdateSummary = (output, context) => {
|
|
5817
|
+
return {
|
|
5818
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
5819
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationDateTime)))
|
|
5820
|
+
: undefined,
|
|
5821
|
+
failureReason: smithy_client_1.expectString(output.failureReason),
|
|
5822
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
5823
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdatedDateTime)))
|
|
5824
|
+
: undefined,
|
|
5825
|
+
recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
|
|
5826
|
+
? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
|
|
5827
|
+
: undefined,
|
|
4970
5828
|
status: smithy_client_1.expectString(output.status),
|
|
4971
5829
|
};
|
|
4972
5830
|
};
|
|
@@ -5144,6 +6002,11 @@ const deserializeAws_json1_1UpdateCampaignResponse = (output, context) => {
|
|
|
5144
6002
|
campaignArn: smithy_client_1.expectString(output.campaignArn),
|
|
5145
6003
|
};
|
|
5146
6004
|
};
|
|
6005
|
+
const deserializeAws_json1_1UpdateRecommenderResponse = (output, context) => {
|
|
6006
|
+
return {
|
|
6007
|
+
recommenderArn: smithy_client_1.expectString(output.recommenderArn),
|
|
6008
|
+
};
|
|
6009
|
+
};
|
|
5147
6010
|
const deserializeMetadata = (output) => {
|
|
5148
6011
|
var _a;
|
|
5149
6012
|
return ({
|