getMLModel method
Returns an MLModel
that includes detailed metadata, data
source information, and the current status of the MLModel
.
GetMLModel
provides results in normal or verbose format.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter mLModelId
:
The ID assigned to the MLModel
at creation.
Parameter verbose
:
Specifies whether the GetMLModel
operation should return
Recipe
.
If true, Recipe
is returned.
If false, Recipe
is not returned.
Implementation
Future<GetMLModelOutput> getMLModel({
required String mLModelId,
bool? verbose,
}) async {
ArgumentError.checkNotNull(mLModelId, 'mLModelId');
_s.validateStringLength(
'mLModelId',
mLModelId,
1,
64,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonML_20141212.GetMLModel'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MLModelId': mLModelId,
if (verbose != null) 'Verbose': verbose,
},
);
return GetMLModelOutput.fromJson(jsonResponse.body);
}