AwsCloudWatchAlarmPropertiesArgs

data class AwsCloudWatchAlarmPropertiesArgs(val actionsEnabled: Output<Boolean>? = null, val alarmActions: Output<List<String>>? = null, val alarmDescription: Output<String>? = null, val alarmName: Output<String>? = null, val arn: Output<String>? = null, val comparisonOperator: Output<String>? = null, val datapointsToAlarm: Output<Int>? = null, val dimensions: Output<List<DimensionArgs>>? = null, val evaluateLowSampleCountPercentile: Output<String>? = null, val evaluationPeriods: Output<Int>? = null, val extendedStatistic: Output<String>? = null, val insufficientDataActions: Output<List<String>>? = null, val metricName: Output<String>? = null, val metrics: Output<List<MetricDataQueryArgs>>? = null, val namespace: Output<String>? = null, val okActions: Output<List<String>>? = null, val period: Output<Int>? = null, val statistic: Output<String>? = null, val tags: Output<List<TagArgs>>? = null, val threshold: Output<Double>? = null, val thresholdMetricId: Output<String>? = null, val treatMissingData: Output<String>? = null, val unit: Output<String>? = null) : ConvertibleToJava<AwsCloudWatchAlarmPropertiesArgs>

Definition of awsCloudWatchAlarm

Constructors

Link copied to clipboard
constructor(actionsEnabled: Output<Boolean>? = null, alarmActions: Output<List<String>>? = null, alarmDescription: Output<String>? = null, alarmName: Output<String>? = null, arn: Output<String>? = null, comparisonOperator: Output<String>? = null, datapointsToAlarm: Output<Int>? = null, dimensions: Output<List<DimensionArgs>>? = null, evaluateLowSampleCountPercentile: Output<String>? = null, evaluationPeriods: Output<Int>? = null, extendedStatistic: Output<String>? = null, insufficientDataActions: Output<List<String>>? = null, metricName: Output<String>? = null, metrics: Output<List<MetricDataQueryArgs>>? = null, namespace: Output<String>? = null, okActions: Output<List<String>>? = null, period: Output<Int>? = null, statistic: Output<String>? = null, tags: Output<List<TagArgs>>? = null, threshold: Output<Double>? = null, thresholdMetricId: Output<String>? = null, treatMissingData: Output<String>? = null, unit: Output<String>? = null)

Properties

Link copied to clipboard
val actionsEnabled: Output<Boolean>? = null

Indicates whether actions should be executed during any changes to the alarm state. The default is TRUE.

Link copied to clipboard
val alarmActions: Output<List<String>>? = null

The list of actions to execute when this alarm transitions into an ALARM state from any other state. Specify each action as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see PutMetricAlarm in the API Reference.

Link copied to clipboard
val alarmDescription: Output<String>? = null

The description of the alarm.

Link copied to clipboard
val alarmName: Output<String>? = null

The name of the alarm. If you don't specify a name, CFN generates a unique physical ID and uses that ID for the alarm name. If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.

Link copied to clipboard
val arn: Output<String>? = null

Property arn

Link copied to clipboard
val comparisonOperator: Output<String>? = null

The arithmetic operation to use when comparing the specified statistic and threshold. The specified statistic value is used as the first operand.

Link copied to clipboard
val datapointsToAlarm: Output<Int>? = null

The number of datapoints that must be breaching to trigger the alarm. This is used only if you are setting an 'M out of N' alarm. In that case, this value is the M, and the value that you set for `EvaluationPeriods` is the N value. For more information, see Evaluating an Alarm in the User Guide. If you omit this parameter, CW uses the same value here that you set for `EvaluationPeriods`, and the alarm goes to alarm state if that many consecutive periods are breaching.

Link copied to clipboard
val dimensions: Output<List<DimensionArgs>>? = null

The dimensions for the metric associated with the alarm. For an alarm based on a math expression, you can't specify `Dimensions`. Instead, you use `Metrics`.

Link copied to clipboard

Used only for alarms based on percentiles. If `ignore`, the alarm state does not change during periods with too few data points to be statistically significant. If `evaluate` or this parameter is not used, the alarm is always evaluated and possibly changes state no matter how many data points are available.

Link copied to clipboard
val evaluationPeriods: Output<Int>? = null

The number of periods over which data is compared to the specified threshold. If you are setting an alarm that requires that a number of consecutive data points be breaching to trigger the alarm, this value specifies that number. If you are setting an 'M out of N' alarm, this value is the N, and `DatapointsToAlarm` is the M. For more information, see Evaluating an Alarm in the User Guide.

Link copied to clipboard
val extendedStatistic: Output<String>? = null

The percentile statistic for the metric associated with the alarm. Specify a value between p0.0 and p100. For an alarm based on a metric, you must specify either `Statistic` or `ExtendedStatistic` but not both. For an alarm based on a math expression, you can't specify `ExtendedStatistic`. Instead, you use `Metrics`.

Link copied to clipboard
val insufficientDataActions: Output<List<String>>? = null

The actions to execute when this alarm transitions to the `INSUFFICIENT_DATA` state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Link copied to clipboard
val metricName: Output<String>? = null

The name of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you use `Metrics` instead and you can't specify `MetricName`.

Link copied to clipboard
val metrics: Output<List<MetricDataQueryArgs>>? = null

An array that enables you to create an alarm based on the result of a metric math expression. Each item in the array either retrieves a metric or performs a math expression. If you specify the `Metrics` parameter, you cannot specify `MetricName`, `Dimensions`, `Period`, `Namespace`, `Statistic`, `ExtendedStatistic`, or `Unit`.

Link copied to clipboard
val namespace: Output<String>? = null

The namespace of the metric associated with the alarm. This is required for an alarm based on a metric. For an alarm based on a math expression, you can't specify `Namespace` and you use `Metrics` instead. For a list of namespaces for metrics from AWS services, see Services That Publish Metrics.

Link copied to clipboard
val okActions: Output<List<String>>? = null

The actions to execute when this alarm transitions to the `OK` state from any other state. Each action is specified as an Amazon Resource Name (ARN).

Link copied to clipboard
val period: Output<Int>? = null

The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60. For an alarm based on a math expression, you can't specify `Period`, and instead you use the `Metrics` parameter. Minimum: 10

Link copied to clipboard
val statistic: Output<String>? = null

The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use `ExtendedStatistic`. For an alarm based on a metric, you must specify either `Statistic` or `ExtendedStatistic` but not both. For an alarm based on a math expression, you can't specify `Statistic`. Instead, you use `Metrics`.

Link copied to clipboard
val tags: Output<List<TagArgs>>? = null

Property tags

Link copied to clipboard
val threshold: Output<Double>? = null

The value to compare with the specified statistic.

Link copied to clipboard
val thresholdMetricId: Output<String>? = null

In an alarm based on an anomaly detection model, this is the ID of the `ANOMALY_DETECTION_BAND` function used as the threshold for the alarm.

Link copied to clipboard
val treatMissingData: Output<String>? = null

Sets how this alarm is to handle missing data points. Valid values are `breaching`, `notBreaching`, `ignore`, and `missing`. For more information, see Configuring How Alarms Treat Missing Data in the Amazon User Guide. If you omit this parameter, the default behavior of `missing` is used.

Link copied to clipboard
val unit: Output<String>? = null

The unit of the metric associated with the alarm. Specify this only if you are creating an alarm based on a single metric. Do not specify this if you are specifying a `Metrics` array. You can specify the following values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, or None.

Functions

Link copied to clipboard
open override fun toJava(): AwsCloudWatchAlarmPropertiesArgs