describeDataset method

Future<DescribeDatasetResponse> describeDataset({
  1. required String datasetArn,
})

Returns information about the dataset that you specify. For more information about datasets, see Flywheel overview in the Amazon Comprehend Developer Guide.

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

Parameter datasetArn : The ARN of the dataset.

Implementation

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

  return DescribeDatasetResponse.fromJson(jsonResponse.body);
}