list_dataset_labels
¶
list_dataset_labels(
dataset_arn: DatasetArn,
*,
config_overrides: Optional[RekognitionClientConfig] = None,
next_token: Optional[ExtendedPaginationToken] = None,
max_results: Optional[ListDatasetLabelsPageSize] = None,
) -> ListDatasetLabelsResponse
This operation applies only to Amazon Rekognition Custom Labels.
Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images.
Lists the labels in a dataset. Amazon Rekognition Custom Labels uses labels to describe images. For more information, see Labeling images in the Amazon Rekognition Custom Labels Developer Guide.
Parameters:
-
dataset_arn(DatasetArn) –The Amazon Resource Name (ARN) of the dataset that you want to use.
-
next_token(Optional[ExtendedPaginationToken], default:None) –If the previous response was incomplete (because there is more results to retrieve), Amazon Rekognition Custom Labels returns a pagination token in the response. You can use this pagination token to retrieve the next set of results.
-
max_results(Optional[ListDatasetLabelsPageSize], default:None) –The maximum number of results to return per paginated call. The largest value you can specify is 100. If you specify a value greater than 100, a ValidationException error occurs. The default value is 100.
Raises:
-
AccessDeniedException–You are not authorized to perform the action.
-
InternalServerError–Amazon Rekognition experienced a service issue. Try your call again.
-
InvalidPaginationTokenException–Pagination token in the request is not valid.
-
InvalidParameterException–Input parameter violated a constraint. Validate your parameter before calling the API operation again.
-
ProvisionedThroughputExceededException–The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.
-
ResourceInUseException–The specified resource is already being used.
-
ResourceNotFoundException–The resource specified in the request cannot be found.
-
ResourceNotReadyException–The requested resource isn't ready. For example, this exception occurs when you call
DetectCustomLabelswith a model version that isn't deployed. -
ThrottlingException–Amazon Rekognition is temporarily unable to process the request. Try your call again.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list the entries in an Amazon Rekognition Custom Labels dataset Lists the JSON line entries in an Amazon Rekognition Custom Labels dataset.
>>> client.list_dataset_labels(dataset_arn='arn:aws:rekognition:us-east-1:111122223333:project/my-proj-2/dataset/train/1690564858106', next_token='', max_results=100)
Source code in docs_src/capo_rekognition/_services/rekognition.py
3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 | |