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 |
Retrieves an Amazon GuardDuty detector specified by the detectorId.
Synopsis
- data GetDetector = GetDetector' {
- detectorId :: Text
- newGetDetector :: Text -> GetDetector
- getDetector_detectorId :: Lens' GetDetector Text
- data GetDetectorResponse = GetDetectorResponse' {}
- newGetDetectorResponse :: Int -> Text -> DetectorStatus -> GetDetectorResponse
- getDetectorResponse_createdAt :: Lens' GetDetectorResponse (Maybe Text)
- getDetectorResponse_findingPublishingFrequency :: Lens' GetDetectorResponse (Maybe FindingPublishingFrequency)
- getDetectorResponse_dataSources :: Lens' GetDetectorResponse (Maybe DataSourceConfigurationsResult)
- getDetectorResponse_updatedAt :: Lens' GetDetectorResponse (Maybe Text)
- getDetectorResponse_tags :: Lens' GetDetectorResponse (Maybe (HashMap Text Text))
- getDetectorResponse_httpStatus :: Lens' GetDetectorResponse Int
- getDetectorResponse_serviceRole :: Lens' GetDetectorResponse Text
- getDetectorResponse_status :: Lens' GetDetectorResponse DetectorStatus
Creating a Request
data GetDetector Source #
See: newGetDetector
smart constructor.
GetDetector' | |
|
Instances
Create a value of GetDetector
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:detectorId:GetDetector'
, getDetector_detectorId
- The unique ID of the detector that you want to get.
Request Lenses
getDetector_detectorId :: Lens' GetDetector Text Source #
The unique ID of the detector that you want to get.
Destructuring the Response
data GetDetectorResponse Source #
See: newGetDetectorResponse
smart constructor.
GetDetectorResponse' | |
|
Instances
newGetDetectorResponse Source #
:: Int | |
-> Text | |
-> DetectorStatus | |
-> GetDetectorResponse |
Create a value of GetDetectorResponse
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:createdAt:GetDetectorResponse'
, getDetectorResponse_createdAt
- The timestamp of when the detector was created.
$sel:findingPublishingFrequency:GetDetectorResponse'
, getDetectorResponse_findingPublishingFrequency
- The publishing frequency of the finding.
$sel:dataSources:GetDetectorResponse'
, getDetectorResponse_dataSources
- Describes which data sources are enabled for the detector.
$sel:updatedAt:GetDetectorResponse'
, getDetectorResponse_updatedAt
- The last-updated timestamp for the detector.
$sel:tags:GetDetectorResponse'
, getDetectorResponse_tags
- The tags of the detector resource.
$sel:httpStatus:GetDetectorResponse'
, getDetectorResponse_httpStatus
- The response's http status code.
$sel:serviceRole:GetDetectorResponse'
, getDetectorResponse_serviceRole
- The GuardDuty service role.
$sel:status:GetDetectorResponse'
, getDetectorResponse_status
- The detector status.
Response Lenses
getDetectorResponse_createdAt :: Lens' GetDetectorResponse (Maybe Text) Source #
The timestamp of when the detector was created.
getDetectorResponse_findingPublishingFrequency :: Lens' GetDetectorResponse (Maybe FindingPublishingFrequency) Source #
The publishing frequency of the finding.
getDetectorResponse_dataSources :: Lens' GetDetectorResponse (Maybe DataSourceConfigurationsResult) Source #
Describes which data sources are enabled for the detector.
getDetectorResponse_updatedAt :: Lens' GetDetectorResponse (Maybe Text) Source #
The last-updated timestamp for the detector.
getDetectorResponse_tags :: Lens' GetDetectorResponse (Maybe (HashMap Text Text)) Source #
The tags of the detector resource.
getDetectorResponse_httpStatus :: Lens' GetDetectorResponse Int Source #
The response's http status code.
getDetectorResponse_serviceRole :: Lens' GetDetectorResponse Text Source #
The GuardDuty service role.
getDetectorResponse_status :: Lens' GetDetectorResponse DetectorStatus Source #
The detector status.