@aws-sdk/client-lookoutequipment 3.154.0 → 3.161.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 +27 -0
- package/README.md +2 -3
- package/dist-cjs/LookoutEquipment.js +135 -0
- package/dist-cjs/commands/CreateLabelCommand.js +36 -0
- package/dist-cjs/commands/CreateLabelGroupCommand.js +36 -0
- package/dist-cjs/commands/DeleteLabelCommand.js +36 -0
- package/dist-cjs/commands/DeleteLabelGroupCommand.js +36 -0
- package/dist-cjs/commands/DescribeLabelCommand.js +36 -0
- package/dist-cjs/commands/DescribeLabelGroupCommand.js +36 -0
- package/dist-cjs/commands/ListLabelGroupsCommand.js +36 -0
- package/dist-cjs/commands/ListLabelsCommand.js +36 -0
- package/dist-cjs/commands/UpdateLabelGroupCommand.js +36 -0
- package/dist-cjs/commands/index.js +9 -0
- package/dist-cjs/endpoints.js +1 -0
- package/dist-cjs/models/models_0.js +82 -2
- package/dist-cjs/pagination/ListLabelGroupsPaginator.js +36 -0
- package/dist-cjs/pagination/ListLabelsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_0.js +704 -21
- package/dist-es/LookoutEquipment.js +135 -0
- package/dist-es/commands/CreateLabelCommand.js +39 -0
- package/dist-es/commands/CreateLabelGroupCommand.js +39 -0
- package/dist-es/commands/DeleteLabelCommand.js +39 -0
- package/dist-es/commands/DeleteLabelGroupCommand.js +39 -0
- package/dist-es/commands/DescribeLabelCommand.js +39 -0
- package/dist-es/commands/DescribeLabelGroupCommand.js +39 -0
- package/dist-es/commands/ListLabelGroupsCommand.js +39 -0
- package/dist-es/commands/ListLabelsCommand.js +39 -0
- package/dist-es/commands/UpdateLabelGroupCommand.js +39 -0
- package/dist-es/commands/index.js +9 -0
- package/dist-es/endpoints.js +1 -0
- package/dist-es/models/models_0.js +28 -0
- package/dist-es/pagination/ListLabelGroupsPaginator.js +75 -0
- package/dist-es/pagination/ListLabelsPaginator.js +75 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_0.js +1005 -154
- package/dist-types/LookoutEquipment.d.ts +85 -5
- package/dist-types/LookoutEquipmentClient.d.ts +13 -5
- package/dist-types/commands/CreateLabelCommand.d.ts +37 -0
- package/dist-types/commands/CreateLabelGroupCommand.d.ts +37 -0
- package/dist-types/commands/DeleteLabelCommand.d.ts +37 -0
- package/dist-types/commands/DeleteLabelGroupCommand.d.ts +37 -0
- package/dist-types/commands/DescribeLabelCommand.d.ts +37 -0
- package/dist-types/commands/DescribeLabelGroupCommand.d.ts +37 -0
- package/dist-types/commands/ListInferenceEventsCommand.d.ts +2 -2
- package/dist-types/commands/ListLabelGroupsCommand.d.ts +37 -0
- package/dist-types/commands/ListLabelsCommand.d.ts +37 -0
- package/dist-types/commands/UpdateLabelGroupCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +9 -0
- package/dist-types/models/models_0.d.ts +573 -49
- package/dist-types/pagination/ListLabelGroupsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListLabelsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +27 -0
- package/dist-types/ts3.4/LookoutEquipment.d.ts +45 -0
- package/dist-types/ts3.4/LookoutEquipmentClient.d.ts +11 -2
- package/dist-types/ts3.4/commands/CreateLabelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateLabelGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLabelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteLabelGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLabelCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeLabelGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLabelGroupsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListLabelsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateLabelGroupCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +9 -0
- package/dist-types/ts3.4/models/models_0.d.ts +56 -1
- package/dist-types/ts3.4/pagination/ListLabelGroupsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListLabelsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +27 -0
- package/package.json +26 -26
|
@@ -26,6 +26,28 @@ export var serializeAws_json1_0CreateInferenceSchedulerCommand = function (input
|
|
|
26
26
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
27
27
|
});
|
|
28
28
|
}); };
|
|
29
|
+
export var serializeAws_json1_0CreateLabelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30
|
+
var headers, body;
|
|
31
|
+
return __generator(this, function (_a) {
|
|
32
|
+
headers = {
|
|
33
|
+
"content-type": "application/x-amz-json-1.0",
|
|
34
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.CreateLabel",
|
|
35
|
+
};
|
|
36
|
+
body = JSON.stringify(serializeAws_json1_0CreateLabelRequest(input, context));
|
|
37
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
38
|
+
});
|
|
39
|
+
}); };
|
|
40
|
+
export var serializeAws_json1_0CreateLabelGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
41
|
+
var headers, body;
|
|
42
|
+
return __generator(this, function (_a) {
|
|
43
|
+
headers = {
|
|
44
|
+
"content-type": "application/x-amz-json-1.0",
|
|
45
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.CreateLabelGroup",
|
|
46
|
+
};
|
|
47
|
+
body = JSON.stringify(serializeAws_json1_0CreateLabelGroupRequest(input, context));
|
|
48
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
49
|
+
});
|
|
50
|
+
}); };
|
|
29
51
|
export var serializeAws_json1_0CreateModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
30
52
|
var headers, body;
|
|
31
53
|
return __generator(this, function (_a) {
|
|
@@ -59,6 +81,28 @@ export var serializeAws_json1_0DeleteInferenceSchedulerCommand = function (input
|
|
|
59
81
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
60
82
|
});
|
|
61
83
|
}); };
|
|
84
|
+
export var serializeAws_json1_0DeleteLabelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
85
|
+
var headers, body;
|
|
86
|
+
return __generator(this, function (_a) {
|
|
87
|
+
headers = {
|
|
88
|
+
"content-type": "application/x-amz-json-1.0",
|
|
89
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteLabel",
|
|
90
|
+
};
|
|
91
|
+
body = JSON.stringify(serializeAws_json1_0DeleteLabelRequest(input, context));
|
|
92
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
93
|
+
});
|
|
94
|
+
}); };
|
|
95
|
+
export var serializeAws_json1_0DeleteLabelGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
96
|
+
var headers, body;
|
|
97
|
+
return __generator(this, function (_a) {
|
|
98
|
+
headers = {
|
|
99
|
+
"content-type": "application/x-amz-json-1.0",
|
|
100
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteLabelGroup",
|
|
101
|
+
};
|
|
102
|
+
body = JSON.stringify(serializeAws_json1_0DeleteLabelGroupRequest(input, context));
|
|
103
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
104
|
+
});
|
|
105
|
+
}); };
|
|
62
106
|
export var serializeAws_json1_0DeleteModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
63
107
|
var headers, body;
|
|
64
108
|
return __generator(this, function (_a) {
|
|
@@ -103,6 +147,28 @@ export var serializeAws_json1_0DescribeInferenceSchedulerCommand = function (inp
|
|
|
103
147
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
104
148
|
});
|
|
105
149
|
}); };
|
|
150
|
+
export var serializeAws_json1_0DescribeLabelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
151
|
+
var headers, body;
|
|
152
|
+
return __generator(this, function (_a) {
|
|
153
|
+
headers = {
|
|
154
|
+
"content-type": "application/x-amz-json-1.0",
|
|
155
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeLabel",
|
|
156
|
+
};
|
|
157
|
+
body = JSON.stringify(serializeAws_json1_0DescribeLabelRequest(input, context));
|
|
158
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
159
|
+
});
|
|
160
|
+
}); };
|
|
161
|
+
export var serializeAws_json1_0DescribeLabelGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
162
|
+
var headers, body;
|
|
163
|
+
return __generator(this, function (_a) {
|
|
164
|
+
headers = {
|
|
165
|
+
"content-type": "application/x-amz-json-1.0",
|
|
166
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeLabelGroup",
|
|
167
|
+
};
|
|
168
|
+
body = JSON.stringify(serializeAws_json1_0DescribeLabelGroupRequest(input, context));
|
|
169
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
170
|
+
});
|
|
171
|
+
}); };
|
|
106
172
|
export var serializeAws_json1_0DescribeModelCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
107
173
|
var headers, body;
|
|
108
174
|
return __generator(this, function (_a) {
|
|
@@ -169,6 +235,28 @@ export var serializeAws_json1_0ListInferenceSchedulersCommand = function (input,
|
|
|
169
235
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
170
236
|
});
|
|
171
237
|
}); };
|
|
238
|
+
export var serializeAws_json1_0ListLabelGroupsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
239
|
+
var headers, body;
|
|
240
|
+
return __generator(this, function (_a) {
|
|
241
|
+
headers = {
|
|
242
|
+
"content-type": "application/x-amz-json-1.0",
|
|
243
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.ListLabelGroups",
|
|
244
|
+
};
|
|
245
|
+
body = JSON.stringify(serializeAws_json1_0ListLabelGroupsRequest(input, context));
|
|
246
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
247
|
+
});
|
|
248
|
+
}); };
|
|
249
|
+
export var serializeAws_json1_0ListLabelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
+
var headers, body;
|
|
251
|
+
return __generator(this, function (_a) {
|
|
252
|
+
headers = {
|
|
253
|
+
"content-type": "application/x-amz-json-1.0",
|
|
254
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.ListLabels",
|
|
255
|
+
};
|
|
256
|
+
body = JSON.stringify(serializeAws_json1_0ListLabelsRequest(input, context));
|
|
257
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
258
|
+
});
|
|
259
|
+
}); };
|
|
172
260
|
export var serializeAws_json1_0ListModelsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
173
261
|
var headers, body;
|
|
174
262
|
return __generator(this, function (_a) {
|
|
@@ -268,6 +356,17 @@ export var serializeAws_json1_0UpdateInferenceSchedulerCommand = function (input
|
|
|
268
356
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
269
357
|
});
|
|
270
358
|
}); };
|
|
359
|
+
export var serializeAws_json1_0UpdateLabelGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
360
|
+
var headers, body;
|
|
361
|
+
return __generator(this, function (_a) {
|
|
362
|
+
headers = {
|
|
363
|
+
"content-type": "application/x-amz-json-1.0",
|
|
364
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.UpdateLabelGroup",
|
|
365
|
+
};
|
|
366
|
+
body = JSON.stringify(serializeAws_json1_0UpdateLabelGroupRequest(input, context));
|
|
367
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
368
|
+
});
|
|
369
|
+
}); };
|
|
271
370
|
export var deserializeAws_json1_0CreateDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
272
371
|
var data, contents, response;
|
|
273
372
|
return __generator(this, function (_a) {
|
|
@@ -414,25 +513,25 @@ var deserializeAws_json1_0CreateInferenceSchedulerCommandError = function (outpu
|
|
|
414
513
|
}
|
|
415
514
|
});
|
|
416
515
|
}); };
|
|
417
|
-
export var
|
|
516
|
+
export var deserializeAws_json1_0CreateLabelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
418
517
|
var data, contents, response;
|
|
419
518
|
return __generator(this, function (_a) {
|
|
420
519
|
switch (_a.label) {
|
|
421
520
|
case 0:
|
|
422
521
|
if (output.statusCode >= 300) {
|
|
423
|
-
return [2,
|
|
522
|
+
return [2, deserializeAws_json1_0CreateLabelCommandError(output, context)];
|
|
424
523
|
}
|
|
425
524
|
return [4, parseBody(output.body, context)];
|
|
426
525
|
case 1:
|
|
427
526
|
data = _a.sent();
|
|
428
527
|
contents = {};
|
|
429
|
-
contents =
|
|
528
|
+
contents = deserializeAws_json1_0CreateLabelResponse(data, context);
|
|
430
529
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
431
530
|
return [2, Promise.resolve(response)];
|
|
432
531
|
}
|
|
433
532
|
});
|
|
434
533
|
}); };
|
|
435
|
-
var
|
|
534
|
+
var deserializeAws_json1_0CreateLabelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
436
535
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
437
536
|
var _c;
|
|
438
537
|
return __generator(this, function (_d) {
|
|
@@ -489,25 +588,25 @@ var deserializeAws_json1_0CreateModelCommandError = function (output, context) {
|
|
|
489
588
|
}
|
|
490
589
|
});
|
|
491
590
|
}); };
|
|
492
|
-
export var
|
|
493
|
-
var response;
|
|
591
|
+
export var deserializeAws_json1_0CreateLabelGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
592
|
+
var data, contents, response;
|
|
494
593
|
return __generator(this, function (_a) {
|
|
495
594
|
switch (_a.label) {
|
|
496
595
|
case 0:
|
|
497
596
|
if (output.statusCode >= 300) {
|
|
498
|
-
return [2,
|
|
597
|
+
return [2, deserializeAws_json1_0CreateLabelGroupCommandError(output, context)];
|
|
499
598
|
}
|
|
500
|
-
return [4,
|
|
599
|
+
return [4, parseBody(output.body, context)];
|
|
501
600
|
case 1:
|
|
502
|
-
_a.sent();
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
};
|
|
601
|
+
data = _a.sent();
|
|
602
|
+
contents = {};
|
|
603
|
+
contents = deserializeAws_json1_0CreateLabelGroupResponse(data, context);
|
|
604
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
506
605
|
return [2, Promise.resolve(response)];
|
|
507
606
|
}
|
|
508
607
|
});
|
|
509
608
|
}); };
|
|
510
|
-
var
|
|
609
|
+
var deserializeAws_json1_0CreateLabelGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
511
610
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
512
611
|
var _c;
|
|
513
612
|
return __generator(this, function (_d) {
|
|
@@ -527,23 +626,27 @@ var deserializeAws_json1_0DeleteDatasetCommandError = function (output, context)
|
|
|
527
626
|
case "com.amazonaws.lookoutequipment#ConflictException": return [3, 4];
|
|
528
627
|
case "InternalServerException": return [3, 6];
|
|
529
628
|
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 6];
|
|
530
|
-
case "
|
|
531
|
-
case "com.amazonaws.lookoutequipment#
|
|
629
|
+
case "ServiceQuotaExceededException": return [3, 8];
|
|
630
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException": return [3, 8];
|
|
532
631
|
case "ThrottlingException": return [3, 10];
|
|
533
632
|
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 10];
|
|
633
|
+
case "ValidationException": return [3, 12];
|
|
634
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 12];
|
|
534
635
|
}
|
|
535
|
-
return [3,
|
|
636
|
+
return [3, 14];
|
|
536
637
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
537
638
|
case 3: throw _d.sent();
|
|
538
639
|
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
539
640
|
case 5: throw _d.sent();
|
|
540
641
|
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
541
642
|
case 7: throw _d.sent();
|
|
542
|
-
case 8: return [4,
|
|
643
|
+
case 8: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
543
644
|
case 9: throw _d.sent();
|
|
544
645
|
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
545
646
|
case 11: throw _d.sent();
|
|
546
|
-
case 12:
|
|
647
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
648
|
+
case 13: throw _d.sent();
|
|
649
|
+
case 14:
|
|
547
650
|
parsedBody = parsedOutput.body;
|
|
548
651
|
throwDefaultError({
|
|
549
652
|
output: output,
|
|
@@ -551,30 +654,30 @@ var deserializeAws_json1_0DeleteDatasetCommandError = function (output, context)
|
|
|
551
654
|
exceptionCtor: __BaseException,
|
|
552
655
|
errorCode: errorCode,
|
|
553
656
|
});
|
|
554
|
-
_d.label =
|
|
555
|
-
case
|
|
657
|
+
_d.label = 15;
|
|
658
|
+
case 15: return [2];
|
|
556
659
|
}
|
|
557
660
|
});
|
|
558
661
|
}); };
|
|
559
|
-
export var
|
|
560
|
-
var response;
|
|
662
|
+
export var deserializeAws_json1_0CreateModelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
663
|
+
var data, contents, response;
|
|
561
664
|
return __generator(this, function (_a) {
|
|
562
665
|
switch (_a.label) {
|
|
563
666
|
case 0:
|
|
564
667
|
if (output.statusCode >= 300) {
|
|
565
|
-
return [2,
|
|
668
|
+
return [2, deserializeAws_json1_0CreateModelCommandError(output, context)];
|
|
566
669
|
}
|
|
567
|
-
return [4,
|
|
670
|
+
return [4, parseBody(output.body, context)];
|
|
568
671
|
case 1:
|
|
569
|
-
_a.sent();
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
};
|
|
672
|
+
data = _a.sent();
|
|
673
|
+
contents = {};
|
|
674
|
+
contents = deserializeAws_json1_0CreateModelResponse(data, context);
|
|
675
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
573
676
|
return [2, Promise.resolve(response)];
|
|
574
677
|
}
|
|
575
678
|
});
|
|
576
679
|
}); };
|
|
577
|
-
var
|
|
680
|
+
var deserializeAws_json1_0CreateModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
578
681
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
579
682
|
var _c;
|
|
580
683
|
return __generator(this, function (_d) {
|
|
@@ -596,12 +699,14 @@ var deserializeAws_json1_0DeleteInferenceSchedulerCommandError = function (outpu
|
|
|
596
699
|
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 6];
|
|
597
700
|
case "ResourceNotFoundException": return [3, 8];
|
|
598
701
|
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 8];
|
|
599
|
-
case "
|
|
600
|
-
case "com.amazonaws.lookoutequipment#
|
|
601
|
-
case "
|
|
602
|
-
case "com.amazonaws.lookoutequipment#
|
|
702
|
+
case "ServiceQuotaExceededException": return [3, 10];
|
|
703
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException": return [3, 10];
|
|
704
|
+
case "ThrottlingException": return [3, 12];
|
|
705
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 12];
|
|
706
|
+
case "ValidationException": return [3, 14];
|
|
707
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 14];
|
|
603
708
|
}
|
|
604
|
-
return [3,
|
|
709
|
+
return [3, 16];
|
|
605
710
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
606
711
|
case 3: throw _d.sent();
|
|
607
712
|
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
@@ -610,11 +715,13 @@ var deserializeAws_json1_0DeleteInferenceSchedulerCommandError = function (outpu
|
|
|
610
715
|
case 7: throw _d.sent();
|
|
611
716
|
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
612
717
|
case 9: throw _d.sent();
|
|
613
|
-
case 10: return [4,
|
|
718
|
+
case 10: return [4, deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context)];
|
|
614
719
|
case 11: throw _d.sent();
|
|
615
|
-
case 12: return [4,
|
|
720
|
+
case 12: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
616
721
|
case 13: throw _d.sent();
|
|
617
|
-
case 14:
|
|
722
|
+
case 14: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
723
|
+
case 15: throw _d.sent();
|
|
724
|
+
case 16:
|
|
618
725
|
parsedBody = parsedOutput.body;
|
|
619
726
|
throwDefaultError({
|
|
620
727
|
output: output,
|
|
@@ -622,18 +729,18 @@ var deserializeAws_json1_0DeleteInferenceSchedulerCommandError = function (outpu
|
|
|
622
729
|
exceptionCtor: __BaseException,
|
|
623
730
|
errorCode: errorCode,
|
|
624
731
|
});
|
|
625
|
-
_d.label =
|
|
626
|
-
case
|
|
732
|
+
_d.label = 17;
|
|
733
|
+
case 17: return [2];
|
|
627
734
|
}
|
|
628
735
|
});
|
|
629
736
|
}); };
|
|
630
|
-
export var
|
|
737
|
+
export var deserializeAws_json1_0DeleteDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
631
738
|
var response;
|
|
632
739
|
return __generator(this, function (_a) {
|
|
633
740
|
switch (_a.label) {
|
|
634
741
|
case 0:
|
|
635
742
|
if (output.statusCode >= 300) {
|
|
636
|
-
return [2,
|
|
743
|
+
return [2, deserializeAws_json1_0DeleteDatasetCommandError(output, context)];
|
|
637
744
|
}
|
|
638
745
|
return [4, collectBody(output.body, context)];
|
|
639
746
|
case 1:
|
|
@@ -645,7 +752,7 @@ export var deserializeAws_json1_0DeleteModelCommand = function (output, context)
|
|
|
645
752
|
}
|
|
646
753
|
});
|
|
647
754
|
}); };
|
|
648
|
-
var
|
|
755
|
+
var deserializeAws_json1_0DeleteDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
649
756
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
650
757
|
var _c;
|
|
651
758
|
return __generator(this, function (_d) {
|
|
@@ -694,25 +801,25 @@ var deserializeAws_json1_0DeleteModelCommandError = function (output, context) {
|
|
|
694
801
|
}
|
|
695
802
|
});
|
|
696
803
|
}); };
|
|
697
|
-
export var
|
|
698
|
-
var
|
|
804
|
+
export var deserializeAws_json1_0DeleteInferenceSchedulerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
805
|
+
var response;
|
|
699
806
|
return __generator(this, function (_a) {
|
|
700
807
|
switch (_a.label) {
|
|
701
808
|
case 0:
|
|
702
809
|
if (output.statusCode >= 300) {
|
|
703
|
-
return [2,
|
|
810
|
+
return [2, deserializeAws_json1_0DeleteInferenceSchedulerCommandError(output, context)];
|
|
704
811
|
}
|
|
705
|
-
return [4,
|
|
812
|
+
return [4, collectBody(output.body, context)];
|
|
706
813
|
case 1:
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
814
|
+
_a.sent();
|
|
815
|
+
response = {
|
|
816
|
+
$metadata: deserializeMetadata(output),
|
|
817
|
+
};
|
|
711
818
|
return [2, Promise.resolve(response)];
|
|
712
819
|
}
|
|
713
820
|
});
|
|
714
821
|
}); };
|
|
715
|
-
var
|
|
822
|
+
var deserializeAws_json1_0DeleteInferenceSchedulerCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
716
823
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
717
824
|
var _c;
|
|
718
825
|
return __generator(this, function (_d) {
|
|
@@ -728,27 +835,31 @@ var deserializeAws_json1_0DescribeDataIngestionJobCommandError = function (outpu
|
|
|
728
835
|
switch (_b) {
|
|
729
836
|
case "AccessDeniedException": return [3, 2];
|
|
730
837
|
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
731
|
-
case "
|
|
732
|
-
case "com.amazonaws.lookoutequipment#
|
|
733
|
-
case "
|
|
734
|
-
case "com.amazonaws.lookoutequipment#
|
|
735
|
-
case "
|
|
736
|
-
case "com.amazonaws.lookoutequipment#
|
|
737
|
-
case "
|
|
738
|
-
case "com.amazonaws.lookoutequipment#
|
|
838
|
+
case "ConflictException": return [3, 4];
|
|
839
|
+
case "com.amazonaws.lookoutequipment#ConflictException": return [3, 4];
|
|
840
|
+
case "InternalServerException": return [3, 6];
|
|
841
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 6];
|
|
842
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
843
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 8];
|
|
844
|
+
case "ThrottlingException": return [3, 10];
|
|
845
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 10];
|
|
846
|
+
case "ValidationException": return [3, 12];
|
|
847
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 12];
|
|
739
848
|
}
|
|
740
|
-
return [3,
|
|
849
|
+
return [3, 14];
|
|
741
850
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
742
851
|
case 3: throw _d.sent();
|
|
743
|
-
case 4: return [4,
|
|
852
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
744
853
|
case 5: throw _d.sent();
|
|
745
|
-
case 6: return [4,
|
|
854
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
746
855
|
case 7: throw _d.sent();
|
|
747
|
-
case 8: return [4,
|
|
856
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
748
857
|
case 9: throw _d.sent();
|
|
749
|
-
case 10: return [4,
|
|
858
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
750
859
|
case 11: throw _d.sent();
|
|
751
|
-
case 12:
|
|
860
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
861
|
+
case 13: throw _d.sent();
|
|
862
|
+
case 14:
|
|
752
863
|
parsedBody = parsedOutput.body;
|
|
753
864
|
throwDefaultError({
|
|
754
865
|
output: output,
|
|
@@ -756,30 +867,30 @@ var deserializeAws_json1_0DescribeDataIngestionJobCommandError = function (outpu
|
|
|
756
867
|
exceptionCtor: __BaseException,
|
|
757
868
|
errorCode: errorCode,
|
|
758
869
|
});
|
|
759
|
-
_d.label =
|
|
760
|
-
case
|
|
870
|
+
_d.label = 15;
|
|
871
|
+
case 15: return [2];
|
|
761
872
|
}
|
|
762
873
|
});
|
|
763
874
|
}); };
|
|
764
|
-
export var
|
|
765
|
-
var
|
|
875
|
+
export var deserializeAws_json1_0DeleteLabelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
876
|
+
var response;
|
|
766
877
|
return __generator(this, function (_a) {
|
|
767
878
|
switch (_a.label) {
|
|
768
879
|
case 0:
|
|
769
880
|
if (output.statusCode >= 300) {
|
|
770
|
-
return [2,
|
|
881
|
+
return [2, deserializeAws_json1_0DeleteLabelCommandError(output, context)];
|
|
771
882
|
}
|
|
772
|
-
return [4,
|
|
883
|
+
return [4, collectBody(output.body, context)];
|
|
773
884
|
case 1:
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
885
|
+
_a.sent();
|
|
886
|
+
response = {
|
|
887
|
+
$metadata: deserializeMetadata(output),
|
|
888
|
+
};
|
|
778
889
|
return [2, Promise.resolve(response)];
|
|
779
890
|
}
|
|
780
891
|
});
|
|
781
892
|
}); };
|
|
782
|
-
var
|
|
893
|
+
var deserializeAws_json1_0DeleteLabelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
783
894
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
784
895
|
var _c;
|
|
785
896
|
return __generator(this, function (_d) {
|
|
@@ -795,25 +906,25 @@ var deserializeAws_json1_0DescribeDatasetCommandError = function (output, contex
|
|
|
795
906
|
switch (_b) {
|
|
796
907
|
case "AccessDeniedException": return [3, 2];
|
|
797
908
|
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
798
|
-
case "
|
|
799
|
-
case "com.amazonaws.lookoutequipment#
|
|
800
|
-
case "
|
|
801
|
-
case "com.amazonaws.lookoutequipment#
|
|
802
|
-
case "
|
|
803
|
-
case "com.amazonaws.lookoutequipment#
|
|
804
|
-
case "
|
|
805
|
-
case "com.amazonaws.lookoutequipment#
|
|
909
|
+
case "ConflictException": return [3, 4];
|
|
910
|
+
case "com.amazonaws.lookoutequipment#ConflictException": return [3, 4];
|
|
911
|
+
case "InternalServerException": return [3, 6];
|
|
912
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 6];
|
|
913
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
914
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 8];
|
|
915
|
+
case "ThrottlingException": return [3, 10];
|
|
916
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 10];
|
|
806
917
|
}
|
|
807
918
|
return [3, 12];
|
|
808
919
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
809
920
|
case 3: throw _d.sent();
|
|
810
|
-
case 4: return [4,
|
|
921
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
811
922
|
case 5: throw _d.sent();
|
|
812
|
-
case 6: return [4,
|
|
923
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
813
924
|
case 7: throw _d.sent();
|
|
814
|
-
case 8: return [4,
|
|
925
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
815
926
|
case 9: throw _d.sent();
|
|
816
|
-
case 10: return [4,
|
|
927
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
817
928
|
case 11: throw _d.sent();
|
|
818
929
|
case 12:
|
|
819
930
|
parsedBody = parsedOutput.body;
|
|
@@ -828,17 +939,285 @@ var deserializeAws_json1_0DescribeDatasetCommandError = function (output, contex
|
|
|
828
939
|
}
|
|
829
940
|
});
|
|
830
941
|
}); };
|
|
831
|
-
export var
|
|
832
|
-
var
|
|
942
|
+
export var deserializeAws_json1_0DeleteLabelGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
943
|
+
var response;
|
|
833
944
|
return __generator(this, function (_a) {
|
|
834
945
|
switch (_a.label) {
|
|
835
946
|
case 0:
|
|
836
947
|
if (output.statusCode >= 300) {
|
|
837
|
-
return [2,
|
|
948
|
+
return [2, deserializeAws_json1_0DeleteLabelGroupCommandError(output, context)];
|
|
838
949
|
}
|
|
839
|
-
return [4,
|
|
950
|
+
return [4, collectBody(output.body, context)];
|
|
840
951
|
case 1:
|
|
841
|
-
|
|
952
|
+
_a.sent();
|
|
953
|
+
response = {
|
|
954
|
+
$metadata: deserializeMetadata(output),
|
|
955
|
+
};
|
|
956
|
+
return [2, Promise.resolve(response)];
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
}); };
|
|
960
|
+
var deserializeAws_json1_0DeleteLabelGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
961
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
962
|
+
var _c;
|
|
963
|
+
return __generator(this, function (_d) {
|
|
964
|
+
switch (_d.label) {
|
|
965
|
+
case 0:
|
|
966
|
+
_a = [__assign({}, output)];
|
|
967
|
+
_c = {};
|
|
968
|
+
return [4, parseBody(output.body, context)];
|
|
969
|
+
case 1:
|
|
970
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
971
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
972
|
+
_b = errorCode;
|
|
973
|
+
switch (_b) {
|
|
974
|
+
case "AccessDeniedException": return [3, 2];
|
|
975
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
976
|
+
case "ConflictException": return [3, 4];
|
|
977
|
+
case "com.amazonaws.lookoutequipment#ConflictException": return [3, 4];
|
|
978
|
+
case "InternalServerException": return [3, 6];
|
|
979
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 6];
|
|
980
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
981
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 8];
|
|
982
|
+
case "ThrottlingException": return [3, 10];
|
|
983
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 10];
|
|
984
|
+
}
|
|
985
|
+
return [3, 12];
|
|
986
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
987
|
+
case 3: throw _d.sent();
|
|
988
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
989
|
+
case 5: throw _d.sent();
|
|
990
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
991
|
+
case 7: throw _d.sent();
|
|
992
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
993
|
+
case 9: throw _d.sent();
|
|
994
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
995
|
+
case 11: throw _d.sent();
|
|
996
|
+
case 12:
|
|
997
|
+
parsedBody = parsedOutput.body;
|
|
998
|
+
throwDefaultError({
|
|
999
|
+
output: output,
|
|
1000
|
+
parsedBody: parsedBody,
|
|
1001
|
+
exceptionCtor: __BaseException,
|
|
1002
|
+
errorCode: errorCode,
|
|
1003
|
+
});
|
|
1004
|
+
_d.label = 13;
|
|
1005
|
+
case 13: return [2];
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
}); };
|
|
1009
|
+
export var deserializeAws_json1_0DeleteModelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1010
|
+
var response;
|
|
1011
|
+
return __generator(this, function (_a) {
|
|
1012
|
+
switch (_a.label) {
|
|
1013
|
+
case 0:
|
|
1014
|
+
if (output.statusCode >= 300) {
|
|
1015
|
+
return [2, deserializeAws_json1_0DeleteModelCommandError(output, context)];
|
|
1016
|
+
}
|
|
1017
|
+
return [4, collectBody(output.body, context)];
|
|
1018
|
+
case 1:
|
|
1019
|
+
_a.sent();
|
|
1020
|
+
response = {
|
|
1021
|
+
$metadata: deserializeMetadata(output),
|
|
1022
|
+
};
|
|
1023
|
+
return [2, Promise.resolve(response)];
|
|
1024
|
+
}
|
|
1025
|
+
});
|
|
1026
|
+
}); };
|
|
1027
|
+
var deserializeAws_json1_0DeleteModelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1028
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1029
|
+
var _c;
|
|
1030
|
+
return __generator(this, function (_d) {
|
|
1031
|
+
switch (_d.label) {
|
|
1032
|
+
case 0:
|
|
1033
|
+
_a = [__assign({}, output)];
|
|
1034
|
+
_c = {};
|
|
1035
|
+
return [4, parseBody(output.body, context)];
|
|
1036
|
+
case 1:
|
|
1037
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1038
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1039
|
+
_b = errorCode;
|
|
1040
|
+
switch (_b) {
|
|
1041
|
+
case "AccessDeniedException": return [3, 2];
|
|
1042
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1043
|
+
case "ConflictException": return [3, 4];
|
|
1044
|
+
case "com.amazonaws.lookoutequipment#ConflictException": return [3, 4];
|
|
1045
|
+
case "InternalServerException": return [3, 6];
|
|
1046
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 6];
|
|
1047
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
1048
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 8];
|
|
1049
|
+
case "ThrottlingException": return [3, 10];
|
|
1050
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 10];
|
|
1051
|
+
}
|
|
1052
|
+
return [3, 12];
|
|
1053
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1054
|
+
case 3: throw _d.sent();
|
|
1055
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
1056
|
+
case 5: throw _d.sent();
|
|
1057
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1058
|
+
case 7: throw _d.sent();
|
|
1059
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1060
|
+
case 9: throw _d.sent();
|
|
1061
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1062
|
+
case 11: throw _d.sent();
|
|
1063
|
+
case 12:
|
|
1064
|
+
parsedBody = parsedOutput.body;
|
|
1065
|
+
throwDefaultError({
|
|
1066
|
+
output: output,
|
|
1067
|
+
parsedBody: parsedBody,
|
|
1068
|
+
exceptionCtor: __BaseException,
|
|
1069
|
+
errorCode: errorCode,
|
|
1070
|
+
});
|
|
1071
|
+
_d.label = 13;
|
|
1072
|
+
case 13: return [2];
|
|
1073
|
+
}
|
|
1074
|
+
});
|
|
1075
|
+
}); };
|
|
1076
|
+
export var deserializeAws_json1_0DescribeDataIngestionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1077
|
+
var data, contents, response;
|
|
1078
|
+
return __generator(this, function (_a) {
|
|
1079
|
+
switch (_a.label) {
|
|
1080
|
+
case 0:
|
|
1081
|
+
if (output.statusCode >= 300) {
|
|
1082
|
+
return [2, deserializeAws_json1_0DescribeDataIngestionJobCommandError(output, context)];
|
|
1083
|
+
}
|
|
1084
|
+
return [4, parseBody(output.body, context)];
|
|
1085
|
+
case 1:
|
|
1086
|
+
data = _a.sent();
|
|
1087
|
+
contents = {};
|
|
1088
|
+
contents = deserializeAws_json1_0DescribeDataIngestionJobResponse(data, context);
|
|
1089
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1090
|
+
return [2, Promise.resolve(response)];
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1093
|
+
}); };
|
|
1094
|
+
var deserializeAws_json1_0DescribeDataIngestionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1095
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1096
|
+
var _c;
|
|
1097
|
+
return __generator(this, function (_d) {
|
|
1098
|
+
switch (_d.label) {
|
|
1099
|
+
case 0:
|
|
1100
|
+
_a = [__assign({}, output)];
|
|
1101
|
+
_c = {};
|
|
1102
|
+
return [4, parseBody(output.body, context)];
|
|
1103
|
+
case 1:
|
|
1104
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1105
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
+
_b = errorCode;
|
|
1107
|
+
switch (_b) {
|
|
1108
|
+
case "AccessDeniedException": return [3, 2];
|
|
1109
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1110
|
+
case "InternalServerException": return [3, 4];
|
|
1111
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1112
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1113
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 6];
|
|
1114
|
+
case "ThrottlingException": return [3, 8];
|
|
1115
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 8];
|
|
1116
|
+
case "ValidationException": return [3, 10];
|
|
1117
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 10];
|
|
1118
|
+
}
|
|
1119
|
+
return [3, 12];
|
|
1120
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1121
|
+
case 3: throw _d.sent();
|
|
1122
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1123
|
+
case 5: throw _d.sent();
|
|
1124
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1125
|
+
case 7: throw _d.sent();
|
|
1126
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1127
|
+
case 9: throw _d.sent();
|
|
1128
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1129
|
+
case 11: throw _d.sent();
|
|
1130
|
+
case 12:
|
|
1131
|
+
parsedBody = parsedOutput.body;
|
|
1132
|
+
throwDefaultError({
|
|
1133
|
+
output: output,
|
|
1134
|
+
parsedBody: parsedBody,
|
|
1135
|
+
exceptionCtor: __BaseException,
|
|
1136
|
+
errorCode: errorCode,
|
|
1137
|
+
});
|
|
1138
|
+
_d.label = 13;
|
|
1139
|
+
case 13: return [2];
|
|
1140
|
+
}
|
|
1141
|
+
});
|
|
1142
|
+
}); };
|
|
1143
|
+
export var deserializeAws_json1_0DescribeDatasetCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1144
|
+
var data, contents, response;
|
|
1145
|
+
return __generator(this, function (_a) {
|
|
1146
|
+
switch (_a.label) {
|
|
1147
|
+
case 0:
|
|
1148
|
+
if (output.statusCode >= 300) {
|
|
1149
|
+
return [2, deserializeAws_json1_0DescribeDatasetCommandError(output, context)];
|
|
1150
|
+
}
|
|
1151
|
+
return [4, parseBody(output.body, context)];
|
|
1152
|
+
case 1:
|
|
1153
|
+
data = _a.sent();
|
|
1154
|
+
contents = {};
|
|
1155
|
+
contents = deserializeAws_json1_0DescribeDatasetResponse(data, context);
|
|
1156
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1157
|
+
return [2, Promise.resolve(response)];
|
|
1158
|
+
}
|
|
1159
|
+
});
|
|
1160
|
+
}); };
|
|
1161
|
+
var deserializeAws_json1_0DescribeDatasetCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1162
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1163
|
+
var _c;
|
|
1164
|
+
return __generator(this, function (_d) {
|
|
1165
|
+
switch (_d.label) {
|
|
1166
|
+
case 0:
|
|
1167
|
+
_a = [__assign({}, output)];
|
|
1168
|
+
_c = {};
|
|
1169
|
+
return [4, parseBody(output.body, context)];
|
|
1170
|
+
case 1:
|
|
1171
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1172
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1173
|
+
_b = errorCode;
|
|
1174
|
+
switch (_b) {
|
|
1175
|
+
case "AccessDeniedException": return [3, 2];
|
|
1176
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1177
|
+
case "InternalServerException": return [3, 4];
|
|
1178
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1179
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1180
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 6];
|
|
1181
|
+
case "ThrottlingException": return [3, 8];
|
|
1182
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 8];
|
|
1183
|
+
case "ValidationException": return [3, 10];
|
|
1184
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 10];
|
|
1185
|
+
}
|
|
1186
|
+
return [3, 12];
|
|
1187
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1188
|
+
case 3: throw _d.sent();
|
|
1189
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1190
|
+
case 5: throw _d.sent();
|
|
1191
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1192
|
+
case 7: throw _d.sent();
|
|
1193
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1194
|
+
case 9: throw _d.sent();
|
|
1195
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1196
|
+
case 11: throw _d.sent();
|
|
1197
|
+
case 12:
|
|
1198
|
+
parsedBody = parsedOutput.body;
|
|
1199
|
+
throwDefaultError({
|
|
1200
|
+
output: output,
|
|
1201
|
+
parsedBody: parsedBody,
|
|
1202
|
+
exceptionCtor: __BaseException,
|
|
1203
|
+
errorCode: errorCode,
|
|
1204
|
+
});
|
|
1205
|
+
_d.label = 13;
|
|
1206
|
+
case 13: return [2];
|
|
1207
|
+
}
|
|
1208
|
+
});
|
|
1209
|
+
}); };
|
|
1210
|
+
export var deserializeAws_json1_0DescribeInferenceSchedulerCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1211
|
+
var data, contents, response;
|
|
1212
|
+
return __generator(this, function (_a) {
|
|
1213
|
+
switch (_a.label) {
|
|
1214
|
+
case 0:
|
|
1215
|
+
if (output.statusCode >= 300) {
|
|
1216
|
+
return [2, deserializeAws_json1_0DescribeInferenceSchedulerCommandError(output, context)];
|
|
1217
|
+
}
|
|
1218
|
+
return [4, parseBody(output.body, context)];
|
|
1219
|
+
case 1:
|
|
1220
|
+
data = _a.sent();
|
|
842
1221
|
contents = {};
|
|
843
1222
|
contents = deserializeAws_json1_0DescribeInferenceSchedulerResponse(data, context);
|
|
844
1223
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
@@ -895,6 +1274,140 @@ var deserializeAws_json1_0DescribeInferenceSchedulerCommandError = function (out
|
|
|
895
1274
|
}
|
|
896
1275
|
});
|
|
897
1276
|
}); };
|
|
1277
|
+
export var deserializeAws_json1_0DescribeLabelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1278
|
+
var data, contents, response;
|
|
1279
|
+
return __generator(this, function (_a) {
|
|
1280
|
+
switch (_a.label) {
|
|
1281
|
+
case 0:
|
|
1282
|
+
if (output.statusCode >= 300) {
|
|
1283
|
+
return [2, deserializeAws_json1_0DescribeLabelCommandError(output, context)];
|
|
1284
|
+
}
|
|
1285
|
+
return [4, parseBody(output.body, context)];
|
|
1286
|
+
case 1:
|
|
1287
|
+
data = _a.sent();
|
|
1288
|
+
contents = {};
|
|
1289
|
+
contents = deserializeAws_json1_0DescribeLabelResponse(data, context);
|
|
1290
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1291
|
+
return [2, Promise.resolve(response)];
|
|
1292
|
+
}
|
|
1293
|
+
});
|
|
1294
|
+
}); };
|
|
1295
|
+
var deserializeAws_json1_0DescribeLabelCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1296
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1297
|
+
var _c;
|
|
1298
|
+
return __generator(this, function (_d) {
|
|
1299
|
+
switch (_d.label) {
|
|
1300
|
+
case 0:
|
|
1301
|
+
_a = [__assign({}, output)];
|
|
1302
|
+
_c = {};
|
|
1303
|
+
return [4, parseBody(output.body, context)];
|
|
1304
|
+
case 1:
|
|
1305
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1306
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1307
|
+
_b = errorCode;
|
|
1308
|
+
switch (_b) {
|
|
1309
|
+
case "AccessDeniedException": return [3, 2];
|
|
1310
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1311
|
+
case "InternalServerException": return [3, 4];
|
|
1312
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1313
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1314
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 6];
|
|
1315
|
+
case "ThrottlingException": return [3, 8];
|
|
1316
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 8];
|
|
1317
|
+
case "ValidationException": return [3, 10];
|
|
1318
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 10];
|
|
1319
|
+
}
|
|
1320
|
+
return [3, 12];
|
|
1321
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1322
|
+
case 3: throw _d.sent();
|
|
1323
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1324
|
+
case 5: throw _d.sent();
|
|
1325
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1326
|
+
case 7: throw _d.sent();
|
|
1327
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1328
|
+
case 9: throw _d.sent();
|
|
1329
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1330
|
+
case 11: throw _d.sent();
|
|
1331
|
+
case 12:
|
|
1332
|
+
parsedBody = parsedOutput.body;
|
|
1333
|
+
throwDefaultError({
|
|
1334
|
+
output: output,
|
|
1335
|
+
parsedBody: parsedBody,
|
|
1336
|
+
exceptionCtor: __BaseException,
|
|
1337
|
+
errorCode: errorCode,
|
|
1338
|
+
});
|
|
1339
|
+
_d.label = 13;
|
|
1340
|
+
case 13: return [2];
|
|
1341
|
+
}
|
|
1342
|
+
});
|
|
1343
|
+
}); };
|
|
1344
|
+
export var deserializeAws_json1_0DescribeLabelGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1345
|
+
var data, contents, response;
|
|
1346
|
+
return __generator(this, function (_a) {
|
|
1347
|
+
switch (_a.label) {
|
|
1348
|
+
case 0:
|
|
1349
|
+
if (output.statusCode >= 300) {
|
|
1350
|
+
return [2, deserializeAws_json1_0DescribeLabelGroupCommandError(output, context)];
|
|
1351
|
+
}
|
|
1352
|
+
return [4, parseBody(output.body, context)];
|
|
1353
|
+
case 1:
|
|
1354
|
+
data = _a.sent();
|
|
1355
|
+
contents = {};
|
|
1356
|
+
contents = deserializeAws_json1_0DescribeLabelGroupResponse(data, context);
|
|
1357
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1358
|
+
return [2, Promise.resolve(response)];
|
|
1359
|
+
}
|
|
1360
|
+
});
|
|
1361
|
+
}); };
|
|
1362
|
+
var deserializeAws_json1_0DescribeLabelGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1363
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1364
|
+
var _c;
|
|
1365
|
+
return __generator(this, function (_d) {
|
|
1366
|
+
switch (_d.label) {
|
|
1367
|
+
case 0:
|
|
1368
|
+
_a = [__assign({}, output)];
|
|
1369
|
+
_c = {};
|
|
1370
|
+
return [4, parseBody(output.body, context)];
|
|
1371
|
+
case 1:
|
|
1372
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1373
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1374
|
+
_b = errorCode;
|
|
1375
|
+
switch (_b) {
|
|
1376
|
+
case "AccessDeniedException": return [3, 2];
|
|
1377
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1378
|
+
case "InternalServerException": return [3, 4];
|
|
1379
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1380
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1381
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 6];
|
|
1382
|
+
case "ThrottlingException": return [3, 8];
|
|
1383
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 8];
|
|
1384
|
+
case "ValidationException": return [3, 10];
|
|
1385
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 10];
|
|
1386
|
+
}
|
|
1387
|
+
return [3, 12];
|
|
1388
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1389
|
+
case 3: throw _d.sent();
|
|
1390
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1391
|
+
case 5: throw _d.sent();
|
|
1392
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1393
|
+
case 7: throw _d.sent();
|
|
1394
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1395
|
+
case 9: throw _d.sent();
|
|
1396
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1397
|
+
case 11: throw _d.sent();
|
|
1398
|
+
case 12:
|
|
1399
|
+
parsedBody = parsedOutput.body;
|
|
1400
|
+
throwDefaultError({
|
|
1401
|
+
output: output,
|
|
1402
|
+
parsedBody: parsedBody,
|
|
1403
|
+
exceptionCtor: __BaseException,
|
|
1404
|
+
errorCode: errorCode,
|
|
1405
|
+
});
|
|
1406
|
+
_d.label = 13;
|
|
1407
|
+
case 13: return [2];
|
|
1408
|
+
}
|
|
1409
|
+
});
|
|
1410
|
+
}); };
|
|
898
1411
|
export var deserializeAws_json1_0DescribeModelCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
899
1412
|
var data, contents, response;
|
|
900
1413
|
return __generator(this, function (_a) {
|
|
@@ -1003,16 +1516,146 @@ var deserializeAws_json1_0ListDataIngestionJobsCommandError = function (output,
|
|
|
1003
1516
|
case "ValidationException": return [3, 8];
|
|
1004
1517
|
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 8];
|
|
1005
1518
|
}
|
|
1006
|
-
return [3, 10];
|
|
1519
|
+
return [3, 10];
|
|
1520
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1521
|
+
case 3: throw _d.sent();
|
|
1522
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1523
|
+
case 5: throw _d.sent();
|
|
1524
|
+
case 6: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1525
|
+
case 7: throw _d.sent();
|
|
1526
|
+
case 8: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1527
|
+
case 9: throw _d.sent();
|
|
1528
|
+
case 10:
|
|
1529
|
+
parsedBody = parsedOutput.body;
|
|
1530
|
+
throwDefaultError({
|
|
1531
|
+
output: output,
|
|
1532
|
+
parsedBody: parsedBody,
|
|
1533
|
+
exceptionCtor: __BaseException,
|
|
1534
|
+
errorCode: errorCode,
|
|
1535
|
+
});
|
|
1536
|
+
_d.label = 11;
|
|
1537
|
+
case 11: return [2];
|
|
1538
|
+
}
|
|
1539
|
+
});
|
|
1540
|
+
}); };
|
|
1541
|
+
export var deserializeAws_json1_0ListDatasetsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1542
|
+
var data, contents, response;
|
|
1543
|
+
return __generator(this, function (_a) {
|
|
1544
|
+
switch (_a.label) {
|
|
1545
|
+
case 0:
|
|
1546
|
+
if (output.statusCode >= 300) {
|
|
1547
|
+
return [2, deserializeAws_json1_0ListDatasetsCommandError(output, context)];
|
|
1548
|
+
}
|
|
1549
|
+
return [4, parseBody(output.body, context)];
|
|
1550
|
+
case 1:
|
|
1551
|
+
data = _a.sent();
|
|
1552
|
+
contents = {};
|
|
1553
|
+
contents = deserializeAws_json1_0ListDatasetsResponse(data, context);
|
|
1554
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1555
|
+
return [2, Promise.resolve(response)];
|
|
1556
|
+
}
|
|
1557
|
+
});
|
|
1558
|
+
}); };
|
|
1559
|
+
var deserializeAws_json1_0ListDatasetsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1560
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1561
|
+
var _c;
|
|
1562
|
+
return __generator(this, function (_d) {
|
|
1563
|
+
switch (_d.label) {
|
|
1564
|
+
case 0:
|
|
1565
|
+
_a = [__assign({}, output)];
|
|
1566
|
+
_c = {};
|
|
1567
|
+
return [4, parseBody(output.body, context)];
|
|
1568
|
+
case 1:
|
|
1569
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1570
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1571
|
+
_b = errorCode;
|
|
1572
|
+
switch (_b) {
|
|
1573
|
+
case "AccessDeniedException": return [3, 2];
|
|
1574
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1575
|
+
case "InternalServerException": return [3, 4];
|
|
1576
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1577
|
+
case "ThrottlingException": return [3, 6];
|
|
1578
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 6];
|
|
1579
|
+
case "ValidationException": return [3, 8];
|
|
1580
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 8];
|
|
1581
|
+
}
|
|
1582
|
+
return [3, 10];
|
|
1583
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1584
|
+
case 3: throw _d.sent();
|
|
1585
|
+
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1586
|
+
case 5: throw _d.sent();
|
|
1587
|
+
case 6: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1588
|
+
case 7: throw _d.sent();
|
|
1589
|
+
case 8: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1590
|
+
case 9: throw _d.sent();
|
|
1591
|
+
case 10:
|
|
1592
|
+
parsedBody = parsedOutput.body;
|
|
1593
|
+
throwDefaultError({
|
|
1594
|
+
output: output,
|
|
1595
|
+
parsedBody: parsedBody,
|
|
1596
|
+
exceptionCtor: __BaseException,
|
|
1597
|
+
errorCode: errorCode,
|
|
1598
|
+
});
|
|
1599
|
+
_d.label = 11;
|
|
1600
|
+
case 11: return [2];
|
|
1601
|
+
}
|
|
1602
|
+
});
|
|
1603
|
+
}); };
|
|
1604
|
+
export var deserializeAws_json1_0ListInferenceEventsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1605
|
+
var data, contents, response;
|
|
1606
|
+
return __generator(this, function (_a) {
|
|
1607
|
+
switch (_a.label) {
|
|
1608
|
+
case 0:
|
|
1609
|
+
if (output.statusCode >= 300) {
|
|
1610
|
+
return [2, deserializeAws_json1_0ListInferenceEventsCommandError(output, context)];
|
|
1611
|
+
}
|
|
1612
|
+
return [4, parseBody(output.body, context)];
|
|
1613
|
+
case 1:
|
|
1614
|
+
data = _a.sent();
|
|
1615
|
+
contents = {};
|
|
1616
|
+
contents = deserializeAws_json1_0ListInferenceEventsResponse(data, context);
|
|
1617
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1618
|
+
return [2, Promise.resolve(response)];
|
|
1619
|
+
}
|
|
1620
|
+
});
|
|
1621
|
+
}); };
|
|
1622
|
+
var deserializeAws_json1_0ListInferenceEventsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1623
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1624
|
+
var _c;
|
|
1625
|
+
return __generator(this, function (_d) {
|
|
1626
|
+
switch (_d.label) {
|
|
1627
|
+
case 0:
|
|
1628
|
+
_a = [__assign({}, output)];
|
|
1629
|
+
_c = {};
|
|
1630
|
+
return [4, parseBody(output.body, context)];
|
|
1631
|
+
case 1:
|
|
1632
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1633
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1634
|
+
_b = errorCode;
|
|
1635
|
+
switch (_b) {
|
|
1636
|
+
case "AccessDeniedException": return [3, 2];
|
|
1637
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1638
|
+
case "InternalServerException": return [3, 4];
|
|
1639
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1640
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1641
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 6];
|
|
1642
|
+
case "ThrottlingException": return [3, 8];
|
|
1643
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 8];
|
|
1644
|
+
case "ValidationException": return [3, 10];
|
|
1645
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 10];
|
|
1646
|
+
}
|
|
1647
|
+
return [3, 12];
|
|
1007
1648
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1008
1649
|
case 3: throw _d.sent();
|
|
1009
1650
|
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1010
1651
|
case 5: throw _d.sent();
|
|
1011
|
-
case 6: return [4,
|
|
1652
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1012
1653
|
case 7: throw _d.sent();
|
|
1013
|
-
case 8: return [4,
|
|
1654
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1014
1655
|
case 9: throw _d.sent();
|
|
1015
|
-
case 10:
|
|
1656
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1657
|
+
case 11: throw _d.sent();
|
|
1658
|
+
case 12:
|
|
1016
1659
|
parsedBody = parsedOutput.body;
|
|
1017
1660
|
throwDefaultError({
|
|
1018
1661
|
output: output,
|
|
@@ -1020,30 +1663,30 @@ var deserializeAws_json1_0ListDataIngestionJobsCommandError = function (output,
|
|
|
1020
1663
|
exceptionCtor: __BaseException,
|
|
1021
1664
|
errorCode: errorCode,
|
|
1022
1665
|
});
|
|
1023
|
-
_d.label =
|
|
1024
|
-
case
|
|
1666
|
+
_d.label = 13;
|
|
1667
|
+
case 13: return [2];
|
|
1025
1668
|
}
|
|
1026
1669
|
});
|
|
1027
1670
|
}); };
|
|
1028
|
-
export var
|
|
1671
|
+
export var deserializeAws_json1_0ListInferenceExecutionsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1029
1672
|
var data, contents, response;
|
|
1030
1673
|
return __generator(this, function (_a) {
|
|
1031
1674
|
switch (_a.label) {
|
|
1032
1675
|
case 0:
|
|
1033
1676
|
if (output.statusCode >= 300) {
|
|
1034
|
-
return [2,
|
|
1677
|
+
return [2, deserializeAws_json1_0ListInferenceExecutionsCommandError(output, context)];
|
|
1035
1678
|
}
|
|
1036
1679
|
return [4, parseBody(output.body, context)];
|
|
1037
1680
|
case 1:
|
|
1038
1681
|
data = _a.sent();
|
|
1039
1682
|
contents = {};
|
|
1040
|
-
contents =
|
|
1683
|
+
contents = deserializeAws_json1_0ListInferenceExecutionsResponse(data, context);
|
|
1041
1684
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1042
1685
|
return [2, Promise.resolve(response)];
|
|
1043
1686
|
}
|
|
1044
1687
|
});
|
|
1045
1688
|
}); };
|
|
1046
|
-
var
|
|
1689
|
+
var deserializeAws_json1_0ListInferenceExecutionsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1047
1690
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1048
1691
|
var _c;
|
|
1049
1692
|
return __generator(this, function (_d) {
|
|
@@ -1061,21 +1704,25 @@ var deserializeAws_json1_0ListDatasetsCommandError = function (output, context)
|
|
|
1061
1704
|
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1062
1705
|
case "InternalServerException": return [3, 4];
|
|
1063
1706
|
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1064
|
-
case "
|
|
1065
|
-
case "com.amazonaws.lookoutequipment#
|
|
1066
|
-
case "
|
|
1067
|
-
case "com.amazonaws.lookoutequipment#
|
|
1707
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1708
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 6];
|
|
1709
|
+
case "ThrottlingException": return [3, 8];
|
|
1710
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 8];
|
|
1711
|
+
case "ValidationException": return [3, 10];
|
|
1712
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 10];
|
|
1068
1713
|
}
|
|
1069
|
-
return [3,
|
|
1714
|
+
return [3, 12];
|
|
1070
1715
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1071
1716
|
case 3: throw _d.sent();
|
|
1072
1717
|
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1073
1718
|
case 5: throw _d.sent();
|
|
1074
|
-
case 6: return [4,
|
|
1719
|
+
case 6: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1075
1720
|
case 7: throw _d.sent();
|
|
1076
|
-
case 8: return [4,
|
|
1721
|
+
case 8: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1077
1722
|
case 9: throw _d.sent();
|
|
1078
|
-
case 10:
|
|
1723
|
+
case 10: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1724
|
+
case 11: throw _d.sent();
|
|
1725
|
+
case 12:
|
|
1079
1726
|
parsedBody = parsedOutput.body;
|
|
1080
1727
|
throwDefaultError({
|
|
1081
1728
|
output: output,
|
|
@@ -1083,30 +1730,30 @@ var deserializeAws_json1_0ListDatasetsCommandError = function (output, context)
|
|
|
1083
1730
|
exceptionCtor: __BaseException,
|
|
1084
1731
|
errorCode: errorCode,
|
|
1085
1732
|
});
|
|
1086
|
-
_d.label =
|
|
1087
|
-
case
|
|
1733
|
+
_d.label = 13;
|
|
1734
|
+
case 13: return [2];
|
|
1088
1735
|
}
|
|
1089
1736
|
});
|
|
1090
1737
|
}); };
|
|
1091
|
-
export var
|
|
1738
|
+
export var deserializeAws_json1_0ListInferenceSchedulersCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1092
1739
|
var data, contents, response;
|
|
1093
1740
|
return __generator(this, function (_a) {
|
|
1094
1741
|
switch (_a.label) {
|
|
1095
1742
|
case 0:
|
|
1096
1743
|
if (output.statusCode >= 300) {
|
|
1097
|
-
return [2,
|
|
1744
|
+
return [2, deserializeAws_json1_0ListInferenceSchedulersCommandError(output, context)];
|
|
1098
1745
|
}
|
|
1099
1746
|
return [4, parseBody(output.body, context)];
|
|
1100
1747
|
case 1:
|
|
1101
1748
|
data = _a.sent();
|
|
1102
1749
|
contents = {};
|
|
1103
|
-
contents =
|
|
1750
|
+
contents = deserializeAws_json1_0ListInferenceSchedulersResponse(data, context);
|
|
1104
1751
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1105
1752
|
return [2, Promise.resolve(response)];
|
|
1106
1753
|
}
|
|
1107
1754
|
});
|
|
1108
1755
|
}); };
|
|
1109
|
-
var
|
|
1756
|
+
var deserializeAws_json1_0ListInferenceSchedulersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1110
1757
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1111
1758
|
var _c;
|
|
1112
1759
|
return __generator(this, function (_d) {
|
|
@@ -1124,25 +1771,21 @@ var deserializeAws_json1_0ListInferenceEventsCommandError = function (output, co
|
|
|
1124
1771
|
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1125
1772
|
case "InternalServerException": return [3, 4];
|
|
1126
1773
|
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1127
|
-
case "
|
|
1128
|
-
case "com.amazonaws.lookoutequipment#
|
|
1129
|
-
case "
|
|
1130
|
-
case "com.amazonaws.lookoutequipment#
|
|
1131
|
-
case "ValidationException": return [3, 10];
|
|
1132
|
-
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 10];
|
|
1774
|
+
case "ThrottlingException": return [3, 6];
|
|
1775
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 6];
|
|
1776
|
+
case "ValidationException": return [3, 8];
|
|
1777
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 8];
|
|
1133
1778
|
}
|
|
1134
|
-
return [3,
|
|
1779
|
+
return [3, 10];
|
|
1135
1780
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1136
1781
|
case 3: throw _d.sent();
|
|
1137
1782
|
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1138
1783
|
case 5: throw _d.sent();
|
|
1139
|
-
case 6: return [4,
|
|
1784
|
+
case 6: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1140
1785
|
case 7: throw _d.sent();
|
|
1141
|
-
case 8: return [4,
|
|
1786
|
+
case 8: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1142
1787
|
case 9: throw _d.sent();
|
|
1143
|
-
case 10:
|
|
1144
|
-
case 11: throw _d.sent();
|
|
1145
|
-
case 12:
|
|
1788
|
+
case 10:
|
|
1146
1789
|
parsedBody = parsedOutput.body;
|
|
1147
1790
|
throwDefaultError({
|
|
1148
1791
|
output: output,
|
|
@@ -1150,30 +1793,30 @@ var deserializeAws_json1_0ListInferenceEventsCommandError = function (output, co
|
|
|
1150
1793
|
exceptionCtor: __BaseException,
|
|
1151
1794
|
errorCode: errorCode,
|
|
1152
1795
|
});
|
|
1153
|
-
_d.label =
|
|
1154
|
-
case
|
|
1796
|
+
_d.label = 11;
|
|
1797
|
+
case 11: return [2];
|
|
1155
1798
|
}
|
|
1156
1799
|
});
|
|
1157
1800
|
}); };
|
|
1158
|
-
export var
|
|
1801
|
+
export var deserializeAws_json1_0ListLabelGroupsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1159
1802
|
var data, contents, response;
|
|
1160
1803
|
return __generator(this, function (_a) {
|
|
1161
1804
|
switch (_a.label) {
|
|
1162
1805
|
case 0:
|
|
1163
1806
|
if (output.statusCode >= 300) {
|
|
1164
|
-
return [2,
|
|
1807
|
+
return [2, deserializeAws_json1_0ListLabelGroupsCommandError(output, context)];
|
|
1165
1808
|
}
|
|
1166
1809
|
return [4, parseBody(output.body, context)];
|
|
1167
1810
|
case 1:
|
|
1168
1811
|
data = _a.sent();
|
|
1169
1812
|
contents = {};
|
|
1170
|
-
contents =
|
|
1813
|
+
contents = deserializeAws_json1_0ListLabelGroupsResponse(data, context);
|
|
1171
1814
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1172
1815
|
return [2, Promise.resolve(response)];
|
|
1173
1816
|
}
|
|
1174
1817
|
});
|
|
1175
1818
|
}); };
|
|
1176
|
-
var
|
|
1819
|
+
var deserializeAws_json1_0ListLabelGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1177
1820
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1178
1821
|
var _c;
|
|
1179
1822
|
return __generator(this, function (_d) {
|
|
@@ -1191,25 +1834,21 @@ var deserializeAws_json1_0ListInferenceExecutionsCommandError = function (output
|
|
|
1191
1834
|
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
1192
1835
|
case "InternalServerException": return [3, 4];
|
|
1193
1836
|
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 4];
|
|
1194
|
-
case "
|
|
1195
|
-
case "com.amazonaws.lookoutequipment#
|
|
1196
|
-
case "
|
|
1197
|
-
case "com.amazonaws.lookoutequipment#
|
|
1198
|
-
case "ValidationException": return [3, 10];
|
|
1199
|
-
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 10];
|
|
1837
|
+
case "ThrottlingException": return [3, 6];
|
|
1838
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 6];
|
|
1839
|
+
case "ValidationException": return [3, 8];
|
|
1840
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 8];
|
|
1200
1841
|
}
|
|
1201
|
-
return [3,
|
|
1842
|
+
return [3, 10];
|
|
1202
1843
|
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
1203
1844
|
case 3: throw _d.sent();
|
|
1204
1845
|
case 4: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
1205
1846
|
case 5: throw _d.sent();
|
|
1206
|
-
case 6: return [4,
|
|
1847
|
+
case 6: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
1207
1848
|
case 7: throw _d.sent();
|
|
1208
|
-
case 8: return [4,
|
|
1849
|
+
case 8: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
1209
1850
|
case 9: throw _d.sent();
|
|
1210
|
-
case 10:
|
|
1211
|
-
case 11: throw _d.sent();
|
|
1212
|
-
case 12:
|
|
1851
|
+
case 10:
|
|
1213
1852
|
parsedBody = parsedOutput.body;
|
|
1214
1853
|
throwDefaultError({
|
|
1215
1854
|
output: output,
|
|
@@ -1217,30 +1856,30 @@ var deserializeAws_json1_0ListInferenceExecutionsCommandError = function (output
|
|
|
1217
1856
|
exceptionCtor: __BaseException,
|
|
1218
1857
|
errorCode: errorCode,
|
|
1219
1858
|
});
|
|
1220
|
-
_d.label =
|
|
1221
|
-
case
|
|
1859
|
+
_d.label = 11;
|
|
1860
|
+
case 11: return [2];
|
|
1222
1861
|
}
|
|
1223
1862
|
});
|
|
1224
1863
|
}); };
|
|
1225
|
-
export var
|
|
1864
|
+
export var deserializeAws_json1_0ListLabelsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1226
1865
|
var data, contents, response;
|
|
1227
1866
|
return __generator(this, function (_a) {
|
|
1228
1867
|
switch (_a.label) {
|
|
1229
1868
|
case 0:
|
|
1230
1869
|
if (output.statusCode >= 300) {
|
|
1231
|
-
return [2,
|
|
1870
|
+
return [2, deserializeAws_json1_0ListLabelsCommandError(output, context)];
|
|
1232
1871
|
}
|
|
1233
1872
|
return [4, parseBody(output.body, context)];
|
|
1234
1873
|
case 1:
|
|
1235
1874
|
data = _a.sent();
|
|
1236
1875
|
contents = {};
|
|
1237
|
-
contents =
|
|
1876
|
+
contents = deserializeAws_json1_0ListLabelsResponse(data, context);
|
|
1238
1877
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1239
1878
|
return [2, Promise.resolve(response)];
|
|
1240
1879
|
}
|
|
1241
1880
|
});
|
|
1242
1881
|
}); };
|
|
1243
|
-
var
|
|
1882
|
+
var deserializeAws_json1_0ListLabelsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1244
1883
|
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1245
1884
|
var _c;
|
|
1246
1885
|
return __generator(this, function (_d) {
|
|
@@ -1908,6 +2547,77 @@ var deserializeAws_json1_0UpdateInferenceSchedulerCommandError = function (outpu
|
|
|
1908
2547
|
}
|
|
1909
2548
|
});
|
|
1910
2549
|
}); };
|
|
2550
|
+
export var deserializeAws_json1_0UpdateLabelGroupCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2551
|
+
var response;
|
|
2552
|
+
return __generator(this, function (_a) {
|
|
2553
|
+
switch (_a.label) {
|
|
2554
|
+
case 0:
|
|
2555
|
+
if (output.statusCode >= 300) {
|
|
2556
|
+
return [2, deserializeAws_json1_0UpdateLabelGroupCommandError(output, context)];
|
|
2557
|
+
}
|
|
2558
|
+
return [4, collectBody(output.body, context)];
|
|
2559
|
+
case 1:
|
|
2560
|
+
_a.sent();
|
|
2561
|
+
response = {
|
|
2562
|
+
$metadata: deserializeMetadata(output),
|
|
2563
|
+
};
|
|
2564
|
+
return [2, Promise.resolve(response)];
|
|
2565
|
+
}
|
|
2566
|
+
});
|
|
2567
|
+
}); };
|
|
2568
|
+
var deserializeAws_json1_0UpdateLabelGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2569
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
2570
|
+
var _c;
|
|
2571
|
+
return __generator(this, function (_d) {
|
|
2572
|
+
switch (_d.label) {
|
|
2573
|
+
case 0:
|
|
2574
|
+
_a = [__assign({}, output)];
|
|
2575
|
+
_c = {};
|
|
2576
|
+
return [4, parseBody(output.body, context)];
|
|
2577
|
+
case 1:
|
|
2578
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
2579
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
|
+
_b = errorCode;
|
|
2581
|
+
switch (_b) {
|
|
2582
|
+
case "AccessDeniedException": return [3, 2];
|
|
2583
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException": return [3, 2];
|
|
2584
|
+
case "ConflictException": return [3, 4];
|
|
2585
|
+
case "com.amazonaws.lookoutequipment#ConflictException": return [3, 4];
|
|
2586
|
+
case "InternalServerException": return [3, 6];
|
|
2587
|
+
case "com.amazonaws.lookoutequipment#InternalServerException": return [3, 6];
|
|
2588
|
+
case "ResourceNotFoundException": return [3, 8];
|
|
2589
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException": return [3, 8];
|
|
2590
|
+
case "ThrottlingException": return [3, 10];
|
|
2591
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException": return [3, 10];
|
|
2592
|
+
case "ValidationException": return [3, 12];
|
|
2593
|
+
case "com.amazonaws.lookoutequipment#ValidationException": return [3, 12];
|
|
2594
|
+
}
|
|
2595
|
+
return [3, 14];
|
|
2596
|
+
case 2: return [4, deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context)];
|
|
2597
|
+
case 3: throw _d.sent();
|
|
2598
|
+
case 4: return [4, deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context)];
|
|
2599
|
+
case 5: throw _d.sent();
|
|
2600
|
+
case 6: return [4, deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context)];
|
|
2601
|
+
case 7: throw _d.sent();
|
|
2602
|
+
case 8: return [4, deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2603
|
+
case 9: throw _d.sent();
|
|
2604
|
+
case 10: return [4, deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context)];
|
|
2605
|
+
case 11: throw _d.sent();
|
|
2606
|
+
case 12: return [4, deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context)];
|
|
2607
|
+
case 13: throw _d.sent();
|
|
2608
|
+
case 14:
|
|
2609
|
+
parsedBody = parsedOutput.body;
|
|
2610
|
+
throwDefaultError({
|
|
2611
|
+
output: output,
|
|
2612
|
+
parsedBody: parsedBody,
|
|
2613
|
+
exceptionCtor: __BaseException,
|
|
2614
|
+
errorCode: errorCode,
|
|
2615
|
+
});
|
|
2616
|
+
_d.label = 15;
|
|
2617
|
+
case 15: return [2];
|
|
2618
|
+
}
|
|
2619
|
+
});
|
|
2620
|
+
}); };
|
|
1911
2621
|
var deserializeAws_json1_0AccessDeniedExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1912
2622
|
var body, deserialized, exception;
|
|
1913
2623
|
return __generator(this, function (_a) {
|
|
@@ -1985,6 +2695,14 @@ var serializeAws_json1_0CreateInferenceSchedulerRequest = function (input, conte
|
|
|
1985
2695
|
DataOutputConfiguration: serializeAws_json1_0InferenceOutputConfiguration(input.DataOutputConfiguration, context),
|
|
1986
2696
|
})), (input.DataUploadFrequency != null && { DataUploadFrequency: input.DataUploadFrequency })), (input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName })), (input.ModelName != null && { ModelName: input.ModelName })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.ServerSideKmsKeyId != null && { ServerSideKmsKeyId: input.ServerSideKmsKeyId })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
1987
2697
|
};
|
|
2698
|
+
var serializeAws_json1_0CreateLabelGroupRequest = function (input, context) {
|
|
2699
|
+
var _a;
|
|
2700
|
+
return __assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.FaultCodes != null && { FaultCodes: serializeAws_json1_0FaultCodes(input.FaultCodes, context) })), (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName })), (input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }));
|
|
2701
|
+
};
|
|
2702
|
+
var serializeAws_json1_0CreateLabelRequest = function (input, context) {
|
|
2703
|
+
var _a;
|
|
2704
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) })), (input.Equipment != null && { Equipment: input.Equipment })), (input.FaultCode != null && { FaultCode: input.FaultCode })), (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName })), (input.Notes != null && { Notes: input.Notes })), (input.Rating != null && { Rating: input.Rating })), (input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }));
|
|
2705
|
+
};
|
|
1988
2706
|
var serializeAws_json1_0CreateModelRequest = function (input, context) {
|
|
1989
2707
|
var _a;
|
|
1990
2708
|
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataPreProcessingConfiguration != null && {
|
|
@@ -2015,6 +2733,12 @@ var serializeAws_json1_0DeleteDatasetRequest = function (input, context) {
|
|
|
2015
2733
|
var serializeAws_json1_0DeleteInferenceSchedulerRequest = function (input, context) {
|
|
2016
2734
|
return __assign({}, (input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }));
|
|
2017
2735
|
};
|
|
2736
|
+
var serializeAws_json1_0DeleteLabelGroupRequest = function (input, context) {
|
|
2737
|
+
return __assign({}, (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }));
|
|
2738
|
+
};
|
|
2739
|
+
var serializeAws_json1_0DeleteLabelRequest = function (input, context) {
|
|
2740
|
+
return __assign(__assign({}, (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName })), (input.LabelId != null && { LabelId: input.LabelId }));
|
|
2741
|
+
};
|
|
2018
2742
|
var serializeAws_json1_0DeleteModelRequest = function (input, context) {
|
|
2019
2743
|
return __assign({}, (input.ModelName != null && { ModelName: input.ModelName }));
|
|
2020
2744
|
};
|
|
@@ -2027,9 +2751,22 @@ var serializeAws_json1_0DescribeDatasetRequest = function (input, context) {
|
|
|
2027
2751
|
var serializeAws_json1_0DescribeInferenceSchedulerRequest = function (input, context) {
|
|
2028
2752
|
return __assign({}, (input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }));
|
|
2029
2753
|
};
|
|
2754
|
+
var serializeAws_json1_0DescribeLabelGroupRequest = function (input, context) {
|
|
2755
|
+
return __assign({}, (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }));
|
|
2756
|
+
};
|
|
2757
|
+
var serializeAws_json1_0DescribeLabelRequest = function (input, context) {
|
|
2758
|
+
return __assign(__assign({}, (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName })), (input.LabelId != null && { LabelId: input.LabelId }));
|
|
2759
|
+
};
|
|
2030
2760
|
var serializeAws_json1_0DescribeModelRequest = function (input, context) {
|
|
2031
2761
|
return __assign({}, (input.ModelName != null && { ModelName: input.ModelName }));
|
|
2032
2762
|
};
|
|
2763
|
+
var serializeAws_json1_0FaultCodes = function (input, context) {
|
|
2764
|
+
return input
|
|
2765
|
+
.filter(function (e) { return e != null; })
|
|
2766
|
+
.map(function (entry) {
|
|
2767
|
+
return entry;
|
|
2768
|
+
});
|
|
2769
|
+
};
|
|
2033
2770
|
var serializeAws_json1_0InferenceInputConfiguration = function (input, context) {
|
|
2034
2771
|
return __assign(__assign(__assign({}, (input.InferenceInputNameConfiguration != null && {
|
|
2035
2772
|
InferenceInputNameConfiguration: serializeAws_json1_0InferenceInputNameConfiguration(input.InferenceInputNameConfiguration, context),
|
|
@@ -2062,7 +2799,7 @@ var serializeAws_json1_0IngestionS3InputConfiguration = function (input, context
|
|
|
2062
2799
|
return __assign(__assign(__assign({}, (input.Bucket != null && { Bucket: input.Bucket })), (input.KeyPattern != null && { KeyPattern: input.KeyPattern })), (input.Prefix != null && { Prefix: input.Prefix }));
|
|
2063
2800
|
};
|
|
2064
2801
|
var serializeAws_json1_0LabelsInputConfiguration = function (input, context) {
|
|
2065
|
-
return __assign({}, (input.S3InputConfiguration != null && {
|
|
2802
|
+
return __assign(__assign({}, (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName })), (input.S3InputConfiguration != null && {
|
|
2066
2803
|
S3InputConfiguration: serializeAws_json1_0LabelsS3InputConfiguration(input.S3InputConfiguration, context),
|
|
2067
2804
|
}));
|
|
2068
2805
|
};
|
|
@@ -2088,6 +2825,12 @@ var serializeAws_json1_0ListInferenceSchedulersRequest = function (input, contex
|
|
|
2088
2825
|
InferenceSchedulerNameBeginsWith: input.InferenceSchedulerNameBeginsWith,
|
|
2089
2826
|
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.ModelName != null && { ModelName: input.ModelName })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2090
2827
|
};
|
|
2828
|
+
var serializeAws_json1_0ListLabelGroupsRequest = function (input, context) {
|
|
2829
|
+
return __assign(__assign(__assign({}, (input.LabelGroupNameBeginsWith != null && { LabelGroupNameBeginsWith: input.LabelGroupNameBeginsWith })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2830
|
+
};
|
|
2831
|
+
var serializeAws_json1_0ListLabelsRequest = function (input, context) {
|
|
2832
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Equipment != null && { Equipment: input.Equipment })), (input.FaultCode != null && { FaultCode: input.FaultCode })), (input.IntervalEndTime != null && { IntervalEndTime: Math.round(input.IntervalEndTime.getTime() / 1000) })), (input.IntervalStartTime != null && { IntervalStartTime: Math.round(input.IntervalStartTime.getTime() / 1000) })), (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken }));
|
|
2833
|
+
};
|
|
2091
2834
|
var serializeAws_json1_0ListModelsRequest = function (input, context) {
|
|
2092
2835
|
return __assign(__assign(__assign(__assign(__assign({}, (input.DatasetNameBeginsWith != null && { DatasetNameBeginsWith: input.DatasetNameBeginsWith })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.ModelNameBeginsWith != null && { ModelNameBeginsWith: input.ModelNameBeginsWith })), (input.NextToken != null && { NextToken: input.NextToken })), (input.Status != null && { Status: input.Status }));
|
|
2093
2836
|
};
|
|
@@ -2139,6 +2882,9 @@ var serializeAws_json1_0UpdateInferenceSchedulerRequest = function (input, conte
|
|
|
2139
2882
|
DataOutputConfiguration: serializeAws_json1_0InferenceOutputConfiguration(input.DataOutputConfiguration, context),
|
|
2140
2883
|
})), (input.DataUploadFrequency != null && { DataUploadFrequency: input.DataUploadFrequency })), (input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName })), (input.RoleArn != null && { RoleArn: input.RoleArn }));
|
|
2141
2884
|
};
|
|
2885
|
+
var serializeAws_json1_0UpdateLabelGroupRequest = function (input, context) {
|
|
2886
|
+
return __assign(__assign({}, (input.FaultCodes != null && { FaultCodes: serializeAws_json1_0FaultCodes(input.FaultCodes, context) })), (input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }));
|
|
2887
|
+
};
|
|
2142
2888
|
var deserializeAws_json1_0AccessDeniedException = function (output, context) {
|
|
2143
2889
|
return {
|
|
2144
2890
|
Message: __expectString(output.Message),
|
|
@@ -2175,6 +2921,17 @@ var deserializeAws_json1_0CreateInferenceSchedulerResponse = function (output, c
|
|
|
2175
2921
|
Status: __expectString(output.Status),
|
|
2176
2922
|
};
|
|
2177
2923
|
};
|
|
2924
|
+
var deserializeAws_json1_0CreateLabelGroupResponse = function (output, context) {
|
|
2925
|
+
return {
|
|
2926
|
+
LabelGroupArn: __expectString(output.LabelGroupArn),
|
|
2927
|
+
LabelGroupName: __expectString(output.LabelGroupName),
|
|
2928
|
+
};
|
|
2929
|
+
};
|
|
2930
|
+
var deserializeAws_json1_0CreateLabelResponse = function (output, context) {
|
|
2931
|
+
return {
|
|
2932
|
+
LabelId: __expectString(output.LabelId),
|
|
2933
|
+
};
|
|
2934
|
+
};
|
|
2178
2935
|
var deserializeAws_json1_0CreateModelResponse = function (output, context) {
|
|
2179
2936
|
return {
|
|
2180
2937
|
ModelArn: __expectString(output.ModelArn),
|
|
@@ -2315,6 +3072,7 @@ var deserializeAws_json1_0DescribeInferenceSchedulerResponse = function (output,
|
|
|
2315
3072
|
DataUploadFrequency: __expectString(output.DataUploadFrequency),
|
|
2316
3073
|
InferenceSchedulerArn: __expectString(output.InferenceSchedulerArn),
|
|
2317
3074
|
InferenceSchedulerName: __expectString(output.InferenceSchedulerName),
|
|
3075
|
+
LatestInferenceResult: __expectString(output.LatestInferenceResult),
|
|
2318
3076
|
ModelArn: __expectString(output.ModelArn),
|
|
2319
3077
|
ModelName: __expectString(output.ModelName),
|
|
2320
3078
|
RoleArn: __expectString(output.RoleArn),
|
|
@@ -2323,6 +3081,29 @@ var deserializeAws_json1_0DescribeInferenceSchedulerResponse = function (output,
|
|
|
2323
3081
|
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
2324
3082
|
};
|
|
2325
3083
|
};
|
|
3084
|
+
var deserializeAws_json1_0DescribeLabelGroupResponse = function (output, context) {
|
|
3085
|
+
return {
|
|
3086
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3087
|
+
FaultCodes: output.FaultCodes != null ? deserializeAws_json1_0FaultCodes(output.FaultCodes, context) : undefined,
|
|
3088
|
+
LabelGroupArn: __expectString(output.LabelGroupArn),
|
|
3089
|
+
LabelGroupName: __expectString(output.LabelGroupName),
|
|
3090
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
3091
|
+
};
|
|
3092
|
+
};
|
|
3093
|
+
var deserializeAws_json1_0DescribeLabelResponse = function (output, context) {
|
|
3094
|
+
return {
|
|
3095
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3096
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
3097
|
+
Equipment: __expectString(output.Equipment),
|
|
3098
|
+
FaultCode: __expectString(output.FaultCode),
|
|
3099
|
+
LabelGroupArn: __expectString(output.LabelGroupArn),
|
|
3100
|
+
LabelGroupName: __expectString(output.LabelGroupName),
|
|
3101
|
+
LabelId: __expectString(output.LabelId),
|
|
3102
|
+
Notes: __expectString(output.Notes),
|
|
3103
|
+
Rating: __expectString(output.Rating),
|
|
3104
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
3105
|
+
};
|
|
3106
|
+
};
|
|
2326
3107
|
var deserializeAws_json1_0DescribeModelResponse = function (output, context) {
|
|
2327
3108
|
return {
|
|
2328
3109
|
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
@@ -2371,6 +3152,17 @@ var deserializeAws_json1_0DuplicateTimestamps = function (output, context) {
|
|
|
2371
3152
|
TotalNumberOfDuplicateTimestamps: __expectInt32(output.TotalNumberOfDuplicateTimestamps),
|
|
2372
3153
|
};
|
|
2373
3154
|
};
|
|
3155
|
+
var deserializeAws_json1_0FaultCodes = function (output, context) {
|
|
3156
|
+
var retVal = (output || [])
|
|
3157
|
+
.filter(function (e) { return e != null; })
|
|
3158
|
+
.map(function (entry) {
|
|
3159
|
+
if (entry === null) {
|
|
3160
|
+
return null;
|
|
3161
|
+
}
|
|
3162
|
+
return __expectString(entry);
|
|
3163
|
+
});
|
|
3164
|
+
return retVal;
|
|
3165
|
+
};
|
|
2374
3166
|
var deserializeAws_json1_0InferenceEventSummaries = function (output, context) {
|
|
2375
3167
|
var retVal = (output || [])
|
|
2376
3168
|
.filter(function (e) { return e != null; })
|
|
@@ -2489,6 +3281,7 @@ var deserializeAws_json1_0InferenceSchedulerSummary = function (output, context)
|
|
|
2489
3281
|
DataUploadFrequency: __expectString(output.DataUploadFrequency),
|
|
2490
3282
|
InferenceSchedulerArn: __expectString(output.InferenceSchedulerArn),
|
|
2491
3283
|
InferenceSchedulerName: __expectString(output.InferenceSchedulerName),
|
|
3284
|
+
LatestInferenceResult: __expectString(output.LatestInferenceResult),
|
|
2492
3285
|
ModelArn: __expectString(output.ModelArn),
|
|
2493
3286
|
ModelName: __expectString(output.ModelName),
|
|
2494
3287
|
Status: __expectString(output.Status),
|
|
@@ -2538,8 +3331,28 @@ var deserializeAws_json1_0InvalidSensorData = function (output, context) {
|
|
|
2538
3331
|
TotalNumberOfInvalidValues: __expectInt32(output.TotalNumberOfInvalidValues),
|
|
2539
3332
|
};
|
|
2540
3333
|
};
|
|
3334
|
+
var deserializeAws_json1_0LabelGroupSummaries = function (output, context) {
|
|
3335
|
+
var retVal = (output || [])
|
|
3336
|
+
.filter(function (e) { return e != null; })
|
|
3337
|
+
.map(function (entry) {
|
|
3338
|
+
if (entry === null) {
|
|
3339
|
+
return null;
|
|
3340
|
+
}
|
|
3341
|
+
return deserializeAws_json1_0LabelGroupSummary(entry, context);
|
|
3342
|
+
});
|
|
3343
|
+
return retVal;
|
|
3344
|
+
};
|
|
3345
|
+
var deserializeAws_json1_0LabelGroupSummary = function (output, context) {
|
|
3346
|
+
return {
|
|
3347
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3348
|
+
LabelGroupArn: __expectString(output.LabelGroupArn),
|
|
3349
|
+
LabelGroupName: __expectString(output.LabelGroupName),
|
|
3350
|
+
UpdatedAt: output.UpdatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt))) : undefined,
|
|
3351
|
+
};
|
|
3352
|
+
};
|
|
2541
3353
|
var deserializeAws_json1_0LabelsInputConfiguration = function (output, context) {
|
|
2542
3354
|
return {
|
|
3355
|
+
LabelGroupName: __expectString(output.LabelGroupName),
|
|
2543
3356
|
S3InputConfiguration: output.S3InputConfiguration != null
|
|
2544
3357
|
? deserializeAws_json1_0LabelsS3InputConfiguration(output.S3InputConfiguration, context)
|
|
2545
3358
|
: undefined,
|
|
@@ -2551,6 +3364,30 @@ var deserializeAws_json1_0LabelsS3InputConfiguration = function (output, context
|
|
|
2551
3364
|
Prefix: __expectString(output.Prefix),
|
|
2552
3365
|
};
|
|
2553
3366
|
};
|
|
3367
|
+
var deserializeAws_json1_0LabelSummaries = function (output, context) {
|
|
3368
|
+
var retVal = (output || [])
|
|
3369
|
+
.filter(function (e) { return e != null; })
|
|
3370
|
+
.map(function (entry) {
|
|
3371
|
+
if (entry === null) {
|
|
3372
|
+
return null;
|
|
3373
|
+
}
|
|
3374
|
+
return deserializeAws_json1_0LabelSummary(entry, context);
|
|
3375
|
+
});
|
|
3376
|
+
return retVal;
|
|
3377
|
+
};
|
|
3378
|
+
var deserializeAws_json1_0LabelSummary = function (output, context) {
|
|
3379
|
+
return {
|
|
3380
|
+
CreatedAt: output.CreatedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt))) : undefined,
|
|
3381
|
+
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
3382
|
+
Equipment: __expectString(output.Equipment),
|
|
3383
|
+
FaultCode: __expectString(output.FaultCode),
|
|
3384
|
+
LabelGroupArn: __expectString(output.LabelGroupArn),
|
|
3385
|
+
LabelGroupName: __expectString(output.LabelGroupName),
|
|
3386
|
+
LabelId: __expectString(output.LabelId),
|
|
3387
|
+
Rating: __expectString(output.Rating),
|
|
3388
|
+
StartTime: output.StartTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime))) : undefined,
|
|
3389
|
+
};
|
|
3390
|
+
};
|
|
2554
3391
|
var deserializeAws_json1_0LargeTimestampGaps = function (output, context) {
|
|
2555
3392
|
return {
|
|
2556
3393
|
MaxTimestampGapInDays: __expectInt32(output.MaxTimestampGapInDays),
|
|
@@ -2598,6 +3435,20 @@ var deserializeAws_json1_0ListInferenceSchedulersResponse = function (output, co
|
|
|
2598
3435
|
NextToken: __expectString(output.NextToken),
|
|
2599
3436
|
};
|
|
2600
3437
|
};
|
|
3438
|
+
var deserializeAws_json1_0ListLabelGroupsResponse = function (output, context) {
|
|
3439
|
+
return {
|
|
3440
|
+
LabelGroupSummaries: output.LabelGroupSummaries != null
|
|
3441
|
+
? deserializeAws_json1_0LabelGroupSummaries(output.LabelGroupSummaries, context)
|
|
3442
|
+
: undefined,
|
|
3443
|
+
NextToken: __expectString(output.NextToken),
|
|
3444
|
+
};
|
|
3445
|
+
};
|
|
3446
|
+
var deserializeAws_json1_0ListLabelsResponse = function (output, context) {
|
|
3447
|
+
return {
|
|
3448
|
+
LabelSummaries: output.LabelSummaries != null ? deserializeAws_json1_0LabelSummaries(output.LabelSummaries, context) : undefined,
|
|
3449
|
+
NextToken: __expectString(output.NextToken),
|
|
3450
|
+
};
|
|
3451
|
+
};
|
|
2601
3452
|
var deserializeAws_json1_0ListModelsResponse = function (output, context) {
|
|
2602
3453
|
return {
|
|
2603
3454
|
ModelSummaries: output.ModelSummaries != null ? deserializeAws_json1_0ModelSummaries(output.ModelSummaries, context) : undefined,
|