deleteExternalModel method
Removes a SageMaker model from Amazon Fraud Detector.
You can remove an Amazon SageMaker model if it is not associated with a detector version. Removing a SageMaker model disconnects it from Amazon Fraud Detector, but the model remains available in SageMaker.
May throw ValidationException. May throw ConflictException. May throw InternalServerException. May throw ThrottlingException. May throw AccessDeniedException.
Parameter modelEndpoint
:
The endpoint of the Amazon Sagemaker model to delete.
Implementation
Future<void> deleteExternalModel({
required String modelEndpoint,
}) async {
ArgumentError.checkNotNull(modelEndpoint, 'modelEndpoint');
_s.validateStringLength(
'modelEndpoint',
modelEndpoint,
1,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSHawksNestServiceFacade.DeleteExternalModel'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'modelEndpoint': modelEndpoint,
},
);
}