| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.GuardDuty.CreateDetector
Description
Creates a single Amazon GuardDuty detector. A detector is an object that represents the GuardDuty service. A detector must be created in order for GuardDuty to become operational.
Creating a Request
createDetector :: CreateDetector Source #
Creates a value of CreateDetector with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdEnable- A boolean value that specifies whether the detector is to be enabled.
data CreateDetector Source #
CreateDetector request body.
See: createDetector smart constructor.
Instances
Request Lenses
cdEnable :: Lens' CreateDetector (Maybe Bool) Source #
A boolean value that specifies whether the detector is to be enabled.
Destructuring the Response
createDetectorResponse Source #
Arguments
| :: Int | |
| -> CreateDetectorResponse |
Creates a value of CreateDetectorResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cdrsDetectorId- The unique ID of the created detector.cdrsResponseStatus- -- | The response status code.
data CreateDetectorResponse Source #
See: createDetectorResponse smart constructor.
Instances
Response Lenses
cdrsDetectorId :: Lens' CreateDetectorResponse (Maybe Text) Source #
The unique ID of the created detector.
cdrsResponseStatus :: Lens' CreateDetectorResponse Int Source #
- - | The response status code.