def put_cloudwatch_composit_alarm()

in cwoperator/helpers/cloudwatch.py [0:0]


def put_cloudwatch_composit_alarm(alarm):
    cloudwatch = cloudwatch_client()
    try:
        cloudwatch.put_composite_alarm(**alarm)
    except botocore.exceptions.ClientError as error:
        raise kopf.TemporaryError(f"boto client error occurred. Retry in 60s : {error}",
            delay=60) # pragma: no cover

    except botocore.exceptions.ParamValidationError as error:
        raise kopf.PermanentError(f"The parameters you provided are incorrect: {error}")