synthetics:DeleteCanary

Write

synthetics:DeleteCanary is a Write access-level action in the synthetics service. Grants permission to delete a canary. Amazon Synthetics deletes all the resources except for the Lambda function and the CloudWatch Alarms if you created one

Resource types

ARNs that synthetics:DeleteCanary can be scoped to in an IAM policy.

arn:${Partition}:synthetics:${Region}:${Account}:canary:${CanaryName}
canary

Condition keys

Keys you can use in the Condition block of a policy that grants synthetics:DeleteCanary.

aws:ResourceTag/${TagKey} String

Filters access based on the tags associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowSyntheticsDeleteCanary",
      "Effect": "Allow",
      "Action": "synthetics:DeleteCanary",
      "Resource": "*"
    }
  ]
}

Related actions in synthetics

View all synthetics actions →