describeDataset method
Describes an Amazon Rekognition Custom Labels dataset. You can get
information such as the current status of a dataset and statistics about
the images and labels in a dataset.
This operation requires permissions to perform the
rekognition:DescribeDataset action.
May throw AccessDeniedException.
May throw InternalServerError.
May throw InvalidParameterException.
May throw ProvisionedThroughputExceededException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter datasetArn :
The Amazon Resource Name (ARN) of the dataset that you want to describe.
Implementation
Future<DescribeDatasetResponse> describeDataset({
required String datasetArn,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RekognitionService.DescribeDataset'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DatasetArn': datasetArn,
},
);
return DescribeDatasetResponse.fromJson(jsonResponse.body);
}