@aws-sdk/client-lookoutequipment 3.379.1 → 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 +1 -1
- 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/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 +1 -1
|
@@ -63,6 +63,12 @@ export const se_DeleteModelCommand = async (input, context) => {
|
|
|
63
63
|
body = JSON.stringify(_json(input));
|
|
64
64
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
65
|
};
|
|
66
|
+
export const se_DeleteResourcePolicyCommand = async (input, context) => {
|
|
67
|
+
const headers = sharedHeaders("DeleteResourcePolicy");
|
|
68
|
+
let body;
|
|
69
|
+
body = JSON.stringify(_json(input));
|
|
70
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
+
};
|
|
66
72
|
export const se_DescribeDataIngestionJobCommand = async (input, context) => {
|
|
67
73
|
const headers = sharedHeaders("DescribeDataIngestionJob");
|
|
68
74
|
let body;
|
|
@@ -99,6 +105,30 @@ export const se_DescribeModelCommand = async (input, context) => {
|
|
|
99
105
|
body = JSON.stringify(_json(input));
|
|
100
106
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
107
|
};
|
|
108
|
+
export const se_DescribeModelVersionCommand = async (input, context) => {
|
|
109
|
+
const headers = sharedHeaders("DescribeModelVersion");
|
|
110
|
+
let body;
|
|
111
|
+
body = JSON.stringify(_json(input));
|
|
112
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
+
};
|
|
114
|
+
export const se_DescribeResourcePolicyCommand = async (input, context) => {
|
|
115
|
+
const headers = sharedHeaders("DescribeResourcePolicy");
|
|
116
|
+
let body;
|
|
117
|
+
body = JSON.stringify(_json(input));
|
|
118
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
+
};
|
|
120
|
+
export const se_ImportDatasetCommand = async (input, context) => {
|
|
121
|
+
const headers = sharedHeaders("ImportDataset");
|
|
122
|
+
let body;
|
|
123
|
+
body = JSON.stringify(se_ImportDatasetRequest(input, context));
|
|
124
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
+
};
|
|
126
|
+
export const se_ImportModelVersionCommand = async (input, context) => {
|
|
127
|
+
const headers = sharedHeaders("ImportModelVersion");
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify(se_ImportModelVersionRequest(input, context));
|
|
130
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
+
};
|
|
102
132
|
export const se_ListDataIngestionJobsCommand = async (input, context) => {
|
|
103
133
|
const headers = sharedHeaders("ListDataIngestionJobs");
|
|
104
134
|
let body;
|
|
@@ -147,6 +177,12 @@ export const se_ListModelsCommand = async (input, context) => {
|
|
|
147
177
|
body = JSON.stringify(_json(input));
|
|
148
178
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
179
|
};
|
|
180
|
+
export const se_ListModelVersionsCommand = async (input, context) => {
|
|
181
|
+
const headers = sharedHeaders("ListModelVersions");
|
|
182
|
+
let body;
|
|
183
|
+
body = JSON.stringify(se_ListModelVersionsRequest(input, context));
|
|
184
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
+
};
|
|
150
186
|
export const se_ListSensorStatisticsCommand = async (input, context) => {
|
|
151
187
|
const headers = sharedHeaders("ListSensorStatistics");
|
|
152
188
|
let body;
|
|
@@ -159,6 +195,12 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
|
159
195
|
body = JSON.stringify(_json(input));
|
|
160
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
197
|
};
|
|
198
|
+
export const se_PutResourcePolicyCommand = async (input, context) => {
|
|
199
|
+
const headers = sharedHeaders("PutResourcePolicy");
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(se_PutResourcePolicyRequest(input, context));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
162
204
|
export const se_StartDataIngestionJobCommand = async (input, context) => {
|
|
163
205
|
const headers = sharedHeaders("StartDataIngestionJob");
|
|
164
206
|
let body;
|
|
@@ -189,6 +231,12 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
189
231
|
body = JSON.stringify(_json(input));
|
|
190
232
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
191
233
|
};
|
|
234
|
+
export const se_UpdateActiveModelVersionCommand = async (input, context) => {
|
|
235
|
+
const headers = sharedHeaders("UpdateActiveModelVersion");
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(_json(input));
|
|
238
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
239
|
+
};
|
|
192
240
|
export const se_UpdateInferenceSchedulerCommand = async (input, context) => {
|
|
193
241
|
const headers = sharedHeaders("UpdateInferenceScheduler");
|
|
194
242
|
let body;
|
|
@@ -665,6 +713,50 @@ const de_DeleteModelCommandError = async (output, context) => {
|
|
|
665
713
|
});
|
|
666
714
|
}
|
|
667
715
|
};
|
|
716
|
+
export const de_DeleteResourcePolicyCommand = async (output, context) => {
|
|
717
|
+
if (output.statusCode >= 300) {
|
|
718
|
+
return de_DeleteResourcePolicyCommandError(output, context);
|
|
719
|
+
}
|
|
720
|
+
await collectBody(output.body, context);
|
|
721
|
+
const response = {
|
|
722
|
+
$metadata: deserializeMetadata(output),
|
|
723
|
+
};
|
|
724
|
+
return response;
|
|
725
|
+
};
|
|
726
|
+
const de_DeleteResourcePolicyCommandError = async (output, context) => {
|
|
727
|
+
const parsedOutput = {
|
|
728
|
+
...output,
|
|
729
|
+
body: await parseErrorBody(output.body, context),
|
|
730
|
+
};
|
|
731
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
|
+
switch (errorCode) {
|
|
733
|
+
case "AccessDeniedException":
|
|
734
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
735
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
736
|
+
case "ConflictException":
|
|
737
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
738
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
739
|
+
case "InternalServerException":
|
|
740
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
741
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
742
|
+
case "ResourceNotFoundException":
|
|
743
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
744
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
745
|
+
case "ThrottlingException":
|
|
746
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
747
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
748
|
+
case "ValidationException":
|
|
749
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
750
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
751
|
+
default:
|
|
752
|
+
const parsedBody = parsedOutput.body;
|
|
753
|
+
return throwDefaultError({
|
|
754
|
+
output,
|
|
755
|
+
parsedBody,
|
|
756
|
+
errorCode,
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
};
|
|
668
760
|
export const de_DescribeDataIngestionJobCommand = async (output, context) => {
|
|
669
761
|
if (output.statusCode >= 300) {
|
|
670
762
|
return de_DescribeDataIngestionJobCommandError(output, context);
|
|
@@ -929,6 +1021,194 @@ const de_DescribeModelCommandError = async (output, context) => {
|
|
|
929
1021
|
});
|
|
930
1022
|
}
|
|
931
1023
|
};
|
|
1024
|
+
export const de_DescribeModelVersionCommand = async (output, context) => {
|
|
1025
|
+
if (output.statusCode >= 300) {
|
|
1026
|
+
return de_DescribeModelVersionCommandError(output, context);
|
|
1027
|
+
}
|
|
1028
|
+
const data = await parseBody(output.body, context);
|
|
1029
|
+
let contents = {};
|
|
1030
|
+
contents = de_DescribeModelVersionResponse(data, context);
|
|
1031
|
+
const response = {
|
|
1032
|
+
$metadata: deserializeMetadata(output),
|
|
1033
|
+
...contents,
|
|
1034
|
+
};
|
|
1035
|
+
return response;
|
|
1036
|
+
};
|
|
1037
|
+
const de_DescribeModelVersionCommandError = async (output, context) => {
|
|
1038
|
+
const parsedOutput = {
|
|
1039
|
+
...output,
|
|
1040
|
+
body: await parseErrorBody(output.body, context),
|
|
1041
|
+
};
|
|
1042
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1043
|
+
switch (errorCode) {
|
|
1044
|
+
case "AccessDeniedException":
|
|
1045
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1046
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1047
|
+
case "InternalServerException":
|
|
1048
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1049
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1050
|
+
case "ResourceNotFoundException":
|
|
1051
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1052
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1053
|
+
case "ThrottlingException":
|
|
1054
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1055
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1056
|
+
case "ValidationException":
|
|
1057
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1058
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1059
|
+
default:
|
|
1060
|
+
const parsedBody = parsedOutput.body;
|
|
1061
|
+
return throwDefaultError({
|
|
1062
|
+
output,
|
|
1063
|
+
parsedBody,
|
|
1064
|
+
errorCode,
|
|
1065
|
+
});
|
|
1066
|
+
}
|
|
1067
|
+
};
|
|
1068
|
+
export const de_DescribeResourcePolicyCommand = async (output, context) => {
|
|
1069
|
+
if (output.statusCode >= 300) {
|
|
1070
|
+
return de_DescribeResourcePolicyCommandError(output, context);
|
|
1071
|
+
}
|
|
1072
|
+
const data = await parseBody(output.body, context);
|
|
1073
|
+
let contents = {};
|
|
1074
|
+
contents = de_DescribeResourcePolicyResponse(data, context);
|
|
1075
|
+
const response = {
|
|
1076
|
+
$metadata: deserializeMetadata(output),
|
|
1077
|
+
...contents,
|
|
1078
|
+
};
|
|
1079
|
+
return response;
|
|
1080
|
+
};
|
|
1081
|
+
const de_DescribeResourcePolicyCommandError = async (output, context) => {
|
|
1082
|
+
const parsedOutput = {
|
|
1083
|
+
...output,
|
|
1084
|
+
body: await parseErrorBody(output.body, context),
|
|
1085
|
+
};
|
|
1086
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1087
|
+
switch (errorCode) {
|
|
1088
|
+
case "AccessDeniedException":
|
|
1089
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1090
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1091
|
+
case "InternalServerException":
|
|
1092
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1093
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1094
|
+
case "ResourceNotFoundException":
|
|
1095
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1096
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1097
|
+
case "ThrottlingException":
|
|
1098
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1099
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1100
|
+
case "ValidationException":
|
|
1101
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1102
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1103
|
+
default:
|
|
1104
|
+
const parsedBody = parsedOutput.body;
|
|
1105
|
+
return throwDefaultError({
|
|
1106
|
+
output,
|
|
1107
|
+
parsedBody,
|
|
1108
|
+
errorCode,
|
|
1109
|
+
});
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
export const de_ImportDatasetCommand = async (output, context) => {
|
|
1113
|
+
if (output.statusCode >= 300) {
|
|
1114
|
+
return de_ImportDatasetCommandError(output, context);
|
|
1115
|
+
}
|
|
1116
|
+
const data = await parseBody(output.body, context);
|
|
1117
|
+
let contents = {};
|
|
1118
|
+
contents = _json(data);
|
|
1119
|
+
const response = {
|
|
1120
|
+
$metadata: deserializeMetadata(output),
|
|
1121
|
+
...contents,
|
|
1122
|
+
};
|
|
1123
|
+
return response;
|
|
1124
|
+
};
|
|
1125
|
+
const de_ImportDatasetCommandError = async (output, context) => {
|
|
1126
|
+
const parsedOutput = {
|
|
1127
|
+
...output,
|
|
1128
|
+
body: await parseErrorBody(output.body, context),
|
|
1129
|
+
};
|
|
1130
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1131
|
+
switch (errorCode) {
|
|
1132
|
+
case "AccessDeniedException":
|
|
1133
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1134
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1135
|
+
case "ConflictException":
|
|
1136
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1137
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1138
|
+
case "InternalServerException":
|
|
1139
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1140
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1141
|
+
case "ResourceNotFoundException":
|
|
1142
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1143
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1144
|
+
case "ServiceQuotaExceededException":
|
|
1145
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1146
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1147
|
+
case "ThrottlingException":
|
|
1148
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1149
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1150
|
+
case "ValidationException":
|
|
1151
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1152
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1153
|
+
default:
|
|
1154
|
+
const parsedBody = parsedOutput.body;
|
|
1155
|
+
return throwDefaultError({
|
|
1156
|
+
output,
|
|
1157
|
+
parsedBody,
|
|
1158
|
+
errorCode,
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1161
|
+
};
|
|
1162
|
+
export const de_ImportModelVersionCommand = async (output, context) => {
|
|
1163
|
+
if (output.statusCode >= 300) {
|
|
1164
|
+
return de_ImportModelVersionCommandError(output, context);
|
|
1165
|
+
}
|
|
1166
|
+
const data = await parseBody(output.body, context);
|
|
1167
|
+
let contents = {};
|
|
1168
|
+
contents = _json(data);
|
|
1169
|
+
const response = {
|
|
1170
|
+
$metadata: deserializeMetadata(output),
|
|
1171
|
+
...contents,
|
|
1172
|
+
};
|
|
1173
|
+
return response;
|
|
1174
|
+
};
|
|
1175
|
+
const de_ImportModelVersionCommandError = async (output, context) => {
|
|
1176
|
+
const parsedOutput = {
|
|
1177
|
+
...output,
|
|
1178
|
+
body: await parseErrorBody(output.body, context),
|
|
1179
|
+
};
|
|
1180
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1181
|
+
switch (errorCode) {
|
|
1182
|
+
case "AccessDeniedException":
|
|
1183
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1184
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1185
|
+
case "ConflictException":
|
|
1186
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1187
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1188
|
+
case "InternalServerException":
|
|
1189
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1190
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1191
|
+
case "ResourceNotFoundException":
|
|
1192
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1193
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1194
|
+
case "ServiceQuotaExceededException":
|
|
1195
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1196
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1197
|
+
case "ThrottlingException":
|
|
1198
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1199
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1200
|
+
case "ValidationException":
|
|
1201
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1202
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1203
|
+
default:
|
|
1204
|
+
const parsedBody = parsedOutput.body;
|
|
1205
|
+
return throwDefaultError({
|
|
1206
|
+
output,
|
|
1207
|
+
parsedBody,
|
|
1208
|
+
errorCode,
|
|
1209
|
+
});
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
932
1212
|
export const de_ListDataIngestionJobsCommand = async (output, context) => {
|
|
933
1213
|
if (output.statusCode >= 300) {
|
|
934
1214
|
return de_ListDataIngestionJobsCommandError(output, context);
|
|
@@ -1263,6 +1543,50 @@ const de_ListModelsCommandError = async (output, context) => {
|
|
|
1263
1543
|
});
|
|
1264
1544
|
}
|
|
1265
1545
|
};
|
|
1546
|
+
export const de_ListModelVersionsCommand = async (output, context) => {
|
|
1547
|
+
if (output.statusCode >= 300) {
|
|
1548
|
+
return de_ListModelVersionsCommandError(output, context);
|
|
1549
|
+
}
|
|
1550
|
+
const data = await parseBody(output.body, context);
|
|
1551
|
+
let contents = {};
|
|
1552
|
+
contents = de_ListModelVersionsResponse(data, context);
|
|
1553
|
+
const response = {
|
|
1554
|
+
$metadata: deserializeMetadata(output),
|
|
1555
|
+
...contents,
|
|
1556
|
+
};
|
|
1557
|
+
return response;
|
|
1558
|
+
};
|
|
1559
|
+
const de_ListModelVersionsCommandError = async (output, context) => {
|
|
1560
|
+
const parsedOutput = {
|
|
1561
|
+
...output,
|
|
1562
|
+
body: await parseErrorBody(output.body, context),
|
|
1563
|
+
};
|
|
1564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1565
|
+
switch (errorCode) {
|
|
1566
|
+
case "AccessDeniedException":
|
|
1567
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1568
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1569
|
+
case "InternalServerException":
|
|
1570
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1571
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1572
|
+
case "ResourceNotFoundException":
|
|
1573
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1574
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1575
|
+
case "ThrottlingException":
|
|
1576
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1577
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1578
|
+
case "ValidationException":
|
|
1579
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1580
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1581
|
+
default:
|
|
1582
|
+
const parsedBody = parsedOutput.body;
|
|
1583
|
+
return throwDefaultError({
|
|
1584
|
+
output,
|
|
1585
|
+
parsedBody,
|
|
1586
|
+
errorCode,
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
};
|
|
1266
1590
|
export const de_ListSensorStatisticsCommand = async (output, context) => {
|
|
1267
1591
|
if (output.statusCode >= 300) {
|
|
1268
1592
|
return de_ListSensorStatisticsCommandError(output, context);
|
|
@@ -1351,6 +1675,56 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
1351
1675
|
});
|
|
1352
1676
|
}
|
|
1353
1677
|
};
|
|
1678
|
+
export const de_PutResourcePolicyCommand = async (output, context) => {
|
|
1679
|
+
if (output.statusCode >= 300) {
|
|
1680
|
+
return de_PutResourcePolicyCommandError(output, context);
|
|
1681
|
+
}
|
|
1682
|
+
const data = await parseBody(output.body, context);
|
|
1683
|
+
let contents = {};
|
|
1684
|
+
contents = _json(data);
|
|
1685
|
+
const response = {
|
|
1686
|
+
$metadata: deserializeMetadata(output),
|
|
1687
|
+
...contents,
|
|
1688
|
+
};
|
|
1689
|
+
return response;
|
|
1690
|
+
};
|
|
1691
|
+
const de_PutResourcePolicyCommandError = async (output, context) => {
|
|
1692
|
+
const parsedOutput = {
|
|
1693
|
+
...output,
|
|
1694
|
+
body: await parseErrorBody(output.body, context),
|
|
1695
|
+
};
|
|
1696
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1697
|
+
switch (errorCode) {
|
|
1698
|
+
case "AccessDeniedException":
|
|
1699
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1700
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1701
|
+
case "ConflictException":
|
|
1702
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1703
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1704
|
+
case "InternalServerException":
|
|
1705
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1706
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1707
|
+
case "ResourceNotFoundException":
|
|
1708
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1709
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1710
|
+
case "ServiceQuotaExceededException":
|
|
1711
|
+
case "com.amazonaws.lookoutequipment#ServiceQuotaExceededException":
|
|
1712
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1713
|
+
case "ThrottlingException":
|
|
1714
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1715
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1716
|
+
case "ValidationException":
|
|
1717
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
1718
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1719
|
+
default:
|
|
1720
|
+
const parsedBody = parsedOutput.body;
|
|
1721
|
+
return throwDefaultError({
|
|
1722
|
+
output,
|
|
1723
|
+
parsedBody,
|
|
1724
|
+
errorCode,
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
};
|
|
1354
1728
|
export const de_StartDataIngestionJobCommand = async (output, context) => {
|
|
1355
1729
|
if (output.statusCode >= 300) {
|
|
1356
1730
|
return de_StartDataIngestionJobCommandError(output, context);
|
|
@@ -1586,6 +1960,53 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1586
1960
|
});
|
|
1587
1961
|
}
|
|
1588
1962
|
};
|
|
1963
|
+
export const de_UpdateActiveModelVersionCommand = async (output, context) => {
|
|
1964
|
+
if (output.statusCode >= 300) {
|
|
1965
|
+
return de_UpdateActiveModelVersionCommandError(output, context);
|
|
1966
|
+
}
|
|
1967
|
+
const data = await parseBody(output.body, context);
|
|
1968
|
+
let contents = {};
|
|
1969
|
+
contents = _json(data);
|
|
1970
|
+
const response = {
|
|
1971
|
+
$metadata: deserializeMetadata(output),
|
|
1972
|
+
...contents,
|
|
1973
|
+
};
|
|
1974
|
+
return response;
|
|
1975
|
+
};
|
|
1976
|
+
const de_UpdateActiveModelVersionCommandError = async (output, context) => {
|
|
1977
|
+
const parsedOutput = {
|
|
1978
|
+
...output,
|
|
1979
|
+
body: await parseErrorBody(output.body, context),
|
|
1980
|
+
};
|
|
1981
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1982
|
+
switch (errorCode) {
|
|
1983
|
+
case "AccessDeniedException":
|
|
1984
|
+
case "com.amazonaws.lookoutequipment#AccessDeniedException":
|
|
1985
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1986
|
+
case "ConflictException":
|
|
1987
|
+
case "com.amazonaws.lookoutequipment#ConflictException":
|
|
1988
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1989
|
+
case "InternalServerException":
|
|
1990
|
+
case "com.amazonaws.lookoutequipment#InternalServerException":
|
|
1991
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1992
|
+
case "ResourceNotFoundException":
|
|
1993
|
+
case "com.amazonaws.lookoutequipment#ResourceNotFoundException":
|
|
1994
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1995
|
+
case "ThrottlingException":
|
|
1996
|
+
case "com.amazonaws.lookoutequipment#ThrottlingException":
|
|
1997
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1998
|
+
case "ValidationException":
|
|
1999
|
+
case "com.amazonaws.lookoutequipment#ValidationException":
|
|
2000
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2001
|
+
default:
|
|
2002
|
+
const parsedBody = parsedOutput.body;
|
|
2003
|
+
return throwDefaultError({
|
|
2004
|
+
output,
|
|
2005
|
+
parsedBody,
|
|
2006
|
+
errorCode,
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
};
|
|
1589
2010
|
export const de_UpdateInferenceSchedulerCommand = async (output, context) => {
|
|
1590
2011
|
if (output.statusCode >= 300) {
|
|
1591
2012
|
return de_UpdateInferenceSchedulerCommandError(output, context);
|
|
@@ -1803,6 +2224,27 @@ const se_DatasetSchema = (input, context) => {
|
|
|
1803
2224
|
InlineDataSchema: __LazyJsonString.fromObject,
|
|
1804
2225
|
});
|
|
1805
2226
|
};
|
|
2227
|
+
const se_ImportDatasetRequest = (input, context) => {
|
|
2228
|
+
return take(input, {
|
|
2229
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2230
|
+
DatasetName: [],
|
|
2231
|
+
ServerSideKmsKeyId: [],
|
|
2232
|
+
SourceDatasetArn: [],
|
|
2233
|
+
Tags: _json,
|
|
2234
|
+
});
|
|
2235
|
+
};
|
|
2236
|
+
const se_ImportModelVersionRequest = (input, context) => {
|
|
2237
|
+
return take(input, {
|
|
2238
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2239
|
+
DatasetName: [],
|
|
2240
|
+
LabelsInputConfiguration: _json,
|
|
2241
|
+
ModelName: [],
|
|
2242
|
+
RoleArn: [],
|
|
2243
|
+
ServerSideKmsKeyId: [],
|
|
2244
|
+
SourceModelVersionArn: [],
|
|
2245
|
+
Tags: _json,
|
|
2246
|
+
});
|
|
2247
|
+
};
|
|
1806
2248
|
const se_ListInferenceEventsRequest = (input, context) => {
|
|
1807
2249
|
return take(input, {
|
|
1808
2250
|
InferenceSchedulerName: [],
|
|
@@ -1833,6 +2275,27 @@ const se_ListLabelsRequest = (input, context) => {
|
|
|
1833
2275
|
NextToken: [],
|
|
1834
2276
|
});
|
|
1835
2277
|
};
|
|
2278
|
+
const se_ListModelVersionsRequest = (input, context) => {
|
|
2279
|
+
return take(input, {
|
|
2280
|
+
CreatedAtEndTime: (_) => Math.round(_.getTime() / 1000),
|
|
2281
|
+
CreatedAtStartTime: (_) => Math.round(_.getTime() / 1000),
|
|
2282
|
+
MaxModelVersion: [],
|
|
2283
|
+
MaxResults: [],
|
|
2284
|
+
MinModelVersion: [],
|
|
2285
|
+
ModelName: [],
|
|
2286
|
+
NextToken: [],
|
|
2287
|
+
SourceType: [],
|
|
2288
|
+
Status: [],
|
|
2289
|
+
});
|
|
2290
|
+
};
|
|
2291
|
+
const se_PutResourcePolicyRequest = (input, context) => {
|
|
2292
|
+
return take(input, {
|
|
2293
|
+
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
2294
|
+
PolicyRevisionId: [],
|
|
2295
|
+
ResourceArn: [],
|
|
2296
|
+
ResourcePolicy: [],
|
|
2297
|
+
});
|
|
2298
|
+
};
|
|
1836
2299
|
const se_StartDataIngestionJobRequest = (input, context) => {
|
|
1837
2300
|
return take(input, {
|
|
1838
2301
|
ClientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -1876,6 +2339,7 @@ const de_DescribeDataIngestionJobResponse = (output, context) => {
|
|
|
1876
2339
|
IngestionInputConfiguration: _json,
|
|
1877
2340
|
JobId: __expectString,
|
|
1878
2341
|
RoleArn: __expectString,
|
|
2342
|
+
SourceDatasetArn: __expectString,
|
|
1879
2343
|
Status: __expectString,
|
|
1880
2344
|
StatusDetail: __expectString,
|
|
1881
2345
|
});
|
|
@@ -1894,6 +2358,7 @@ const de_DescribeDatasetResponse = (output, context) => {
|
|
|
1894
2358
|
RoleArn: __expectString,
|
|
1895
2359
|
Schema: (_) => new __LazyJsonString(_),
|
|
1896
2360
|
ServerSideKmsKeyId: __expectString,
|
|
2361
|
+
SourceDatasetArn: __expectString,
|
|
1897
2362
|
Status: __expectString,
|
|
1898
2363
|
});
|
|
1899
2364
|
};
|
|
@@ -1940,6 +2405,8 @@ const de_DescribeLabelResponse = (output, context) => {
|
|
|
1940
2405
|
};
|
|
1941
2406
|
const de_DescribeModelResponse = (output, context) => {
|
|
1942
2407
|
return take(output, {
|
|
2408
|
+
ActiveModelVersion: __expectLong,
|
|
2409
|
+
ActiveModelVersionArn: __expectString,
|
|
1943
2410
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1944
2411
|
DataPreProcessingConfiguration: _json,
|
|
1945
2412
|
DatasetArn: __expectString,
|
|
@@ -1947,15 +2414,22 @@ const de_DescribeModelResponse = (output, context) => {
|
|
|
1947
2414
|
EvaluationDataEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1948
2415
|
EvaluationDataStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1949
2416
|
FailedReason: __expectString,
|
|
2417
|
+
ImportJobEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2418
|
+
ImportJobStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1950
2419
|
LabelsInputConfiguration: _json,
|
|
1951
2420
|
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1952
2421
|
ModelArn: __expectString,
|
|
1953
2422
|
ModelMetrics: (_) => new __LazyJsonString(_),
|
|
1954
2423
|
ModelName: __expectString,
|
|
2424
|
+
ModelVersionActivatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1955
2425
|
OffCondition: __expectString,
|
|
2426
|
+
PreviousActiveModelVersion: __expectLong,
|
|
2427
|
+
PreviousActiveModelVersionArn: __expectString,
|
|
2428
|
+
PreviousModelVersionActivatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1956
2429
|
RoleArn: __expectString,
|
|
1957
2430
|
Schema: (_) => new __LazyJsonString(_),
|
|
1958
2431
|
ServerSideKmsKeyId: __expectString,
|
|
2432
|
+
SourceModelVersionArn: __expectString,
|
|
1959
2433
|
Status: __expectString,
|
|
1960
2434
|
TrainingDataEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1961
2435
|
TrainingDataStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
@@ -1963,6 +2437,46 @@ const de_DescribeModelResponse = (output, context) => {
|
|
|
1963
2437
|
TrainingExecutionStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1964
2438
|
});
|
|
1965
2439
|
};
|
|
2440
|
+
const de_DescribeModelVersionResponse = (output, context) => {
|
|
2441
|
+
return take(output, {
|
|
2442
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2443
|
+
DataPreProcessingConfiguration: _json,
|
|
2444
|
+
DatasetArn: __expectString,
|
|
2445
|
+
DatasetName: __expectString,
|
|
2446
|
+
EvaluationDataEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2447
|
+
EvaluationDataStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2448
|
+
FailedReason: __expectString,
|
|
2449
|
+
ImportJobEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2450
|
+
ImportJobStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2451
|
+
ImportedDataSizeInBytes: __expectLong,
|
|
2452
|
+
LabelsInputConfiguration: _json,
|
|
2453
|
+
LastUpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2454
|
+
ModelArn: __expectString,
|
|
2455
|
+
ModelMetrics: __expectString,
|
|
2456
|
+
ModelName: __expectString,
|
|
2457
|
+
ModelVersion: __expectLong,
|
|
2458
|
+
ModelVersionArn: __expectString,
|
|
2459
|
+
OffCondition: __expectString,
|
|
2460
|
+
RoleArn: __expectString,
|
|
2461
|
+
Schema: __expectString,
|
|
2462
|
+
ServerSideKmsKeyId: __expectString,
|
|
2463
|
+
SourceModelVersionArn: __expectString,
|
|
2464
|
+
SourceType: __expectString,
|
|
2465
|
+
Status: __expectString,
|
|
2466
|
+
TrainingDataEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2467
|
+
TrainingDataStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2468
|
+
TrainingExecutionEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2469
|
+
TrainingExecutionStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2470
|
+
});
|
|
2471
|
+
};
|
|
2472
|
+
const de_DescribeResourcePolicyResponse = (output, context) => {
|
|
2473
|
+
return take(output, {
|
|
2474
|
+
CreationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2475
|
+
LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2476
|
+
PolicyRevisionId: __expectString,
|
|
2477
|
+
ResourcePolicy: __expectString,
|
|
2478
|
+
});
|
|
2479
|
+
};
|
|
1966
2480
|
const de_InferenceEventSummaries = (output, context) => {
|
|
1967
2481
|
const retVal = (output || [])
|
|
1968
2482
|
.filter((e) => e != null)
|
|
@@ -2078,6 +2592,12 @@ const de_ListModelsResponse = (output, context) => {
|
|
|
2078
2592
|
NextToken: __expectString,
|
|
2079
2593
|
});
|
|
2080
2594
|
};
|
|
2595
|
+
const de_ListModelVersionsResponse = (output, context) => {
|
|
2596
|
+
return take(output, {
|
|
2597
|
+
ModelVersionSummaries: (_) => de_ModelVersionSummaries(_, context),
|
|
2598
|
+
NextToken: __expectString,
|
|
2599
|
+
});
|
|
2600
|
+
};
|
|
2081
2601
|
const de_ListSensorStatisticsResponse = (output, context) => {
|
|
2082
2602
|
return take(output, {
|
|
2083
2603
|
NextToken: __expectString,
|
|
@@ -2094,6 +2614,8 @@ const de_ModelSummaries = (output, context) => {
|
|
|
2094
2614
|
};
|
|
2095
2615
|
const de_ModelSummary = (output, context) => {
|
|
2096
2616
|
return take(output, {
|
|
2617
|
+
ActiveModelVersion: __expectLong,
|
|
2618
|
+
ActiveModelVersionArn: __expectString,
|
|
2097
2619
|
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2098
2620
|
DatasetArn: __expectString,
|
|
2099
2621
|
DatasetName: __expectString,
|
|
@@ -2102,6 +2624,25 @@ const de_ModelSummary = (output, context) => {
|
|
|
2102
2624
|
Status: __expectString,
|
|
2103
2625
|
});
|
|
2104
2626
|
};
|
|
2627
|
+
const de_ModelVersionSummaries = (output, context) => {
|
|
2628
|
+
const retVal = (output || [])
|
|
2629
|
+
.filter((e) => e != null)
|
|
2630
|
+
.map((entry) => {
|
|
2631
|
+
return de_ModelVersionSummary(entry, context);
|
|
2632
|
+
});
|
|
2633
|
+
return retVal;
|
|
2634
|
+
};
|
|
2635
|
+
const de_ModelVersionSummary = (output, context) => {
|
|
2636
|
+
return take(output, {
|
|
2637
|
+
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
2638
|
+
ModelArn: __expectString,
|
|
2639
|
+
ModelName: __expectString,
|
|
2640
|
+
ModelVersion: __expectLong,
|
|
2641
|
+
ModelVersionArn: __expectString,
|
|
2642
|
+
SourceType: __expectString,
|
|
2643
|
+
Status: __expectString,
|
|
2644
|
+
});
|
|
2645
|
+
};
|
|
2105
2646
|
const de_SensorStatisticsSummaries = (output, context) => {
|
|
2106
2647
|
const retVal = (output || [])
|
|
2107
2648
|
.filter((e) => e != null)
|