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 |
Creates a single Amazon GuardDuty detector. A detector is a resource that represents the GuardDuty service. To start using GuardDuty, you must create a detector in each Region where you enable the service. You can have only one detector per account per Region. All data sources are enabled in a new detector by default.
Synopsis
- data CreateDetector = CreateDetector' {}
- newCreateDetector :: Bool -> CreateDetector
- createDetector_clientToken :: Lens' CreateDetector (Maybe Text)
- createDetector_findingPublishingFrequency :: Lens' CreateDetector (Maybe FindingPublishingFrequency)
- createDetector_dataSources :: Lens' CreateDetector (Maybe DataSourceConfigurations)
- createDetector_tags :: Lens' CreateDetector (Maybe (HashMap Text Text))
- createDetector_enable :: Lens' CreateDetector Bool
- data CreateDetectorResponse = CreateDetectorResponse' {
- detectorId :: Maybe Text
- httpStatus :: Int
- newCreateDetectorResponse :: Int -> CreateDetectorResponse
- createDetectorResponse_detectorId :: Lens' CreateDetectorResponse (Maybe Text)
- createDetectorResponse_httpStatus :: Lens' CreateDetectorResponse Int
Creating a Request
data CreateDetector Source #
See: newCreateDetector
smart constructor.
CreateDetector' | |
|
Instances
Create a value of CreateDetector
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:clientToken:CreateDetector'
, createDetector_clientToken
- The idempotency token for the create request.
$sel:findingPublishingFrequency:CreateDetector'
, createDetector_findingPublishingFrequency
- A value that specifies how frequently updated findings are exported.
$sel:dataSources:CreateDetector'
, createDetector_dataSources
- Describes which data sources will be enabled for the detector.
$sel:tags:CreateDetector'
, createDetector_tags
- The tags to be added to a new detector resource.
$sel:enable:CreateDetector'
, createDetector_enable
- A Boolean value that specifies whether the detector is to be enabled.
Request Lenses
createDetector_clientToken :: Lens' CreateDetector (Maybe Text) Source #
The idempotency token for the create request.
createDetector_findingPublishingFrequency :: Lens' CreateDetector (Maybe FindingPublishingFrequency) Source #
A value that specifies how frequently updated findings are exported.
createDetector_dataSources :: Lens' CreateDetector (Maybe DataSourceConfigurations) Source #
Describes which data sources will be enabled for the detector.
createDetector_tags :: Lens' CreateDetector (Maybe (HashMap Text Text)) Source #
The tags to be added to a new detector resource.
createDetector_enable :: Lens' CreateDetector Bool Source #
A Boolean value that specifies whether the detector is to be enabled.
Destructuring the Response
data CreateDetectorResponse Source #
See: newCreateDetectorResponse
smart constructor.
CreateDetectorResponse' | |
|
Instances
newCreateDetectorResponse Source #
Create a value of CreateDetectorResponse
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:CreateDetectorResponse'
, createDetectorResponse_detectorId
- The unique ID of the created detector.
$sel:httpStatus:CreateDetectorResponse'
, createDetectorResponse_httpStatus
- The response's http status code.
Response Lenses
createDetectorResponse_detectorId :: Lens' CreateDetectorResponse (Maybe Text) Source #
The unique ID of the created detector.
createDetectorResponse_httpStatus :: Lens' CreateDetectorResponse Int Source #
The response's http status code.