describeAutoPredictor method
Describes a predictor created using the CreateAutoPredictor operation.
May throw InvalidInputException.
May throw ResourceNotFoundException.
Parameter predictorArn :
The Amazon Resource Name (ARN) of the predictor.
Implementation
Future<DescribeAutoPredictorResponse> describeAutoPredictor({
required String predictorArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AmazonForecast.DescribeAutoPredictor'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'PredictorArn': predictorArn,
},
);
return DescribeAutoPredictorResponse.fromJson(jsonResponse.body);
}