describeDocumentClassifier method
Future<DescribeDocumentClassifierResponse>
describeDocumentClassifier({
- required String documentClassifierArn,
Gets the properties associated with a document classifier.
May throw InvalidRequestException. May throw TooManyRequestsException. May throw ResourceNotFoundException. May throw InternalServerException.
Parameter documentClassifierArn
:
The Amazon Resource Name (ARN) that identifies the document classifier.
The operation returns this identifier in its response.
Implementation
Future<DescribeDocumentClassifierResponse> describeDocumentClassifier({
required String documentClassifierArn,
}) async {
ArgumentError.checkNotNull(documentClassifierArn, 'documentClassifierArn');
_s.validateStringLength(
'documentClassifierArn',
documentClassifierArn,
0,
256,
isRequired: true,
);
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);
}