deleteRealtimeEndpoint method
Deletes a real time endpoint of an MLModel
.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter mLModelId
:
The ID assigned to the MLModel
during creation.
Implementation
Future<DeleteRealtimeEndpointOutput> deleteRealtimeEndpoint({
required String mLModelId,
}) 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.DeleteRealtimeEndpoint'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'MLModelId': mLModelId,
},
);
return DeleteRealtimeEndpointOutput.fromJson(jsonResponse.body);
}