We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
aws-native.lightsail.Alarm
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi
Resource Type definition for AWS::Lightsail::Alarm
Create Alarm Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alarm(name: string, args: AlarmArgs, opts?: CustomResourceOptions);
@overload
def Alarm(resource_name: str,
args: AlarmArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alarm(resource_name: str,
opts: Optional[ResourceOptions] = None,
comparison_operator: Optional[str] = None,
evaluation_periods: Optional[int] = None,
metric_name: Optional[str] = None,
monitored_resource_name: Optional[str] = None,
threshold: Optional[float] = None,
alarm_name: Optional[str] = None,
contact_protocols: Optional[Sequence[str]] = None,
datapoints_to_alarm: Optional[int] = None,
notification_enabled: Optional[bool] = None,
notification_triggers: Optional[Sequence[str]] = None,
treat_missing_data: Optional[str] = None)
func NewAlarm(ctx *Context, name string, args AlarmArgs, opts ...ResourceOption) (*Alarm, error)
public Alarm(string name, AlarmArgs args, CustomResourceOptions? opts = null)
type: aws-native:lightsail:Alarm
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AlarmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args AlarmArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AlarmArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AlarmArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AlarmArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Alarm Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Alarm resource accepts the following input properties:
- Comparison
Operator string - The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.
- Evaluation
Periods int - The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.
- Metric
Name string - The name of the metric to associate with the alarm.
- Monitored
Resource stringName - The name of the Lightsail resource that the alarm monitors.
- Threshold double
- The value against which the specified statistic is compared.
- Alarm
Name string - The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.
- Contact
Protocols List<string> - The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.
- Datapoints
To intAlarm - The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.
- Notification
Enabled bool - Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.
- Notification
Triggers List<string> - The alarm states that trigger a notification.
- Treat
Missing stringData - Sets how this alarm will handle missing data points.
- Comparison
Operator string - The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.
- Evaluation
Periods int - The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.
- Metric
Name string - The name of the metric to associate with the alarm.
- Monitored
Resource stringName - The name of the Lightsail resource that the alarm monitors.
- Threshold float64
- The value against which the specified statistic is compared.
- Alarm
Name string - The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.
- Contact
Protocols []string - The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.
- Datapoints
To intAlarm - The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.
- Notification
Enabled bool - Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.
- Notification
Triggers []string - The alarm states that trigger a notification.
- Treat
Missing stringData - Sets how this alarm will handle missing data points.
- comparison
Operator String - The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.
- evaluation
Periods Integer - The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.
- metric
Name String - The name of the metric to associate with the alarm.
- monitored
Resource StringName - The name of the Lightsail resource that the alarm monitors.
- threshold Double
- The value against which the specified statistic is compared.
- alarm
Name String - The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.
- contact
Protocols List<String> - The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.
- datapoints
To IntegerAlarm - The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.
- notification
Enabled Boolean - Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.
- notification
Triggers List<String> - The alarm states that trigger a notification.
- treat
Missing StringData - Sets how this alarm will handle missing data points.
- comparison
Operator string - The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.
- evaluation
Periods number - The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.
- metric
Name string - The name of the metric to associate with the alarm.
- monitored
Resource stringName - The name of the Lightsail resource that the alarm monitors.
- threshold number
- The value against which the specified statistic is compared.
- alarm
Name string - The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.
- contact
Protocols string[] - The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.
- datapoints
To numberAlarm - The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.
- notification
Enabled boolean - Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.
- notification
Triggers string[] - The alarm states that trigger a notification.
- treat
Missing stringData - Sets how this alarm will handle missing data points.
- comparison_
operator str - The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.
- evaluation_
periods int - The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.
- metric_
name str - The name of the metric to associate with the alarm.
- monitored_
resource_ strname - The name of the Lightsail resource that the alarm monitors.
- threshold float
- The value against which the specified statistic is compared.
- alarm_
name str - The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.
- contact_
protocols Sequence[str] - The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.
- datapoints_
to_ intalarm - The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.
- notification_
enabled bool - Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.
- notification_
triggers Sequence[str] - The alarm states that trigger a notification.
- treat_
missing_ strdata - Sets how this alarm will handle missing data points.
- comparison
Operator String - The arithmetic operation to use when comparing the specified statistic to the threshold. The specified statistic value is used as the first operand.
- evaluation
Periods Number - The number of most recent periods over which data is compared to the specified threshold. If you are setting an "M out of N" alarm, this value (evaluationPeriods) is the N.
- metric
Name String - The name of the metric to associate with the alarm.
- monitored
Resource StringName - The name of the Lightsail resource that the alarm monitors.
- threshold Number
- The value against which the specified statistic is compared.
- alarm
Name String - The name for the alarm. Specify the name of an existing alarm to update, and overwrite the previous configuration of the alarm.
- contact
Protocols List<String> - The contact protocols to use for the alarm, such as Email, SMS (text messaging), or both.
- datapoints
To NumberAlarm - The number of data points that must be not within the specified threshold to trigger the alarm. If you are setting an "M out of N" alarm, this value (datapointsToAlarm) is the M.
- notification
Enabled Boolean - Indicates whether the alarm is enabled. Notifications are enabled by default if you don't specify this parameter.
- notification
Triggers List<String> - The alarm states that trigger a notification.
- treat
Missing StringData - Sets how this alarm will handle missing data points.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alarm resource produces the following output properties:
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
AWS Native v0.126.0 published on Monday, Sep 30, 2024 by Pulumi