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 or updates a detector.
Synopsis
- data PutDetector = PutDetector' {
- description :: Maybe Text
- tags :: Maybe [Tag]
- detectorId :: Text
- eventTypeName :: Text
- newPutDetector :: Text -> Text -> PutDetector
- putDetector_description :: Lens' PutDetector (Maybe Text)
- putDetector_tags :: Lens' PutDetector (Maybe [Tag])
- putDetector_detectorId :: Lens' PutDetector Text
- putDetector_eventTypeName :: Lens' PutDetector Text
- data PutDetectorResponse = PutDetectorResponse' {
- httpStatus :: Int
- newPutDetectorResponse :: Int -> PutDetectorResponse
- putDetectorResponse_httpStatus :: Lens' PutDetectorResponse Int
Creating a Request
data PutDetector Source #
See: newPutDetector
smart constructor.
PutDetector' | |
|
Instances
Create a value of PutDetector
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:description:PutDetector'
, putDetector_description
- The description of the detector.
$sel:tags:PutDetector'
, putDetector_tags
- A collection of key and value pairs.
$sel:detectorId:PutDetector'
, putDetector_detectorId
- The detector ID.
$sel:eventTypeName:PutDetector'
, putDetector_eventTypeName
- The name of the event type.
Request Lenses
putDetector_description :: Lens' PutDetector (Maybe Text) Source #
The description of the detector.
putDetector_tags :: Lens' PutDetector (Maybe [Tag]) Source #
A collection of key and value pairs.
putDetector_detectorId :: Lens' PutDetector Text Source #
The detector ID.
putDetector_eventTypeName :: Lens' PutDetector Text Source #
The name of the event type.
Destructuring the Response
data PutDetectorResponse Source #
See: newPutDetectorResponse
smart constructor.
PutDetectorResponse' | |
|
Instances
newPutDetectorResponse Source #
Create a value of PutDetectorResponse
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:PutDetectorResponse'
, putDetectorResponse_httpStatus
- The response's http status code.
Response Lenses
putDetectorResponse_httpStatus :: Lens' PutDetectorResponse Int Source #
The response's http status code.