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
)
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.
Optional release label version prefix filter. For example, emr-5
.
Optional release label application filter. For example, spark@2.1.0
.
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.100
.dict
Response Syntax
{
'ReleaseLabels': [
'string',
],
'NextToken': 'string'
}
Response Structure
(dict) --
ReleaseLabels (list) --
The returned release labels.
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