@aws-sdk/client-lookoutequipment 3.160.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 +11 -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 +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.deserializeAws_json1_0ListDataIngestionJobsCommand = exports.deserializeAws_json1_0DescribeModelCommand = exports.deserializeAws_json1_0DescribeLabelGroupCommand = exports.deserializeAws_json1_0DescribeLabelCommand = exports.deserializeAws_json1_0DescribeInferenceSchedulerCommand = exports.deserializeAws_json1_0DescribeDatasetCommand = exports.deserializeAws_json1_0DescribeDataIngestionJobCommand = exports.deserializeAws_json1_0DeleteModelCommand = exports.deserializeAws_json1_0DeleteLabelGroupCommand = exports.deserializeAws_json1_0DeleteLabelCommand = exports.deserializeAws_json1_0DeleteInferenceSchedulerCommand = exports.deserializeAws_json1_0DeleteDatasetCommand = exports.deserializeAws_json1_0CreateModelCommand = exports.deserializeAws_json1_0CreateLabelGroupCommand = exports.deserializeAws_json1_0CreateLabelCommand = exports.deserializeAws_json1_0CreateInferenceSchedulerCommand = exports.deserializeAws_json1_0CreateDatasetCommand = exports.serializeAws_json1_0UpdateLabelGroupCommand = exports.serializeAws_json1_0UpdateInferenceSchedulerCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0StopInferenceSchedulerCommand = exports.serializeAws_json1_0StartInferenceSchedulerCommand = exports.serializeAws_json1_0StartDataIngestionJobCommand = exports.serializeAws_json1_0ListTagsForResourceCommand = exports.serializeAws_json1_0ListSensorStatisticsCommand = exports.serializeAws_json1_0ListModelsCommand = exports.serializeAws_json1_0ListLabelsCommand = exports.serializeAws_json1_0ListLabelGroupsCommand = exports.serializeAws_json1_0ListInferenceSchedulersCommand = exports.serializeAws_json1_0ListInferenceExecutionsCommand = exports.serializeAws_json1_0ListInferenceEventsCommand = exports.serializeAws_json1_0ListDatasetsCommand = exports.serializeAws_json1_0ListDataIngestionJobsCommand = exports.serializeAws_json1_0DescribeModelCommand = exports.serializeAws_json1_0DescribeLabelGroupCommand = exports.serializeAws_json1_0DescribeLabelCommand = exports.serializeAws_json1_0DescribeInferenceSchedulerCommand = exports.serializeAws_json1_0DescribeDatasetCommand = exports.serializeAws_json1_0DescribeDataIngestionJobCommand = exports.serializeAws_json1_0DeleteModelCommand = exports.serializeAws_json1_0DeleteLabelGroupCommand = exports.serializeAws_json1_0DeleteLabelCommand = exports.serializeAws_json1_0DeleteInferenceSchedulerCommand = exports.serializeAws_json1_0DeleteDatasetCommand = exports.serializeAws_json1_0CreateModelCommand = exports.serializeAws_json1_0CreateLabelGroupCommand = exports.serializeAws_json1_0CreateLabelCommand = exports.serializeAws_json1_0CreateInferenceSchedulerCommand = exports.serializeAws_json1_0CreateDatasetCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_0UpdateLabelGroupCommand = exports.deserializeAws_json1_0UpdateInferenceSchedulerCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0StopInferenceSchedulerCommand = exports.deserializeAws_json1_0StartInferenceSchedulerCommand = exports.deserializeAws_json1_0StartDataIngestionJobCommand = exports.deserializeAws_json1_0ListTagsForResourceCommand = exports.deserializeAws_json1_0ListSensorStatisticsCommand = exports.deserializeAws_json1_0ListModelsCommand = exports.deserializeAws_json1_0ListLabelsCommand = exports.deserializeAws_json1_0ListLabelGroupsCommand = exports.deserializeAws_json1_0ListInferenceSchedulersCommand = exports.deserializeAws_json1_0ListInferenceExecutionsCommand = exports.deserializeAws_json1_0ListInferenceEventsCommand = exports.deserializeAws_json1_0ListDatasetsCommand = void 0;
|
|
4
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
5
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
6
7
|
const uuid_1 = require("uuid");
|
|
@@ -26,6 +27,26 @@ const serializeAws_json1_0CreateInferenceSchedulerCommand = async (input, contex
|
|
|
26
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
27
28
|
};
|
|
28
29
|
exports.serializeAws_json1_0CreateInferenceSchedulerCommand = serializeAws_json1_0CreateInferenceSchedulerCommand;
|
|
30
|
+
const serializeAws_json1_0CreateLabelCommand = async (input, context) => {
|
|
31
|
+
const headers = {
|
|
32
|
+
"content-type": "application/x-amz-json-1.0",
|
|
33
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.CreateLabel",
|
|
34
|
+
};
|
|
35
|
+
let body;
|
|
36
|
+
body = JSON.stringify(serializeAws_json1_0CreateLabelRequest(input, context));
|
|
37
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
|
+
};
|
|
39
|
+
exports.serializeAws_json1_0CreateLabelCommand = serializeAws_json1_0CreateLabelCommand;
|
|
40
|
+
const serializeAws_json1_0CreateLabelGroupCommand = async (input, context) => {
|
|
41
|
+
const headers = {
|
|
42
|
+
"content-type": "application/x-amz-json-1.0",
|
|
43
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.CreateLabelGroup",
|
|
44
|
+
};
|
|
45
|
+
let body;
|
|
46
|
+
body = JSON.stringify(serializeAws_json1_0CreateLabelGroupRequest(input, context));
|
|
47
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
+
};
|
|
49
|
+
exports.serializeAws_json1_0CreateLabelGroupCommand = serializeAws_json1_0CreateLabelGroupCommand;
|
|
29
50
|
const serializeAws_json1_0CreateModelCommand = async (input, context) => {
|
|
30
51
|
const headers = {
|
|
31
52
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -56,6 +77,26 @@ const serializeAws_json1_0DeleteInferenceSchedulerCommand = async (input, contex
|
|
|
56
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
57
78
|
};
|
|
58
79
|
exports.serializeAws_json1_0DeleteInferenceSchedulerCommand = serializeAws_json1_0DeleteInferenceSchedulerCommand;
|
|
80
|
+
const serializeAws_json1_0DeleteLabelCommand = async (input, context) => {
|
|
81
|
+
const headers = {
|
|
82
|
+
"content-type": "application/x-amz-json-1.0",
|
|
83
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteLabel",
|
|
84
|
+
};
|
|
85
|
+
let body;
|
|
86
|
+
body = JSON.stringify(serializeAws_json1_0DeleteLabelRequest(input, context));
|
|
87
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
|
+
};
|
|
89
|
+
exports.serializeAws_json1_0DeleteLabelCommand = serializeAws_json1_0DeleteLabelCommand;
|
|
90
|
+
const serializeAws_json1_0DeleteLabelGroupCommand = async (input, context) => {
|
|
91
|
+
const headers = {
|
|
92
|
+
"content-type": "application/x-amz-json-1.0",
|
|
93
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.DeleteLabelGroup",
|
|
94
|
+
};
|
|
95
|
+
let body;
|
|
96
|
+
body = JSON.stringify(serializeAws_json1_0DeleteLabelGroupRequest(input, context));
|
|
97
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
|
+
};
|
|
99
|
+
exports.serializeAws_json1_0DeleteLabelGroupCommand = serializeAws_json1_0DeleteLabelGroupCommand;
|
|
59
100
|
const serializeAws_json1_0DeleteModelCommand = async (input, context) => {
|
|
60
101
|
const headers = {
|
|
61
102
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -96,6 +137,26 @@ const serializeAws_json1_0DescribeInferenceSchedulerCommand = async (input, cont
|
|
|
96
137
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
97
138
|
};
|
|
98
139
|
exports.serializeAws_json1_0DescribeInferenceSchedulerCommand = serializeAws_json1_0DescribeInferenceSchedulerCommand;
|
|
140
|
+
const serializeAws_json1_0DescribeLabelCommand = async (input, context) => {
|
|
141
|
+
const headers = {
|
|
142
|
+
"content-type": "application/x-amz-json-1.0",
|
|
143
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeLabel",
|
|
144
|
+
};
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(serializeAws_json1_0DescribeLabelRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
exports.serializeAws_json1_0DescribeLabelCommand = serializeAws_json1_0DescribeLabelCommand;
|
|
150
|
+
const serializeAws_json1_0DescribeLabelGroupCommand = async (input, context) => {
|
|
151
|
+
const headers = {
|
|
152
|
+
"content-type": "application/x-amz-json-1.0",
|
|
153
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.DescribeLabelGroup",
|
|
154
|
+
};
|
|
155
|
+
let body;
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_0DescribeLabelGroupRequest(input, context));
|
|
157
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
|
+
};
|
|
159
|
+
exports.serializeAws_json1_0DescribeLabelGroupCommand = serializeAws_json1_0DescribeLabelGroupCommand;
|
|
99
160
|
const serializeAws_json1_0DescribeModelCommand = async (input, context) => {
|
|
100
161
|
const headers = {
|
|
101
162
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -156,6 +217,26 @@ const serializeAws_json1_0ListInferenceSchedulersCommand = async (input, context
|
|
|
156
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
157
218
|
};
|
|
158
219
|
exports.serializeAws_json1_0ListInferenceSchedulersCommand = serializeAws_json1_0ListInferenceSchedulersCommand;
|
|
220
|
+
const serializeAws_json1_0ListLabelGroupsCommand = async (input, context) => {
|
|
221
|
+
const headers = {
|
|
222
|
+
"content-type": "application/x-amz-json-1.0",
|
|
223
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.ListLabelGroups",
|
|
224
|
+
};
|
|
225
|
+
let body;
|
|
226
|
+
body = JSON.stringify(serializeAws_json1_0ListLabelGroupsRequest(input, context));
|
|
227
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
|
+
};
|
|
229
|
+
exports.serializeAws_json1_0ListLabelGroupsCommand = serializeAws_json1_0ListLabelGroupsCommand;
|
|
230
|
+
const serializeAws_json1_0ListLabelsCommand = async (input, context) => {
|
|
231
|
+
const headers = {
|
|
232
|
+
"content-type": "application/x-amz-json-1.0",
|
|
233
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.ListLabels",
|
|
234
|
+
};
|
|
235
|
+
let body;
|
|
236
|
+
body = JSON.stringify(serializeAws_json1_0ListLabelsRequest(input, context));
|
|
237
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
+
};
|
|
239
|
+
exports.serializeAws_json1_0ListLabelsCommand = serializeAws_json1_0ListLabelsCommand;
|
|
159
240
|
const serializeAws_json1_0ListModelsCommand = async (input, context) => {
|
|
160
241
|
const headers = {
|
|
161
242
|
"content-type": "application/x-amz-json-1.0",
|
|
@@ -246,6 +327,16 @@ const serializeAws_json1_0UpdateInferenceSchedulerCommand = async (input, contex
|
|
|
246
327
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
328
|
};
|
|
248
329
|
exports.serializeAws_json1_0UpdateInferenceSchedulerCommand = serializeAws_json1_0UpdateInferenceSchedulerCommand;
|
|
330
|
+
const serializeAws_json1_0UpdateLabelGroupCommand = async (input, context) => {
|
|
331
|
+
const headers = {
|
|
332
|
+
"content-type": "application/x-amz-json-1.0",
|
|
333
|
+
"x-amz-target": "AWSLookoutEquipmentFrontendService.UpdateLabelGroup",
|
|
334
|
+
};
|
|
335
|
+
let body;
|
|
336
|
+
body = JSON.stringify(serializeAws_json1_0UpdateLabelGroupRequest(input, context));
|
|
337
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
|
+
};
|
|
339
|
+
exports.serializeAws_json1_0UpdateLabelGroupCommand = serializeAws_json1_0UpdateLabelGroupCommand;
|
|
249
340
|
const deserializeAws_json1_0CreateDatasetCommand = async (output, context) => {
|
|
250
341
|
if (output.statusCode >= 300) {
|
|
251
342
|
return deserializeAws_json1_0CreateDatasetCommandError(output, context);
|
|
@@ -347,6 +438,107 @@ const deserializeAws_json1_0CreateInferenceSchedulerCommandError = async (output
|
|
|
347
438
|
});
|
|
348
439
|
}
|
|
349
440
|
};
|
|
441
|
+
const deserializeAws_json1_0CreateLabelCommand = async (output, context) => {
|
|
442
|
+
if (output.statusCode >= 300) {
|
|
443
|
+
return deserializeAws_json1_0CreateLabelCommandError(output, context);
|
|
444
|
+
}
|
|
445
|
+
const data = await parseBody(output.body, context);
|
|
446
|
+
let contents = {};
|
|
447
|
+
contents = deserializeAws_json1_0CreateLabelResponse(data, context);
|
|
448
|
+
const response = {
|
|
449
|
+
$metadata: deserializeMetadata(output),
|
|
450
|
+
...contents,
|
|
451
|
+
};
|
|
452
|
+
return Promise.resolve(response);
|
|
453
|
+
};
|
|
454
|
+
exports.deserializeAws_json1_0CreateLabelCommand = deserializeAws_json1_0CreateLabelCommand;
|
|
455
|
+
const deserializeAws_json1_0CreateLabelCommandError = async (output, context) => {
|
|
456
|
+
const parsedOutput = {
|
|
457
|
+
...output,
|
|
458
|
+
body: await parseBody(output.body, context),
|
|
459
|
+
};
|
|
460
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
461
|
+
switch (errorCode) {
|
|
462
|
+
case "AccessDeniedException":
|
|
463
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
464
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
465
|
+
case "ConflictException":
|
|
466
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
467
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
468
|
+
case "InternalServerException":
|
|
469
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
470
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
471
|
+
case "ResourceNotFoundException":
|
|
472
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
473
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
474
|
+
case "ServiceQuotaExceededException":
|
|
475
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
476
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
477
|
+
case "ThrottlingException":
|
|
478
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
479
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
480
|
+
case "ValidationException":
|
|
481
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
482
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
483
|
+
default:
|
|
484
|
+
const parsedBody = parsedOutput.body;
|
|
485
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
486
|
+
output,
|
|
487
|
+
parsedBody,
|
|
488
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
489
|
+
errorCode,
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
};
|
|
493
|
+
const deserializeAws_json1_0CreateLabelGroupCommand = async (output, context) => {
|
|
494
|
+
if (output.statusCode >= 300) {
|
|
495
|
+
return deserializeAws_json1_0CreateLabelGroupCommandError(output, context);
|
|
496
|
+
}
|
|
497
|
+
const data = await parseBody(output.body, context);
|
|
498
|
+
let contents = {};
|
|
499
|
+
contents = deserializeAws_json1_0CreateLabelGroupResponse(data, context);
|
|
500
|
+
const response = {
|
|
501
|
+
$metadata: deserializeMetadata(output),
|
|
502
|
+
...contents,
|
|
503
|
+
};
|
|
504
|
+
return Promise.resolve(response);
|
|
505
|
+
};
|
|
506
|
+
exports.deserializeAws_json1_0CreateLabelGroupCommand = deserializeAws_json1_0CreateLabelGroupCommand;
|
|
507
|
+
const deserializeAws_json1_0CreateLabelGroupCommandError = async (output, context) => {
|
|
508
|
+
const parsedOutput = {
|
|
509
|
+
...output,
|
|
510
|
+
body: await parseBody(output.body, context),
|
|
511
|
+
};
|
|
512
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
513
|
+
switch (errorCode) {
|
|
514
|
+
case "AccessDeniedException":
|
|
515
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
516
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
517
|
+
case "ConflictException":
|
|
518
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
519
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
520
|
+
case "InternalServerException":
|
|
521
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
522
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
523
|
+
case "ServiceQuotaExceededException":
|
|
524
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
525
|
+
throw await deserializeAws_json1_0ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
526
|
+
case "ThrottlingException":
|
|
527
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
528
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
529
|
+
case "ValidationException":
|
|
530
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
531
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
532
|
+
default:
|
|
533
|
+
const parsedBody = parsedOutput.body;
|
|
534
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
535
|
+
output,
|
|
536
|
+
parsedBody,
|
|
537
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
538
|
+
errorCode,
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
};
|
|
350
542
|
const deserializeAws_json1_0CreateModelCommand = async (output, context) => {
|
|
351
543
|
if (output.statusCode >= 300) {
|
|
352
544
|
return deserializeAws_json1_0CreateModelCommandError(output, context);
|
|
@@ -488,6 +680,92 @@ const deserializeAws_json1_0DeleteInferenceSchedulerCommandError = async (output
|
|
|
488
680
|
});
|
|
489
681
|
}
|
|
490
682
|
};
|
|
683
|
+
const deserializeAws_json1_0DeleteLabelCommand = async (output, context) => {
|
|
684
|
+
if (output.statusCode >= 300) {
|
|
685
|
+
return deserializeAws_json1_0DeleteLabelCommandError(output, context);
|
|
686
|
+
}
|
|
687
|
+
await collectBody(output.body, context);
|
|
688
|
+
const response = {
|
|
689
|
+
$metadata: deserializeMetadata(output),
|
|
690
|
+
};
|
|
691
|
+
return Promise.resolve(response);
|
|
692
|
+
};
|
|
693
|
+
exports.deserializeAws_json1_0DeleteLabelCommand = deserializeAws_json1_0DeleteLabelCommand;
|
|
694
|
+
const deserializeAws_json1_0DeleteLabelCommandError = async (output, context) => {
|
|
695
|
+
const parsedOutput = {
|
|
696
|
+
...output,
|
|
697
|
+
body: await parseBody(output.body, context),
|
|
698
|
+
};
|
|
699
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
700
|
+
switch (errorCode) {
|
|
701
|
+
case "AccessDeniedException":
|
|
702
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
703
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
704
|
+
case "ConflictException":
|
|
705
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
706
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
707
|
+
case "InternalServerException":
|
|
708
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
709
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
710
|
+
case "ResourceNotFoundException":
|
|
711
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
712
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
713
|
+
case "ThrottlingException":
|
|
714
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
715
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
716
|
+
default:
|
|
717
|
+
const parsedBody = parsedOutput.body;
|
|
718
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
719
|
+
output,
|
|
720
|
+
parsedBody,
|
|
721
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
722
|
+
errorCode,
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
};
|
|
726
|
+
const deserializeAws_json1_0DeleteLabelGroupCommand = async (output, context) => {
|
|
727
|
+
if (output.statusCode >= 300) {
|
|
728
|
+
return deserializeAws_json1_0DeleteLabelGroupCommandError(output, context);
|
|
729
|
+
}
|
|
730
|
+
await collectBody(output.body, context);
|
|
731
|
+
const response = {
|
|
732
|
+
$metadata: deserializeMetadata(output),
|
|
733
|
+
};
|
|
734
|
+
return Promise.resolve(response);
|
|
735
|
+
};
|
|
736
|
+
exports.deserializeAws_json1_0DeleteLabelGroupCommand = deserializeAws_json1_0DeleteLabelGroupCommand;
|
|
737
|
+
const deserializeAws_json1_0DeleteLabelGroupCommandError = async (output, context) => {
|
|
738
|
+
const parsedOutput = {
|
|
739
|
+
...output,
|
|
740
|
+
body: await parseBody(output.body, context),
|
|
741
|
+
};
|
|
742
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
743
|
+
switch (errorCode) {
|
|
744
|
+
case "AccessDeniedException":
|
|
745
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
746
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
747
|
+
case "ConflictException":
|
|
748
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
749
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
750
|
+
case "InternalServerException":
|
|
751
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
752
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
753
|
+
case "ResourceNotFoundException":
|
|
754
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
755
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
756
|
+
case "ThrottlingException":
|
|
757
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
758
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
759
|
+
default:
|
|
760
|
+
const parsedBody = parsedOutput.body;
|
|
761
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
762
|
+
output,
|
|
763
|
+
parsedBody,
|
|
764
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
765
|
+
errorCode,
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
};
|
|
491
769
|
const deserializeAws_json1_0DeleteModelCommand = async (output, context) => {
|
|
492
770
|
if (output.statusCode >= 300) {
|
|
493
771
|
return deserializeAws_json1_0DeleteModelCommandError(output, context);
|
|
@@ -498,8 +776,100 @@ const deserializeAws_json1_0DeleteModelCommand = async (output, context) => {
|
|
|
498
776
|
};
|
|
499
777
|
return Promise.resolve(response);
|
|
500
778
|
};
|
|
501
|
-
exports.deserializeAws_json1_0DeleteModelCommand = deserializeAws_json1_0DeleteModelCommand;
|
|
502
|
-
const deserializeAws_json1_0DeleteModelCommandError = async (output, context) => {
|
|
779
|
+
exports.deserializeAws_json1_0DeleteModelCommand = deserializeAws_json1_0DeleteModelCommand;
|
|
780
|
+
const deserializeAws_json1_0DeleteModelCommandError = async (output, context) => {
|
|
781
|
+
const parsedOutput = {
|
|
782
|
+
...output,
|
|
783
|
+
body: await parseBody(output.body, context),
|
|
784
|
+
};
|
|
785
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
786
|
+
switch (errorCode) {
|
|
787
|
+
case "AccessDeniedException":
|
|
788
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
789
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
790
|
+
case "ConflictException":
|
|
791
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
792
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
793
|
+
case "InternalServerException":
|
|
794
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
795
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
796
|
+
case "ResourceNotFoundException":
|
|
797
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
798
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
799
|
+
case "ThrottlingException":
|
|
800
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
801
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
802
|
+
default:
|
|
803
|
+
const parsedBody = parsedOutput.body;
|
|
804
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
805
|
+
output,
|
|
806
|
+
parsedBody,
|
|
807
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
808
|
+
errorCode,
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
const deserializeAws_json1_0DescribeDataIngestionJobCommand = async (output, context) => {
|
|
813
|
+
if (output.statusCode >= 300) {
|
|
814
|
+
return deserializeAws_json1_0DescribeDataIngestionJobCommandError(output, context);
|
|
815
|
+
}
|
|
816
|
+
const data = await parseBody(output.body, context);
|
|
817
|
+
let contents = {};
|
|
818
|
+
contents = deserializeAws_json1_0DescribeDataIngestionJobResponse(data, context);
|
|
819
|
+
const response = {
|
|
820
|
+
$metadata: deserializeMetadata(output),
|
|
821
|
+
...contents,
|
|
822
|
+
};
|
|
823
|
+
return Promise.resolve(response);
|
|
824
|
+
};
|
|
825
|
+
exports.deserializeAws_json1_0DescribeDataIngestionJobCommand = deserializeAws_json1_0DescribeDataIngestionJobCommand;
|
|
826
|
+
const deserializeAws_json1_0DescribeDataIngestionJobCommandError = async (output, context) => {
|
|
827
|
+
const parsedOutput = {
|
|
828
|
+
...output,
|
|
829
|
+
body: await parseBody(output.body, context),
|
|
830
|
+
};
|
|
831
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
832
|
+
switch (errorCode) {
|
|
833
|
+
case "AccessDeniedException":
|
|
834
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
835
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
836
|
+
case "InternalServerException":
|
|
837
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
838
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
839
|
+
case "ResourceNotFoundException":
|
|
840
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
841
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
842
|
+
case "ThrottlingException":
|
|
843
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
844
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
845
|
+
case "ValidationException":
|
|
846
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
847
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
848
|
+
default:
|
|
849
|
+
const parsedBody = parsedOutput.body;
|
|
850
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
851
|
+
output,
|
|
852
|
+
parsedBody,
|
|
853
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
854
|
+
errorCode,
|
|
855
|
+
});
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
const deserializeAws_json1_0DescribeDatasetCommand = async (output, context) => {
|
|
859
|
+
if (output.statusCode >= 300) {
|
|
860
|
+
return deserializeAws_json1_0DescribeDatasetCommandError(output, context);
|
|
861
|
+
}
|
|
862
|
+
const data = await parseBody(output.body, context);
|
|
863
|
+
let contents = {};
|
|
864
|
+
contents = deserializeAws_json1_0DescribeDatasetResponse(data, context);
|
|
865
|
+
const response = {
|
|
866
|
+
$metadata: deserializeMetadata(output),
|
|
867
|
+
...contents,
|
|
868
|
+
};
|
|
869
|
+
return Promise.resolve(response);
|
|
870
|
+
};
|
|
871
|
+
exports.deserializeAws_json1_0DescribeDatasetCommand = deserializeAws_json1_0DescribeDatasetCommand;
|
|
872
|
+
const deserializeAws_json1_0DescribeDatasetCommandError = async (output, context) => {
|
|
503
873
|
const parsedOutput = {
|
|
504
874
|
...output,
|
|
505
875
|
body: await parseBody(output.body, context),
|
|
@@ -509,9 +879,6 @@ const deserializeAws_json1_0DeleteModelCommandError = async (output, context) =>
|
|
|
509
879
|
case "AccessDeniedException":
|
|
510
880
|
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
511
881
|
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
512
|
-
case "ConflictException":
|
|
513
|
-
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
514
|
-
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
515
882
|
case "InternalServerException":
|
|
516
883
|
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
517
884
|
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
@@ -521,6 +888,9 @@ const deserializeAws_json1_0DeleteModelCommandError = async (output, context) =>
|
|
|
521
888
|
case "ThrottlingException":
|
|
522
889
|
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
523
890
|
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
891
|
+
case "ValidationException":
|
|
892
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
893
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
524
894
|
default:
|
|
525
895
|
const parsedBody = parsedOutput.body;
|
|
526
896
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -531,21 +901,21 @@ const deserializeAws_json1_0DeleteModelCommandError = async (output, context) =>
|
|
|
531
901
|
});
|
|
532
902
|
}
|
|
533
903
|
};
|
|
534
|
-
const
|
|
904
|
+
const deserializeAws_json1_0DescribeInferenceSchedulerCommand = async (output, context) => {
|
|
535
905
|
if (output.statusCode >= 300) {
|
|
536
|
-
return
|
|
906
|
+
return deserializeAws_json1_0DescribeInferenceSchedulerCommandError(output, context);
|
|
537
907
|
}
|
|
538
908
|
const data = await parseBody(output.body, context);
|
|
539
909
|
let contents = {};
|
|
540
|
-
contents =
|
|
910
|
+
contents = deserializeAws_json1_0DescribeInferenceSchedulerResponse(data, context);
|
|
541
911
|
const response = {
|
|
542
912
|
$metadata: deserializeMetadata(output),
|
|
543
913
|
...contents,
|
|
544
914
|
};
|
|
545
915
|
return Promise.resolve(response);
|
|
546
916
|
};
|
|
547
|
-
exports.
|
|
548
|
-
const
|
|
917
|
+
exports.deserializeAws_json1_0DescribeInferenceSchedulerCommand = deserializeAws_json1_0DescribeInferenceSchedulerCommand;
|
|
918
|
+
const deserializeAws_json1_0DescribeInferenceSchedulerCommandError = async (output, context) => {
|
|
549
919
|
const parsedOutput = {
|
|
550
920
|
...output,
|
|
551
921
|
body: await parseBody(output.body, context),
|
|
@@ -577,21 +947,21 @@ const deserializeAws_json1_0DescribeDataIngestionJobCommandError = async (output
|
|
|
577
947
|
});
|
|
578
948
|
}
|
|
579
949
|
};
|
|
580
|
-
const
|
|
950
|
+
const deserializeAws_json1_0DescribeLabelCommand = async (output, context) => {
|
|
581
951
|
if (output.statusCode >= 300) {
|
|
582
|
-
return
|
|
952
|
+
return deserializeAws_json1_0DescribeLabelCommandError(output, context);
|
|
583
953
|
}
|
|
584
954
|
const data = await parseBody(output.body, context);
|
|
585
955
|
let contents = {};
|
|
586
|
-
contents =
|
|
956
|
+
contents = deserializeAws_json1_0DescribeLabelResponse(data, context);
|
|
587
957
|
const response = {
|
|
588
958
|
$metadata: deserializeMetadata(output),
|
|
589
959
|
...contents,
|
|
590
960
|
};
|
|
591
961
|
return Promise.resolve(response);
|
|
592
962
|
};
|
|
593
|
-
exports.
|
|
594
|
-
const
|
|
963
|
+
exports.deserializeAws_json1_0DescribeLabelCommand = deserializeAws_json1_0DescribeLabelCommand;
|
|
964
|
+
const deserializeAws_json1_0DescribeLabelCommandError = async (output, context) => {
|
|
595
965
|
const parsedOutput = {
|
|
596
966
|
...output,
|
|
597
967
|
body: await parseBody(output.body, context),
|
|
@@ -623,21 +993,21 @@ const deserializeAws_json1_0DescribeDatasetCommandError = async (output, context
|
|
|
623
993
|
});
|
|
624
994
|
}
|
|
625
995
|
};
|
|
626
|
-
const
|
|
996
|
+
const deserializeAws_json1_0DescribeLabelGroupCommand = async (output, context) => {
|
|
627
997
|
if (output.statusCode >= 300) {
|
|
628
|
-
return
|
|
998
|
+
return deserializeAws_json1_0DescribeLabelGroupCommandError(output, context);
|
|
629
999
|
}
|
|
630
1000
|
const data = await parseBody(output.body, context);
|
|
631
1001
|
let contents = {};
|
|
632
|
-
contents =
|
|
1002
|
+
contents = deserializeAws_json1_0DescribeLabelGroupResponse(data, context);
|
|
633
1003
|
const response = {
|
|
634
1004
|
$metadata: deserializeMetadata(output),
|
|
635
1005
|
...contents,
|
|
636
1006
|
};
|
|
637
1007
|
return Promise.resolve(response);
|
|
638
1008
|
};
|
|
639
|
-
exports.
|
|
640
|
-
const
|
|
1009
|
+
exports.deserializeAws_json1_0DescribeLabelGroupCommand = deserializeAws_json1_0DescribeLabelGroupCommand;
|
|
1010
|
+
const deserializeAws_json1_0DescribeLabelGroupCommandError = async (output, context) => {
|
|
641
1011
|
const parsedOutput = {
|
|
642
1012
|
...output,
|
|
643
1013
|
body: await parseBody(output.body, context),
|
|
@@ -936,6 +1306,92 @@ const deserializeAws_json1_0ListInferenceSchedulersCommandError = async (output,
|
|
|
936
1306
|
});
|
|
937
1307
|
}
|
|
938
1308
|
};
|
|
1309
|
+
const deserializeAws_json1_0ListLabelGroupsCommand = async (output, context) => {
|
|
1310
|
+
if (output.statusCode >= 300) {
|
|
1311
|
+
return deserializeAws_json1_0ListLabelGroupsCommandError(output, context);
|
|
1312
|
+
}
|
|
1313
|
+
const data = await parseBody(output.body, context);
|
|
1314
|
+
let contents = {};
|
|
1315
|
+
contents = deserializeAws_json1_0ListLabelGroupsResponse(data, context);
|
|
1316
|
+
const response = {
|
|
1317
|
+
$metadata: deserializeMetadata(output),
|
|
1318
|
+
...contents,
|
|
1319
|
+
};
|
|
1320
|
+
return Promise.resolve(response);
|
|
1321
|
+
};
|
|
1322
|
+
exports.deserializeAws_json1_0ListLabelGroupsCommand = deserializeAws_json1_0ListLabelGroupsCommand;
|
|
1323
|
+
const deserializeAws_json1_0ListLabelGroupsCommandError = async (output, context) => {
|
|
1324
|
+
const parsedOutput = {
|
|
1325
|
+
...output,
|
|
1326
|
+
body: await parseBody(output.body, context),
|
|
1327
|
+
};
|
|
1328
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1329
|
+
switch (errorCode) {
|
|
1330
|
+
case "AccessDeniedException":
|
|
1331
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1332
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1333
|
+
case "InternalServerException":
|
|
1334
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1335
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1336
|
+
case "ThrottlingException":
|
|
1337
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1338
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1339
|
+
case "ValidationException":
|
|
1340
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1341
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1342
|
+
default:
|
|
1343
|
+
const parsedBody = parsedOutput.body;
|
|
1344
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1345
|
+
output,
|
|
1346
|
+
parsedBody,
|
|
1347
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1348
|
+
errorCode,
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1351
|
+
};
|
|
1352
|
+
const deserializeAws_json1_0ListLabelsCommand = async (output, context) => {
|
|
1353
|
+
if (output.statusCode >= 300) {
|
|
1354
|
+
return deserializeAws_json1_0ListLabelsCommandError(output, context);
|
|
1355
|
+
}
|
|
1356
|
+
const data = await parseBody(output.body, context);
|
|
1357
|
+
let contents = {};
|
|
1358
|
+
contents = deserializeAws_json1_0ListLabelsResponse(data, context);
|
|
1359
|
+
const response = {
|
|
1360
|
+
$metadata: deserializeMetadata(output),
|
|
1361
|
+
...contents,
|
|
1362
|
+
};
|
|
1363
|
+
return Promise.resolve(response);
|
|
1364
|
+
};
|
|
1365
|
+
exports.deserializeAws_json1_0ListLabelsCommand = deserializeAws_json1_0ListLabelsCommand;
|
|
1366
|
+
const deserializeAws_json1_0ListLabelsCommandError = async (output, context) => {
|
|
1367
|
+
const parsedOutput = {
|
|
1368
|
+
...output,
|
|
1369
|
+
body: await parseBody(output.body, context),
|
|
1370
|
+
};
|
|
1371
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1372
|
+
switch (errorCode) {
|
|
1373
|
+
case "AccessDeniedException":
|
|
1374
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1375
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1376
|
+
case "InternalServerException":
|
|
1377
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1378
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1379
|
+
case "ThrottlingException":
|
|
1380
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1381
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1382
|
+
case "ValidationException":
|
|
1383
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1384
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1385
|
+
default:
|
|
1386
|
+
const parsedBody = parsedOutput.body;
|
|
1387
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1388
|
+
output,
|
|
1389
|
+
parsedBody,
|
|
1390
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1391
|
+
errorCode,
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1394
|
+
};
|
|
939
1395
|
const deserializeAws_json1_0ListModelsCommand = async (output, context) => {
|
|
940
1396
|
if (output.statusCode >= 300) {
|
|
941
1397
|
return deserializeAws_json1_0ListModelsCommandError(output, context);
|
|
@@ -1362,6 +1818,52 @@ const deserializeAws_json1_0UpdateInferenceSchedulerCommandError = async (output
|
|
|
1362
1818
|
});
|
|
1363
1819
|
}
|
|
1364
1820
|
};
|
|
1821
|
+
const deserializeAws_json1_0UpdateLabelGroupCommand = async (output, context) => {
|
|
1822
|
+
if (output.statusCode >= 300) {
|
|
1823
|
+
return deserializeAws_json1_0UpdateLabelGroupCommandError(output, context);
|
|
1824
|
+
}
|
|
1825
|
+
await collectBody(output.body, context);
|
|
1826
|
+
const response = {
|
|
1827
|
+
$metadata: deserializeMetadata(output),
|
|
1828
|
+
};
|
|
1829
|
+
return Promise.resolve(response);
|
|
1830
|
+
};
|
|
1831
|
+
exports.deserializeAws_json1_0UpdateLabelGroupCommand = deserializeAws_json1_0UpdateLabelGroupCommand;
|
|
1832
|
+
const deserializeAws_json1_0UpdateLabelGroupCommandError = async (output, context) => {
|
|
1833
|
+
const parsedOutput = {
|
|
1834
|
+
...output,
|
|
1835
|
+
body: await parseBody(output.body, context),
|
|
1836
|
+
};
|
|
1837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1838
|
+
switch (errorCode) {
|
|
1839
|
+
case "AccessDeniedException":
|
|
1840
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1841
|
+
throw await deserializeAws_json1_0AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1842
|
+
case "ConflictException":
|
|
1843
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1844
|
+
throw await deserializeAws_json1_0ConflictExceptionResponse(parsedOutput, context);
|
|
1845
|
+
case "InternalServerException":
|
|
1846
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1847
|
+
throw await deserializeAws_json1_0InternalServerExceptionResponse(parsedOutput, context);
|
|
1848
|
+
case "ResourceNotFoundException":
|
|
1849
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1850
|
+
throw await deserializeAws_json1_0ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1851
|
+
case "ThrottlingException":
|
|
1852
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1853
|
+
throw await deserializeAws_json1_0ThrottlingExceptionResponse(parsedOutput, context);
|
|
1854
|
+
case "ValidationException":
|
|
1855
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1856
|
+
throw await deserializeAws_json1_0ValidationExceptionResponse(parsedOutput, context);
|
|
1857
|
+
default:
|
|
1858
|
+
const parsedBody = parsedOutput.body;
|
|
1859
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1860
|
+
output,
|
|
1861
|
+
parsedBody,
|
|
1862
|
+
exceptionCtor: LookoutEquipmentServiceException_1.LookoutEquipmentServiceException,
|
|
1863
|
+
errorCode,
|
|
1864
|
+
});
|
|
1865
|
+
}
|
|
1866
|
+
};
|
|
1365
1867
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
1366
1868
|
const body = parsedOutput.body;
|
|
1367
1869
|
const deserialized = deserializeAws_json1_0AccessDeniedException(body, context);
|
|
@@ -1456,6 +1958,28 @@ const serializeAws_json1_0CreateInferenceSchedulerRequest = (input, context) =>
|
|
|
1456
1958
|
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1457
1959
|
};
|
|
1458
1960
|
};
|
|
1961
|
+
const serializeAws_json1_0CreateLabelGroupRequest = (input, context) => {
|
|
1962
|
+
var _a;
|
|
1963
|
+
return {
|
|
1964
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1965
|
+
...(input.FaultCodes != null && { FaultCodes: serializeAws_json1_0FaultCodes(input.FaultCodes, context) }),
|
|
1966
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
1967
|
+
...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
|
|
1968
|
+
};
|
|
1969
|
+
};
|
|
1970
|
+
const serializeAws_json1_0CreateLabelRequest = (input, context) => {
|
|
1971
|
+
var _a;
|
|
1972
|
+
return {
|
|
1973
|
+
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
1974
|
+
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
1975
|
+
...(input.Equipment != null && { Equipment: input.Equipment }),
|
|
1976
|
+
...(input.FaultCode != null && { FaultCode: input.FaultCode }),
|
|
1977
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
1978
|
+
...(input.Notes != null && { Notes: input.Notes }),
|
|
1979
|
+
...(input.Rating != null && { Rating: input.Rating }),
|
|
1980
|
+
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
1981
|
+
};
|
|
1982
|
+
};
|
|
1459
1983
|
const serializeAws_json1_0CreateModelRequest = (input, context) => {
|
|
1460
1984
|
var _a;
|
|
1461
1985
|
return {
|
|
@@ -1509,6 +2033,17 @@ const serializeAws_json1_0DeleteInferenceSchedulerRequest = (input, context) =>
|
|
|
1509
2033
|
...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
|
|
1510
2034
|
};
|
|
1511
2035
|
};
|
|
2036
|
+
const serializeAws_json1_0DeleteLabelGroupRequest = (input, context) => {
|
|
2037
|
+
return {
|
|
2038
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
2039
|
+
};
|
|
2040
|
+
};
|
|
2041
|
+
const serializeAws_json1_0DeleteLabelRequest = (input, context) => {
|
|
2042
|
+
return {
|
|
2043
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
2044
|
+
...(input.LabelId != null && { LabelId: input.LabelId }),
|
|
2045
|
+
};
|
|
2046
|
+
};
|
|
1512
2047
|
const serializeAws_json1_0DeleteModelRequest = (input, context) => {
|
|
1513
2048
|
return {
|
|
1514
2049
|
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
@@ -1529,11 +2064,29 @@ const serializeAws_json1_0DescribeInferenceSchedulerRequest = (input, context) =
|
|
|
1529
2064
|
...(input.InferenceSchedulerName != null && { InferenceSchedulerName: input.InferenceSchedulerName }),
|
|
1530
2065
|
};
|
|
1531
2066
|
};
|
|
2067
|
+
const serializeAws_json1_0DescribeLabelGroupRequest = (input, context) => {
|
|
2068
|
+
return {
|
|
2069
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
const serializeAws_json1_0DescribeLabelRequest = (input, context) => {
|
|
2073
|
+
return {
|
|
2074
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
2075
|
+
...(input.LabelId != null && { LabelId: input.LabelId }),
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
1532
2078
|
const serializeAws_json1_0DescribeModelRequest = (input, context) => {
|
|
1533
2079
|
return {
|
|
1534
2080
|
...(input.ModelName != null && { ModelName: input.ModelName }),
|
|
1535
2081
|
};
|
|
1536
2082
|
};
|
|
2083
|
+
const serializeAws_json1_0FaultCodes = (input, context) => {
|
|
2084
|
+
return input
|
|
2085
|
+
.filter((e) => e != null)
|
|
2086
|
+
.map((entry) => {
|
|
2087
|
+
return entry;
|
|
2088
|
+
});
|
|
2089
|
+
};
|
|
1537
2090
|
const serializeAws_json1_0InferenceInputConfiguration = (input, context) => {
|
|
1538
2091
|
return {
|
|
1539
2092
|
...(input.InferenceInputNameConfiguration != null && {
|
|
@@ -1589,6 +2142,7 @@ const serializeAws_json1_0IngestionS3InputConfiguration = (input, context) => {
|
|
|
1589
2142
|
};
|
|
1590
2143
|
const serializeAws_json1_0LabelsInputConfiguration = (input, context) => {
|
|
1591
2144
|
return {
|
|
2145
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
1592
2146
|
...(input.S3InputConfiguration != null && {
|
|
1593
2147
|
S3InputConfiguration: serializeAws_json1_0LabelsS3InputConfiguration(input.S3InputConfiguration, context),
|
|
1594
2148
|
}),
|
|
@@ -1646,6 +2200,24 @@ const serializeAws_json1_0ListInferenceSchedulersRequest = (input, context) => {
|
|
|
1646
2200
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1647
2201
|
};
|
|
1648
2202
|
};
|
|
2203
|
+
const serializeAws_json1_0ListLabelGroupsRequest = (input, context) => {
|
|
2204
|
+
return {
|
|
2205
|
+
...(input.LabelGroupNameBeginsWith != null && { LabelGroupNameBeginsWith: input.LabelGroupNameBeginsWith }),
|
|
2206
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2207
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2208
|
+
};
|
|
2209
|
+
};
|
|
2210
|
+
const serializeAws_json1_0ListLabelsRequest = (input, context) => {
|
|
2211
|
+
return {
|
|
2212
|
+
...(input.Equipment != null && { Equipment: input.Equipment }),
|
|
2213
|
+
...(input.FaultCode != null && { FaultCode: input.FaultCode }),
|
|
2214
|
+
...(input.IntervalEndTime != null && { IntervalEndTime: Math.round(input.IntervalEndTime.getTime() / 1000) }),
|
|
2215
|
+
...(input.IntervalStartTime != null && { IntervalStartTime: Math.round(input.IntervalStartTime.getTime() / 1000) }),
|
|
2216
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
2217
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
2218
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
1649
2221
|
const serializeAws_json1_0ListModelsRequest = (input, context) => {
|
|
1650
2222
|
return {
|
|
1651
2223
|
...(input.DatasetNameBeginsWith != null && { DatasetNameBeginsWith: input.DatasetNameBeginsWith }),
|
|
@@ -1735,6 +2307,12 @@ const serializeAws_json1_0UpdateInferenceSchedulerRequest = (input, context) =>
|
|
|
1735
2307
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
1736
2308
|
};
|
|
1737
2309
|
};
|
|
2310
|
+
const serializeAws_json1_0UpdateLabelGroupRequest = (input, context) => {
|
|
2311
|
+
return {
|
|
2312
|
+
...(input.FaultCodes != null && { FaultCodes: serializeAws_json1_0FaultCodes(input.FaultCodes, context) }),
|
|
2313
|
+
...(input.LabelGroupName != null && { LabelGroupName: input.LabelGroupName }),
|
|
2314
|
+
};
|
|
2315
|
+
};
|
|
1738
2316
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
1739
2317
|
return {
|
|
1740
2318
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
@@ -1771,6 +2349,17 @@ const deserializeAws_json1_0CreateInferenceSchedulerResponse = (output, context)
|
|
|
1771
2349
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
1772
2350
|
};
|
|
1773
2351
|
};
|
|
2352
|
+
const deserializeAws_json1_0CreateLabelGroupResponse = (output, context) => {
|
|
2353
|
+
return {
|
|
2354
|
+
LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
|
|
2355
|
+
LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
|
|
2356
|
+
};
|
|
2357
|
+
};
|
|
2358
|
+
const deserializeAws_json1_0CreateLabelResponse = (output, context) => {
|
|
2359
|
+
return {
|
|
2360
|
+
LabelId: (0, smithy_client_1.expectString)(output.LabelId),
|
|
2361
|
+
};
|
|
2362
|
+
};
|
|
1774
2363
|
const deserializeAws_json1_0CreateModelResponse = (output, context) => {
|
|
1775
2364
|
return {
|
|
1776
2365
|
ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
|
|
@@ -1911,6 +2500,7 @@ const deserializeAws_json1_0DescribeInferenceSchedulerResponse = (output, contex
|
|
|
1911
2500
|
DataUploadFrequency: (0, smithy_client_1.expectString)(output.DataUploadFrequency),
|
|
1912
2501
|
InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
|
|
1913
2502
|
InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
|
|
2503
|
+
LatestInferenceResult: (0, smithy_client_1.expectString)(output.LatestInferenceResult),
|
|
1914
2504
|
ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
|
|
1915
2505
|
ModelName: (0, smithy_client_1.expectString)(output.ModelName),
|
|
1916
2506
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
@@ -1919,6 +2509,29 @@ const deserializeAws_json1_0DescribeInferenceSchedulerResponse = (output, contex
|
|
|
1919
2509
|
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
1920
2510
|
};
|
|
1921
2511
|
};
|
|
2512
|
+
const deserializeAws_json1_0DescribeLabelGroupResponse = (output, context) => {
|
|
2513
|
+
return {
|
|
2514
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2515
|
+
FaultCodes: output.FaultCodes != null ? deserializeAws_json1_0FaultCodes(output.FaultCodes, context) : undefined,
|
|
2516
|
+
LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
|
|
2517
|
+
LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
|
|
2518
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2519
|
+
};
|
|
2520
|
+
};
|
|
2521
|
+
const deserializeAws_json1_0DescribeLabelResponse = (output, context) => {
|
|
2522
|
+
return {
|
|
2523
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2524
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2525
|
+
Equipment: (0, smithy_client_1.expectString)(output.Equipment),
|
|
2526
|
+
FaultCode: (0, smithy_client_1.expectString)(output.FaultCode),
|
|
2527
|
+
LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
|
|
2528
|
+
LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
|
|
2529
|
+
LabelId: (0, smithy_client_1.expectString)(output.LabelId),
|
|
2530
|
+
Notes: (0, smithy_client_1.expectString)(output.Notes),
|
|
2531
|
+
Rating: (0, smithy_client_1.expectString)(output.Rating),
|
|
2532
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2533
|
+
};
|
|
2534
|
+
};
|
|
1922
2535
|
const deserializeAws_json1_0DescribeModelResponse = (output, context) => {
|
|
1923
2536
|
return {
|
|
1924
2537
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
@@ -1967,6 +2580,17 @@ const deserializeAws_json1_0DuplicateTimestamps = (output, context) => {
|
|
|
1967
2580
|
TotalNumberOfDuplicateTimestamps: (0, smithy_client_1.expectInt32)(output.TotalNumberOfDuplicateTimestamps),
|
|
1968
2581
|
};
|
|
1969
2582
|
};
|
|
2583
|
+
const deserializeAws_json1_0FaultCodes = (output, context) => {
|
|
2584
|
+
const retVal = (output || [])
|
|
2585
|
+
.filter((e) => e != null)
|
|
2586
|
+
.map((entry) => {
|
|
2587
|
+
if (entry === null) {
|
|
2588
|
+
return null;
|
|
2589
|
+
}
|
|
2590
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
2591
|
+
});
|
|
2592
|
+
return retVal;
|
|
2593
|
+
};
|
|
1970
2594
|
const deserializeAws_json1_0InferenceEventSummaries = (output, context) => {
|
|
1971
2595
|
const retVal = (output || [])
|
|
1972
2596
|
.filter((e) => e != null)
|
|
@@ -2085,6 +2709,7 @@ const deserializeAws_json1_0InferenceSchedulerSummary = (output, context) => {
|
|
|
2085
2709
|
DataUploadFrequency: (0, smithy_client_1.expectString)(output.DataUploadFrequency),
|
|
2086
2710
|
InferenceSchedulerArn: (0, smithy_client_1.expectString)(output.InferenceSchedulerArn),
|
|
2087
2711
|
InferenceSchedulerName: (0, smithy_client_1.expectString)(output.InferenceSchedulerName),
|
|
2712
|
+
LatestInferenceResult: (0, smithy_client_1.expectString)(output.LatestInferenceResult),
|
|
2088
2713
|
ModelArn: (0, smithy_client_1.expectString)(output.ModelArn),
|
|
2089
2714
|
ModelName: (0, smithy_client_1.expectString)(output.ModelName),
|
|
2090
2715
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
@@ -2134,8 +2759,28 @@ const deserializeAws_json1_0InvalidSensorData = (output, context) => {
|
|
|
2134
2759
|
TotalNumberOfInvalidValues: (0, smithy_client_1.expectInt32)(output.TotalNumberOfInvalidValues),
|
|
2135
2760
|
};
|
|
2136
2761
|
};
|
|
2762
|
+
const deserializeAws_json1_0LabelGroupSummaries = (output, context) => {
|
|
2763
|
+
const retVal = (output || [])
|
|
2764
|
+
.filter((e) => e != null)
|
|
2765
|
+
.map((entry) => {
|
|
2766
|
+
if (entry === null) {
|
|
2767
|
+
return null;
|
|
2768
|
+
}
|
|
2769
|
+
return deserializeAws_json1_0LabelGroupSummary(entry, context);
|
|
2770
|
+
});
|
|
2771
|
+
return retVal;
|
|
2772
|
+
};
|
|
2773
|
+
const deserializeAws_json1_0LabelGroupSummary = (output, context) => {
|
|
2774
|
+
return {
|
|
2775
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2776
|
+
LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
|
|
2777
|
+
LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
|
|
2778
|
+
UpdatedAt: output.UpdatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.UpdatedAt))) : undefined,
|
|
2779
|
+
};
|
|
2780
|
+
};
|
|
2137
2781
|
const deserializeAws_json1_0LabelsInputConfiguration = (output, context) => {
|
|
2138
2782
|
return {
|
|
2783
|
+
LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
|
|
2139
2784
|
S3InputConfiguration: output.S3InputConfiguration != null
|
|
2140
2785
|
? deserializeAws_json1_0LabelsS3InputConfiguration(output.S3InputConfiguration, context)
|
|
2141
2786
|
: undefined,
|
|
@@ -2147,6 +2792,30 @@ const deserializeAws_json1_0LabelsS3InputConfiguration = (output, context) => {
|
|
|
2147
2792
|
Prefix: (0, smithy_client_1.expectString)(output.Prefix),
|
|
2148
2793
|
};
|
|
2149
2794
|
};
|
|
2795
|
+
const deserializeAws_json1_0LabelSummaries = (output, context) => {
|
|
2796
|
+
const retVal = (output || [])
|
|
2797
|
+
.filter((e) => e != null)
|
|
2798
|
+
.map((entry) => {
|
|
2799
|
+
if (entry === null) {
|
|
2800
|
+
return null;
|
|
2801
|
+
}
|
|
2802
|
+
return deserializeAws_json1_0LabelSummary(entry, context);
|
|
2803
|
+
});
|
|
2804
|
+
return retVal;
|
|
2805
|
+
};
|
|
2806
|
+
const deserializeAws_json1_0LabelSummary = (output, context) => {
|
|
2807
|
+
return {
|
|
2808
|
+
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
2809
|
+
EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
|
|
2810
|
+
Equipment: (0, smithy_client_1.expectString)(output.Equipment),
|
|
2811
|
+
FaultCode: (0, smithy_client_1.expectString)(output.FaultCode),
|
|
2812
|
+
LabelGroupArn: (0, smithy_client_1.expectString)(output.LabelGroupArn),
|
|
2813
|
+
LabelGroupName: (0, smithy_client_1.expectString)(output.LabelGroupName),
|
|
2814
|
+
LabelId: (0, smithy_client_1.expectString)(output.LabelId),
|
|
2815
|
+
Rating: (0, smithy_client_1.expectString)(output.Rating),
|
|
2816
|
+
StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
|
|
2817
|
+
};
|
|
2818
|
+
};
|
|
2150
2819
|
const deserializeAws_json1_0LargeTimestampGaps = (output, context) => {
|
|
2151
2820
|
return {
|
|
2152
2821
|
MaxTimestampGapInDays: (0, smithy_client_1.expectInt32)(output.MaxTimestampGapInDays),
|
|
@@ -2194,6 +2863,20 @@ const deserializeAws_json1_0ListInferenceSchedulersResponse = (output, context)
|
|
|
2194
2863
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2195
2864
|
};
|
|
2196
2865
|
};
|
|
2866
|
+
const deserializeAws_json1_0ListLabelGroupsResponse = (output, context) => {
|
|
2867
|
+
return {
|
|
2868
|
+
LabelGroupSummaries: output.LabelGroupSummaries != null
|
|
2869
|
+
? deserializeAws_json1_0LabelGroupSummaries(output.LabelGroupSummaries, context)
|
|
2870
|
+
: undefined,
|
|
2871
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2872
|
+
};
|
|
2873
|
+
};
|
|
2874
|
+
const deserializeAws_json1_0ListLabelsResponse = (output, context) => {
|
|
2875
|
+
return {
|
|
2876
|
+
LabelSummaries: output.LabelSummaries != null ? deserializeAws_json1_0LabelSummaries(output.LabelSummaries, context) : undefined,
|
|
2877
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
2878
|
+
};
|
|
2879
|
+
};
|
|
2197
2880
|
const deserializeAws_json1_0ListModelsResponse = (output, context) => {
|
|
2198
2881
|
return {
|
|
2199
2882
|
ModelSummaries: output.ModelSummaries != null ? deserializeAws_json1_0ModelSummaries(output.ModelSummaries, context) : undefined,
|