lightsail:TestAlarm is a Write access-level action in the lightsail service. Grants permission to test an alarm by displaying a banner on the Amazon Lightsail console or if a notification trigger is configured for the specified alarm, by sending a notification to the notification protocol
ARNs that lightsail:TestAlarm can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants lightsail:TestAlarm.
Filters access by a tag key and value pair of a resource
A minimal policy that allows lightsail:TestAlarm. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowLightsailTestAlarm",
"Effect": "Allow",
"Action": "lightsail:TestAlarm",
"Resource": "*"
}
]
}