Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Gets all labels or a specific label if name is provided. This is a
paginated API. If you provide a null maxResults
, this action retrieves
a maximum of 50 records per page. If you provide a maxResults
, the
value must be between 10 and 50. To get the next page results, provide
the pagination token from the GetGetLabelsResponse
as part of your
request. A null pagination token fetches the records from the beginning.
Synopsis
- data GetLabels = GetLabels' {}
- newGetLabels :: GetLabels
- getLabels_nextToken :: Lens' GetLabels (Maybe Text)
- getLabels_name :: Lens' GetLabels (Maybe Text)
- getLabels_maxResults :: Lens' GetLabels (Maybe Natural)
- data GetLabelsResponse = GetLabelsResponse' {}
- newGetLabelsResponse :: Int -> GetLabelsResponse
- getLabelsResponse_nextToken :: Lens' GetLabelsResponse (Maybe Text)
- getLabelsResponse_labels :: Lens' GetLabelsResponse (Maybe [Label])
- getLabelsResponse_httpStatus :: Lens' GetLabelsResponse Int
Creating a Request
See: newGetLabels
smart constructor.
Instances
newGetLabels :: GetLabels Source #
Create a value of GetLabels
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:nextToken:GetLabels'
, getLabels_nextToken
- The next token for the subsequent request.
$sel:name:GetLabels'
, getLabels_name
- The name of the label or labels to get.
$sel:maxResults:GetLabels'
, getLabels_maxResults
- The maximum number of objects to return for the request.
Request Lenses
getLabels_nextToken :: Lens' GetLabels (Maybe Text) Source #
The next token for the subsequent request.
getLabels_maxResults :: Lens' GetLabels (Maybe Natural) Source #
The maximum number of objects to return for the request.
Destructuring the Response
data GetLabelsResponse Source #
See: newGetLabelsResponse
smart constructor.
Instances
Create a value of GetLabelsResponse
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:nextToken:GetLabels'
, getLabelsResponse_nextToken
- The next page token.
$sel:labels:GetLabelsResponse'
, getLabelsResponse_labels
- An array of labels.
$sel:httpStatus:GetLabelsResponse'
, getLabelsResponse_httpStatus
- The response's http status code.
Response Lenses
getLabelsResponse_nextToken :: Lens' GetLabelsResponse (Maybe Text) Source #
The next page token.
getLabelsResponse_labels :: Lens' GetLabelsResponse (Maybe [Label]) Source #
An array of labels.
getLabelsResponse_httpStatus :: Lens' GetLabelsResponse Int Source #
The response's http status code.