describeDocumentClassifier method

Future<DescribeDocumentClassifierResponse> describeDocumentClassifier({
  1. required String documentClassifierArn,
})

Gets the properties associated with a document classifier.

May throw InternalServerException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw TooManyRequestsException.

Parameter documentClassifierArn : The Amazon Resource Name (ARN) that identifies the document classifier. The CreateDocumentClassifier operation returns this identifier in its response.

Implementation

Future<DescribeDocumentClassifierResponse> describeDocumentClassifier({
  required String documentClassifierArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'Comprehend_20171127.DescribeDocumentClassifier'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DocumentClassifierArn': documentClassifierArn,
    },
  );

  return DescribeDocumentClassifierResponse.fromJson(jsonResponse.body);
}