Skip to content

CloudWatchLogsClient.update_log_anomaly_detector

rboto-cloudwatch-logs==0.4.0 · Service index · Types

Model summary (excerpt): Updates an existing log anomaly detector.

Install and imports

python -m pip install "rboto[cloudwatch-logs]==0.4.0"
from rboto import CloudWatchLogsClient
from rboto_cloudwatch_logs.types import (
    EvaluationFrequency,
)

Signature

async def update_log_anomaly_detector(
    *,
    anomaly_detector_arn: str,
    enabled: bool,
    evaluation_frequency: EvaluationFrequency | None = None,
    filter_pattern: str | None = None,
    anomaly_visibility_time: int | None = None,
) -> None: ...

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_arn Yes The ARN of the anomaly detector that you want to update.
enabled Yes Use this parameter to pause or restart the anomaly detector.
evaluation_frequency No Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting evaluationFrequency to FIFTEEN_MIN might be appropriate.
filter_pattern No
anomaly_visibility_time No The number of days to use as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.

Output

None.

| 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.

EvaluationFrequency

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_logs.exceptions:

InvalidParameterError, OperationAbortedError, ResourceNotFoundError, ServiceUnavailableError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model