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.getAlarm
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
Using getAlarm
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAlarm(args: GetAlarmArgs, opts?: InvokeOptions): Promise<GetAlarmResult>
function getAlarmOutput(args: GetAlarmOutputArgs, opts?: InvokeOptions): Output<GetAlarmResult>
def get_alarm(alarm_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlarmResult
def get_alarm_output(alarm_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlarmResult]
func LookupAlarm(ctx *Context, args *LookupAlarmArgs, opts ...InvokeOption) (*LookupAlarmResult, error)
func LookupAlarmOutput(ctx *Context, args *LookupAlarmOutputArgs, opts ...InvokeOption) LookupAlarmResultOutput
> Note: This function is named LookupAlarm
in the Go SDK.
public static class GetAlarm
{
public static Task<GetAlarmResult> InvokeAsync(GetAlarmArgs args, InvokeOptions? opts = null)
public static Output<GetAlarmResult> Invoke(GetAlarmInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlarmResult> getAlarm(GetAlarmArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws-native:lightsail:getAlarm
arguments:
# arguments dictionary
The following arguments are supported:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
getAlarm Result
The following output properties are available:
- Alarm
Arn string - The Amazon Resource Name (ARN) of the alarm.
- 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.
- 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.
- 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.
- 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.
- State string
- The current state of the alarm.
- Threshold double
- The value against which the specified statistic is compared.
- Treat
Missing stringData - Sets how this alarm will handle missing data points.
- Alarm
Arn string - The Amazon Resource Name (ARN) of the alarm.
- 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.
- 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.
- 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.
- 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.
- State string
- The current state of the alarm.
- Threshold float64
- The value against which the specified statistic is compared.
- Treat
Missing stringData - Sets how this alarm will handle missing data points.
- alarm
Arn String - The Amazon Resource Name (ARN) of the alarm.
- 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.
- 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.
- 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.
- 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.
- state String
- The current state of the alarm.
- threshold Double
- The value against which the specified statistic is compared.
- treat
Missing StringData - Sets how this alarm will handle missing data points.
- alarm
Arn string - The Amazon Resource Name (ARN) of the alarm.
- 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.
- 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.
- 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.
- 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.
- state string
- The current state of the alarm.
- threshold number
- The value against which the specified statistic is compared.
- treat
Missing stringData - Sets how this alarm will handle missing data points.
- alarm_
arn str - The Amazon Resource Name (ARN) of the alarm.
- 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.
- 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.
- 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.
- 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.
- state str
- The current state of the alarm.
- threshold float
- The value against which the specified statistic is compared.
- treat_
missing_ strdata - Sets how this alarm will handle missing data points.
- alarm
Arn String - The Amazon Resource Name (ARN) of the alarm.
- 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.
- 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.
- 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.
- 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.
- state String
- The current state of the alarm.
- threshold Number
- The value against which the specified statistic is compared.
- treat
Missing StringData - Sets how this alarm will handle missing data points.
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