describeModelVersion method
Retrieves information about a specific machine learning model version.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter modelName :
The name of the machine learning model that this version belongs to.
Parameter modelVersion :
The version of the machine learning model.
Implementation
Future<DescribeModelVersionResponse> describeModelVersion({
required String modelName,
required int modelVersion,
}) async {
_s.validateNumRange(
'modelVersion',
modelVersion,
1,
1152921504606846976,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'AWSLookoutEquipmentFrontendService.DescribeModelVersion'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'ModelName': modelName,
'ModelVersion': modelVersion,
},
);
return DescribeModelVersionResponse.fromJson(jsonResponse.body);
}