describeEntityRecognizer method
Future<DescribeEntityRecognizerResponse>
describeEntityRecognizer({
- required String entityRecognizerArn,
Provides details about an entity recognizer including status, S3 buckets containing training data, recognizer metadata, metrics, and so on.
May throw InvalidRequestException. May throw TooManyRequestsException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter entityRecognizerArn
:
The Amazon Resource Name (ARN) that identifies the entity recognizer.
Implementation
Future<DescribeEntityRecognizerResponse> describeEntityRecognizer({
required String entityRecognizerArn,
}) async {
ArgumentError.checkNotNull(entityRecognizerArn, 'entityRecognizerArn');
_s.validateStringLength(
'entityRecognizerArn',
entityRecognizerArn,
0,
256,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'Comprehend_20171127.DescribeEntityRecognizer'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'EntityRecognizerArn': entityRecognizerArn,
},
);
return DescribeEntityRecognizerResponse.fromJson(jsonResponse.body);
}