AWS::Lightsail::AlarmResource Type definition for AWS::Lightsail::Alarm
11 configurable properties. 6 required. Click a row to see details.
| Property | Type | Flags |
|---|---|---|
AlarmName | string | RequiredCreate-only |
ComparisonOperator | string | Required |
EvaluationPeriods | integer | Required |
MetricName | string | RequiredCreate-only |
MonitoredResourceName | string | RequiredCreate-only |
Threshold | number | Required |
ContactProtocols | Array<string> | |
DatapointsToAlarm | integer | |
NotificationEnabled | boolean | |
NotificationTriggers | Array<string> | |
TreatMissingData | string |
Values returned after the resource is created. Access these with Fn::GetAtt.
| Attribute | Type | Description |
|---|---|---|
AlarmArn | string | - |
State | string | The current state of the alarm. |
A minimal template with required properties and common optional ones.
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::Lightsail::Alarm
Resources:
MyResource:
Type: AWS::Lightsail::Alarm
Properties:
AlarmName: "my-alarmname"
MonitoredResourceName: "my-monitoredresourcename"
MetricName: "my-metricname"
ComparisonOperator: "value"
EvaluationPeriods: 1
Threshold: 1Permissions CloudFormation needs in your IAM role to manage this resource.
lightsail:PutAlarmlightsail:GetAlarmslightsail:GetAlarmslightsail:PutAlarmlightsail:GetAlarmslightsail:DeleteAlarmlightsail:GetAlarmslightsail:GetAlarmsOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterAlarmNameThese properties cannot be changed after the resource is created. Updating them triggers a replacement.
AlarmNameMonitoredResourceNameMetricName