deletePredictor method
Deletes a predictor created using the DescribePredictor or
CreatePredictor operations. 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 ResourceInUseException.
May throw ResourceNotFoundException.
Parameter predictorArn :
The Amazon Resource Name (ARN) of the predictor to delete.
Implementation
Future<void> deletePredictor({
required String predictorArn,
}) async {
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,
},
);
}