deletePredictor method
Deletes a predictor created using the CreatePredictor operation.
You can delete only predictor that have a status of ACTIVE
or
CREATE_FAILED
. To get the status, use the
DescribePredictor operation.
May throw InvalidInputException. May throw ResourceNotFoundException. May throw ResourceInUseException.
Parameter predictorArn
:
The Amazon Resource Name (ARN) of the predictor to delete.
Implementation
Future<void> deletePredictor({
required String predictorArn,
}) async {
ArgumentError.checkNotNull(predictorArn, 'predictorArn');
_s.validateStringLength(
'predictorArn',
predictorArn,
0,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonForecast.DeletePredictor'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'PredictorArn': predictorArn,
},
);
}