deleteRealtimeEndpoint method
Deletes a real time endpoint of an MLModel.
May throw InternalServerException.
May throw InvalidInputException.
May throw ResourceNotFoundException.
Parameter mLModelId :
The ID assigned to the MLModel during creation.
Implementation
Future<DeleteRealtimeEndpointOutput> deleteRealtimeEndpoint({
required String mLModelId,
}) async {
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);
}