list_release_labels

EMR.Client.list_release_labels(**kwargs)

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

See also: AWS API Documentation

Request Syntax

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

    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 .

  • NextToken (string) -- 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.
  • MaxResults (integer) -- Defines the maximum number of release labels to return in a single response. The default is 100 .
Return type

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

  • EMR.Client.exceptions.InternalServerException
  • EMR.Client.exceptions.InvalidRequestException