:doc:`Rekognition <../../rekognition>` / Client / list_dataset_entries

********************
list_dataset_entries
********************



.. py:method:: Rekognition.Client.list_dataset_entries(**kwargs)

  

  .. note::

    

    This operation applies only to Amazon Rekognition Custom Labels.

    

   

  Lists the entries (images) within a dataset. An entry is a JSON Line that contains the information for a single image, including the image location, assigned labels, and object location bounding boxes. For more information, see `Creating a manifest file <https://docs.aws.amazon.com/rekognition/latest/customlabels-dg/md-manifest-files.html>`__.

   

  JSON Lines in the response include information about non-terminal errors found in the dataset. Non terminal errors are reported in ``errors`` lists within each JSON Line. The same information is reported in the training and testing validation result manifests that Amazon Rekognition Custom Labels creates during model training.

   

  You can filter the response in variety of ways, such as choosing which labels to return and returning JSON Lines created after a specific date.

   

  This operation requires permissions to perform the ``rekognition:ListDatasetEntries`` action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/rekognition-2016-06-27/ListDatasetEntries>`_  


  **Request Syntax**
  ::

    response = client.list_dataset_entries(
        DatasetArn='string',
        ContainsLabels=[
            'string',
        ],
        Labeled=True|False,
        SourceRefContains='string',
        HasErrors=True|False,
        NextToken='string',
        MaxResults=123
    )
    
  :type DatasetArn: string
  :param DatasetArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) for the dataset that you want to use.

    

  
  :type ContainsLabels: list
  :param ContainsLabels: 

    Specifies a label filter for the response. The response includes an entry only if one or more of the labels in ``ContainsLabels`` exist in the entry.

    

  
    - *(string) --* 

    

  :type Labeled: boolean
  :param Labeled: 

    Specify ``true`` to get only the JSON Lines where the image is labeled. Specify ``false`` to get only the JSON Lines where the image isn't labeled. If you don't specify ``Labeled``, ``ListDatasetEntries`` returns JSON Lines for labeled and unlabeled images.

    

  
  :type SourceRefContains: string
  :param SourceRefContains: 

    If specified, ``ListDatasetEntries`` only returns JSON Lines where the value of ``SourceRefContains`` is part of the ``source-ref`` field. The ``source-ref`` field contains the Amazon S3 location of the image. You can use ``SouceRefContains`` for tasks such as getting the JSON Line for a single image, or gettting JSON Lines for all images within a specific folder.

    

  
  :type HasErrors: boolean
  :param HasErrors: 

    Specifies an error filter for the response. Specify ``True`` to only include entries that have errors.

    

  
  :type NextToken: string
  :param NextToken: 

    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.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    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.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'DatasetEntries': [
              'string',
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DatasetEntries** *(list) --* 

        A list of entries (images) in the dataset.

        
        

        - *(string) --* 
    
      

      - **NextToken** *(string) --* 

        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.

        
  
  **Exceptions**
  
  *   :py:class:`Rekognition.Client.exceptions.InternalServerError`

  
  *   :py:class:`Rekognition.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Rekognition.Client.exceptions.ProvisionedThroughputExceededException`

  
  *   :py:class:`Rekognition.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`Rekognition.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Rekognition.Client.exceptions.ResourceInUseException`

  
  *   :py:class:`Rekognition.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`Rekognition.Client.exceptions.InvalidPaginationTokenException`

  
  *   :py:class:`Rekognition.Client.exceptions.ResourceNotReadyException`

  