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 |
Updates the Amazon GuardDuty detector specified by the detectorId.
Synopsis
- data UpdateDetector = UpdateDetector' {}
- newUpdateDetector :: Text -> UpdateDetector
- updateDetector_findingPublishingFrequency :: Lens' UpdateDetector (Maybe FindingPublishingFrequency)
- updateDetector_dataSources :: Lens' UpdateDetector (Maybe DataSourceConfigurations)
- updateDetector_enable :: Lens' UpdateDetector (Maybe Bool)
- updateDetector_detectorId :: Lens' UpdateDetector Text
- data UpdateDetectorResponse = UpdateDetectorResponse' {
- httpStatus :: Int
- newUpdateDetectorResponse :: Int -> UpdateDetectorResponse
- updateDetectorResponse_httpStatus :: Lens' UpdateDetectorResponse Int
Creating a Request
data UpdateDetector Source #
See: newUpdateDetector
smart constructor.
UpdateDetector' | |
|
Instances
Create a value of UpdateDetector
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:findingPublishingFrequency:UpdateDetector'
, updateDetector_findingPublishingFrequency
- An enum value that specifies how frequently findings are exported, such
as to CloudWatch Events.
$sel:dataSources:UpdateDetector'
, updateDetector_dataSources
- Describes which data sources will be updated.
$sel:enable:UpdateDetector'
, updateDetector_enable
- Specifies whether the detector is enabled or not enabled.
$sel:detectorId:UpdateDetector'
, updateDetector_detectorId
- The unique ID of the detector to update.
Request Lenses
updateDetector_findingPublishingFrequency :: Lens' UpdateDetector (Maybe FindingPublishingFrequency) Source #
An enum value that specifies how frequently findings are exported, such as to CloudWatch Events.
updateDetector_dataSources :: Lens' UpdateDetector (Maybe DataSourceConfigurations) Source #
Describes which data sources will be updated.
updateDetector_enable :: Lens' UpdateDetector (Maybe Bool) Source #
Specifies whether the detector is enabled or not enabled.
updateDetector_detectorId :: Lens' UpdateDetector Text Source #
The unique ID of the detector to update.
Destructuring the Response
data UpdateDetectorResponse Source #
See: newUpdateDetectorResponse
smart constructor.
UpdateDetectorResponse' | |
|
Instances
newUpdateDetectorResponse Source #
Create a value of UpdateDetectorResponse
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:httpStatus:UpdateDetectorResponse'
, updateDetectorResponse_httpStatus
- The response's http status code.
Response Lenses
updateDetectorResponse_httpStatus :: Lens' UpdateDetectorResponse Int Source #
The response's http status code.