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
ARNs that synthetics:DeleteCanary can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants synthetics:DeleteCanary.
Filters access based on the tags associated with the resource
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": "*"
}
]
}