Rekognition.Client.
describe_dataset
(**kwargs)¶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.
See also: AWS API Documentation
Request Syntax
response = client.describe_dataset(
DatasetArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the dataset that you want to describe.
{
'DatasetDescription': {
'CreationTimestamp': datetime(2015, 1, 1),
'LastUpdatedTimestamp': datetime(2015, 1, 1),
'Status': 'CREATE_IN_PROGRESS'|'CREATE_COMPLETE'|'CREATE_FAILED'|'UPDATE_IN_PROGRESS'|'UPDATE_COMPLETE'|'UPDATE_FAILED'|'DELETE_IN_PROGRESS',
'StatusMessage': 'string',
'StatusMessageCode': 'SUCCESS'|'SERVICE_ERROR'|'CLIENT_ERROR',
'DatasetStats': {
'LabeledEntries': 123,
'TotalEntries': 123,
'TotalLabels': 123,
'ErrorEntries': 123
}
}
}
Response Structure
The description for the dataset.
The Unix timestamp for the time and date that the dataset was created.
The Unix timestamp for the date and time that the dataset was last updated.
The status of the dataset.
The status message for the dataset.
The status message code for the dataset operation. If a service error occurs, try the API call again later. If a client error occurs, check the input parameters to the dataset API call that failed.
The status message code for the dataset.
The total number of images in the dataset that have labels.
The total number of images in the dataset.
The total number of labels declared in the dataset.
The total number of entries that contain at least one error.
Exceptions
Rekognition.Client.exceptions.InternalServerError
Rekognition.Client.exceptions.ThrottlingException
Rekognition.Client.exceptions.ProvisionedThroughputExceededException
Rekognition.Client.exceptions.InvalidParameterException
Rekognition.Client.exceptions.AccessDeniedException
Rekognition.Client.exceptions.ResourceNotFoundException