logs:UntagResource

Tagging

logs:UntagResource is a Tagging access-level action in the logs service. Grants permission to remove the specified tags from the specified resource

Resource types

ARNs that logs:UntagResource can be scoped to in an IAM policy.

arn:${Partition}:logs:${Region}:${Account}:anomaly-detector:${DetectorId}
anomaly-detector
arn:${Partition}:logs:${Region}:${Account}:delivery:${DeliveryName}
delivery
arn:${Partition}:logs:${Region}:${Account}:delivery-destination:${DeliveryDestinationName}
delivery-destination
arn:${Partition}:logs:${Region}:${Account}:delivery-source:${DeliverySourceName}
delivery-source
arn:${Partition}:logs:${Region}:${Account}:destination:${DestinationName}
destination
arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}
log-group
arn:${Partition}:logs:${Region}:${Account}:lookup-table:${LookupTableName}
lookup-table
arn:${Partition}:logs:${Region}:${Account}:scheduled-query:${ScheduledQueryId}
scheduled-query

Condition keys

Keys you can use in the Condition block of a policy that grants logs:UntagResource.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowLogsUntagResource",
      "Effect": "Allow",
      "Action": "logs:UntagResource",
      "Resource": "*"
    }
  ]
}

Related actions in logs

View all logs actions →