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