:doc:`EMR <../../emr>` / Client / list_release_labels

*******************
list_release_labels
*******************



.. py:method:: EMR.Client.list_release_labels(**kwargs)

  

  Retrieves release labels of Amazon EMR services in the Region where the API is called.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/ListReleaseLabels>`_  


  **Request Syntax**
  ::

    response = client.list_release_labels(
        Filters={
            'Prefix': 'string',
            'Application': 'string'
        },
        NextToken='string',
        MaxResults=123
    )
    
  :type Filters: dict
  :param Filters: 

    Filters the results of the request. ``Prefix`` specifies the prefix of release labels to return. ``Application`` specifies the application (with/without version) of release labels to return.

    

  
    - **Prefix** *(string) --* 

      Optional release label version prefix filter. For example, ``emr-5``.

      

    
    - **Application** *(string) --* 

      Optional release label application filter. For example, ``spark@2.1.0``.

      

    
  
  :type NextToken: string
  :param NextToken: 

    Specifies the next page of results. If ``NextToken`` is not specified, which is usually the case for the first request of ListReleaseLabels, the first page of results are determined by other filtering parameters or by the latest version. The ``ListReleaseLabels`` request fails if the identity (Amazon Web Services account ID) and all filtering parameters are different from the original request, or if the ``NextToken`` is expired or tampered with.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    Defines the maximum number of release labels to return in a single response. The default is ``100``.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ReleaseLabels** *(list) --* 

        The returned release labels.

        
        

        - *(string) --* 
    
      

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

        Used to paginate the next page of results if specified in the next ``ListReleaseLabels`` request.

        
  
  **Exceptions**
  
  *   :py:class:`EMR.Client.exceptions.InternalServerException`

  
  *   :py:class:`EMR.Client.exceptions.InvalidRequestException`

  