| 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.CreateDetector
Description
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_dataSources :: Lens' CreateDetector (Maybe DataSourceConfigurations)
- createDetector_findingPublishingFrequency :: Lens' CreateDetector (Maybe FindingPublishingFrequency)
- createDetector_tags :: Lens' CreateDetector (Maybe (HashMap Text Text))
- createDetector_enable :: Lens' CreateDetector Bool
- data CreateDetectorResponse = CreateDetectorResponse' {}
- newCreateDetectorResponse :: Int -> CreateDetectorResponse
- createDetectorResponse_detectorId :: Lens' CreateDetectorResponse (Maybe Text)
- createDetectorResponse_unprocessedDataSources :: Lens' CreateDetectorResponse (Maybe UnprocessedDataSourcesResult)
- createDetectorResponse_httpStatus :: Lens' CreateDetectorResponse Int
Creating a Request
data CreateDetector Source #
See: newCreateDetector smart constructor.
Constructors
| CreateDetector' | |
Fields
| |
Instances
Arguments
| :: Bool | |
| -> CreateDetector |
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.
CreateDetector, createDetector_dataSources - Describes which data sources will be enabled for the detector.
$sel:findingPublishingFrequency:CreateDetector', createDetector_findingPublishingFrequency - A value that specifies how frequently updated findings are exported.
CreateDetector, createDetector_tags - The tags to be added to a new detector resource.
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_dataSources :: Lens' CreateDetector (Maybe DataSourceConfigurations) Source #
Describes which data sources will be enabled for the detector.
createDetector_findingPublishingFrequency :: Lens' CreateDetector (Maybe FindingPublishingFrequency) Source #
A value that specifies how frequently updated findings are exported.
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.
Constructors
| CreateDetectorResponse' | |
Fields
| |
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:
CreateDetectorResponse, createDetectorResponse_detectorId - The unique ID of the created detector.
$sel:unprocessedDataSources:CreateDetectorResponse', createDetectorResponse_unprocessedDataSources - Specifies the data sources that couldn't be enabled when GuardDuty was
enabled for the first time.
$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_unprocessedDataSources :: Lens' CreateDetectorResponse (Maybe UnprocessedDataSourcesResult) Source #
Specifies the data sources that couldn't be enabled when GuardDuty was enabled for the first time.
createDetectorResponse_httpStatus :: Lens' CreateDetectorResponse Int Source #
The response's http status code.