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 detectors or a single detector if a detectorId
is specified.
This is a paginated API. If you provide a null maxResults
, this action
retrieves a maximum of 10 records per page. If you provide a
maxResults
, the value must be between 5 and 10. To get the next page
results, provide the pagination token from the GetDetectorsResponse
as
part of your request. A null pagination token fetches the records from
the beginning.
Synopsis
- data GetDetectors = GetDetectors' {
- nextToken :: Maybe Text
- detectorId :: Maybe Text
- maxResults :: Maybe Natural
- newGetDetectors :: GetDetectors
- getDetectors_nextToken :: Lens' GetDetectors (Maybe Text)
- getDetectors_detectorId :: Lens' GetDetectors (Maybe Text)
- getDetectors_maxResults :: Lens' GetDetectors (Maybe Natural)
- data GetDetectorsResponse = GetDetectorsResponse' {}
- newGetDetectorsResponse :: Int -> GetDetectorsResponse
- getDetectorsResponse_nextToken :: Lens' GetDetectorsResponse (Maybe Text)
- getDetectorsResponse_detectors :: Lens' GetDetectorsResponse (Maybe [Detector])
- getDetectorsResponse_httpStatus :: Lens' GetDetectorsResponse Int
Creating a Request
data GetDetectors Source #
See: newGetDetectors
smart constructor.
GetDetectors' | |
|
Instances
newGetDetectors :: GetDetectors Source #
Create a value of GetDetectors
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:GetDetectors'
, getDetectors_nextToken
- The next token for the subsequent request.
$sel:detectorId:GetDetectors'
, getDetectors_detectorId
- The detector ID.
$sel:maxResults:GetDetectors'
, getDetectors_maxResults
- The maximum number of objects to return for the request.
Request Lenses
getDetectors_nextToken :: Lens' GetDetectors (Maybe Text) Source #
The next token for the subsequent request.
getDetectors_detectorId :: Lens' GetDetectors (Maybe Text) Source #
The detector ID.
getDetectors_maxResults :: Lens' GetDetectors (Maybe Natural) Source #
The maximum number of objects to return for the request.
Destructuring the Response
data GetDetectorsResponse Source #
See: newGetDetectorsResponse
smart constructor.
Instances
newGetDetectorsResponse Source #
Create a value of GetDetectorsResponse
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:GetDetectors'
, getDetectorsResponse_nextToken
- The next page token.
$sel:detectors:GetDetectorsResponse'
, getDetectorsResponse_detectors
- The detectors.
$sel:httpStatus:GetDetectorsResponse'
, getDetectorsResponse_httpStatus
- The response's http status code.
Response Lenses
getDetectorsResponse_nextToken :: Lens' GetDetectorsResponse (Maybe Text) Source #
The next page token.
getDetectorsResponse_detectors :: Lens' GetDetectorsResponse (Maybe [Detector]) Source #
The detectors.
getDetectorsResponse_httpStatus :: Lens' GetDetectorsResponse Int Source #
The response's http status code.