| 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 |
Amazonka.FraudDetector.GetLabels
Description
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_maxResults :: Lens' GetLabels (Maybe Natural)
- getLabels_name :: Lens' GetLabels (Maybe Text)
- getLabels_nextToken :: Lens' GetLabels (Maybe Text)
- data GetLabelsResponse = GetLabelsResponse' {}
- newGetLabelsResponse :: Int -> GetLabelsResponse
- getLabelsResponse_labels :: Lens' GetLabelsResponse (Maybe [Label])
- getLabelsResponse_nextToken :: Lens' GetLabelsResponse (Maybe Text)
- getLabelsResponse_httpStatus :: Lens' GetLabelsResponse Int
Creating a Request
See: newGetLabels smart constructor.
Constructors
| GetLabels' | |
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:maxResults:GetLabels', getLabels_maxResults - The maximum number of objects to return for the request.
GetLabels, getLabels_name - The name of the label or labels to get.
GetLabels, getLabels_nextToken - The next token for the subsequent request.
Request Lenses
getLabels_maxResults :: Lens' GetLabels (Maybe Natural) Source #
The maximum number of objects to return for the request.
getLabels_nextToken :: Lens' GetLabels (Maybe Text) Source #
The next token for the subsequent request.
Destructuring the Response
data GetLabelsResponse Source #
See: newGetLabelsResponse smart constructor.
Constructors
| GetLabelsResponse' | |
Instances
Arguments
| :: Int | |
| -> GetLabelsResponse |
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:
GetLabelsResponse, getLabelsResponse_labels - An array of labels.
GetLabels, getLabelsResponse_nextToken - The next page token.
$sel:httpStatus:GetLabelsResponse', getLabelsResponse_httpStatus - The response's http status code.
Response Lenses
getLabelsResponse_labels :: Lens' GetLabelsResponse (Maybe [Label]) Source #
An array of labels.
getLabelsResponse_nextToken :: Lens' GetLabelsResponse (Maybe Text) Source #
The next page token.
getLabelsResponse_httpStatus :: Lens' GetLabelsResponse Int Source #
The response's http status code.