deleteEndpoint method
Deletes a model-specific endpoint for a previously-trained custom model. All endpoints must be deleted in order for the model to be deleted. For information about endpoints, see Managing endpoints.
May throw InternalServerException.
May throw InvalidRequestException.
May throw ResourceInUseException.
May throw ResourceNotFoundException.
May throw TooManyRequestsException.
Parameter endpointArn :
The Amazon Resource Number (ARN) of the endpoint being deleted.
Implementation
Future<void> deleteEndpoint({
required String endpointArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Comprehend_20171127.DeleteEndpoint'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EndpointArn': endpointArn,
},
);
}