cloudwatch:PutLogAlarm

Write

cloudwatch:PutLogAlarm is a Write access-level action in the cloudwatch service. Grants permission to create or update a log-based alarm and associate it with a CloudWatch Logs Insights scheduled query

Resource types

ARNs that cloudwatch:PutLogAlarm can be scoped to in an IAM policy.

arn:${Partition}:cloudwatch:${Region}:${Account}:alarm:${AlarmName} required
alarm

Condition keys

Keys you can use in the Condition block of a policy that grants cloudwatch:PutLogAlarm.

aws:RequestTag/${TagKey} String

Filters access by the presence of tags in the request

aws:TagKeys ArrayOfString

Filters access by the presence of tags in the request

cloudwatch:AlarmActions ArrayOfString

Filters access by defined alarm actions

cloudwatch:AlarmTagsPropagationEnabled Bool

Filters access by whether the request enables propagation of the alarm's tags in notification payloads

aws:ResourceTag/${TagKey} String

Filters access by tags associated with the resource

Example IAM policy

A minimal policy that allows cloudwatch:PutLogAlarm. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCloudwatchPutLogAlarm",
      "Effect": "Allow",
      "Action": "cloudwatch:PutLogAlarm",
      "Resource": "*"
    }
  ]
}

Related actions in cloudwatch

View all cloudwatch actions →