@aws-sdk/client-lookoutequipment 3.378.0 → 3.381.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/DeleteResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/DescribeModelVersionCommand.js +46 -0
- package/dist-cjs/commands/DescribeResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/ImportDatasetCommand.js +46 -0
- package/dist-cjs/commands/ImportModelVersionCommand.js +46 -0
- package/dist-cjs/commands/ListModelVersionsCommand.js +46 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +46 -0
- package/dist-cjs/commands/UpdateActiveModelVersionCommand.js +46 -0
- package/dist-cjs/commands/index.js +8 -0
- package/dist-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +16 -1
- package/dist-cjs/pagination/ListModelVersionsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +559 -2
- package/dist-es/LookoutEquipment.js +16 -0
- package/dist-es/commands/DeleteResourcePolicyCommand.js +42 -0
- package/dist-es/commands/DescribeModelVersionCommand.js +42 -0
- package/dist-es/commands/DescribeResourcePolicyCommand.js +42 -0
- package/dist-es/commands/ImportDatasetCommand.js +42 -0
- package/dist-es/commands/ImportModelVersionCommand.js +42 -0
- package/dist-es/commands/ListModelVersionsCommand.js +42 -0
- package/dist-es/commands/PutResourcePolicyCommand.js +42 -0
- package/dist-es/commands/UpdateActiveModelVersionCommand.js +42 -0
- package/dist-es/commands/index.js +8 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +15 -0
- package/dist-es/pagination/ListModelVersionsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +541 -0
- package/dist-types/LookoutEquipment.d.ts +56 -0
- package/dist-types/LookoutEquipmentClient.d.ts +10 -2
- package/dist-types/commands/CreateDatasetCommand.d.ts +3 -3
- package/dist-types/commands/CreateInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/CreateLabelCommand.d.ts +3 -3
- package/dist-types/commands/CreateLabelGroupCommand.d.ts +3 -3
- package/dist-types/commands/CreateModelCommand.d.ts +2 -2
- package/dist-types/commands/DeleteDatasetCommand.d.ts +1 -1
- package/dist-types/commands/DeleteInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/DeleteLabelCommand.d.ts +3 -3
- package/dist-types/commands/DeleteLabelGroupCommand.d.ts +3 -3
- package/dist-types/commands/DeleteModelCommand.d.ts +1 -1
- package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +94 -0
- package/dist-types/commands/DescribeDataIngestionJobCommand.d.ts +3 -2
- package/dist-types/commands/DescribeDatasetCommand.d.ts +3 -2
- package/dist-types/commands/DescribeInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/DescribeLabelCommand.d.ts +3 -3
- package/dist-types/commands/DescribeLabelGroupCommand.d.ts +3 -3
- package/dist-types/commands/DescribeModelCommand.d.ts +11 -2
- package/dist-types/commands/DescribeModelVersionCommand.d.ts +128 -0
- package/dist-types/commands/DescribeResourcePolicyCommand.d.ts +95 -0
- package/dist-types/commands/ImportDatasetCommand.d.ts +111 -0
- package/dist-types/commands/ImportModelVersionCommand.d.ts +121 -0
- package/dist-types/commands/ListDataIngestionJobsCommand.d.ts +3 -3
- package/dist-types/commands/ListDatasetsCommand.d.ts +2 -2
- package/dist-types/commands/ListInferenceEventsCommand.d.ts +1 -1
- package/dist-types/commands/ListInferenceExecutionsCommand.d.ts +1 -1
- package/dist-types/commands/ListInferenceSchedulersCommand.d.ts +1 -1
- package/dist-types/commands/ListLabelGroupsCommand.d.ts +3 -3
- package/dist-types/commands/ListLabelsCommand.d.ts +3 -3
- package/dist-types/commands/ListModelVersionsCommand.d.ts +113 -0
- package/dist-types/commands/ListModelsCommand.d.ts +5 -3
- package/dist-types/commands/ListSensorStatisticsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutResourcePolicyCommand.d.ts +103 -0
- package/dist-types/commands/StartDataIngestionJobCommand.d.ts +2 -2
- package/dist-types/commands/StartInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/StopInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateActiveModelVersionCommand.d.ts +102 -0
- package/dist-types/commands/UpdateInferenceSchedulerCommand.d.ts +1 -1
- package/dist-types/commands/UpdateLabelGroupCommand.d.ts +3 -3
- package/dist-types/commands/index.d.ts +8 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +4 -1
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +732 -141
- package/dist-types/pagination/ListModelVersionsPaginator.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 +48 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/DescribeModelVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DescribeResourcePolicyCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ImportDatasetCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ImportModelVersionCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListModelVersionsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/UpdateActiveModelVersionCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
- package/dist-types/ts3.4/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +154 -0
- package/dist-types/ts3.4/pagination/ListModelVersionsPaginator.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 +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateLabelGroupCommand = exports.de_UpdateInferenceSchedulerCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopInferenceSchedulerCommand = exports.de_StartInferenceSchedulerCommand = exports.de_StartDataIngestionJobCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSensorStatisticsCommand = exports.de_ListModelsCommand = exports.de_ListLabelsCommand = exports.de_ListLabelGroupsCommand = exports.de_ListInferenceSchedulersCommand = exports.de_ListInferenceExecutionsCommand = exports.de_ListInferenceEventsCommand = exports.de_ListDatasetsCommand = void 0;
|
|
3
|
+
exports.de_DeleteLabelGroupCommand = exports.de_DeleteLabelCommand = exports.de_DeleteInferenceSchedulerCommand = exports.de_DeleteDatasetCommand = exports.de_CreateModelCommand = exports.de_CreateLabelGroupCommand = exports.de_CreateLabelCommand = exports.de_CreateInferenceSchedulerCommand = exports.de_CreateDatasetCommand = exports.se_UpdateLabelGroupCommand = exports.se_UpdateInferenceSchedulerCommand = exports.se_UpdateActiveModelVersionCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopInferenceSchedulerCommand = exports.se_StartInferenceSchedulerCommand = exports.se_StartDataIngestionJobCommand = exports.se_PutResourcePolicyCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSensorStatisticsCommand = exports.se_ListModelVersionsCommand = exports.se_ListModelsCommand = exports.se_ListLabelsCommand = exports.se_ListLabelGroupsCommand = exports.se_ListInferenceSchedulersCommand = exports.se_ListInferenceExecutionsCommand = exports.se_ListInferenceEventsCommand = exports.se_ListDatasetsCommand = exports.se_ListDataIngestionJobsCommand = exports.se_ImportModelVersionCommand = exports.se_ImportDatasetCommand = exports.se_DescribeResourcePolicyCommand = exports.se_DescribeModelVersionCommand = exports.se_DescribeModelCommand = exports.se_DescribeLabelGroupCommand = exports.se_DescribeLabelCommand = exports.se_DescribeInferenceSchedulerCommand = exports.se_DescribeDatasetCommand = exports.se_DescribeDataIngestionJobCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteModelCommand = exports.se_DeleteLabelGroupCommand = exports.se_DeleteLabelCommand = exports.se_DeleteInferenceSchedulerCommand = exports.se_DeleteDatasetCommand = exports.se_CreateModelCommand = exports.se_CreateLabelGroupCommand = exports.se_CreateLabelCommand = exports.se_CreateInferenceSchedulerCommand = exports.se_CreateDatasetCommand = void 0;
|
|
4
|
+
exports.de_UpdateLabelGroupCommand = exports.de_UpdateInferenceSchedulerCommand = exports.de_UpdateActiveModelVersionCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopInferenceSchedulerCommand = exports.de_StartInferenceSchedulerCommand = exports.de_StartDataIngestionJobCommand = exports.de_PutResourcePolicyCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSensorStatisticsCommand = exports.de_ListModelVersionsCommand = exports.de_ListModelsCommand = exports.de_ListLabelsCommand = exports.de_ListLabelGroupsCommand = exports.de_ListInferenceSchedulersCommand = exports.de_ListInferenceExecutionsCommand = exports.de_ListInferenceEventsCommand = exports.de_ListDatasetsCommand = exports.de_ListDataIngestionJobsCommand = exports.de_ImportModelVersionCommand = exports.de_ImportDatasetCommand = exports.de_DescribeResourcePolicyCommand = exports.de_DescribeModelVersionCommand = exports.de_DescribeModelCommand = exports.de_DescribeLabelGroupCommand = exports.de_DescribeLabelCommand = exports.de_DescribeInferenceSchedulerCommand = exports.de_DescribeDatasetCommand = exports.de_DescribeDataIngestionJobCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteModelCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@smithy/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
7
|
const uuid_1 = require("uuid");
|
|
@@ -77,6 +77,13 @@ const se_DeleteModelCommand = async (input, context) => {
|
|
|
77
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
78
|
};
|
|
79
79
|
exports.se_DeleteModelCommand = se_DeleteModelCommand;
|
|
80
|
+
const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
81
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
84
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
85
|
+
};
|
|
86
|
+
exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand;
|
|
80
87
|
const se_DescribeDataIngestionJobCommand = async (input, context) => {
|
|
81
88
|
const headers = sharedHeaders("DescribeDataIngestionJob");
|
|
82
89
|
let body;
|
|
@@ -119,6 +126,34 @@ const se_DescribeModelCommand = async (input, context) => {
|
|
|
119
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
127
|
};
|
|
121
128
|
exports.se_DescribeModelCommand = se_DescribeModelCommand;
|
|
129
|
+
const se_DescribeModelVersionCommand = async (input, context) => {
|
|
130
|
+
const headers = sharedHeaders("DescribeModelVersion");
|
|
131
|
+
let body;
|
|
132
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
133
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
134
|
+
};
|
|
135
|
+
exports.se_DescribeModelVersionCommand = se_DescribeModelVersionCommand;
|
|
136
|
+
const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
137
|
+
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
138
|
+
let body;
|
|
139
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
140
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
141
|
+
};
|
|
142
|
+
exports.se_DescribeResourcePolicyCommand = se_DescribeResourcePolicyCommand;
|
|
143
|
+
const se_ImportDatasetCommand = async (input, context) => {
|
|
144
|
+
const headers = sharedHeaders("ImportDataset");
|
|
145
|
+
let body;
|
|
146
|
+
body = JSON.stringify(se_ImportDatasetRequest(input, context));
|
|
147
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
|
+
};
|
|
149
|
+
exports.se_ImportDatasetCommand = se_ImportDatasetCommand;
|
|
150
|
+
const se_ImportModelVersionCommand = async (input, context) => {
|
|
151
|
+
const headers = sharedHeaders("ImportModelVersion");
|
|
152
|
+
let body;
|
|
153
|
+
body = JSON.stringify(se_ImportModelVersionRequest(input, context));
|
|
154
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
+
};
|
|
156
|
+
exports.se_ImportModelVersionCommand = se_ImportModelVersionCommand;
|
|
122
157
|
const se_ListDataIngestionJobsCommand = async (input, context) => {
|
|
123
158
|
const headers = sharedHeaders("ListDataIngestionJobs");
|
|
124
159
|
let body;
|
|
@@ -175,6 +210,13 @@ const se_ListModelsCommand = async (input, context) => {
|
|
|
175
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
211
|
};
|
|
177
212
|
exports.se_ListModelsCommand = se_ListModelsCommand;
|
|
213
|
+
const se_ListModelVersionsCommand = async (input, context) => {
|
|
214
|
+
const headers = sharedHeaders("ListModelVersions");
|
|
215
|
+
let body;
|
|
216
|
+
body = JSON.stringify(se_ListModelVersionsRequest(input, context));
|
|
217
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
|
+
};
|
|
219
|
+
exports.se_ListModelVersionsCommand = se_ListModelVersionsCommand;
|
|
178
220
|
const se_ListSensorStatisticsCommand = async (input, context) => {
|
|
179
221
|
const headers = sharedHeaders("ListSensorStatistics");
|
|
180
222
|
let body;
|
|
@@ -189,6 +231,13 @@ const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
189
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
190
232
|
};
|
|
191
233
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
234
|
+
const se_PutResourcePolicyCommand = async (input, context) => {
|
|
235
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
|
|
238
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
+
};
|
|
240
|
+
exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand;
|
|
192
241
|
const se_StartDataIngestionJobCommand = async (input, context) => {
|
|
193
242
|
const headers = sharedHeaders("StartDataIngestionJob");
|
|
194
243
|
let body;
|
|
@@ -224,6 +273,13 @@ const se_UntagResourceCommand = async (input, context) => {
|
|
|
224
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
225
274
|
};
|
|
226
275
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
276
|
+
const se_UpdateActiveModelVersionCommand = async (input, context) => {
|
|
277
|
+
const headers = sharedHeaders("UpdateActiveModelVersion");
|
|
278
|
+
let body;
|
|
279
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
280
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
281
|
+
};
|
|
282
|
+
exports.se_UpdateActiveModelVersionCommand = se_UpdateActiveModelVersionCommand;
|
|
227
283
|
const se_UpdateInferenceSchedulerCommand = async (input, context) => {
|
|
228
284
|
const headers = sharedHeaders("UpdateInferenceScheduler");
|
|
229
285
|
let body;
|
|
@@ -712,6 +768,51 @@ const de_DeleteModelCommandError = async (output, context) => {
|
|
|
712
768
|
});
|
|
713
769
|
}
|
|
714
770
|
};
|
|
771
|
+
const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
772
|
+
if (output.statusCode >= 300) {
|
|
773
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
774
|
+
}
|
|
775
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
776
|
+
const response = {
|
|
777
|
+
$metadata: deserializeMetadata(output),
|
|
778
|
+
};
|
|
779
|
+
return response;
|
|
780
|
+
};
|
|
781
|
+
exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand;
|
|
782
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
783
|
+
const parsedOutput = {
|
|
784
|
+
...output,
|
|
785
|
+
body: await parseErrorBody(output.body, context),
|
|
786
|
+
};
|
|
787
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
+
switch (errorCode) {
|
|
789
|
+
case "AccessDeniedException":
|
|
790
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
791
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
792
|
+
case "ConflictException":
|
|
793
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
794
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
795
|
+
case "InternalServerException":
|
|
796
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
797
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
798
|
+
case "ResourceNotFoundException":
|
|
799
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
800
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
801
|
+
case "ThrottlingException":
|
|
802
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
803
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
804
|
+
case "ValidationException":
|
|
805
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
806
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
807
|
+
default:
|
|
808
|
+
const parsedBody = parsedOutput.body;
|
|
809
|
+
return throwDefaultError({
|
|
810
|
+
output,
|
|
811
|
+
parsedBody,
|
|
812
|
+
errorCode,
|
|
813
|
+
});
|
|
814
|
+
}
|
|
815
|
+
};
|
|
715
816
|
const de_DescribeDataIngestionJobCommand = async (output, context) => {
|
|
716
817
|
if (output.statusCode >= 300) {
|
|
717
818
|
return de_DescribeDataIngestionJobCommandError(output, context);
|
|
@@ -982,6 +1083,198 @@ const de_DescribeModelCommandError = async (output, context) => {
|
|
|
982
1083
|
});
|
|
983
1084
|
}
|
|
984
1085
|
};
|
|
1086
|
+
const de_DescribeModelVersionCommand = async (output, context) => {
|
|
1087
|
+
if (output.statusCode >= 300) {
|
|
1088
|
+
return de_DescribeModelVersionCommandError(output, context);
|
|
1089
|
+
}
|
|
1090
|
+
const data = await parseBody(output.body, context);
|
|
1091
|
+
let contents = {};
|
|
1092
|
+
contents = de_DescribeModelVersionResponse(data, context);
|
|
1093
|
+
const response = {
|
|
1094
|
+
$metadata: deserializeMetadata(output),
|
|
1095
|
+
...contents,
|
|
1096
|
+
};
|
|
1097
|
+
return response;
|
|
1098
|
+
};
|
|
1099
|
+
exports.de_DescribeModelVersionCommand = de_DescribeModelVersionCommand;
|
|
1100
|
+
const de_DescribeModelVersionCommandError = async (output, context) => {
|
|
1101
|
+
const parsedOutput = {
|
|
1102
|
+
...output,
|
|
1103
|
+
body: await parseErrorBody(output.body, context),
|
|
1104
|
+
};
|
|
1105
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1106
|
+
switch (errorCode) {
|
|
1107
|
+
case "AccessDeniedException":
|
|
1108
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1109
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1110
|
+
case "InternalServerException":
|
|
1111
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1112
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1113
|
+
case "ResourceNotFoundException":
|
|
1114
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1115
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1116
|
+
case "ThrottlingException":
|
|
1117
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1118
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1119
|
+
case "ValidationException":
|
|
1120
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1121
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1122
|
+
default:
|
|
1123
|
+
const parsedBody = parsedOutput.body;
|
|
1124
|
+
return throwDefaultError({
|
|
1125
|
+
output,
|
|
1126
|
+
parsedBody,
|
|
1127
|
+
errorCode,
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
};
|
|
1131
|
+
const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
1132
|
+
if (output.statusCode >= 300) {
|
|
1133
|
+
return de_DescribeResourcePolicyCommandError(output, context);
|
|
1134
|
+
}
|
|
1135
|
+
const data = await parseBody(output.body, context);
|
|
1136
|
+
let contents = {};
|
|
1137
|
+
contents = de_DescribeResourcePolicyResponse(data, context);
|
|
1138
|
+
const response = {
|
|
1139
|
+
$metadata: deserializeMetadata(output),
|
|
1140
|
+
...contents,
|
|
1141
|
+
};
|
|
1142
|
+
return response;
|
|
1143
|
+
};
|
|
1144
|
+
exports.de_DescribeResourcePolicyCommand = de_DescribeResourcePolicyCommand;
|
|
1145
|
+
const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
1146
|
+
const parsedOutput = {
|
|
1147
|
+
...output,
|
|
1148
|
+
body: await parseErrorBody(output.body, context),
|
|
1149
|
+
};
|
|
1150
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1151
|
+
switch (errorCode) {
|
|
1152
|
+
case "AccessDeniedException":
|
|
1153
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1154
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1155
|
+
case "InternalServerException":
|
|
1156
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1157
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1158
|
+
case "ResourceNotFoundException":
|
|
1159
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1160
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1161
|
+
case "ThrottlingException":
|
|
1162
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1163
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1164
|
+
case "ValidationException":
|
|
1165
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1166
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1167
|
+
default:
|
|
1168
|
+
const parsedBody = parsedOutput.body;
|
|
1169
|
+
return throwDefaultError({
|
|
1170
|
+
output,
|
|
1171
|
+
parsedBody,
|
|
1172
|
+
errorCode,
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
};
|
|
1176
|
+
const de_ImportDatasetCommand = async (output, context) => {
|
|
1177
|
+
if (output.statusCode >= 300) {
|
|
1178
|
+
return de_ImportDatasetCommandError(output, context);
|
|
1179
|
+
}
|
|
1180
|
+
const data = await parseBody(output.body, context);
|
|
1181
|
+
let contents = {};
|
|
1182
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1183
|
+
const response = {
|
|
1184
|
+
$metadata: deserializeMetadata(output),
|
|
1185
|
+
...contents,
|
|
1186
|
+
};
|
|
1187
|
+
return response;
|
|
1188
|
+
};
|
|
1189
|
+
exports.de_ImportDatasetCommand = de_ImportDatasetCommand;
|
|
1190
|
+
const de_ImportDatasetCommandError = async (output, context) => {
|
|
1191
|
+
const parsedOutput = {
|
|
1192
|
+
...output,
|
|
1193
|
+
body: await parseErrorBody(output.body, context),
|
|
1194
|
+
};
|
|
1195
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1196
|
+
switch (errorCode) {
|
|
1197
|
+
case "AccessDeniedException":
|
|
1198
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1199
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1200
|
+
case "ConflictException":
|
|
1201
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1202
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1203
|
+
case "InternalServerException":
|
|
1204
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1205
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
+
case "ResourceNotFoundException":
|
|
1207
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1208
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1209
|
+
case "ServiceQuotaExceededException":
|
|
1210
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1211
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1212
|
+
case "ThrottlingException":
|
|
1213
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1214
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1215
|
+
case "ValidationException":
|
|
1216
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1217
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1218
|
+
default:
|
|
1219
|
+
const parsedBody = parsedOutput.body;
|
|
1220
|
+
return throwDefaultError({
|
|
1221
|
+
output,
|
|
1222
|
+
parsedBody,
|
|
1223
|
+
errorCode,
|
|
1224
|
+
});
|
|
1225
|
+
}
|
|
1226
|
+
};
|
|
1227
|
+
const de_ImportModelVersionCommand = async (output, context) => {
|
|
1228
|
+
if (output.statusCode >= 300) {
|
|
1229
|
+
return de_ImportModelVersionCommandError(output, context);
|
|
1230
|
+
}
|
|
1231
|
+
const data = await parseBody(output.body, context);
|
|
1232
|
+
let contents = {};
|
|
1233
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1234
|
+
const response = {
|
|
1235
|
+
$metadata: deserializeMetadata(output),
|
|
1236
|
+
...contents,
|
|
1237
|
+
};
|
|
1238
|
+
return response;
|
|
1239
|
+
};
|
|
1240
|
+
exports.de_ImportModelVersionCommand = de_ImportModelVersionCommand;
|
|
1241
|
+
const de_ImportModelVersionCommandError = async (output, context) => {
|
|
1242
|
+
const parsedOutput = {
|
|
1243
|
+
...output,
|
|
1244
|
+
body: await parseErrorBody(output.body, context),
|
|
1245
|
+
};
|
|
1246
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1247
|
+
switch (errorCode) {
|
|
1248
|
+
case "AccessDeniedException":
|
|
1249
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1250
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1251
|
+
case "ConflictException":
|
|
1252
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1253
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1254
|
+
case "InternalServerException":
|
|
1255
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1256
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1257
|
+
case "ResourceNotFoundException":
|
|
1258
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1259
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1260
|
+
case "ServiceQuotaExceededException":
|
|
1261
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1262
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1263
|
+
case "ThrottlingException":
|
|
1264
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1265
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1266
|
+
case "ValidationException":
|
|
1267
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1268
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1269
|
+
default:
|
|
1270
|
+
const parsedBody = parsedOutput.body;
|
|
1271
|
+
return throwDefaultError({
|
|
1272
|
+
output,
|
|
1273
|
+
parsedBody,
|
|
1274
|
+
errorCode,
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
};
|
|
985
1278
|
const de_ListDataIngestionJobsCommand = async (output, context) => {
|
|
986
1279
|
if (output.statusCode >= 300) {
|
|
987
1280
|
return de_ListDataIngestionJobsCommandError(output, context);
|
|
@@ -1324,6 +1617,51 @@ const de_ListModelsCommandError = async (output, context) => {
|
|
|
1324
1617
|
});
|
|
1325
1618
|
}
|
|
1326
1619
|
};
|
|
1620
|
+
const de_ListModelVersionsCommand = async (output, context) => {
|
|
1621
|
+
if (output.statusCode >= 300) {
|
|
1622
|
+
return de_ListModelVersionsCommandError(output, context);
|
|
1623
|
+
}
|
|
1624
|
+
const data = await parseBody(output.body, context);
|
|
1625
|
+
let contents = {};
|
|
1626
|
+
contents = de_ListModelVersionsResponse(data, context);
|
|
1627
|
+
const response = {
|
|
1628
|
+
$metadata: deserializeMetadata(output),
|
|
1629
|
+
...contents,
|
|
1630
|
+
};
|
|
1631
|
+
return response;
|
|
1632
|
+
};
|
|
1633
|
+
exports.de_ListModelVersionsCommand = de_ListModelVersionsCommand;
|
|
1634
|
+
const de_ListModelVersionsCommandError = async (output, context) => {
|
|
1635
|
+
const parsedOutput = {
|
|
1636
|
+
...output,
|
|
1637
|
+
body: await parseErrorBody(output.body, context),
|
|
1638
|
+
};
|
|
1639
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1640
|
+
switch (errorCode) {
|
|
1641
|
+
case "AccessDeniedException":
|
|
1642
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1643
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1644
|
+
case "InternalServerException":
|
|
1645
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1646
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1647
|
+
case "ResourceNotFoundException":
|
|
1648
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1649
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1650
|
+
case "ThrottlingException":
|
|
1651
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1652
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1653
|
+
case "ValidationException":
|
|
1654
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1655
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1656
|
+
default:
|
|
1657
|
+
const parsedBody = parsedOutput.body;
|
|
1658
|
+
return throwDefaultError({
|
|
1659
|
+
output,
|
|
1660
|
+
parsedBody,
|
|
1661
|
+
errorCode,
|
|
1662
|
+
});
|
|
1663
|
+
}
|
|
1664
|
+
};
|
|
1327
1665
|
const de_ListSensorStatisticsCommand = async (output, context) => {
|
|
1328
1666
|
if (output.statusCode >= 300) {
|
|
1329
1667
|
return de_ListSensorStatisticsCommandError(output, context);
|
|
@@ -1414,6 +1752,57 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1414
1752
|
});
|
|
1415
1753
|
}
|
|
1416
1754
|
};
|
|
1755
|
+
const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1756
|
+
if (output.statusCode >= 300) {
|
|
1757
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
1758
|
+
}
|
|
1759
|
+
const data = await parseBody(output.body, context);
|
|
1760
|
+
let contents = {};
|
|
1761
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1762
|
+
const response = {
|
|
1763
|
+
$metadata: deserializeMetadata(output),
|
|
1764
|
+
...contents,
|
|
1765
|
+
};
|
|
1766
|
+
return response;
|
|
1767
|
+
};
|
|
1768
|
+
exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand;
|
|
1769
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1770
|
+
const parsedOutput = {
|
|
1771
|
+
...output,
|
|
1772
|
+
body: await parseErrorBody(output.body, context),
|
|
1773
|
+
};
|
|
1774
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1775
|
+
switch (errorCode) {
|
|
1776
|
+
case "AccessDeniedException":
|
|
1777
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1778
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1779
|
+
case "ConflictException":
|
|
1780
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1781
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1782
|
+
case "InternalServerException":
|
|
1783
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1784
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1785
|
+
case "ResourceNotFoundException":
|
|
1786
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1787
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1788
|
+
case "ServiceQuotaExceededException":
|
|
1789
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1790
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1791
|
+
case "ThrottlingException":
|
|
1792
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1793
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1794
|
+
case "ValidationException":
|
|
1795
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1796
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1797
|
+
default:
|
|
1798
|
+
const parsedBody = parsedOutput.body;
|
|
1799
|
+
return throwDefaultError({
|
|
1800
|
+
output,
|
|
1801
|
+
parsedBody,
|
|
1802
|
+
errorCode,
|
|
1803
|
+
});
|
|
1804
|
+
}
|
|
1805
|
+
};
|
|
1417
1806
|
const de_StartDataIngestionJobCommand = async (output, context) => {
|
|
1418
1807
|
if (output.statusCode >= 300) {
|
|
1419
1808
|
return de_StartDataIngestionJobCommandError(output, context);
|
|
@@ -1654,6 +2043,54 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1654
2043
|
});
|
|
1655
2044
|
}
|
|
1656
2045
|
};
|
|
2046
|
+
const de_UpdateActiveModelVersionCommand = async (output, context) => {
|
|
2047
|
+
if (output.statusCode >= 300) {
|
|
2048
|
+
return de_UpdateActiveModelVersionCommandError(output, context);
|
|
2049
|
+
}
|
|
2050
|
+
const data = await parseBody(output.body, context);
|
|
2051
|
+
let contents = {};
|
|
2052
|
+
contents = (0, smithy_client_1._json)(data);
|
|
2053
|
+
const response = {
|
|
2054
|
+
$metadata: deserializeMetadata(output),
|
|
2055
|
+
...contents,
|
|
2056
|
+
};
|
|
2057
|
+
return response;
|
|
2058
|
+
};
|
|
2059
|
+
exports.de_UpdateActiveModelVersionCommand = de_UpdateActiveModelVersionCommand;
|
|
2060
|
+
const de_UpdateActiveModelVersionCommandError = async (output, context) => {
|
|
2061
|
+
const parsedOutput = {
|
|
2062
|
+
...output,
|
|
2063
|
+
body: await parseErrorBody(output.body, context),
|
|
2064
|
+
};
|
|
2065
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2066
|
+
switch (errorCode) {
|
|
2067
|
+
case "AccessDeniedException":
|
|
2068
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
2069
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2070
|
+
case "ConflictException":
|
|
2071
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
2072
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2073
|
+
case "InternalServerException":
|
|
2074
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
2075
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2076
|
+
case "ResourceNotFoundException":
|
|
2077
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
2078
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2079
|
+
case "ThrottlingException":
|
|
2080
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
2081
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2082
|
+
case "ValidationException":
|
|
2083
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2084
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2085
|
+
default:
|
|
2086
|
+
const parsedBody = parsedOutput.body;
|
|
2087
|
+
return throwDefaultError({
|
|
2088
|
+
output,
|
|
2089
|
+
parsedBody,
|
|
2090
|
+
errorCode,
|
|
2091
|
+
});
|
|
2092
|
+
}
|
|
2093
|
+
};
|
|
1657
2094
|
const de_UpdateInferenceSchedulerCommand = async (output, context) => {
|
|
1658
2095
|
if (output.statusCode >= 300) {
|
|
1659
2096
|
return de_UpdateInferenceSchedulerCommandError(output, context);
|
|
@@ -1873,6 +2310,27 @@ const se_DatasetSchema = (input, context) => {
|
|
|
1873
2310
|
InlineDataSchema: smithy_client_1.LazyJsonString.fromObject,
|
|
1874
2311
|
});
|
|
1875
2312
|
};
|
|
2313
|
+
const se_ImportDatasetRequest = (input, context) => {
|
|
2314
|
+
return (0, smithy_client_1.take)(input, {
|
|
2315
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2316
|
+
DatasetName: [],
|
|
2317
|
+
ServerSideKmsKeyId: [],
|
|
2318
|
+
SourceDatasetArn: [],
|
|
2319
|
+
Tags: smithy_client_1._json,
|
|
2320
|
+
});
|
|
2321
|
+
};
|
|
2322
|
+
const se_ImportModelVersionRequest = (input, context) => {
|
|
2323
|
+
return (0, smithy_client_1.take)(input, {
|
|
2324
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2325
|
+
DatasetName: [],
|
|
2326
|
+
LabelsInputConfiguration: smithy_client_1._json,
|
|
2327
|
+
ModelName: [],
|
|
2328
|
+
RoleArn: [],
|
|
2329
|
+
ServerSideKmsKeyId: [],
|
|
2330
|
+
SourceModelVersionArn: [],
|
|
2331
|
+
Tags: smithy_client_1._json,
|
|
2332
|
+
});
|
|
2333
|
+
};
|
|
1876
2334
|
const se_ListInferenceEventsRequest = (input, context) => {
|
|
1877
2335
|
return (0, smithy_client_1.take)(input, {
|
|
1878
2336
|
InferenceSchedulerName: [],
|
|
@@ -1903,6 +2361,27 @@ const se_ListLabelsRequest = (input, context) => {
|
|
|
1903
2361
|
NextToken: [],
|
|
1904
2362
|
});
|
|
1905
2363
|
};
|
|
2364
|
+
const se_ListModelVersionsRequest = (input, context) => {
|
|
2365
|
+
return (0, smithy_client_1.take)(input, {
|
|
2366
|
+
CreatedAtEndTime: (_) => Math.round(_.getTime() / 1000),
|
|
2367
|
+
CreatedAtStartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2368
|
+
MaxModelVersion: [],
|
|
2369
|
+
MaxResults: [],
|
|
2370
|
+
MinModelVersion: [],
|
|
2371
|
+
ModelName: [],
|
|
2372
|
+
NextToken: [],
|
|
2373
|
+
SourceType: [],
|
|
2374
|
+
Status: [],
|
|
2375
|
+
});
|
|
2376
|
+
};
|
|
2377
|
+
const se_PutResourcePolicyRequest = (input, context) => {
|
|
2378
|
+
return (0, smithy_client_1.take)(input, {
|
|
2379
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
2380
|
+
PolicyRevisionId: [],
|
|
2381
|
+
ResourceArn: [],
|
|
2382
|
+
ResourcePolicy: [],
|
|
2383
|
+
});
|
|
2384
|
+
};
|
|
1906
2385
|
const se_StartDataIngestionJobRequest = (input, context) => {
|
|
1907
2386
|
return (0, smithy_client_1.take)(input, {
|
|
1908
2387
|
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -1946,6 +2425,7 @@ const de_DescribeDataIngestionJobResponse = (output, context) => {
|
|
|
1946
2425
|
IngestionInputConfiguration: smithy_client_1._json,
|
|
1947
2426
|
JobId: smithy_client_1.expectString,
|
|
1948
2427
|
RoleArn: smithy_client_1.expectString,
|
|
2428
|
+
SourceDatasetArn: smithy_client_1.expectString,
|
|
1949
2429
|
Status: smithy_client_1.expectString,
|
|
1950
2430
|
StatusDetail: smithy_client_1.expectString,
|
|
1951
2431
|
});
|
|
@@ -1964,6 +2444,7 @@ const de_DescribeDatasetResponse = (output, context) => {
|
|
|
1964
2444
|
RoleArn: smithy_client_1.expectString,
|
|
1965
2445
|
Schema: (_) => new smithy_client_1.LazyJsonString(_),
|
|
1966
2446
|
ServerSideKmsKeyId: smithy_client_1.expectString,
|
|
2447
|
+
SourceDatasetArn: smithy_client_1.expectString,
|
|
1967
2448
|
Status: smithy_client_1.expectString,
|
|
1968
2449
|
});
|
|
1969
2450
|
};
|
|
@@ -2010,6 +2491,8 @@ const de_DescribeLabelResponse = (output, context) => {
|
|
|
2010
2491
|
};
|
|
2011
2492
|
const de_DescribeModelResponse = (output, context) => {
|
|
2012
2493
|
return (0, smithy_client_1.take)(output, {
|
|
2494
|
+
ActiveModelVersion: smithy_client_1.expectLong,
|
|
2495
|
+
ActiveModelVersionArn: smithy_client_1.expectString,
|
|
2013
2496
|
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2014
2497
|
DataPreProcessingConfiguration: smithy_client_1._json,
|
|
2015
2498
|
DatasetArn: smithy_client_1.expectString,
|
|
@@ -2017,15 +2500,22 @@ const de_DescribeModelResponse = (output, context) => {
|
|
|
2017
2500
|
EvaluationDataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2018
2501
|
EvaluationDataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2019
2502
|
FailedReason: smithy_client_1.expectString,
|
|
2503
|
+
ImportJobEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2504
|
+
ImportJobStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2020
2505
|
LabelsInputConfiguration: smithy_client_1._json,
|
|
2021
2506
|
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2022
2507
|
ModelArn: smithy_client_1.expectString,
|
|
2023
2508
|
ModelMetrics: (_) => new smithy_client_1.LazyJsonString(_),
|
|
2024
2509
|
ModelName: smithy_client_1.expectString,
|
|
2510
|
+
ModelVersionActivatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2025
2511
|
OffCondition: smithy_client_1.expectString,
|
|
2512
|
+
PreviousActiveModelVersion: smithy_client_1.expectLong,
|
|
2513
|
+
PreviousActiveModelVersionArn: smithy_client_1.expectString,
|
|
2514
|
+
PreviousModelVersionActivatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2026
2515
|
RoleArn: smithy_client_1.expectString,
|
|
2027
2516
|
Schema: (_) => new smithy_client_1.LazyJsonString(_),
|
|
2028
2517
|
ServerSideKmsKeyId: smithy_client_1.expectString,
|
|
2518
|
+
SourceModelVersionArn: smithy_client_1.expectString,
|
|
2029
2519
|
Status: smithy_client_1.expectString,
|
|
2030
2520
|
TrainingDataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2031
2521
|
TrainingDataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
@@ -2033,6 +2523,46 @@ const de_DescribeModelResponse = (output, context) => {
|
|
|
2033
2523
|
TrainingExecutionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2034
2524
|
});
|
|
2035
2525
|
};
|
|
2526
|
+
const de_DescribeModelVersionResponse = (output, context) => {
|
|
2527
|
+
return (0, smithy_client_1.take)(output, {
|
|
2528
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2529
|
+
DataPreProcessingConfiguration: smithy_client_1._json,
|
|
2530
|
+
DatasetArn: smithy_client_1.expectString,
|
|
2531
|
+
DatasetName: smithy_client_1.expectString,
|
|
2532
|
+
EvaluationDataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2533
|
+
EvaluationDataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2534
|
+
FailedReason: smithy_client_1.expectString,
|
|
2535
|
+
ImportJobEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2536
|
+
ImportJobStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2537
|
+
ImportedDataSizeInBytes: smithy_client_1.expectLong,
|
|
2538
|
+
LabelsInputConfiguration: smithy_client_1._json,
|
|
2539
|
+
LastUpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2540
|
+
ModelArn: smithy_client_1.expectString,
|
|
2541
|
+
ModelMetrics: smithy_client_1.expectString,
|
|
2542
|
+
ModelName: smithy_client_1.expectString,
|
|
2543
|
+
ModelVersion: smithy_client_1.expectLong,
|
|
2544
|
+
ModelVersionArn: smithy_client_1.expectString,
|
|
2545
|
+
OffCondition: smithy_client_1.expectString,
|
|
2546
|
+
RoleArn: smithy_client_1.expectString,
|
|
2547
|
+
Schema: smithy_client_1.expectString,
|
|
2548
|
+
ServerSideKmsKeyId: smithy_client_1.expectString,
|
|
2549
|
+
SourceModelVersionArn: smithy_client_1.expectString,
|
|
2550
|
+
SourceType: smithy_client_1.expectString,
|
|
2551
|
+
Status: smithy_client_1.expectString,
|
|
2552
|
+
TrainingDataEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2553
|
+
TrainingDataStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2554
|
+
TrainingExecutionEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2555
|
+
TrainingExecutionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2556
|
+
});
|
|
2557
|
+
};
|
|
2558
|
+
const de_DescribeResourcePolicyResponse = (output, context) => {
|
|
2559
|
+
return (0, smithy_client_1.take)(output, {
|
|
2560
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2561
|
+
LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2562
|
+
PolicyRevisionId: smithy_client_1.expectString,
|
|
2563
|
+
ResourcePolicy: smithy_client_1.expectString,
|
|
2564
|
+
});
|
|
2565
|
+
};
|
|
2036
2566
|
const de_InferenceEventSummaries = (output, context) => {
|
|
2037
2567
|
const retVal = (output || [])
|
|
2038
2568
|
.filter((e) => e != null)
|
|
@@ -2148,6 +2678,12 @@ const de_ListModelsResponse = (output, context) => {
|
|
|
2148
2678
|
NextToken: smithy_client_1.expectString,
|
|
2149
2679
|
});
|
|
2150
2680
|
};
|
|
2681
|
+
const de_ListModelVersionsResponse = (output, context) => {
|
|
2682
|
+
return (0, smithy_client_1.take)(output, {
|
|
2683
|
+
ModelVersionSummaries: (_) => de_ModelVersionSummaries(_, context),
|
|
2684
|
+
NextToken: smithy_client_1.expectString,
|
|
2685
|
+
});
|
|
2686
|
+
};
|
|
2151
2687
|
const de_ListSensorStatisticsResponse = (output, context) => {
|
|
2152
2688
|
return (0, smithy_client_1.take)(output, {
|
|
2153
2689
|
NextToken: smithy_client_1.expectString,
|
|
@@ -2164,6 +2700,8 @@ const de_ModelSummaries = (output, context) => {
|
|
|
2164
2700
|
};
|
|
2165
2701
|
const de_ModelSummary = (output, context) => {
|
|
2166
2702
|
return (0, smithy_client_1.take)(output, {
|
|
2703
|
+
ActiveModelVersion: smithy_client_1.expectLong,
|
|
2704
|
+
ActiveModelVersionArn: smithy_client_1.expectString,
|
|
2167
2705
|
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2168
2706
|
DatasetArn: smithy_client_1.expectString,
|
|
2169
2707
|
DatasetName: smithy_client_1.expectString,
|
|
@@ -2172,6 +2710,25 @@ const de_ModelSummary = (output, context) => {
|
|
|
2172
2710
|
Status: smithy_client_1.expectString,
|
|
2173
2711
|
});
|
|
2174
2712
|
};
|
|
2713
|
+
const de_ModelVersionSummaries = (output, context) => {
|
|
2714
|
+
const retVal = (output || [])
|
|
2715
|
+
.filter((e) => e != null)
|
|
2716
|
+
.map((entry) => {
|
|
2717
|
+
return de_ModelVersionSummary(entry, context);
|
|
2718
|
+
});
|
|
2719
|
+
return retVal;
|
|
2720
|
+
};
|
|
2721
|
+
const de_ModelVersionSummary = (output, context) => {
|
|
2722
|
+
return (0, smithy_client_1.take)(output, {
|
|
2723
|
+
CreatedAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
2724
|
+
ModelArn: smithy_client_1.expectString,
|
|
2725
|
+
ModelName: smithy_client_1.expectString,
|
|
2726
|
+
ModelVersion: smithy_client_1.expectLong,
|
|
2727
|
+
ModelVersionArn: smithy_client_1.expectString,
|
|
2728
|
+
SourceType: smithy_client_1.expectString,
|
|
2729
|
+
Status: smithy_client_1.expectString,
|
|
2730
|
+
});
|
|
2731
|
+
};
|
|
2175
2732
|
const de_SensorStatisticsSummaries = (output, context) => {
|
|
2176
2733
|
const retVal = (output || [])
|
|
2177
2734
|
.filter((e) => e != null)
|