CloudWatchClient.delete_anomaly_detector
rboto-cloudwatch==0.4.0 · Service index · Types
Model summary (excerpt): Deletes the specified anomaly detection model from your account. For more information about how to delete an anomaly detection model, see Deleting an anomaly detection model in the CloudWatch User Guide .
Install and imports
from rboto import CloudWatchClient
from collections.abc import Sequence
from rboto_cloudwatch.types import (
DeleteAnomalyDetectorOutput,
Dimension,
MetricMathAnomalyDetector,
SingleMetricAnomalyDetector,
)
Signature
async def delete_anomaly_detector(
*,
anomaly_detector_id: str | None = None,
namespace: str | None = None,
metric_name: str | None = None,
dimensions: Sequence[Dimension] | None = None,
stat: str | None = None,
single_metric_anomaly_detector: SingleMetricAnomalyDetector | None = None,
metric_math_anomaly_detector: MetricMathAnomalyDetector | None = None,
) -> DeleteAnomalyDetectorOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
anomaly_detector_id |
No | Specifies the unique identifier of the anomaly detector to delete. If you specify this parameter, you do not need to specify a metric to identify the detector. |
namespace |
No | The namespace associated with the anomaly detection model to delete. |
metric_name |
No | The metric name associated with the anomaly detection model to delete. |
dimensions |
No | The metric dimensions associated with the anomaly detection model to delete. |
stat |
No | The statistic associated with the anomaly detection model to delete. |
single_metric_anomaly_detector |
No | A single metric anomaly detector to be deleted. When using SingleMetricAnomalyDetector , you cannot include the following parameters in the same operation: Dimensions , MetricName Namespace Stat the MetricMathAnomalyDetector parameters of DeleteAnomalyDetectorInput Instead, specify the single metric anomaly detector attributes as part of the SingleMetricAnomalyDetector property. |
metric_math_anomaly_detector |
No | The metric math anomaly detector to be deleted. When using MetricMathAnomalyDetector , you cannot include following parameters in the same operation: Dimensions , MetricName Namespace Stat the SingleMetricAnomalyDetector parameters of DeleteAnomalyDetectorInput Instead, specify the metric math anomaly detector attributes as part of the MetricMathAnomalyDetector property. |
Output
DeleteAnomalyDetectorOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
No fields.
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
DeleteAnomalyDetectorOutput, Dimension, MetricMathAnomalyDetector, SingleMetricAnomalyDetector
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_cloudwatch.exceptions:
InternalServiceFaultError, InvalidParameterCombinationError, InvalidParameterValueError, MissingRequiredParameterError, ResourceNotFoundExceptionError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.