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 |
Updates a detector. After activation, you can only change a detector's ingestion delay and description.
Synopsis
- data UpdateAnomalyDetector = UpdateAnomalyDetector' {}
- newUpdateAnomalyDetector :: Text -> UpdateAnomalyDetector
- updateAnomalyDetector_kmsKeyArn :: Lens' UpdateAnomalyDetector (Maybe Text)
- updateAnomalyDetector_anomalyDetectorConfig :: Lens' UpdateAnomalyDetector (Maybe AnomalyDetectorConfig)
- updateAnomalyDetector_anomalyDetectorDescription :: Lens' UpdateAnomalyDetector (Maybe Text)
- updateAnomalyDetector_anomalyDetectorArn :: Lens' UpdateAnomalyDetector Text
- data UpdateAnomalyDetectorResponse = UpdateAnomalyDetectorResponse' {}
- newUpdateAnomalyDetectorResponse :: Int -> UpdateAnomalyDetectorResponse
- updateAnomalyDetectorResponse_anomalyDetectorArn :: Lens' UpdateAnomalyDetectorResponse (Maybe Text)
- updateAnomalyDetectorResponse_httpStatus :: Lens' UpdateAnomalyDetectorResponse Int
Creating a Request
data UpdateAnomalyDetector Source #
See: newUpdateAnomalyDetector
smart constructor.
UpdateAnomalyDetector' | |
|
Instances
newUpdateAnomalyDetector Source #
Create a value of UpdateAnomalyDetector
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:kmsKeyArn:UpdateAnomalyDetector'
, updateAnomalyDetector_kmsKeyArn
- The Amazon Resource Name (ARN) of an AWS KMS encryption key.
$sel:anomalyDetectorConfig:UpdateAnomalyDetector'
, updateAnomalyDetector_anomalyDetectorConfig
- Contains information about the configuration to which the detector will
be updated.
$sel:anomalyDetectorDescription:UpdateAnomalyDetector'
, updateAnomalyDetector_anomalyDetectorDescription
- The updated detector description.
$sel:anomalyDetectorArn:UpdateAnomalyDetector'
, updateAnomalyDetector_anomalyDetectorArn
- The ARN of the detector to update.
Request Lenses
updateAnomalyDetector_kmsKeyArn :: Lens' UpdateAnomalyDetector (Maybe Text) Source #
The Amazon Resource Name (ARN) of an AWS KMS encryption key.
updateAnomalyDetector_anomalyDetectorConfig :: Lens' UpdateAnomalyDetector (Maybe AnomalyDetectorConfig) Source #
Contains information about the configuration to which the detector will be updated.
updateAnomalyDetector_anomalyDetectorDescription :: Lens' UpdateAnomalyDetector (Maybe Text) Source #
The updated detector description.
updateAnomalyDetector_anomalyDetectorArn :: Lens' UpdateAnomalyDetector Text Source #
The ARN of the detector to update.
Destructuring the Response
data UpdateAnomalyDetectorResponse Source #
See: newUpdateAnomalyDetectorResponse
smart constructor.
UpdateAnomalyDetectorResponse' | |
|
Instances
newUpdateAnomalyDetectorResponse Source #
Create a value of UpdateAnomalyDetectorResponse
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:anomalyDetectorArn:UpdateAnomalyDetector'
, updateAnomalyDetectorResponse_anomalyDetectorArn
- The ARN of the updated detector.
$sel:httpStatus:UpdateAnomalyDetectorResponse'
, updateAnomalyDetectorResponse_httpStatus
- The response's http status code.
Response Lenses
updateAnomalyDetectorResponse_anomalyDetectorArn :: Lens' UpdateAnomalyDetectorResponse (Maybe Text) Source #
The ARN of the updated detector.
updateAnomalyDetectorResponse_httpStatus :: Lens' UpdateAnomalyDetectorResponse Int Source #
The response's http status code.