Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Retrieves release labels of EMR services in the region where the API is called.
Synopsis
- data ListReleaseLabels = ListReleaseLabels' {}
- newListReleaseLabels :: ListReleaseLabels
- listReleaseLabels_filters :: Lens' ListReleaseLabels (Maybe ReleaseLabelFilter)
- listReleaseLabels_maxResults :: Lens' ListReleaseLabels (Maybe Natural)
- listReleaseLabels_nextToken :: Lens' ListReleaseLabels (Maybe Text)
- data ListReleaseLabelsResponse = ListReleaseLabelsResponse' {
- nextToken :: Maybe Text
- releaseLabels :: Maybe [Text]
- httpStatus :: Int
- newListReleaseLabelsResponse :: Int -> ListReleaseLabelsResponse
- listReleaseLabelsResponse_nextToken :: Lens' ListReleaseLabelsResponse (Maybe Text)
- listReleaseLabelsResponse_releaseLabels :: Lens' ListReleaseLabelsResponse (Maybe [Text])
- listReleaseLabelsResponse_httpStatus :: Lens' ListReleaseLabelsResponse Int
Creating a Request
data ListReleaseLabels Source #
See: newListReleaseLabels
smart constructor.
ListReleaseLabels' | |
|
Instances
newListReleaseLabels :: ListReleaseLabels Source #
Create a value of ListReleaseLabels
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:filters:ListReleaseLabels'
, listReleaseLabels_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.
$sel:maxResults:ListReleaseLabels'
, listReleaseLabels_maxResults
- Defines the maximum number of release labels to return in a single
response. The default is 100
.
ListReleaseLabels
, listReleaseLabels_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.
Request Lenses
listReleaseLabels_filters :: Lens' ListReleaseLabels (Maybe ReleaseLabelFilter) Source #
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.
listReleaseLabels_maxResults :: Lens' ListReleaseLabels (Maybe Natural) Source #
Defines the maximum number of release labels to return in a single
response. The default is 100
.
listReleaseLabels_nextToken :: Lens' ListReleaseLabels (Maybe Text) Source #
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.
Destructuring the Response
data ListReleaseLabelsResponse Source #
See: newListReleaseLabelsResponse
smart constructor.
ListReleaseLabelsResponse' | |
|
Instances
newListReleaseLabelsResponse Source #
Create a value of ListReleaseLabelsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ListReleaseLabels
, listReleaseLabelsResponse_nextToken
- Used to paginate the next page of results if specified in the next
ListReleaseLabels
request.
$sel:releaseLabels:ListReleaseLabelsResponse'
, listReleaseLabelsResponse_releaseLabels
- The returned release labels.
$sel:httpStatus:ListReleaseLabelsResponse'
, listReleaseLabelsResponse_httpStatus
- The response's http status code.
Response Lenses
listReleaseLabelsResponse_nextToken :: Lens' ListReleaseLabelsResponse (Maybe Text) Source #
Used to paginate the next page of results if specified in the next
ListReleaseLabels
request.
listReleaseLabelsResponse_releaseLabels :: Lens' ListReleaseLabelsResponse (Maybe [Text]) Source #
The returned release labels.
listReleaseLabelsResponse_httpStatus :: Lens' ListReleaseLabelsResponse Int Source #
The response's http status code.