getModelVersion method
Gets the details of the specified model version.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter modelId :
The model ID.
Parameter modelType :
The model type.
Parameter modelVersionNumber :
The model version number.
Implementation
Future<GetModelVersionResult> getModelVersion({
required String modelId,
required ModelTypeEnum modelType,
required String modelVersionNumber,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.GetModelVersion'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'modelId': modelId,
'modelType': modelType.value,
'modelVersionNumber': modelVersionNumber,
},
);
return GetModelVersionResult.fromJson(jsonResponse.body);
}