@aws-sdk/client-personalize 3.41.0 → 3.46.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 +47 -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 +147 -3
- 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.js +0 -2
- 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 -0
- 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.js +0 -2
- package/dist-types/Personalize.d.ts +137 -8
- package/dist-types/PersonalizeClient.d.ts +10 -2
- 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 +634 -3
- 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/ts3.4/Personalize.d.ts +40 -0
- package/dist-types/ts3.4/PersonalizeClient.d.ts +10 -2
- 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 +322 -0
- 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/package.json +36 -43
|
@@ -12,6 +12,17 @@ export var serializeAws_json1_1CreateBatchInferenceJobCommand = function (input,
|
|
|
12
12
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
13
13
|
});
|
|
14
14
|
}); };
|
|
15
|
+
export var serializeAws_json1_1CreateBatchSegmentJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
16
|
+
var headers, body;
|
|
17
|
+
return __generator(this, function (_a) {
|
|
18
|
+
headers = {
|
|
19
|
+
"content-type": "application/x-amz-json-1.1",
|
|
20
|
+
"x-amz-target": "AmazonPersonalize.CreateBatchSegmentJob",
|
|
21
|
+
};
|
|
22
|
+
body = JSON.stringify(serializeAws_json1_1CreateBatchSegmentJobRequest(input, context));
|
|
23
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
24
|
+
});
|
|
25
|
+
}); };
|
|
15
26
|
export var serializeAws_json1_1CreateCampaignCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
16
27
|
var headers, body;
|
|
17
28
|
return __generator(this, function (_a) {
|
|
@@ -89,6 +100,17 @@ export var serializeAws_json1_1CreateFilterCommand = function (input, context) {
|
|
|
89
100
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
90
101
|
});
|
|
91
102
|
}); };
|
|
103
|
+
export var serializeAws_json1_1CreateRecommenderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
104
|
+
var headers, body;
|
|
105
|
+
return __generator(this, function (_a) {
|
|
106
|
+
headers = {
|
|
107
|
+
"content-type": "application/x-amz-json-1.1",
|
|
108
|
+
"x-amz-target": "AmazonPersonalize.CreateRecommender",
|
|
109
|
+
};
|
|
110
|
+
body = JSON.stringify(serializeAws_json1_1CreateRecommenderRequest(input, context));
|
|
111
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
112
|
+
});
|
|
113
|
+
}); };
|
|
92
114
|
export var serializeAws_json1_1CreateSchemaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
93
115
|
var headers, body;
|
|
94
116
|
return __generator(this, function (_a) {
|
|
@@ -177,6 +199,17 @@ export var serializeAws_json1_1DeleteFilterCommand = function (input, context) {
|
|
|
177
199
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
178
200
|
});
|
|
179
201
|
}); };
|
|
202
|
+
export var serializeAws_json1_1DeleteRecommenderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
203
|
+
var headers, body;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
headers = {
|
|
206
|
+
"content-type": "application/x-amz-json-1.1",
|
|
207
|
+
"x-amz-target": "AmazonPersonalize.DeleteRecommender",
|
|
208
|
+
};
|
|
209
|
+
body = JSON.stringify(serializeAws_json1_1DeleteRecommenderRequest(input, context));
|
|
210
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
211
|
+
});
|
|
212
|
+
}); };
|
|
180
213
|
export var serializeAws_json1_1DeleteSchemaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
181
214
|
var headers, body;
|
|
182
215
|
return __generator(this, function (_a) {
|
|
@@ -221,6 +254,17 @@ export var serializeAws_json1_1DescribeBatchInferenceJobCommand = function (inpu
|
|
|
221
254
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
222
255
|
});
|
|
223
256
|
}); };
|
|
257
|
+
export var serializeAws_json1_1DescribeBatchSegmentJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
258
|
+
var headers, body;
|
|
259
|
+
return __generator(this, function (_a) {
|
|
260
|
+
headers = {
|
|
261
|
+
"content-type": "application/x-amz-json-1.1",
|
|
262
|
+
"x-amz-target": "AmazonPersonalize.DescribeBatchSegmentJob",
|
|
263
|
+
};
|
|
264
|
+
body = JSON.stringify(serializeAws_json1_1DescribeBatchSegmentJobRequest(input, context));
|
|
265
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
266
|
+
});
|
|
267
|
+
}); };
|
|
224
268
|
export var serializeAws_json1_1DescribeCampaignCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
225
269
|
var headers, body;
|
|
226
270
|
return __generator(this, function (_a) {
|
|
@@ -320,6 +364,17 @@ export var serializeAws_json1_1DescribeRecipeCommand = function (input, context)
|
|
|
320
364
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
321
365
|
});
|
|
322
366
|
}); };
|
|
367
|
+
export var serializeAws_json1_1DescribeRecommenderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
368
|
+
var headers, body;
|
|
369
|
+
return __generator(this, function (_a) {
|
|
370
|
+
headers = {
|
|
371
|
+
"content-type": "application/x-amz-json-1.1",
|
|
372
|
+
"x-amz-target": "AmazonPersonalize.DescribeRecommender",
|
|
373
|
+
};
|
|
374
|
+
body = JSON.stringify(serializeAws_json1_1DescribeRecommenderRequest(input, context));
|
|
375
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
376
|
+
});
|
|
377
|
+
}); };
|
|
323
378
|
export var serializeAws_json1_1DescribeSchemaCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
324
379
|
var headers, body;
|
|
325
380
|
return __generator(this, function (_a) {
|
|
@@ -375,6 +430,17 @@ export var serializeAws_json1_1ListBatchInferenceJobsCommand = function (input,
|
|
|
375
430
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
376
431
|
});
|
|
377
432
|
}); };
|
|
433
|
+
export var serializeAws_json1_1ListBatchSegmentJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
434
|
+
var headers, body;
|
|
435
|
+
return __generator(this, function (_a) {
|
|
436
|
+
headers = {
|
|
437
|
+
"content-type": "application/x-amz-json-1.1",
|
|
438
|
+
"x-amz-target": "AmazonPersonalize.ListBatchSegmentJobs",
|
|
439
|
+
};
|
|
440
|
+
body = JSON.stringify(serializeAws_json1_1ListBatchSegmentJobsRequest(input, context));
|
|
441
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
442
|
+
});
|
|
443
|
+
}); };
|
|
378
444
|
export var serializeAws_json1_1ListCampaignsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
379
445
|
var headers, body;
|
|
380
446
|
return __generator(this, function (_a) {
|
|
@@ -463,6 +529,17 @@ export var serializeAws_json1_1ListRecipesCommand = function (input, context) {
|
|
|
463
529
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
464
530
|
});
|
|
465
531
|
}); };
|
|
532
|
+
export var serializeAws_json1_1ListRecommendersCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
533
|
+
var headers, body;
|
|
534
|
+
return __generator(this, function (_a) {
|
|
535
|
+
headers = {
|
|
536
|
+
"content-type": "application/x-amz-json-1.1",
|
|
537
|
+
"x-amz-target": "AmazonPersonalize.ListRecommenders",
|
|
538
|
+
};
|
|
539
|
+
body = JSON.stringify(serializeAws_json1_1ListRecommendersRequest(input, context));
|
|
540
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
541
|
+
});
|
|
542
|
+
}); };
|
|
466
543
|
export var serializeAws_json1_1ListSchemasCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
467
544
|
var headers, body;
|
|
468
545
|
return __generator(this, function (_a) {
|
|
@@ -518,6 +595,17 @@ export var serializeAws_json1_1UpdateCampaignCommand = function (input, context)
|
|
|
518
595
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
519
596
|
});
|
|
520
597
|
}); };
|
|
598
|
+
export var serializeAws_json1_1UpdateRecommenderCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
599
|
+
var headers, body;
|
|
600
|
+
return __generator(this, function (_a) {
|
|
601
|
+
headers = {
|
|
602
|
+
"content-type": "application/x-amz-json-1.1",
|
|
603
|
+
"x-amz-target": "AmazonPersonalize.UpdateRecommender",
|
|
604
|
+
};
|
|
605
|
+
body = JSON.stringify(serializeAws_json1_1UpdateRecommenderRequest(input, context));
|
|
606
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
607
|
+
});
|
|
608
|
+
}); };
|
|
521
609
|
export var deserializeAws_json1_1CreateBatchInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
522
610
|
var data, contents, response;
|
|
523
611
|
return __generator(this, function (_a) {
|
|
@@ -606,6 +694,94 @@ var deserializeAws_json1_1CreateBatchInferenceJobCommandError = function (output
|
|
|
606
694
|
}
|
|
607
695
|
});
|
|
608
696
|
}); };
|
|
697
|
+
export var deserializeAws_json1_1CreateBatchSegmentJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
698
|
+
var data, contents, response;
|
|
699
|
+
return __generator(this, function (_a) {
|
|
700
|
+
switch (_a.label) {
|
|
701
|
+
case 0:
|
|
702
|
+
if (output.statusCode >= 300) {
|
|
703
|
+
return [2, deserializeAws_json1_1CreateBatchSegmentJobCommandError(output, context)];
|
|
704
|
+
}
|
|
705
|
+
return [4, parseBody(output.body, context)];
|
|
706
|
+
case 1:
|
|
707
|
+
data = _a.sent();
|
|
708
|
+
contents = {};
|
|
709
|
+
contents = deserializeAws_json1_1CreateBatchSegmentJobResponse(data, context);
|
|
710
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
711
|
+
return [2, Promise.resolve(response)];
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
}); };
|
|
715
|
+
var deserializeAws_json1_1CreateBatchSegmentJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
716
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, parsedBody, message;
|
|
717
|
+
var _h;
|
|
718
|
+
return __generator(this, function (_j) {
|
|
719
|
+
switch (_j.label) {
|
|
720
|
+
case 0:
|
|
721
|
+
_a = [__assign({}, output)];
|
|
722
|
+
_h = {};
|
|
723
|
+
return [4, parseBody(output.body, context)];
|
|
724
|
+
case 1:
|
|
725
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_h.body = _j.sent(), _h)]));
|
|
726
|
+
errorCode = "UnknownError";
|
|
727
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
|
+
_b = errorCode;
|
|
729
|
+
switch (_b) {
|
|
730
|
+
case "InvalidInputException": return [3, 2];
|
|
731
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
732
|
+
case "LimitExceededException": return [3, 4];
|
|
733
|
+
case "com.amazonaws.personalize#LimitExceededException": return [3, 4];
|
|
734
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
735
|
+
case "com.amazonaws.personalize#ResourceAlreadyExistsException": return [3, 6];
|
|
736
|
+
case "ResourceInUseException": return [3, 8];
|
|
737
|
+
case "com.amazonaws.personalize#ResourceInUseException": return [3, 8];
|
|
738
|
+
case "ResourceNotFoundException": return [3, 10];
|
|
739
|
+
case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 10];
|
|
740
|
+
}
|
|
741
|
+
return [3, 12];
|
|
742
|
+
case 2:
|
|
743
|
+
_c = [{}];
|
|
744
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
745
|
+
case 3:
|
|
746
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
747
|
+
return [3, 13];
|
|
748
|
+
case 4:
|
|
749
|
+
_d = [{}];
|
|
750
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
751
|
+
case 5:
|
|
752
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
753
|
+
return [3, 13];
|
|
754
|
+
case 6:
|
|
755
|
+
_e = [{}];
|
|
756
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
757
|
+
case 7:
|
|
758
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
759
|
+
return [3, 13];
|
|
760
|
+
case 8:
|
|
761
|
+
_f = [{}];
|
|
762
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
763
|
+
case 9:
|
|
764
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
765
|
+
return [3, 13];
|
|
766
|
+
case 10:
|
|
767
|
+
_g = [{}];
|
|
768
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
769
|
+
case 11:
|
|
770
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_j.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
771
|
+
return [3, 13];
|
|
772
|
+
case 12:
|
|
773
|
+
parsedBody = parsedOutput.body;
|
|
774
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
775
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
776
|
+
_j.label = 13;
|
|
777
|
+
case 13:
|
|
778
|
+
message = response.message || response.Message || errorCode;
|
|
779
|
+
response.message = message;
|
|
780
|
+
delete response.Message;
|
|
781
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
}); };
|
|
609
785
|
export var deserializeAws_json1_1CreateCampaignCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
610
786
|
var data, contents, response;
|
|
611
787
|
return __generator(this, function (_a) {
|
|
@@ -1198,6 +1374,86 @@ var deserializeAws_json1_1CreateFilterCommandError = function (output, context)
|
|
|
1198
1374
|
}
|
|
1199
1375
|
});
|
|
1200
1376
|
}); };
|
|
1377
|
+
export var deserializeAws_json1_1CreateRecommenderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1378
|
+
var data, contents, response;
|
|
1379
|
+
return __generator(this, function (_a) {
|
|
1380
|
+
switch (_a.label) {
|
|
1381
|
+
case 0:
|
|
1382
|
+
if (output.statusCode >= 300) {
|
|
1383
|
+
return [2, deserializeAws_json1_1CreateRecommenderCommandError(output, context)];
|
|
1384
|
+
}
|
|
1385
|
+
return [4, parseBody(output.body, context)];
|
|
1386
|
+
case 1:
|
|
1387
|
+
data = _a.sent();
|
|
1388
|
+
contents = {};
|
|
1389
|
+
contents = deserializeAws_json1_1CreateRecommenderResponse(data, context);
|
|
1390
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1391
|
+
return [2, Promise.resolve(response)];
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
}); };
|
|
1395
|
+
var deserializeAws_json1_1CreateRecommenderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1396
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1397
|
+
var _g;
|
|
1398
|
+
return __generator(this, function (_h) {
|
|
1399
|
+
switch (_h.label) {
|
|
1400
|
+
case 0:
|
|
1401
|
+
_a = [__assign({}, output)];
|
|
1402
|
+
_g = {};
|
|
1403
|
+
return [4, parseBody(output.body, context)];
|
|
1404
|
+
case 1:
|
|
1405
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1406
|
+
errorCode = "UnknownError";
|
|
1407
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1408
|
+
_b = errorCode;
|
|
1409
|
+
switch (_b) {
|
|
1410
|
+
case "InvalidInputException": return [3, 2];
|
|
1411
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
1412
|
+
case "LimitExceededException": return [3, 4];
|
|
1413
|
+
case "com.amazonaws.personalize#LimitExceededException": return [3, 4];
|
|
1414
|
+
case "ResourceAlreadyExistsException": return [3, 6];
|
|
1415
|
+
case "com.amazonaws.personalize#ResourceAlreadyExistsException": return [3, 6];
|
|
1416
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1417
|
+
case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 8];
|
|
1418
|
+
}
|
|
1419
|
+
return [3, 10];
|
|
1420
|
+
case 2:
|
|
1421
|
+
_c = [{}];
|
|
1422
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
1423
|
+
case 3:
|
|
1424
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1425
|
+
return [3, 11];
|
|
1426
|
+
case 4:
|
|
1427
|
+
_d = [{}];
|
|
1428
|
+
return [4, deserializeAws_json1_1LimitExceededExceptionResponse(parsedOutput, context)];
|
|
1429
|
+
case 5:
|
|
1430
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1431
|
+
return [3, 11];
|
|
1432
|
+
case 6:
|
|
1433
|
+
_e = [{}];
|
|
1434
|
+
return [4, deserializeAws_json1_1ResourceAlreadyExistsExceptionResponse(parsedOutput, context)];
|
|
1435
|
+
case 7:
|
|
1436
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1437
|
+
return [3, 11];
|
|
1438
|
+
case 8:
|
|
1439
|
+
_f = [{}];
|
|
1440
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1441
|
+
case 9:
|
|
1442
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1443
|
+
return [3, 11];
|
|
1444
|
+
case 10:
|
|
1445
|
+
parsedBody = parsedOutput.body;
|
|
1446
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1447
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1448
|
+
_h.label = 11;
|
|
1449
|
+
case 11:
|
|
1450
|
+
message = response.message || response.Message || errorCode;
|
|
1451
|
+
response.message = message;
|
|
1452
|
+
delete response.Message;
|
|
1453
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1454
|
+
}
|
|
1455
|
+
});
|
|
1456
|
+
}); };
|
|
1201
1457
|
export var deserializeAws_json1_1CreateSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1202
1458
|
var data, contents, response;
|
|
1203
1459
|
return __generator(this, function (_a) {
|
|
@@ -1798,13 +2054,13 @@ var deserializeAws_json1_1DeleteFilterCommandError = function (output, context)
|
|
|
1798
2054
|
}
|
|
1799
2055
|
});
|
|
1800
2056
|
}); };
|
|
1801
|
-
export var
|
|
2057
|
+
export var deserializeAws_json1_1DeleteRecommenderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1802
2058
|
var response;
|
|
1803
2059
|
return __generator(this, function (_a) {
|
|
1804
2060
|
switch (_a.label) {
|
|
1805
2061
|
case 0:
|
|
1806
2062
|
if (output.statusCode >= 300) {
|
|
1807
|
-
return [2,
|
|
2063
|
+
return [2, deserializeAws_json1_1DeleteRecommenderCommandError(output, context)];
|
|
1808
2064
|
}
|
|
1809
2065
|
return [4, collectBody(output.body, context)];
|
|
1810
2066
|
case 1:
|
|
@@ -1816,7 +2072,7 @@ export var deserializeAws_json1_1DeleteSchemaCommand = function (output, context
|
|
|
1816
2072
|
}
|
|
1817
2073
|
});
|
|
1818
2074
|
}); };
|
|
1819
|
-
var
|
|
2075
|
+
var deserializeAws_json1_1DeleteRecommenderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1820
2076
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1821
2077
|
var _f;
|
|
1822
2078
|
return __generator(this, function (_g) {
|
|
@@ -1870,13 +2126,13 @@ var deserializeAws_json1_1DeleteSchemaCommandError = function (output, context)
|
|
|
1870
2126
|
}
|
|
1871
2127
|
});
|
|
1872
2128
|
}); };
|
|
1873
|
-
export var
|
|
2129
|
+
export var deserializeAws_json1_1DeleteSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1874
2130
|
var response;
|
|
1875
2131
|
return __generator(this, function (_a) {
|
|
1876
2132
|
switch (_a.label) {
|
|
1877
2133
|
case 0:
|
|
1878
2134
|
if (output.statusCode >= 300) {
|
|
1879
|
-
return [2,
|
|
2135
|
+
return [2, deserializeAws_json1_1DeleteSchemaCommandError(output, context)];
|
|
1880
2136
|
}
|
|
1881
2137
|
return [4, collectBody(output.body, context)];
|
|
1882
2138
|
case 1:
|
|
@@ -1888,7 +2144,7 @@ export var deserializeAws_json1_1DeleteSolutionCommand = function (output, conte
|
|
|
1888
2144
|
}
|
|
1889
2145
|
});
|
|
1890
2146
|
}); };
|
|
1891
|
-
var
|
|
2147
|
+
var deserializeAws_json1_1DeleteSchemaCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1892
2148
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1893
2149
|
var _f;
|
|
1894
2150
|
return __generator(this, function (_g) {
|
|
@@ -1942,31 +2198,103 @@ var deserializeAws_json1_1DeleteSolutionCommandError = function (output, context
|
|
|
1942
2198
|
}
|
|
1943
2199
|
});
|
|
1944
2200
|
}); };
|
|
1945
|
-
export var
|
|
1946
|
-
var
|
|
2201
|
+
export var deserializeAws_json1_1DeleteSolutionCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2202
|
+
var response;
|
|
1947
2203
|
return __generator(this, function (_a) {
|
|
1948
2204
|
switch (_a.label) {
|
|
1949
2205
|
case 0:
|
|
1950
2206
|
if (output.statusCode >= 300) {
|
|
1951
|
-
return [2,
|
|
2207
|
+
return [2, deserializeAws_json1_1DeleteSolutionCommandError(output, context)];
|
|
1952
2208
|
}
|
|
1953
|
-
return [4,
|
|
2209
|
+
return [4, collectBody(output.body, context)];
|
|
1954
2210
|
case 1:
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
2211
|
+
_a.sent();
|
|
2212
|
+
response = {
|
|
2213
|
+
$metadata: deserializeMetadata(output),
|
|
2214
|
+
};
|
|
1959
2215
|
return [2, Promise.resolve(response)];
|
|
1960
2216
|
}
|
|
1961
2217
|
});
|
|
1962
2218
|
}); };
|
|
1963
|
-
var
|
|
1964
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
1965
|
-
var
|
|
1966
|
-
return __generator(this, function (
|
|
1967
|
-
switch (
|
|
1968
|
-
case 0:
|
|
1969
|
-
_a = [__assign({}, output)];
|
|
2219
|
+
var deserializeAws_json1_1DeleteSolutionCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2220
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
2221
|
+
var _f;
|
|
2222
|
+
return __generator(this, function (_g) {
|
|
2223
|
+
switch (_g.label) {
|
|
2224
|
+
case 0:
|
|
2225
|
+
_a = [__assign({}, output)];
|
|
2226
|
+
_f = {};
|
|
2227
|
+
return [4, parseBody(output.body, context)];
|
|
2228
|
+
case 1:
|
|
2229
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
2230
|
+
errorCode = "UnknownError";
|
|
2231
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2232
|
+
_b = errorCode;
|
|
2233
|
+
switch (_b) {
|
|
2234
|
+
case "InvalidInputException": return [3, 2];
|
|
2235
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
2236
|
+
case "ResourceInUseException": return [3, 4];
|
|
2237
|
+
case "com.amazonaws.personalize#ResourceInUseException": return [3, 4];
|
|
2238
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2239
|
+
case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 6];
|
|
2240
|
+
}
|
|
2241
|
+
return [3, 8];
|
|
2242
|
+
case 2:
|
|
2243
|
+
_c = [{}];
|
|
2244
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2245
|
+
case 3:
|
|
2246
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2247
|
+
return [3, 9];
|
|
2248
|
+
case 4:
|
|
2249
|
+
_d = [{}];
|
|
2250
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
2251
|
+
case 5:
|
|
2252
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2253
|
+
return [3, 9];
|
|
2254
|
+
case 6:
|
|
2255
|
+
_e = [{}];
|
|
2256
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2257
|
+
case 7:
|
|
2258
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2259
|
+
return [3, 9];
|
|
2260
|
+
case 8:
|
|
2261
|
+
parsedBody = parsedOutput.body;
|
|
2262
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2263
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2264
|
+
_g.label = 9;
|
|
2265
|
+
case 9:
|
|
2266
|
+
message = response.message || response.Message || errorCode;
|
|
2267
|
+
response.message = message;
|
|
2268
|
+
delete response.Message;
|
|
2269
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2270
|
+
}
|
|
2271
|
+
});
|
|
2272
|
+
}); };
|
|
2273
|
+
export var deserializeAws_json1_1DescribeAlgorithmCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2274
|
+
var data, contents, response;
|
|
2275
|
+
return __generator(this, function (_a) {
|
|
2276
|
+
switch (_a.label) {
|
|
2277
|
+
case 0:
|
|
2278
|
+
if (output.statusCode >= 300) {
|
|
2279
|
+
return [2, deserializeAws_json1_1DescribeAlgorithmCommandError(output, context)];
|
|
2280
|
+
}
|
|
2281
|
+
return [4, parseBody(output.body, context)];
|
|
2282
|
+
case 1:
|
|
2283
|
+
data = _a.sent();
|
|
2284
|
+
contents = {};
|
|
2285
|
+
contents = deserializeAws_json1_1DescribeAlgorithmResponse(data, context);
|
|
2286
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2287
|
+
return [2, Promise.resolve(response)];
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
}); };
|
|
2291
|
+
var deserializeAws_json1_1DescribeAlgorithmCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2292
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2293
|
+
var _e;
|
|
2294
|
+
return __generator(this, function (_f) {
|
|
2295
|
+
switch (_f.label) {
|
|
2296
|
+
case 0:
|
|
2297
|
+
_a = [__assign({}, output)];
|
|
1970
2298
|
_e = {};
|
|
1971
2299
|
return [4, parseBody(output.body, context)];
|
|
1972
2300
|
case 1:
|
|
@@ -2070,6 +2398,70 @@ var deserializeAws_json1_1DescribeBatchInferenceJobCommandError = function (outp
|
|
|
2070
2398
|
}
|
|
2071
2399
|
});
|
|
2072
2400
|
}); };
|
|
2401
|
+
export var deserializeAws_json1_1DescribeBatchSegmentJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2402
|
+
var data, contents, response;
|
|
2403
|
+
return __generator(this, function (_a) {
|
|
2404
|
+
switch (_a.label) {
|
|
2405
|
+
case 0:
|
|
2406
|
+
if (output.statusCode >= 300) {
|
|
2407
|
+
return [2, deserializeAws_json1_1DescribeBatchSegmentJobCommandError(output, context)];
|
|
2408
|
+
}
|
|
2409
|
+
return [4, parseBody(output.body, context)];
|
|
2410
|
+
case 1:
|
|
2411
|
+
data = _a.sent();
|
|
2412
|
+
contents = {};
|
|
2413
|
+
contents = deserializeAws_json1_1DescribeBatchSegmentJobResponse(data, context);
|
|
2414
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2415
|
+
return [2, Promise.resolve(response)];
|
|
2416
|
+
}
|
|
2417
|
+
});
|
|
2418
|
+
}); };
|
|
2419
|
+
var deserializeAws_json1_1DescribeBatchSegmentJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2420
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
2421
|
+
var _e;
|
|
2422
|
+
return __generator(this, function (_f) {
|
|
2423
|
+
switch (_f.label) {
|
|
2424
|
+
case 0:
|
|
2425
|
+
_a = [__assign({}, output)];
|
|
2426
|
+
_e = {};
|
|
2427
|
+
return [4, parseBody(output.body, context)];
|
|
2428
|
+
case 1:
|
|
2429
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
2430
|
+
errorCode = "UnknownError";
|
|
2431
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
+
_b = errorCode;
|
|
2433
|
+
switch (_b) {
|
|
2434
|
+
case "InvalidInputException": return [3, 2];
|
|
2435
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
2436
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
2437
|
+
case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 4];
|
|
2438
|
+
}
|
|
2439
|
+
return [3, 6];
|
|
2440
|
+
case 2:
|
|
2441
|
+
_c = [{}];
|
|
2442
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
2443
|
+
case 3:
|
|
2444
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2445
|
+
return [3, 7];
|
|
2446
|
+
case 4:
|
|
2447
|
+
_d = [{}];
|
|
2448
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2449
|
+
case 5:
|
|
2450
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2451
|
+
return [3, 7];
|
|
2452
|
+
case 6:
|
|
2453
|
+
parsedBody = parsedOutput.body;
|
|
2454
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2455
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2456
|
+
_f.label = 7;
|
|
2457
|
+
case 7:
|
|
2458
|
+
message = response.message || response.Message || errorCode;
|
|
2459
|
+
response.message = message;
|
|
2460
|
+
delete response.Message;
|
|
2461
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2462
|
+
}
|
|
2463
|
+
});
|
|
2464
|
+
}); };
|
|
2073
2465
|
export var deserializeAws_json1_1DescribeCampaignCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2074
2466
|
var data, contents, response;
|
|
2075
2467
|
return __generator(this, function (_a) {
|
|
@@ -2646,6 +3038,70 @@ var deserializeAws_json1_1DescribeRecipeCommandError = function (output, context
|
|
|
2646
3038
|
}
|
|
2647
3039
|
});
|
|
2648
3040
|
}); };
|
|
3041
|
+
export var deserializeAws_json1_1DescribeRecommenderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3042
|
+
var data, contents, response;
|
|
3043
|
+
return __generator(this, function (_a) {
|
|
3044
|
+
switch (_a.label) {
|
|
3045
|
+
case 0:
|
|
3046
|
+
if (output.statusCode >= 300) {
|
|
3047
|
+
return [2, deserializeAws_json1_1DescribeRecommenderCommandError(output, context)];
|
|
3048
|
+
}
|
|
3049
|
+
return [4, parseBody(output.body, context)];
|
|
3050
|
+
case 1:
|
|
3051
|
+
data = _a.sent();
|
|
3052
|
+
contents = {};
|
|
3053
|
+
contents = deserializeAws_json1_1DescribeRecommenderResponse(data, context);
|
|
3054
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3055
|
+
return [2, Promise.resolve(response)];
|
|
3056
|
+
}
|
|
3057
|
+
});
|
|
3058
|
+
}); };
|
|
3059
|
+
var deserializeAws_json1_1DescribeRecommenderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3060
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
3061
|
+
var _e;
|
|
3062
|
+
return __generator(this, function (_f) {
|
|
3063
|
+
switch (_f.label) {
|
|
3064
|
+
case 0:
|
|
3065
|
+
_a = [__assign({}, output)];
|
|
3066
|
+
_e = {};
|
|
3067
|
+
return [4, parseBody(output.body, context)];
|
|
3068
|
+
case 1:
|
|
3069
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3070
|
+
errorCode = "UnknownError";
|
|
3071
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3072
|
+
_b = errorCode;
|
|
3073
|
+
switch (_b) {
|
|
3074
|
+
case "InvalidInputException": return [3, 2];
|
|
3075
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
3076
|
+
case "ResourceNotFoundException": return [3, 4];
|
|
3077
|
+
case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 4];
|
|
3078
|
+
}
|
|
3079
|
+
return [3, 6];
|
|
3080
|
+
case 2:
|
|
3081
|
+
_c = [{}];
|
|
3082
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3083
|
+
case 3:
|
|
3084
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3085
|
+
return [3, 7];
|
|
3086
|
+
case 4:
|
|
3087
|
+
_d = [{}];
|
|
3088
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
3089
|
+
case 5:
|
|
3090
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3091
|
+
return [3, 7];
|
|
3092
|
+
case 6:
|
|
3093
|
+
parsedBody = parsedOutput.body;
|
|
3094
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3095
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3096
|
+
_f.label = 7;
|
|
3097
|
+
case 7:
|
|
3098
|
+
message = response.message || response.Message || errorCode;
|
|
3099
|
+
response.message = message;
|
|
3100
|
+
delete response.Message;
|
|
3101
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3102
|
+
}
|
|
3103
|
+
});
|
|
3104
|
+
}); };
|
|
2649
3105
|
export var deserializeAws_json1_1DescribeSchemaCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2650
3106
|
var data, contents, response;
|
|
2651
3107
|
return __generator(this, function (_a) {
|
|
@@ -2974,6 +3430,70 @@ var deserializeAws_json1_1ListBatchInferenceJobsCommandError = function (output,
|
|
|
2974
3430
|
}
|
|
2975
3431
|
});
|
|
2976
3432
|
}); };
|
|
3433
|
+
export var deserializeAws_json1_1ListBatchSegmentJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3434
|
+
var data, contents, response;
|
|
3435
|
+
return __generator(this, function (_a) {
|
|
3436
|
+
switch (_a.label) {
|
|
3437
|
+
case 0:
|
|
3438
|
+
if (output.statusCode >= 300) {
|
|
3439
|
+
return [2, deserializeAws_json1_1ListBatchSegmentJobsCommandError(output, context)];
|
|
3440
|
+
}
|
|
3441
|
+
return [4, parseBody(output.body, context)];
|
|
3442
|
+
case 1:
|
|
3443
|
+
data = _a.sent();
|
|
3444
|
+
contents = {};
|
|
3445
|
+
contents = deserializeAws_json1_1ListBatchSegmentJobsResponse(data, context);
|
|
3446
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
3447
|
+
return [2, Promise.resolve(response)];
|
|
3448
|
+
}
|
|
3449
|
+
});
|
|
3450
|
+
}); };
|
|
3451
|
+
var deserializeAws_json1_1ListBatchSegmentJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3452
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
3453
|
+
var _e;
|
|
3454
|
+
return __generator(this, function (_f) {
|
|
3455
|
+
switch (_f.label) {
|
|
3456
|
+
case 0:
|
|
3457
|
+
_a = [__assign({}, output)];
|
|
3458
|
+
_e = {};
|
|
3459
|
+
return [4, parseBody(output.body, context)];
|
|
3460
|
+
case 1:
|
|
3461
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3462
|
+
errorCode = "UnknownError";
|
|
3463
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3464
|
+
_b = errorCode;
|
|
3465
|
+
switch (_b) {
|
|
3466
|
+
case "InvalidInputException": return [3, 2];
|
|
3467
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
3468
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
3469
|
+
case "com.amazonaws.personalize#InvalidNextTokenException": return [3, 4];
|
|
3470
|
+
}
|
|
3471
|
+
return [3, 6];
|
|
3472
|
+
case 2:
|
|
3473
|
+
_c = [{}];
|
|
3474
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3475
|
+
case 3:
|
|
3476
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3477
|
+
return [3, 7];
|
|
3478
|
+
case 4:
|
|
3479
|
+
_d = [{}];
|
|
3480
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
3481
|
+
case 5:
|
|
3482
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3483
|
+
return [3, 7];
|
|
3484
|
+
case 6:
|
|
3485
|
+
parsedBody = parsedOutput.body;
|
|
3486
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3487
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3488
|
+
_f.label = 7;
|
|
3489
|
+
case 7:
|
|
3490
|
+
message = response.message || response.Message || errorCode;
|
|
3491
|
+
response.message = message;
|
|
3492
|
+
delete response.Message;
|
|
3493
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3494
|
+
}
|
|
3495
|
+
});
|
|
3496
|
+
}); };
|
|
2977
3497
|
export var deserializeAws_json1_1ListCampaignsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2978
3498
|
var data, contents, response;
|
|
2979
3499
|
return __generator(this, function (_a) {
|
|
@@ -3433,36 +3953,108 @@ export var deserializeAws_json1_1ListRecipesCommand = function (output, context)
|
|
|
3433
3953
|
});
|
|
3434
3954
|
}); };
|
|
3435
3955
|
var deserializeAws_json1_1ListRecipesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3436
|
-
var parsedOutput, _a, response, errorCode, _b, _c, parsedBody, message;
|
|
3437
|
-
var
|
|
3438
|
-
return __generator(this, function (
|
|
3439
|
-
switch (
|
|
3956
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
3957
|
+
var _e;
|
|
3958
|
+
return __generator(this, function (_f) {
|
|
3959
|
+
switch (_f.label) {
|
|
3440
3960
|
case 0:
|
|
3441
3961
|
_a = [__assign({}, output)];
|
|
3442
|
-
|
|
3962
|
+
_e = {};
|
|
3443
3963
|
return [4, parseBody(output.body, context)];
|
|
3444
3964
|
case 1:
|
|
3445
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(
|
|
3965
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
3446
3966
|
errorCode = "UnknownError";
|
|
3447
3967
|
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3448
3968
|
_b = errorCode;
|
|
3449
3969
|
switch (_b) {
|
|
3450
|
-
case "
|
|
3451
|
-
case "com.amazonaws.personalize#
|
|
3970
|
+
case "InvalidInputException": return [3, 2];
|
|
3971
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
3972
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
3973
|
+
case "com.amazonaws.personalize#InvalidNextTokenException": return [3, 4];
|
|
3974
|
+
}
|
|
3975
|
+
return [3, 6];
|
|
3976
|
+
case 2:
|
|
3977
|
+
_c = [{}];
|
|
3978
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3979
|
+
case 3:
|
|
3980
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3981
|
+
return [3, 7];
|
|
3982
|
+
case 4:
|
|
3983
|
+
_d = [{}];
|
|
3984
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
3985
|
+
case 5:
|
|
3986
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
3987
|
+
return [3, 7];
|
|
3988
|
+
case 6:
|
|
3989
|
+
parsedBody = parsedOutput.body;
|
|
3990
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3991
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3992
|
+
_f.label = 7;
|
|
3993
|
+
case 7:
|
|
3994
|
+
message = response.message || response.Message || errorCode;
|
|
3995
|
+
response.message = message;
|
|
3996
|
+
delete response.Message;
|
|
3997
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
3998
|
+
}
|
|
3999
|
+
});
|
|
4000
|
+
}); };
|
|
4001
|
+
export var deserializeAws_json1_1ListRecommendersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4002
|
+
var data, contents, response;
|
|
4003
|
+
return __generator(this, function (_a) {
|
|
4004
|
+
switch (_a.label) {
|
|
4005
|
+
case 0:
|
|
4006
|
+
if (output.statusCode >= 300) {
|
|
4007
|
+
return [2, deserializeAws_json1_1ListRecommendersCommandError(output, context)];
|
|
4008
|
+
}
|
|
4009
|
+
return [4, parseBody(output.body, context)];
|
|
4010
|
+
case 1:
|
|
4011
|
+
data = _a.sent();
|
|
4012
|
+
contents = {};
|
|
4013
|
+
contents = deserializeAws_json1_1ListRecommendersResponse(data, context);
|
|
4014
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4015
|
+
return [2, Promise.resolve(response)];
|
|
4016
|
+
}
|
|
4017
|
+
});
|
|
4018
|
+
}); };
|
|
4019
|
+
var deserializeAws_json1_1ListRecommendersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4020
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, parsedBody, message;
|
|
4021
|
+
var _e;
|
|
4022
|
+
return __generator(this, function (_f) {
|
|
4023
|
+
switch (_f.label) {
|
|
4024
|
+
case 0:
|
|
4025
|
+
_a = [__assign({}, output)];
|
|
4026
|
+
_e = {};
|
|
4027
|
+
return [4, parseBody(output.body, context)];
|
|
4028
|
+
case 1:
|
|
4029
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_e.body = _f.sent(), _e)]));
|
|
4030
|
+
errorCode = "UnknownError";
|
|
4031
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4032
|
+
_b = errorCode;
|
|
4033
|
+
switch (_b) {
|
|
4034
|
+
case "InvalidInputException": return [3, 2];
|
|
4035
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
4036
|
+
case "InvalidNextTokenException": return [3, 4];
|
|
4037
|
+
case "com.amazonaws.personalize#InvalidNextTokenException": return [3, 4];
|
|
3452
4038
|
}
|
|
3453
|
-
return [3,
|
|
4039
|
+
return [3, 6];
|
|
3454
4040
|
case 2:
|
|
3455
4041
|
_c = [{}];
|
|
3456
|
-
return [4,
|
|
4042
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
3457
4043
|
case 3:
|
|
3458
|
-
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(
|
|
3459
|
-
return [3,
|
|
4044
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4045
|
+
return [3, 7];
|
|
3460
4046
|
case 4:
|
|
4047
|
+
_d = [{}];
|
|
4048
|
+
return [4, deserializeAws_json1_1InvalidNextTokenExceptionResponse(parsedOutput, context)];
|
|
4049
|
+
case 5:
|
|
4050
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_f.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4051
|
+
return [3, 7];
|
|
4052
|
+
case 6:
|
|
3461
4053
|
parsedBody = parsedOutput.body;
|
|
3462
4054
|
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
3463
4055
|
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
3464
|
-
|
|
3465
|
-
case
|
|
4056
|
+
_f.label = 7;
|
|
4057
|
+
case 7:
|
|
3466
4058
|
message = response.message || response.Message || errorCode;
|
|
3467
4059
|
response.message = message;
|
|
3468
4060
|
delete response.Message;
|
|
@@ -3806,6 +4398,78 @@ var deserializeAws_json1_1UpdateCampaignCommandError = function (output, context
|
|
|
3806
4398
|
}
|
|
3807
4399
|
});
|
|
3808
4400
|
}); };
|
|
4401
|
+
export var deserializeAws_json1_1UpdateRecommenderCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4402
|
+
var data, contents, response;
|
|
4403
|
+
return __generator(this, function (_a) {
|
|
4404
|
+
switch (_a.label) {
|
|
4405
|
+
case 0:
|
|
4406
|
+
if (output.statusCode >= 300) {
|
|
4407
|
+
return [2, deserializeAws_json1_1UpdateRecommenderCommandError(output, context)];
|
|
4408
|
+
}
|
|
4409
|
+
return [4, parseBody(output.body, context)];
|
|
4410
|
+
case 1:
|
|
4411
|
+
data = _a.sent();
|
|
4412
|
+
contents = {};
|
|
4413
|
+
contents = deserializeAws_json1_1UpdateRecommenderResponse(data, context);
|
|
4414
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
4415
|
+
return [2, Promise.resolve(response)];
|
|
4416
|
+
}
|
|
4417
|
+
});
|
|
4418
|
+
}); };
|
|
4419
|
+
var deserializeAws_json1_1UpdateRecommenderCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
4420
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
4421
|
+
var _f;
|
|
4422
|
+
return __generator(this, function (_g) {
|
|
4423
|
+
switch (_g.label) {
|
|
4424
|
+
case 0:
|
|
4425
|
+
_a = [__assign({}, output)];
|
|
4426
|
+
_f = {};
|
|
4427
|
+
return [4, parseBody(output.body, context)];
|
|
4428
|
+
case 1:
|
|
4429
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_f.body = _g.sent(), _f)]));
|
|
4430
|
+
errorCode = "UnknownError";
|
|
4431
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4432
|
+
_b = errorCode;
|
|
4433
|
+
switch (_b) {
|
|
4434
|
+
case "InvalidInputException": return [3, 2];
|
|
4435
|
+
case "com.amazonaws.personalize#InvalidInputException": return [3, 2];
|
|
4436
|
+
case "ResourceInUseException": return [3, 4];
|
|
4437
|
+
case "com.amazonaws.personalize#ResourceInUseException": return [3, 4];
|
|
4438
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
4439
|
+
case "com.amazonaws.personalize#ResourceNotFoundException": return [3, 6];
|
|
4440
|
+
}
|
|
4441
|
+
return [3, 8];
|
|
4442
|
+
case 2:
|
|
4443
|
+
_c = [{}];
|
|
4444
|
+
return [4, deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context)];
|
|
4445
|
+
case 3:
|
|
4446
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4447
|
+
return [3, 9];
|
|
4448
|
+
case 4:
|
|
4449
|
+
_d = [{}];
|
|
4450
|
+
return [4, deserializeAws_json1_1ResourceInUseExceptionResponse(parsedOutput, context)];
|
|
4451
|
+
case 5:
|
|
4452
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4453
|
+
return [3, 9];
|
|
4454
|
+
case 6:
|
|
4455
|
+
_e = [{}];
|
|
4456
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
4457
|
+
case 7:
|
|
4458
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_g.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
4459
|
+
return [3, 9];
|
|
4460
|
+
case 8:
|
|
4461
|
+
parsedBody = parsedOutput.body;
|
|
4462
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
4463
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
4464
|
+
_g.label = 9;
|
|
4465
|
+
case 9:
|
|
4466
|
+
message = response.message || response.Message || errorCode;
|
|
4467
|
+
response.message = message;
|
|
4468
|
+
delete response.Message;
|
|
4469
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
4470
|
+
}
|
|
4471
|
+
});
|
|
4472
|
+
}); };
|
|
3809
4473
|
var deserializeAws_json1_1InvalidInputExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
3810
4474
|
var body, deserialized, contents;
|
|
3811
4475
|
return __generator(this, function (_a) {
|
|
@@ -3890,6 +4554,16 @@ var serializeAws_json1_1BatchInferenceJobOutput = function (input, context) {
|
|
|
3890
4554
|
s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
|
|
3891
4555
|
}));
|
|
3892
4556
|
};
|
|
4557
|
+
var serializeAws_json1_1BatchSegmentJobInput = function (input, context) {
|
|
4558
|
+
return __assign({}, (input.s3DataSource !== undefined &&
|
|
4559
|
+
input.s3DataSource !== null && { s3DataSource: serializeAws_json1_1S3DataConfig(input.s3DataSource, context) }));
|
|
4560
|
+
};
|
|
4561
|
+
var serializeAws_json1_1BatchSegmentJobOutput = function (input, context) {
|
|
4562
|
+
return __assign({}, (input.s3DataDestination !== undefined &&
|
|
4563
|
+
input.s3DataDestination !== null && {
|
|
4564
|
+
s3DataDestination: serializeAws_json1_1S3DataConfig(input.s3DataDestination, context),
|
|
4565
|
+
}));
|
|
4566
|
+
};
|
|
3893
4567
|
var serializeAws_json1_1CampaignConfig = function (input, context) {
|
|
3894
4568
|
return __assign({}, (input.itemExplorationConfig !== undefined &&
|
|
3895
4569
|
input.itemExplorationConfig !== null && {
|
|
@@ -3942,6 +4616,12 @@ var serializeAws_json1_1CreateBatchInferenceJobRequest = function (input, contex
|
|
|
3942
4616
|
input.jobOutput !== null && { jobOutput: serializeAws_json1_1BatchInferenceJobOutput(input.jobOutput, context) })), (input.numResults !== undefined && input.numResults !== null && { numResults: input.numResults })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.solutionVersionArn !== undefined &&
|
|
3943
4617
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }));
|
|
3944
4618
|
};
|
|
4619
|
+
var serializeAws_json1_1CreateBatchSegmentJobRequest = function (input, context) {
|
|
4620
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn })), (input.jobInput !== undefined &&
|
|
4621
|
+
input.jobInput !== null && { jobInput: serializeAws_json1_1BatchSegmentJobInput(input.jobInput, context) })), (input.jobName !== undefined && input.jobName !== null && { jobName: input.jobName })), (input.jobOutput !== undefined &&
|
|
4622
|
+
input.jobOutput !== null && { jobOutput: serializeAws_json1_1BatchSegmentJobOutput(input.jobOutput, context) })), (input.numResults !== undefined && input.numResults !== null && { numResults: input.numResults })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn })), (input.solutionVersionArn !== undefined &&
|
|
4623
|
+
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }));
|
|
4624
|
+
};
|
|
3945
4625
|
var serializeAws_json1_1CreateCampaignRequest = function (input, context) {
|
|
3946
4626
|
return __assign(__assign(__assign(__assign({}, (input.campaignConfig !== undefined &&
|
|
3947
4627
|
input.campaignConfig !== null && {
|
|
@@ -3955,7 +4635,7 @@ var serializeAws_json1_1CreateDatasetExportJobRequest = function (input, context
|
|
|
3955
4635
|
input.jobOutput !== null && { jobOutput: serializeAws_json1_1DatasetExportJobOutput(input.jobOutput, context) })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
3956
4636
|
};
|
|
3957
4637
|
var serializeAws_json1_1CreateDatasetGroupRequest = function (input, context) {
|
|
3958
|
-
return __assign(__assign(__assign({}, (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
4638
|
+
return __assign(__assign(__assign(__assign({}, (input.domain !== undefined && input.domain !== null && { domain: input.domain })), (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }));
|
|
3959
4639
|
};
|
|
3960
4640
|
var serializeAws_json1_1CreateDatasetImportJobRequest = function (input, context) {
|
|
3961
4641
|
return __assign(__assign(__assign(__assign({}, (input.dataSource !== undefined &&
|
|
@@ -3974,8 +4654,15 @@ var serializeAws_json1_1CreateFilterRequest = function (input, context) {
|
|
|
3974
4654
|
input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn })), (input.filterExpression !== undefined &&
|
|
3975
4655
|
input.filterExpression !== null && { filterExpression: input.filterExpression })), (input.name !== undefined && input.name !== null && { name: input.name }));
|
|
3976
4656
|
};
|
|
4657
|
+
var serializeAws_json1_1CreateRecommenderRequest = function (input, context) {
|
|
4658
|
+
return __assign(__assign(__assign(__assign({}, (input.datasetGroupArn !== undefined &&
|
|
4659
|
+
input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn })), (input.recommenderConfig !== undefined &&
|
|
4660
|
+
input.recommenderConfig !== null && {
|
|
4661
|
+
recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
|
|
4662
|
+
}));
|
|
4663
|
+
};
|
|
3977
4664
|
var serializeAws_json1_1CreateSchemaRequest = function (input, context) {
|
|
3978
|
-
return __assign(__assign({}, (input.name !== undefined && input.name !== null && { name: input.name })), (input.schema !== undefined && input.schema !== null && { schema: input.schema }));
|
|
4665
|
+
return __assign(__assign(__assign({}, (input.domain !== undefined && input.domain !== null && { domain: input.domain })), (input.name !== undefined && input.name !== null && { name: input.name })), (input.schema !== undefined && input.schema !== null && { schema: input.schema }));
|
|
3979
4666
|
};
|
|
3980
4667
|
var serializeAws_json1_1CreateSolutionRequest = function (input, context) {
|
|
3981
4668
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.datasetGroupArn !== undefined &&
|
|
@@ -4013,6 +4700,10 @@ var serializeAws_json1_1DeleteEventTrackerRequest = function (input, context) {
|
|
|
4013
4700
|
var serializeAws_json1_1DeleteFilterRequest = function (input, context) {
|
|
4014
4701
|
return __assign({}, (input.filterArn !== undefined && input.filterArn !== null && { filterArn: input.filterArn }));
|
|
4015
4702
|
};
|
|
4703
|
+
var serializeAws_json1_1DeleteRecommenderRequest = function (input, context) {
|
|
4704
|
+
return __assign({}, (input.recommenderArn !== undefined &&
|
|
4705
|
+
input.recommenderArn !== null && { recommenderArn: input.recommenderArn }));
|
|
4706
|
+
};
|
|
4016
4707
|
var serializeAws_json1_1DeleteSchemaRequest = function (input, context) {
|
|
4017
4708
|
return __assign({}, (input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }));
|
|
4018
4709
|
};
|
|
@@ -4026,6 +4717,10 @@ var serializeAws_json1_1DescribeBatchInferenceJobRequest = function (input, cont
|
|
|
4026
4717
|
return __assign({}, (input.batchInferenceJobArn !== undefined &&
|
|
4027
4718
|
input.batchInferenceJobArn !== null && { batchInferenceJobArn: input.batchInferenceJobArn }));
|
|
4028
4719
|
};
|
|
4720
|
+
var serializeAws_json1_1DescribeBatchSegmentJobRequest = function (input, context) {
|
|
4721
|
+
return __assign({}, (input.batchSegmentJobArn !== undefined &&
|
|
4722
|
+
input.batchSegmentJobArn !== null && { batchSegmentJobArn: input.batchSegmentJobArn }));
|
|
4723
|
+
};
|
|
4029
4724
|
var serializeAws_json1_1DescribeCampaignRequest = function (input, context) {
|
|
4030
4725
|
return __assign({}, (input.campaignArn !== undefined && input.campaignArn !== null && { campaignArn: input.campaignArn }));
|
|
4031
4726
|
};
|
|
@@ -4058,6 +4753,10 @@ var serializeAws_json1_1DescribeFilterRequest = function (input, context) {
|
|
|
4058
4753
|
var serializeAws_json1_1DescribeRecipeRequest = function (input, context) {
|
|
4059
4754
|
return __assign({}, (input.recipeArn !== undefined && input.recipeArn !== null && { recipeArn: input.recipeArn }));
|
|
4060
4755
|
};
|
|
4756
|
+
var serializeAws_json1_1DescribeRecommenderRequest = function (input, context) {
|
|
4757
|
+
return __assign({}, (input.recommenderArn !== undefined &&
|
|
4758
|
+
input.recommenderArn !== null && { recommenderArn: input.recommenderArn }));
|
|
4759
|
+
};
|
|
4061
4760
|
var serializeAws_json1_1DescribeSchemaRequest = function (input, context) {
|
|
4062
4761
|
return __assign({}, (input.schemaArn !== undefined && input.schemaArn !== null && { schemaArn: input.schemaArn }));
|
|
4063
4762
|
};
|
|
@@ -4139,6 +4838,10 @@ var serializeAws_json1_1ListBatchInferenceJobsRequest = function (input, context
|
|
|
4139
4838
|
return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.solutionVersionArn !== undefined &&
|
|
4140
4839
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }));
|
|
4141
4840
|
};
|
|
4841
|
+
var serializeAws_json1_1ListBatchSegmentJobsRequest = function (input, context) {
|
|
4842
|
+
return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.solutionVersionArn !== undefined &&
|
|
4843
|
+
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }));
|
|
4844
|
+
};
|
|
4142
4845
|
var serializeAws_json1_1ListCampaignsRequest = function (input, context) {
|
|
4143
4846
|
return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.solutionArn !== undefined && input.solutionArn !== null && { solutionArn: input.solutionArn }));
|
|
4144
4847
|
};
|
|
@@ -4164,9 +4867,13 @@ var serializeAws_json1_1ListFiltersRequest = function (input, context) {
|
|
|
4164
4867
|
input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
4165
4868
|
};
|
|
4166
4869
|
var serializeAws_json1_1ListRecipesRequest = function (input, context) {
|
|
4167
|
-
return __assign(__assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.recipeProvider !== undefined &&
|
|
4870
|
+
return __assign(__assign(__assign(__assign({}, (input.domain !== undefined && input.domain !== null && { domain: input.domain })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken })), (input.recipeProvider !== undefined &&
|
|
4168
4871
|
input.recipeProvider !== null && { recipeProvider: input.recipeProvider }));
|
|
4169
4872
|
};
|
|
4873
|
+
var serializeAws_json1_1ListRecommendersRequest = function (input, context) {
|
|
4874
|
+
return __assign(__assign(__assign({}, (input.datasetGroupArn !== undefined &&
|
|
4875
|
+
input.datasetGroupArn !== null && { datasetGroupArn: input.datasetGroupArn })), (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
4876
|
+
};
|
|
4170
4877
|
var serializeAws_json1_1ListSchemasRequest = function (input, context) {
|
|
4171
4878
|
return __assign(__assign({}, (input.maxResults !== undefined && input.maxResults !== null && { maxResults: input.maxResults })), (input.nextToken !== undefined && input.nextToken !== null && { nextToken: input.nextToken }));
|
|
4172
4879
|
};
|
|
@@ -4181,6 +4888,12 @@ var serializeAws_json1_1OptimizationObjective = function (input, context) {
|
|
|
4181
4888
|
return __assign(__assign({}, (input.itemAttribute !== undefined && input.itemAttribute !== null && { itemAttribute: input.itemAttribute })), (input.objectiveSensitivity !== undefined &&
|
|
4182
4889
|
input.objectiveSensitivity !== null && { objectiveSensitivity: input.objectiveSensitivity }));
|
|
4183
4890
|
};
|
|
4891
|
+
var serializeAws_json1_1RecommenderConfig = function (input, context) {
|
|
4892
|
+
return __assign({}, (input.itemExplorationConfig !== undefined &&
|
|
4893
|
+
input.itemExplorationConfig !== null && {
|
|
4894
|
+
itemExplorationConfig: serializeAws_json1_1HyperParameters(input.itemExplorationConfig, context),
|
|
4895
|
+
}));
|
|
4896
|
+
};
|
|
4184
4897
|
var serializeAws_json1_1S3DataConfig = function (input, context) {
|
|
4185
4898
|
return __assign(__assign({}, (input.kmsKeyArn !== undefined && input.kmsKeyArn !== null && { kmsKeyArn: input.kmsKeyArn })), (input.path !== undefined && input.path !== null && { path: input.path }));
|
|
4186
4899
|
};
|
|
@@ -4211,6 +4924,13 @@ var serializeAws_json1_1UpdateCampaignRequest = function (input, context) {
|
|
|
4211
4924
|
input.minProvisionedTPS !== null && { minProvisionedTPS: input.minProvisionedTPS })), (input.solutionVersionArn !== undefined &&
|
|
4212
4925
|
input.solutionVersionArn !== null && { solutionVersionArn: input.solutionVersionArn }));
|
|
4213
4926
|
};
|
|
4927
|
+
var serializeAws_json1_1UpdateRecommenderRequest = function (input, context) {
|
|
4928
|
+
return __assign(__assign({}, (input.recommenderArn !== undefined &&
|
|
4929
|
+
input.recommenderArn !== null && { recommenderArn: input.recommenderArn })), (input.recommenderConfig !== undefined &&
|
|
4930
|
+
input.recommenderConfig !== null && {
|
|
4931
|
+
recommenderConfig: serializeAws_json1_1RecommenderConfig(input.recommenderConfig, context),
|
|
4932
|
+
}));
|
|
4933
|
+
};
|
|
4214
4934
|
var deserializeAws_json1_1Algorithm = function (output, context) {
|
|
4215
4935
|
return {
|
|
4216
4936
|
algorithmArn: __expectString(output.algorithmArn),
|
|
@@ -4339,6 +5059,69 @@ var deserializeAws_json1_1BatchInferenceJobSummary = function (output, context)
|
|
|
4339
5059
|
status: __expectString(output.status),
|
|
4340
5060
|
};
|
|
4341
5061
|
};
|
|
5062
|
+
var deserializeAws_json1_1BatchSegmentJob = function (output, context) {
|
|
5063
|
+
return {
|
|
5064
|
+
batchSegmentJobArn: __expectString(output.batchSegmentJobArn),
|
|
5065
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
5066
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
5067
|
+
: undefined,
|
|
5068
|
+
failureReason: __expectString(output.failureReason),
|
|
5069
|
+
filterArn: __expectString(output.filterArn),
|
|
5070
|
+
jobInput: output.jobInput !== undefined && output.jobInput !== null
|
|
5071
|
+
? deserializeAws_json1_1BatchSegmentJobInput(output.jobInput, context)
|
|
5072
|
+
: undefined,
|
|
5073
|
+
jobName: __expectString(output.jobName),
|
|
5074
|
+
jobOutput: output.jobOutput !== undefined && output.jobOutput !== null
|
|
5075
|
+
? deserializeAws_json1_1BatchSegmentJobOutput(output.jobOutput, context)
|
|
5076
|
+
: undefined,
|
|
5077
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
5078
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
5079
|
+
: undefined,
|
|
5080
|
+
numResults: __expectInt32(output.numResults),
|
|
5081
|
+
roleArn: __expectString(output.roleArn),
|
|
5082
|
+
solutionVersionArn: __expectString(output.solutionVersionArn),
|
|
5083
|
+
status: __expectString(output.status),
|
|
5084
|
+
};
|
|
5085
|
+
};
|
|
5086
|
+
var deserializeAws_json1_1BatchSegmentJobInput = function (output, context) {
|
|
5087
|
+
return {
|
|
5088
|
+
s3DataSource: output.s3DataSource !== undefined && output.s3DataSource !== null
|
|
5089
|
+
? deserializeAws_json1_1S3DataConfig(output.s3DataSource, context)
|
|
5090
|
+
: undefined,
|
|
5091
|
+
};
|
|
5092
|
+
};
|
|
5093
|
+
var deserializeAws_json1_1BatchSegmentJobOutput = function (output, context) {
|
|
5094
|
+
return {
|
|
5095
|
+
s3DataDestination: output.s3DataDestination !== undefined && output.s3DataDestination !== null
|
|
5096
|
+
? deserializeAws_json1_1S3DataConfig(output.s3DataDestination, context)
|
|
5097
|
+
: undefined,
|
|
5098
|
+
};
|
|
5099
|
+
};
|
|
5100
|
+
var deserializeAws_json1_1BatchSegmentJobs = function (output, context) {
|
|
5101
|
+
return (output || [])
|
|
5102
|
+
.filter(function (e) { return e != null; })
|
|
5103
|
+
.map(function (entry) {
|
|
5104
|
+
if (entry === null) {
|
|
5105
|
+
return null;
|
|
5106
|
+
}
|
|
5107
|
+
return deserializeAws_json1_1BatchSegmentJobSummary(entry, context);
|
|
5108
|
+
});
|
|
5109
|
+
};
|
|
5110
|
+
var deserializeAws_json1_1BatchSegmentJobSummary = function (output, context) {
|
|
5111
|
+
return {
|
|
5112
|
+
batchSegmentJobArn: __expectString(output.batchSegmentJobArn),
|
|
5113
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
5114
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
5115
|
+
: undefined,
|
|
5116
|
+
failureReason: __expectString(output.failureReason),
|
|
5117
|
+
jobName: __expectString(output.jobName),
|
|
5118
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
5119
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
5120
|
+
: undefined,
|
|
5121
|
+
solutionVersionArn: __expectString(output.solutionVersionArn),
|
|
5122
|
+
status: __expectString(output.status),
|
|
5123
|
+
};
|
|
5124
|
+
};
|
|
4342
5125
|
var deserializeAws_json1_1Campaign = function (output, context) {
|
|
4343
5126
|
return {
|
|
4344
5127
|
campaignArn: __expectString(output.campaignArn),
|
|
@@ -4459,6 +5242,11 @@ var deserializeAws_json1_1CreateBatchInferenceJobResponse = function (output, co
|
|
|
4459
5242
|
batchInferenceJobArn: __expectString(output.batchInferenceJobArn),
|
|
4460
5243
|
};
|
|
4461
5244
|
};
|
|
5245
|
+
var deserializeAws_json1_1CreateBatchSegmentJobResponse = function (output, context) {
|
|
5246
|
+
return {
|
|
5247
|
+
batchSegmentJobArn: __expectString(output.batchSegmentJobArn),
|
|
5248
|
+
};
|
|
5249
|
+
};
|
|
4462
5250
|
var deserializeAws_json1_1CreateCampaignResponse = function (output, context) {
|
|
4463
5251
|
return {
|
|
4464
5252
|
campaignArn: __expectString(output.campaignArn),
|
|
@@ -4472,6 +5260,7 @@ var deserializeAws_json1_1CreateDatasetExportJobResponse = function (output, con
|
|
|
4472
5260
|
var deserializeAws_json1_1CreateDatasetGroupResponse = function (output, context) {
|
|
4473
5261
|
return {
|
|
4474
5262
|
datasetGroupArn: __expectString(output.datasetGroupArn),
|
|
5263
|
+
domain: __expectString(output.domain),
|
|
4475
5264
|
};
|
|
4476
5265
|
};
|
|
4477
5266
|
var deserializeAws_json1_1CreateDatasetImportJobResponse = function (output, context) {
|
|
@@ -4495,6 +5284,11 @@ var deserializeAws_json1_1CreateFilterResponse = function (output, context) {
|
|
|
4495
5284
|
filterArn: __expectString(output.filterArn),
|
|
4496
5285
|
};
|
|
4497
5286
|
};
|
|
5287
|
+
var deserializeAws_json1_1CreateRecommenderResponse = function (output, context) {
|
|
5288
|
+
return {
|
|
5289
|
+
recommenderArn: __expectString(output.recommenderArn),
|
|
5290
|
+
};
|
|
5291
|
+
};
|
|
4498
5292
|
var deserializeAws_json1_1CreateSchemaResponse = function (output, context) {
|
|
4499
5293
|
return {
|
|
4500
5294
|
schemaArn: __expectString(output.schemaArn),
|
|
@@ -4583,6 +5377,7 @@ var deserializeAws_json1_1DatasetGroup = function (output, context) {
|
|
|
4583
5377
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
4584
5378
|
: undefined,
|
|
4585
5379
|
datasetGroupArn: __expectString(output.datasetGroupArn),
|
|
5380
|
+
domain: __expectString(output.domain),
|
|
4586
5381
|
failureReason: __expectString(output.failureReason),
|
|
4587
5382
|
kmsKeyArn: __expectString(output.kmsKeyArn),
|
|
4588
5383
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
@@ -4609,6 +5404,7 @@ var deserializeAws_json1_1DatasetGroupSummary = function (output, context) {
|
|
|
4609
5404
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
4610
5405
|
: undefined,
|
|
4611
5406
|
datasetGroupArn: __expectString(output.datasetGroupArn),
|
|
5407
|
+
domain: __expectString(output.domain),
|
|
4612
5408
|
failureReason: __expectString(output.failureReason),
|
|
4613
5409
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4614
5410
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
@@ -4675,6 +5471,7 @@ var deserializeAws_json1_1DatasetSchema = function (output, context) {
|
|
|
4675
5471
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
4676
5472
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
4677
5473
|
: undefined,
|
|
5474
|
+
domain: __expectString(output.domain),
|
|
4678
5475
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4679
5476
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
4680
5477
|
: undefined,
|
|
@@ -4688,6 +5485,7 @@ var deserializeAws_json1_1DatasetSchemaSummary = function (output, context) {
|
|
|
4688
5485
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
4689
5486
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
4690
5487
|
: undefined,
|
|
5488
|
+
domain: __expectString(output.domain),
|
|
4691
5489
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
4692
5490
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
4693
5491
|
: undefined,
|
|
@@ -4796,6 +5594,13 @@ var deserializeAws_json1_1DescribeBatchInferenceJobResponse = function (output,
|
|
|
4796
5594
|
: undefined,
|
|
4797
5595
|
};
|
|
4798
5596
|
};
|
|
5597
|
+
var deserializeAws_json1_1DescribeBatchSegmentJobResponse = function (output, context) {
|
|
5598
|
+
return {
|
|
5599
|
+
batchSegmentJob: output.batchSegmentJob !== undefined && output.batchSegmentJob !== null
|
|
5600
|
+
? deserializeAws_json1_1BatchSegmentJob(output.batchSegmentJob, context)
|
|
5601
|
+
: undefined,
|
|
5602
|
+
};
|
|
5603
|
+
};
|
|
4799
5604
|
var deserializeAws_json1_1DescribeCampaignResponse = function (output, context) {
|
|
4800
5605
|
return {
|
|
4801
5606
|
campaign: output.campaign !== undefined && output.campaign !== null
|
|
@@ -4859,6 +5664,13 @@ var deserializeAws_json1_1DescribeRecipeResponse = function (output, context) {
|
|
|
4859
5664
|
: undefined,
|
|
4860
5665
|
};
|
|
4861
5666
|
};
|
|
5667
|
+
var deserializeAws_json1_1DescribeRecommenderResponse = function (output, context) {
|
|
5668
|
+
return {
|
|
5669
|
+
recommender: output.recommender !== undefined && output.recommender !== null
|
|
5670
|
+
? deserializeAws_json1_1Recommender(output.recommender, context)
|
|
5671
|
+
: undefined,
|
|
5672
|
+
};
|
|
5673
|
+
};
|
|
4862
5674
|
var deserializeAws_json1_1DescribeSchemaResponse = function (output, context) {
|
|
4863
5675
|
return {
|
|
4864
5676
|
schema: output.schema !== undefined && output.schema !== null
|
|
@@ -5093,6 +5905,14 @@ var deserializeAws_json1_1ListBatchInferenceJobsResponse = function (output, con
|
|
|
5093
5905
|
nextToken: __expectString(output.nextToken),
|
|
5094
5906
|
};
|
|
5095
5907
|
};
|
|
5908
|
+
var deserializeAws_json1_1ListBatchSegmentJobsResponse = function (output, context) {
|
|
5909
|
+
return {
|
|
5910
|
+
batchSegmentJobs: output.batchSegmentJobs !== undefined && output.batchSegmentJobs !== null
|
|
5911
|
+
? deserializeAws_json1_1BatchSegmentJobs(output.batchSegmentJobs, context)
|
|
5912
|
+
: undefined,
|
|
5913
|
+
nextToken: __expectString(output.nextToken),
|
|
5914
|
+
};
|
|
5915
|
+
};
|
|
5096
5916
|
var deserializeAws_json1_1ListCampaignsResponse = function (output, context) {
|
|
5097
5917
|
return {
|
|
5098
5918
|
campaigns: output.campaigns !== undefined && output.campaigns !== null
|
|
@@ -5157,6 +5977,14 @@ var deserializeAws_json1_1ListRecipesResponse = function (output, context) {
|
|
|
5157
5977
|
: undefined,
|
|
5158
5978
|
};
|
|
5159
5979
|
};
|
|
5980
|
+
var deserializeAws_json1_1ListRecommendersResponse = function (output, context) {
|
|
5981
|
+
return {
|
|
5982
|
+
nextToken: __expectString(output.nextToken),
|
|
5983
|
+
recommenders: output.recommenders !== undefined && output.recommenders !== null
|
|
5984
|
+
? deserializeAws_json1_1Recommenders(output.recommenders, context)
|
|
5985
|
+
: undefined,
|
|
5986
|
+
};
|
|
5987
|
+
};
|
|
5160
5988
|
var deserializeAws_json1_1ListSchemasResponse = function (output, context) {
|
|
5161
5989
|
return {
|
|
5162
5990
|
nextToken: __expectString(output.nextToken),
|
|
@@ -5229,11 +6057,84 @@ var deserializeAws_json1_1RecipeSummary = function (output, context) {
|
|
|
5229
6057
|
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
5230
6058
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
5231
6059
|
: undefined,
|
|
6060
|
+
domain: __expectString(output.domain),
|
|
6061
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
6062
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
6063
|
+
: undefined,
|
|
6064
|
+
name: __expectString(output.name),
|
|
6065
|
+
recipeArn: __expectString(output.recipeArn),
|
|
6066
|
+
status: __expectString(output.status),
|
|
6067
|
+
};
|
|
6068
|
+
};
|
|
6069
|
+
var deserializeAws_json1_1Recommender = function (output, context) {
|
|
6070
|
+
return {
|
|
6071
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
6072
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
6073
|
+
: undefined,
|
|
6074
|
+
datasetGroupArn: __expectString(output.datasetGroupArn),
|
|
6075
|
+
failureReason: __expectString(output.failureReason),
|
|
6076
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
6077
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
6078
|
+
: undefined,
|
|
6079
|
+
latestRecommenderUpdate: output.latestRecommenderUpdate !== undefined && output.latestRecommenderUpdate !== null
|
|
6080
|
+
? deserializeAws_json1_1RecommenderUpdateSummary(output.latestRecommenderUpdate, context)
|
|
6081
|
+
: undefined,
|
|
6082
|
+
name: __expectString(output.name),
|
|
6083
|
+
recipeArn: __expectString(output.recipeArn),
|
|
6084
|
+
recommenderArn: __expectString(output.recommenderArn),
|
|
6085
|
+
recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
|
|
6086
|
+
? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
|
|
6087
|
+
: undefined,
|
|
6088
|
+
status: __expectString(output.status),
|
|
6089
|
+
};
|
|
6090
|
+
};
|
|
6091
|
+
var deserializeAws_json1_1RecommenderConfig = function (output, context) {
|
|
6092
|
+
return {
|
|
6093
|
+
itemExplorationConfig: output.itemExplorationConfig !== undefined && output.itemExplorationConfig !== null
|
|
6094
|
+
? deserializeAws_json1_1HyperParameters(output.itemExplorationConfig, context)
|
|
6095
|
+
: undefined,
|
|
6096
|
+
};
|
|
6097
|
+
};
|
|
6098
|
+
var deserializeAws_json1_1Recommenders = function (output, context) {
|
|
6099
|
+
return (output || [])
|
|
6100
|
+
.filter(function (e) { return e != null; })
|
|
6101
|
+
.map(function (entry) {
|
|
6102
|
+
if (entry === null) {
|
|
6103
|
+
return null;
|
|
6104
|
+
}
|
|
6105
|
+
return deserializeAws_json1_1RecommenderSummary(entry, context);
|
|
6106
|
+
});
|
|
6107
|
+
};
|
|
6108
|
+
var deserializeAws_json1_1RecommenderSummary = function (output, context) {
|
|
6109
|
+
return {
|
|
6110
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
6111
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
6112
|
+
: undefined,
|
|
6113
|
+
datasetGroupArn: __expectString(output.datasetGroupArn),
|
|
5232
6114
|
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
5233
6115
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
5234
6116
|
: undefined,
|
|
5235
6117
|
name: __expectString(output.name),
|
|
5236
6118
|
recipeArn: __expectString(output.recipeArn),
|
|
6119
|
+
recommenderArn: __expectString(output.recommenderArn),
|
|
6120
|
+
recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
|
|
6121
|
+
? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
|
|
6122
|
+
: undefined,
|
|
6123
|
+
status: __expectString(output.status),
|
|
6124
|
+
};
|
|
6125
|
+
};
|
|
6126
|
+
var deserializeAws_json1_1RecommenderUpdateSummary = function (output, context) {
|
|
6127
|
+
return {
|
|
6128
|
+
creationDateTime: output.creationDateTime !== undefined && output.creationDateTime !== null
|
|
6129
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.creationDateTime)))
|
|
6130
|
+
: undefined,
|
|
6131
|
+
failureReason: __expectString(output.failureReason),
|
|
6132
|
+
lastUpdatedDateTime: output.lastUpdatedDateTime !== undefined && output.lastUpdatedDateTime !== null
|
|
6133
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedDateTime)))
|
|
6134
|
+
: undefined,
|
|
6135
|
+
recommenderConfig: output.recommenderConfig !== undefined && output.recommenderConfig !== null
|
|
6136
|
+
? deserializeAws_json1_1RecommenderConfig(output.recommenderConfig, context)
|
|
6137
|
+
: undefined,
|
|
5237
6138
|
status: __expectString(output.status),
|
|
5238
6139
|
};
|
|
5239
6140
|
};
|
|
@@ -5410,6 +6311,11 @@ var deserializeAws_json1_1UpdateCampaignResponse = function (output, context) {
|
|
|
5410
6311
|
campaignArn: __expectString(output.campaignArn),
|
|
5411
6312
|
};
|
|
5412
6313
|
};
|
|
6314
|
+
var deserializeAws_json1_1UpdateRecommenderResponse = function (output, context) {
|
|
6315
|
+
return {
|
|
6316
|
+
recommenderArn: __expectString(output.recommenderArn),
|
|
6317
|
+
};
|
|
6318
|
+
};
|
|
5413
6319
|
var deserializeMetadata = function (output) {
|
|
5414
6320
|
var _a;
|
|
5415
6321
|
return ({
|