@aws-sdk/client-lookoutequipment 3.410.0 → 3.414.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +64 -0
- package/dist-cjs/LookoutEquipment.js +16 -0
- package/dist-cjs/commands/CreateRetrainingSchedulerCommand.js +46 -0
- package/dist-cjs/commands/DeleteRetrainingSchedulerCommand.js +46 -0
- package/dist-cjs/commands/DescribeRetrainingSchedulerCommand.js +46 -0
- package/dist-cjs/commands/ListRetrainingSchedulersCommand.js +46 -0
- package/dist-cjs/commands/StartRetrainingSchedulerCommand.js +46 -0
- package/dist-cjs/commands/StopRetrainingSchedulerCommand.js +46 -0
- package/dist-cjs/commands/UpdateModelCommand.js +46 -0
- package/dist-cjs/commands/UpdateRetrainingSchedulerCommand.js +46 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/models/models_0.js +28 -6
- package/dist-cjs/pagination/ListRetrainingSchedulersPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +502 -2
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/LookoutEquipment.js +16 -0
- package/dist-es/commands/CreateRetrainingSchedulerCommand.js +42 -0
- package/dist-es/commands/DeleteRetrainingSchedulerCommand.js +42 -0
- package/dist-es/commands/DescribeRetrainingSchedulerCommand.js +42 -0
- package/dist-es/commands/ListRetrainingSchedulersCommand.js +42 -0
- package/dist-es/commands/StartRetrainingSchedulerCommand.js +42 -0
- package/dist-es/commands/StopRetrainingSchedulerCommand.js +42 -0
- package/dist-es/commands/UpdateModelCommand.js +42 -0
- package/dist-es/commands/UpdateRetrainingSchedulerCommand.js +42 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/models/models_0.js +27 -5
- package/dist-es/pagination/ListRetrainingSchedulersPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +484 -0
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/LookoutEquipment.d.ts +56 -0
- package/dist-types/LookoutEquipmentClient.d.ts +10 -2
- package/dist-types/commands/CreateDatasetCommand.d.ts +2 -2
- package/dist-types/commands/CreateInferenceSchedulerCommand.d.ts +2 -2
- package/dist-types/commands/CreateLabelCommand.d.ts +3 -5
- package/dist-types/commands/CreateLabelGroupCommand.d.ts +3 -5
- package/dist-types/commands/CreateModelCommand.d.ts +7 -7
- package/dist-types/commands/CreateRetrainingSchedulerCommand.d.ts +147 -0
- package/dist-types/commands/DeleteDatasetCommand.d.ts +2 -2
- package/dist-types/commands/DeleteInferenceSchedulerCommand.d.ts +4 -4
- package/dist-types/commands/DeleteLabelCommand.d.ts +3 -5
- package/dist-types/commands/DeleteLabelGroupCommand.d.ts +3 -5
- package/dist-types/commands/DeleteModelCommand.d.ts +4 -5
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +2 -2
- package/dist-types/commands/DeleteRetrainingSchedulerCommand.d.ts +106 -0
- package/dist-types/commands/DescribeDataIngestionJobCommand.d.ts +2 -2
- package/dist-types/commands/DescribeDatasetCommand.d.ts +2 -2
- package/dist-types/commands/DescribeInferenceSchedulerCommand.d.ts +2 -2
- package/dist-types/commands/DescribeLabelCommand.d.ts +3 -5
- package/dist-types/commands/DescribeLabelGroupCommand.d.ts +3 -5
- package/dist-types/commands/DescribeModelCommand.d.ts +15 -5
- package/dist-types/commands/DescribeModelVersionCommand.d.ts +6 -2
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +2 -2
- package/dist-types/commands/DescribeRetrainingSchedulerCommand.d.ts +125 -0
- package/dist-types/commands/ImportDatasetCommand.d.ts +2 -2
- package/dist-types/commands/ImportModelVersionCommand.d.ts +3 -2
- package/dist-types/commands/ListDataIngestionJobsCommand.d.ts +2 -2
- package/dist-types/commands/ListDatasetsCommand.d.ts +2 -2
- package/dist-types/commands/ListInferenceEventsCommand.d.ts +2 -2
- package/dist-types/commands/ListInferenceExecutionsCommand.d.ts +4 -2
- package/dist-types/commands/ListInferenceSchedulersCommand.d.ts +2 -2
- package/dist-types/commands/ListLabelGroupsCommand.d.ts +3 -5
- package/dist-types/commands/ListLabelsCommand.d.ts +3 -5
- package/dist-types/commands/ListModelVersionsCommand.d.ts +5 -5
- package/dist-types/commands/ListModelsCommand.d.ts +7 -2
- package/dist-types/commands/ListRetrainingSchedulersCommand.d.ts +143 -0
- package/dist-types/commands/ListSensorStatisticsCommand.d.ts +2 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +2 -2
- package/dist-types/commands/StartDataIngestionJobCommand.d.ts +3 -4
- package/dist-types/commands/StartInferenceSchedulerCommand.d.ts +2 -2
- package/dist-types/commands/StartRetrainingSchedulerCommand.d.ts +116 -0
- package/dist-types/commands/StopInferenceSchedulerCommand.d.ts +2 -2
- package/dist-types/commands/StopRetrainingSchedulerCommand.d.ts +116 -0
- package/dist-types/commands/TagResourceCommand.d.ts +6 -6
- package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
- package/dist-types/commands/UpdateActiveModelVersionCommand.d.ts +2 -2
- package/dist-types/commands/UpdateInferenceSchedulerCommand.d.ts +2 -2
- package/dist-types/commands/UpdateLabelGroupCommand.d.ts +3 -5
- package/dist-types/commands/UpdateModelCommand.d.ts +116 -0
- package/dist-types/commands/UpdateRetrainingSchedulerCommand.d.ts +111 -0
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/models/models_0.d.ts +895 -433
- package/dist-types/pagination/ListRetrainingSchedulersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +72 -0
- package/dist-types/ts3.4/LookoutEquipment.d.ts +136 -0
- package/dist-types/ts3.4/LookoutEquipmentClient.d.ts +50 -2
- package/dist-types/ts3.4/commands/CreateRetrainingSchedulerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteRetrainingSchedulerCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DescribeRetrainingSchedulerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRetrainingSchedulersCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StartRetrainingSchedulerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/StopRetrainingSchedulerCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateModelCommand.d.ts +33 -0
- package/dist-types/ts3.4/commands/UpdateRetrainingSchedulerCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/models/models_0.d.ts +137 -9
- package/dist-types/ts3.4/pagination/ListRetrainingSchedulersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +96 -0
- package/package.json +29 -28
|
@@ -33,6 +33,12 @@ export const se_CreateModelCommand = async (input, context) => {
|
|
|
33
33
|
body = JSON.stringify(se_CreateModelRequest(input, context));
|
|
34
34
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
35
|
};
|
|
36
|
+
export const se_CreateRetrainingSchedulerCommand = async (input, context) => {
|
|
37
|
+
const headers = sharedHeaders("CreateRetrainingScheduler");
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify(se_CreateRetrainingSchedulerRequest(input, context));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
36
42
|
export const se_DeleteDatasetCommand = async (input, context) => {
|
|
37
43
|
const headers = sharedHeaders("DeleteDataset");
|
|
38
44
|
let body;
|
|
@@ -69,6 +75,12 @@ export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
|
69
75
|
body = JSON.stringify(_json(input));
|
|
70
76
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
77
|
};
|
|
78
|
+
export const se_DeleteRetrainingSchedulerCommand = async (input, context) => {
|
|
79
|
+
const headers = sharedHeaders("DeleteRetrainingScheduler");
|
|
80
|
+
let body;
|
|
81
|
+
body = JSON.stringify(_json(input));
|
|
82
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
+
};
|
|
72
84
|
export const se_DescribeDataIngestionJobCommand = async (input, context) => {
|
|
73
85
|
const headers = sharedHeaders("DescribeDataIngestionJob");
|
|
74
86
|
let body;
|
|
@@ -117,6 +129,12 @@ export const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
|
117
129
|
body = JSON.stringify(_json(input));
|
|
118
130
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
131
|
};
|
|
132
|
+
export const se_DescribeRetrainingSchedulerCommand = async (input, context) => {
|
|
133
|
+
const headers = sharedHeaders("DescribeRetrainingScheduler");
|
|
134
|
+
let body;
|
|
135
|
+
body = JSON.stringify(_json(input));
|
|
136
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
+
};
|
|
120
138
|
export const se_ImportDatasetCommand = async (input, context) => {
|
|
121
139
|
const headers = sharedHeaders("ImportDataset");
|
|
122
140
|
let body;
|
|
@@ -183,6 +201,12 @@ export const se_ListModelVersionsCommand = async (input, context) => {
|
|
|
183
201
|
body = JSON.stringify(se_ListModelVersionsRequest(input, context));
|
|
184
202
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
203
|
};
|
|
204
|
+
export const se_ListRetrainingSchedulersCommand = async (input, context) => {
|
|
205
|
+
const headers = sharedHeaders("ListRetrainingSchedulers");
|
|
206
|
+
let body;
|
|
207
|
+
body = JSON.stringify(_json(input));
|
|
208
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
209
|
+
};
|
|
186
210
|
export const se_ListSensorStatisticsCommand = async (input, context) => {
|
|
187
211
|
const headers = sharedHeaders("ListSensorStatistics");
|
|
188
212
|
let body;
|
|
@@ -213,12 +237,24 @@ export const se_StartInferenceSchedulerCommand = async (input, context) => {
|
|
|
213
237
|
body = JSON.stringify(_json(input));
|
|
214
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
215
239
|
};
|
|
240
|
+
export const se_StartRetrainingSchedulerCommand = async (input, context) => {
|
|
241
|
+
const headers = sharedHeaders("StartRetrainingScheduler");
|
|
242
|
+
let body;
|
|
243
|
+
body = JSON.stringify(_json(input));
|
|
244
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
245
|
+
};
|
|
216
246
|
export const se_StopInferenceSchedulerCommand = async (input, context) => {
|
|
217
247
|
const headers = sharedHeaders("StopInferenceScheduler");
|
|
218
248
|
let body;
|
|
219
249
|
body = JSON.stringify(_json(input));
|
|
220
250
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
251
|
};
|
|
252
|
+
export const se_StopRetrainingSchedulerCommand = async (input, context) => {
|
|
253
|
+
const headers = sharedHeaders("StopRetrainingScheduler");
|
|
254
|
+
let body;
|
|
255
|
+
body = JSON.stringify(_json(input));
|
|
256
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
257
|
+
};
|
|
222
258
|
export const se_TagResourceCommand = async (input, context) => {
|
|
223
259
|
const headers = sharedHeaders("TagResource");
|
|
224
260
|
let body;
|
|
@@ -249,6 +285,18 @@ export const se_UpdateLabelGroupCommand = async (input, context) => {
|
|
|
249
285
|
body = JSON.stringify(_json(input));
|
|
250
286
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
251
287
|
};
|
|
288
|
+
export const se_UpdateModelCommand = async (input, context) => {
|
|
289
|
+
const headers = sharedHeaders("UpdateModel");
|
|
290
|
+
let body;
|
|
291
|
+
body = JSON.stringify(_json(input));
|
|
292
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
293
|
+
};
|
|
294
|
+
export const se_UpdateRetrainingSchedulerCommand = async (input, context) => {
|
|
295
|
+
const headers = sharedHeaders("UpdateRetrainingScheduler");
|
|
296
|
+
let body;
|
|
297
|
+
body = JSON.stringify(se_UpdateRetrainingSchedulerRequest(input, context));
|
|
298
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
299
|
+
};
|
|
252
300
|
export const de_CreateDatasetCommand = async (output, context) => {
|
|
253
301
|
if (output.statusCode >= 300) {
|
|
254
302
|
return de_CreateDatasetCommandError(output, context);
|
|
@@ -493,6 +541,53 @@ const de_CreateModelCommandError = async (output, context) => {
|
|
|
493
541
|
});
|
|
494
542
|
}
|
|
495
543
|
};
|
|
544
|
+
export const de_CreateRetrainingSchedulerCommand = async (output, context) => {
|
|
545
|
+
if (output.statusCode >= 300) {
|
|
546
|
+
return de_CreateRetrainingSchedulerCommandError(output, context);
|
|
547
|
+
}
|
|
548
|
+
const data = await parseBody(output.body, context);
|
|
549
|
+
let contents = {};
|
|
550
|
+
contents = _json(data);
|
|
551
|
+
const response = {
|
|
552
|
+
$metadata: deserializeMetadata(output),
|
|
553
|
+
...contents,
|
|
554
|
+
};
|
|
555
|
+
return response;
|
|
556
|
+
};
|
|
557
|
+
const de_CreateRetrainingSchedulerCommandError = async (output, context) => {
|
|
558
|
+
const parsedOutput = {
|
|
559
|
+
...output,
|
|
560
|
+
body: await parseErrorBody(output.body, context),
|
|
561
|
+
};
|
|
562
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
563
|
+
switch (errorCode) {
|
|
564
|
+
case "AccessDeniedException":
|
|
565
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
566
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
567
|
+
case "ConflictException":
|
|
568
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
569
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
570
|
+
case "InternalServerException":
|
|
571
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
572
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
573
|
+
case "ResourceNotFoundException":
|
|
574
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
575
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
576
|
+
case "ThrottlingException":
|
|
577
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
578
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
579
|
+
case "ValidationException":
|
|
580
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
581
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
582
|
+
default:
|
|
583
|
+
const parsedBody = parsedOutput.body;
|
|
584
|
+
return throwDefaultError({
|
|
585
|
+
output,
|
|
586
|
+
parsedBody,
|
|
587
|
+
errorCode,
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
};
|
|
496
591
|
export const de_DeleteDatasetCommand = async (output, context) => {
|
|
497
592
|
if (output.statusCode >= 300) {
|
|
498
593
|
return de_DeleteDatasetCommandError(output, context);
|
|
@@ -757,6 +852,50 @@ const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
|
757
852
|
});
|
|
758
853
|
}
|
|
759
854
|
};
|
|
855
|
+
export const de_DeleteRetrainingSchedulerCommand = async (output, context) => {
|
|
856
|
+
if (output.statusCode >= 300) {
|
|
857
|
+
return de_DeleteRetrainingSchedulerCommandError(output, context);
|
|
858
|
+
}
|
|
859
|
+
await collectBody(output.body, context);
|
|
860
|
+
const response = {
|
|
861
|
+
$metadata: deserializeMetadata(output),
|
|
862
|
+
};
|
|
863
|
+
return response;
|
|
864
|
+
};
|
|
865
|
+
const de_DeleteRetrainingSchedulerCommandError = async (output, context) => {
|
|
866
|
+
const parsedOutput = {
|
|
867
|
+
...output,
|
|
868
|
+
body: await parseErrorBody(output.body, context),
|
|
869
|
+
};
|
|
870
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
871
|
+
switch (errorCode) {
|
|
872
|
+
case "AccessDeniedException":
|
|
873
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
874
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
875
|
+
case "ConflictException":
|
|
876
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
877
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
878
|
+
case "InternalServerException":
|
|
879
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
880
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
881
|
+
case "ResourceNotFoundException":
|
|
882
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
883
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
884
|
+
case "ThrottlingException":
|
|
885
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
886
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
887
|
+
case "ValidationException":
|
|
888
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
889
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
890
|
+
default:
|
|
891
|
+
const parsedBody = parsedOutput.body;
|
|
892
|
+
return throwDefaultError({
|
|
893
|
+
output,
|
|
894
|
+
parsedBody,
|
|
895
|
+
errorCode,
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
};
|
|
760
899
|
export const de_DescribeDataIngestionJobCommand = async (output, context) => {
|
|
761
900
|
if (output.statusCode >= 300) {
|
|
762
901
|
return de_DescribeDataIngestionJobCommandError(output, context);
|
|
@@ -1109,6 +1248,50 @@ const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
|
1109
1248
|
});
|
|
1110
1249
|
}
|
|
1111
1250
|
};
|
|
1251
|
+
export const de_DescribeRetrainingSchedulerCommand = async (output, context) => {
|
|
1252
|
+
if (output.statusCode >= 300) {
|
|
1253
|
+
return de_DescribeRetrainingSchedulerCommandError(output, context);
|
|
1254
|
+
}
|
|
1255
|
+
const data = await parseBody(output.body, context);
|
|
1256
|
+
let contents = {};
|
|
1257
|
+
contents = de_DescribeRetrainingSchedulerResponse(data, context);
|
|
1258
|
+
const response = {
|
|
1259
|
+
$metadata: deserializeMetadata(output),
|
|
1260
|
+
...contents,
|
|
1261
|
+
};
|
|
1262
|
+
return response;
|
|
1263
|
+
};
|
|
1264
|
+
const de_DescribeRetrainingSchedulerCommandError = async (output, context) => {
|
|
1265
|
+
const parsedOutput = {
|
|
1266
|
+
...output,
|
|
1267
|
+
body: await parseErrorBody(output.body, context),
|
|
1268
|
+
};
|
|
1269
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1270
|
+
switch (errorCode) {
|
|
1271
|
+
case "AccessDeniedException":
|
|
1272
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1273
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1274
|
+
case "InternalServerException":
|
|
1275
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1276
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1277
|
+
case "ResourceNotFoundException":
|
|
1278
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1279
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1280
|
+
case "ThrottlingException":
|
|
1281
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1282
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1283
|
+
case "ValidationException":
|
|
1284
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1285
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1286
|
+
default:
|
|
1287
|
+
const parsedBody = parsedOutput.body;
|
|
1288
|
+
return throwDefaultError({
|
|
1289
|
+
output,
|
|
1290
|
+
parsedBody,
|
|
1291
|
+
errorCode,
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1294
|
+
};
|
|
1112
1295
|
export const de_ImportDatasetCommand = async (output, context) => {
|
|
1113
1296
|
if (output.statusCode >= 300) {
|
|
1114
1297
|
return de_ImportDatasetCommandError(output, context);
|
|
@@ -1587,6 +1770,47 @@ const de_ListModelVersionsCommandError = async (output, context) => {
|
|
|
1587
1770
|
});
|
|
1588
1771
|
}
|
|
1589
1772
|
};
|
|
1773
|
+
export const de_ListRetrainingSchedulersCommand = async (output, context) => {
|
|
1774
|
+
if (output.statusCode >= 300) {
|
|
1775
|
+
return de_ListRetrainingSchedulersCommandError(output, context);
|
|
1776
|
+
}
|
|
1777
|
+
const data = await parseBody(output.body, context);
|
|
1778
|
+
let contents = {};
|
|
1779
|
+
contents = de_ListRetrainingSchedulersResponse(data, context);
|
|
1780
|
+
const response = {
|
|
1781
|
+
$metadata: deserializeMetadata(output),
|
|
1782
|
+
...contents,
|
|
1783
|
+
};
|
|
1784
|
+
return response;
|
|
1785
|
+
};
|
|
1786
|
+
const de_ListRetrainingSchedulersCommandError = async (output, context) => {
|
|
1787
|
+
const parsedOutput = {
|
|
1788
|
+
...output,
|
|
1789
|
+
body: await parseErrorBody(output.body, context),
|
|
1790
|
+
};
|
|
1791
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1792
|
+
switch (errorCode) {
|
|
1793
|
+
case "AccessDeniedException":
|
|
1794
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1795
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1796
|
+
case "InternalServerException":
|
|
1797
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1798
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1799
|
+
case "ThrottlingException":
|
|
1800
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1801
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1802
|
+
case "ValidationException":
|
|
1803
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1804
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1805
|
+
default:
|
|
1806
|
+
const parsedBody = parsedOutput.body;
|
|
1807
|
+
return throwDefaultError({
|
|
1808
|
+
output,
|
|
1809
|
+
parsedBody,
|
|
1810
|
+
errorCode,
|
|
1811
|
+
});
|
|
1812
|
+
}
|
|
1813
|
+
};
|
|
1590
1814
|
export const de_ListSensorStatisticsCommand = async (output, context) => {
|
|
1591
1815
|
if (output.statusCode >= 300) {
|
|
1592
1816
|
return de_ListSensorStatisticsCommandError(output, context);
|
|
@@ -1822,6 +2046,53 @@ const de_StartInferenceSchedulerCommandError = async (output, context) => {
|
|
|
1822
2046
|
});
|
|
1823
2047
|
}
|
|
1824
2048
|
};
|
|
2049
|
+
export const de_StartRetrainingSchedulerCommand = async (output, context) => {
|
|
2050
|
+
if (output.statusCode >= 300) {
|
|
2051
|
+
return de_StartRetrainingSchedulerCommandError(output, context);
|
|
2052
|
+
}
|
|
2053
|
+
const data = await parseBody(output.body, context);
|
|
2054
|
+
let contents = {};
|
|
2055
|
+
contents = _json(data);
|
|
2056
|
+
const response = {
|
|
2057
|
+
$metadata: deserializeMetadata(output),
|
|
2058
|
+
...contents,
|
|
2059
|
+
};
|
|
2060
|
+
return response;
|
|
2061
|
+
};
|
|
2062
|
+
const de_StartRetrainingSchedulerCommandError = async (output, context) => {
|
|
2063
|
+
const parsedOutput = {
|
|
2064
|
+
...output,
|
|
2065
|
+
body: await parseErrorBody(output.body, context),
|
|
2066
|
+
};
|
|
2067
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2068
|
+
switch (errorCode) {
|
|
2069
|
+
case "AccessDeniedException":
|
|
2070
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2071
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2072
|
+
case "ConflictException":
|
|
2073
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2074
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2075
|
+
case "InternalServerException":
|
|
2076
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2077
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2078
|
+
case "ResourceNotFoundException":
|
|
2079
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2080
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2081
|
+
case "ThrottlingException":
|
|
2082
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2083
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2084
|
+
case "ValidationException":
|
|
2085
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2086
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2087
|
+
default:
|
|
2088
|
+
const parsedBody = parsedOutput.body;
|
|
2089
|
+
return throwDefaultError({
|
|
2090
|
+
output,
|
|
2091
|
+
parsedBody,
|
|
2092
|
+
errorCode,
|
|
2093
|
+
});
|
|
2094
|
+
}
|
|
2095
|
+
};
|
|
1825
2096
|
export const de_StopInferenceSchedulerCommand = async (output, context) => {
|
|
1826
2097
|
if (output.statusCode >= 300) {
|
|
1827
2098
|
return de_StopInferenceSchedulerCommandError(output, context);
|
|
@@ -1869,6 +2140,53 @@ const de_StopInferenceSchedulerCommandError = async (output, context) => {
|
|
|
1869
2140
|
});
|
|
1870
2141
|
}
|
|
1871
2142
|
};
|
|
2143
|
+
export const de_StopRetrainingSchedulerCommand = async (output, context) => {
|
|
2144
|
+
if (output.statusCode >= 300) {
|
|
2145
|
+
return de_StopRetrainingSchedulerCommandError(output, context);
|
|
2146
|
+
}
|
|
2147
|
+
const data = await parseBody(output.body, context);
|
|
2148
|
+
let contents = {};
|
|
2149
|
+
contents = _json(data);
|
|
2150
|
+
const response = {
|
|
2151
|
+
$metadata: deserializeMetadata(output),
|
|
2152
|
+
...contents,
|
|
2153
|
+
};
|
|
2154
|
+
return response;
|
|
2155
|
+
};
|
|
2156
|
+
const de_StopRetrainingSchedulerCommandError = async (output, context) => {
|
|
2157
|
+
const parsedOutput = {
|
|
2158
|
+
...output,
|
|
2159
|
+
body: await parseErrorBody(output.body, context),
|
|
2160
|
+
};
|
|
2161
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2162
|
+
switch (errorCode) {
|
|
2163
|
+
case "AccessDeniedException":
|
|
2164
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2165
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2166
|
+
case "ConflictException":
|
|
2167
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2168
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2169
|
+
case "InternalServerException":
|
|
2170
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2171
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2172
|
+
case "ResourceNotFoundException":
|
|
2173
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2174
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2175
|
+
case "ThrottlingException":
|
|
2176
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2177
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2178
|
+
case "ValidationException":
|
|
2179
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2180
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2181
|
+
default:
|
|
2182
|
+
const parsedBody = parsedOutput.body;
|
|
2183
|
+
return throwDefaultError({
|
|
2184
|
+
output,
|
|
2185
|
+
parsedBody,
|
|
2186
|
+
errorCode,
|
|
2187
|
+
});
|
|
2188
|
+
}
|
|
2189
|
+
};
|
|
1872
2190
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1873
2191
|
if (output.statusCode >= 300) {
|
|
1874
2192
|
return de_TagResourceCommandError(output, context);
|
|
@@ -2095,6 +2413,94 @@ const de_UpdateLabelGroupCommandError = async (output, context) => {
|
|
|
2095
2413
|
});
|
|
2096
2414
|
}
|
|
2097
2415
|
};
|
|
2416
|
+
export const de_UpdateModelCommand = async (output, context) => {
|
|
2417
|
+
if (output.statusCode >= 300) {
|
|
2418
|
+
return de_UpdateModelCommandError(output, context);
|
|
2419
|
+
}
|
|
2420
|
+
await collectBody(output.body, context);
|
|
2421
|
+
const response = {
|
|
2422
|
+
$metadata: deserializeMetadata(output),
|
|
2423
|
+
};
|
|
2424
|
+
return response;
|
|
2425
|
+
};
|
|
2426
|
+
const de_UpdateModelCommandError = async (output, context) => {
|
|
2427
|
+
const parsedOutput = {
|
|
2428
|
+
...output,
|
|
2429
|
+
body: await parseErrorBody(output.body, context),
|
|
2430
|
+
};
|
|
2431
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2432
|
+
switch (errorCode) {
|
|
2433
|
+
case "AccessDeniedException":
|
|
2434
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2435
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2436
|
+
case "ConflictException":
|
|
2437
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2438
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2439
|
+
case "InternalServerException":
|
|
2440
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2441
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2442
|
+
case "ResourceNotFoundException":
|
|
2443
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2444
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2445
|
+
case "ThrottlingException":
|
|
2446
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2447
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2448
|
+
case "ValidationException":
|
|
2449
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2450
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2451
|
+
default:
|
|
2452
|
+
const parsedBody = parsedOutput.body;
|
|
2453
|
+
return throwDefaultError({
|
|
2454
|
+
output,
|
|
2455
|
+
parsedBody,
|
|
2456
|
+
errorCode,
|
|
2457
|
+
});
|
|
2458
|
+
}
|
|
2459
|
+
};
|
|
2460
|
+
export const de_UpdateRetrainingSchedulerCommand = async (output, context) => {
|
|
2461
|
+
if (output.statusCode >= 300) {
|
|
2462
|
+
return de_UpdateRetrainingSchedulerCommandError(output, context);
|
|
2463
|
+
}
|
|
2464
|
+
await collectBody(output.body, context);
|
|
2465
|
+
const response = {
|
|
2466
|
+
$metadata: deserializeMetadata(output),
|
|
2467
|
+
};
|
|
2468
|
+
return response;
|
|
2469
|
+
};
|
|
2470
|
+
const de_UpdateRetrainingSchedulerCommandError = async (output, context) => {
|
|
2471
|
+
const parsedOutput = {
|
|
2472
|
+
...output,
|
|
2473
|
+
body: await parseErrorBody(output.body, context),
|
|
2474
|
+
};
|
|
2475
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2476
|
+
switch (errorCode) {
|
|
2477
|
+
case "AccessDeniedException":
|
|
2478
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2479
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2480
|
+
case "ConflictException":
|
|
2481
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2482
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2483
|
+
case "InternalServerException":
|
|
2484
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2485
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2486
|
+
case "ResourceNotFoundException":
|
|
2487
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2488
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2489
|
+
case "ThrottlingException":
|
|
2490
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2491
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2492
|
+
case "ValidationException":
|
|
2493
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2494
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2495
|
+
default:
|
|
2496
|
+
const parsedBody = parsedOutput.body;
|
|
2497
|
+
return throwDefaultError({
|
|
2498
|
+
output,
|
|
2499
|
+
parsedBody,
|
|
2500
|
+
errorCode,
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2503
|
+
};
|
|
2098
2504
|
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2099
2505
|
const body = parsedOutput.body;
|
|
2100
2506
|
const deserialized = _json(body);
|
|
@@ -2219,6 +2625,16 @@ const se_CreateModelRequest = (input, context) => {
|
|
|
2219
2625
|
TrainingDataStartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2220
2626
|
});
|
|
2221
2627
|
};
|
|
2628
|
+
const se_CreateRetrainingSchedulerRequest = (input, context) => {
|
|
2629
|
+
return take(input, {
|
|
2630
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2631
|
+
LookbackWindow: [],
|
|
2632
|
+
ModelName: [],
|
|
2633
|
+
PromoteMode: [],
|
|
2634
|
+
RetrainingFrequency: [],
|
|
2635
|
+
RetrainingStartDate: (_) => Math.round(_.getTime() / 1000),
|
|
2636
|
+
});
|
|
2637
|
+
};
|
|
2222
2638
|
const se_DatasetSchema = (input, context) => {
|
|
2223
2639
|
return take(input, {
|
|
2224
2640
|
InlineDataSchema: __LazyJsonString.fromObject,
|
|
@@ -2237,6 +2653,7 @@ const se_ImportModelVersionRequest = (input, context) => {
|
|
|
2237
2653
|
return take(input, {
|
|
2238
2654
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2239
2655
|
DatasetName: [],
|
|
2656
|
+
InferenceDataImportStrategy: [],
|
|
2240
2657
|
LabelsInputConfiguration: _json,
|
|
2241
2658
|
ModelName: [],
|
|
2242
2659
|
RoleArn: [],
|
|
@@ -2304,6 +2721,15 @@ const se_StartDataIngestionJobRequest = (input, context) => {
|
|
|
2304
2721
|
RoleArn: [],
|
|
2305
2722
|
});
|
|
2306
2723
|
};
|
|
2724
|
+
const se_UpdateRetrainingSchedulerRequest = (input, context) => {
|
|
2725
|
+
return take(input, {
|
|
2726
|
+
LookbackWindow: [],
|
|
2727
|
+
ModelName: [],
|
|
2728
|
+
PromoteMode: [],
|
|
2729
|
+
RetrainingFrequency: [],
|
|
2730
|
+
RetrainingStartDate: (_) => Math.round(_.getTime() / 1000),
|
|
2731
|
+
});
|
|
2732
|
+
};
|
|
2307
2733
|
const de_CountPercent = (output, context) => {
|
|
2308
2734
|
return take(output, {
|
|
2309
2735
|
Count: __expectInt32,
|
|
@@ -2405,6 +2831,8 @@ const de_DescribeLabelResponse = (output, context) => {
|
|
|
2405
2831
|
};
|
|
2406
2832
|
const de_DescribeModelResponse = (output, context) => {
|
|
2407
2833
|
return take(output, {
|
|
2834
|
+
AccumulatedInferenceDataEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2835
|
+
AccumulatedInferenceDataStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2408
2836
|
ActiveModelVersion: __expectLong,
|
|
2409
2837
|
ActiveModelVersionArn: __expectString,
|
|
2410
2838
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -2418,14 +2846,22 @@ const de_DescribeModelResponse = (output, context) => {
|
|
|
2418
2846
|
ImportJobStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2419
2847
|
LabelsInputConfiguration: _json,
|
|
2420
2848
|
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2849
|
+
LatestScheduledRetrainingAvailableDataInDays: __expectInt32,
|
|
2850
|
+
LatestScheduledRetrainingFailedReason: __expectString,
|
|
2851
|
+
LatestScheduledRetrainingModelVersion: __expectLong,
|
|
2852
|
+
LatestScheduledRetrainingStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2853
|
+
LatestScheduledRetrainingStatus: __expectString,
|
|
2421
2854
|
ModelArn: __expectString,
|
|
2422
2855
|
ModelMetrics: (_) => new __LazyJsonString(_),
|
|
2423
2856
|
ModelName: __expectString,
|
|
2424
2857
|
ModelVersionActivatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2858
|
+
NextScheduledRetrainingStartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2425
2859
|
OffCondition: __expectString,
|
|
2426
2860
|
PreviousActiveModelVersion: __expectLong,
|
|
2427
2861
|
PreviousActiveModelVersionArn: __expectString,
|
|
2428
2862
|
PreviousModelVersionActivatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2863
|
+
PriorModelMetrics: (_) => new __LazyJsonString(_),
|
|
2864
|
+
RetrainingSchedulerStatus: __expectString,
|
|
2429
2865
|
RoleArn: __expectString,
|
|
2430
2866
|
Schema: (_) => new __LazyJsonString(_),
|
|
2431
2867
|
ServerSideKmsKeyId: __expectString,
|
|
@@ -2439,6 +2875,8 @@ const de_DescribeModelResponse = (output, context) => {
|
|
|
2439
2875
|
};
|
|
2440
2876
|
const de_DescribeModelVersionResponse = (output, context) => {
|
|
2441
2877
|
return take(output, {
|
|
2878
|
+
AutoPromotionResult: __expectString,
|
|
2879
|
+
AutoPromotionResultReason: __expectString,
|
|
2442
2880
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2443
2881
|
DataPreProcessingConfiguration: _json,
|
|
2444
2882
|
DatasetArn: __expectString,
|
|
@@ -2457,6 +2895,8 @@ const de_DescribeModelVersionResponse = (output, context) => {
|
|
|
2457
2895
|
ModelVersion: __expectLong,
|
|
2458
2896
|
ModelVersionArn: __expectString,
|
|
2459
2897
|
OffCondition: __expectString,
|
|
2898
|
+
PriorModelMetrics: __expectString,
|
|
2899
|
+
RetrainingAvailableDataInDays: __expectInt32,
|
|
2460
2900
|
RoleArn: __expectString,
|
|
2461
2901
|
Schema: __expectString,
|
|
2462
2902
|
ServerSideKmsKeyId: __expectString,
|
|
@@ -2477,6 +2917,19 @@ const de_DescribeResourcePolicyResponse = (output, context) => {
|
|
|
2477
2917
|
ResourcePolicy: __expectString,
|
|
2478
2918
|
});
|
|
2479
2919
|
};
|
|
2920
|
+
const de_DescribeRetrainingSchedulerResponse = (output, context) => {
|
|
2921
|
+
return take(output, {
|
|
2922
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2923
|
+
LookbackWindow: __expectString,
|
|
2924
|
+
ModelArn: __expectString,
|
|
2925
|
+
ModelName: __expectString,
|
|
2926
|
+
PromoteMode: __expectString,
|
|
2927
|
+
RetrainingFrequency: __expectString,
|
|
2928
|
+
RetrainingStartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2929
|
+
Status: __expectString,
|
|
2930
|
+
UpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2931
|
+
});
|
|
2932
|
+
};
|
|
2480
2933
|
const de_InferenceEventSummaries = (output, context) => {
|
|
2481
2934
|
const retVal = (output || [])
|
|
2482
2935
|
.filter((e) => e != null)
|
|
@@ -2515,6 +2968,8 @@ const de_InferenceExecutionSummary = (output, context) => {
|
|
|
2515
2968
|
InferenceSchedulerName: __expectString,
|
|
2516
2969
|
ModelArn: __expectString,
|
|
2517
2970
|
ModelName: __expectString,
|
|
2971
|
+
ModelVersion: __expectLong,
|
|
2972
|
+
ModelVersionArn: __expectString,
|
|
2518
2973
|
ScheduledStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2519
2974
|
Status: __expectString,
|
|
2520
2975
|
});
|
|
@@ -2598,6 +3053,12 @@ const de_ListModelVersionsResponse = (output, context) => {
|
|
|
2598
3053
|
NextToken: __expectString,
|
|
2599
3054
|
});
|
|
2600
3055
|
};
|
|
3056
|
+
const de_ListRetrainingSchedulersResponse = (output, context) => {
|
|
3057
|
+
return take(output, {
|
|
3058
|
+
NextToken: __expectString,
|
|
3059
|
+
RetrainingSchedulerSummaries: (_) => de_RetrainingSchedulerSummaries(_, context),
|
|
3060
|
+
});
|
|
3061
|
+
};
|
|
2601
3062
|
const de_ListSensorStatisticsResponse = (output, context) => {
|
|
2602
3063
|
return take(output, {
|
|
2603
3064
|
NextToken: __expectString,
|
|
@@ -2619,8 +3080,13 @@ const de_ModelSummary = (output, context) => {
|
|
|
2619
3080
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2620
3081
|
DatasetArn: __expectString,
|
|
2621
3082
|
DatasetName: __expectString,
|
|
3083
|
+
LatestScheduledRetrainingModelVersion: __expectLong,
|
|
3084
|
+
LatestScheduledRetrainingStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3085
|
+
LatestScheduledRetrainingStatus: __expectString,
|
|
2622
3086
|
ModelArn: __expectString,
|
|
2623
3087
|
ModelName: __expectString,
|
|
3088
|
+
NextScheduledRetrainingStartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3089
|
+
RetrainingSchedulerStatus: __expectString,
|
|
2624
3090
|
Status: __expectString,
|
|
2625
3091
|
});
|
|
2626
3092
|
};
|
|
@@ -2643,6 +3109,24 @@ const de_ModelVersionSummary = (output, context) => {
|
|
|
2643
3109
|
Status: __expectString,
|
|
2644
3110
|
});
|
|
2645
3111
|
};
|
|
3112
|
+
const de_RetrainingSchedulerSummaries = (output, context) => {
|
|
3113
|
+
const retVal = (output || [])
|
|
3114
|
+
.filter((e) => e != null)
|
|
3115
|
+
.map((entry) => {
|
|
3116
|
+
return de_RetrainingSchedulerSummary(entry, context);
|
|
3117
|
+
});
|
|
3118
|
+
return retVal;
|
|
3119
|
+
};
|
|
3120
|
+
const de_RetrainingSchedulerSummary = (output, context) => {
|
|
3121
|
+
return take(output, {
|
|
3122
|
+
LookbackWindow: __expectString,
|
|
3123
|
+
ModelArn: __expectString,
|
|
3124
|
+
ModelName: __expectString,
|
|
3125
|
+
RetrainingFrequency: __expectString,
|
|
3126
|
+
RetrainingStartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
3127
|
+
Status: __expectString,
|
|
3128
|
+
});
|
|
3129
|
+
};
|
|
2646
3130
|
const de_SensorStatisticsSummaries = (output, context) => {
|
|
2647
3131
|
const retVal = (output || [])
|
|
2648
3132
|
.filter((e) => e != null)
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
|
|
1
2
|
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
2
3
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
3
4
|
const asPartial = (t) => t;
|
|
4
5
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
5
6
|
const extensionConfiguration = {
|
|
7
|
+
...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
|
|
6
8
|
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
7
9
|
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
8
10
|
};
|
|
9
11
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
10
12
|
return {
|
|
11
13
|
...runtimeConfig,
|
|
14
|
+
...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
|
|
12
15
|
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
13
16
|
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
14
17
|
};
|