Interface CfnAlarmMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAlarmMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:01.065Z")
@Stability(Stable)
public interface CfnAlarmMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnAlarmPropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.lightsail.*;
CfnAlarmMixinProps cfnAlarmMixinProps = CfnAlarmMixinProps.builder()
.alarmName("alarmName")
.comparisonOperator("comparisonOperator")
.contactProtocols(List.of("contactProtocols"))
.datapointsToAlarm(123)
.evaluationPeriods(123)
.metricName("metricName")
.monitoredResourceName("monitoredResourceName")
.notificationEnabled(false)
.notificationTriggers(List.of("notificationTriggers"))
.threshold(123)
.treatMissingData("treatMissingData")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAlarmMixinPropsstatic final classAn implementation forCfnAlarmMixinProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAlarmMixinProps.Builderbuilder()default StringThe name of the alarm.default StringThe arithmetic operation to use when comparing the specified statistic and threshold.The contact protocols for the alarm, such asEmail,SMS(text messaging), or both.default NumberThe number of data points within the evaluation periods that must be breaching to cause the alarm to go to theALARMstate.default NumberThe number of periods over which data is compared to the specified threshold.default StringThe name of the metric associated with the alarm.default StringThe name of the Lightsail resource that the alarm monitors.default ObjectA Boolean value indicating whether the alarm is enabled.The alarm states that trigger a notification.default NumberThe value against which the specified statistic is compared.default StringSpecifies how the alarm handles missing data points.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAlarmName
The name of the alarm.- See Also:
-
getComparisonOperator
The arithmetic operation to use when comparing the specified statistic and threshold.- See Also:
-
getContactProtocols
The contact protocols for the alarm, such asEmail,SMS(text messaging), or both.Allowed Values :
Email|SMS- See Also:
-
getDatapointsToAlarm
The number of data points within the evaluation periods that must be breaching to cause the alarm to go to theALARMstate.- See Also:
-
getEvaluationPeriods
The number of periods over which data is compared to the specified threshold.- See Also:
-
getMetricName
The name of the metric associated with the alarm.- See Also:
-
getMonitoredResourceName
The name of the Lightsail resource that the alarm monitors.- See Also:
-
getNotificationEnabled
A Boolean value indicating whether the alarm is enabled.Returns union: either
BooleanorIResolvable- See Also:
-
getNotificationTriggers
The alarm states that trigger a notification.To specify the
OKandINSUFFICIENT_DATAvalues, you must also specifyContactProtocolsvalues. Otherwise, theOKandINSUFFICIENT_DATAvalues will not take effect and the stack will drift.Allowed Values :
OK|ALARM|INSUFFICIENT_DATA- See Also:
-
getThreshold
The value against which the specified statistic is compared.- See Also:
-
getTreatMissingData
Specifies how the alarm handles missing data points.An alarm can treat missing data in the following ways:
breaching- Assumes the missing data is not within the threshold. Missing data counts towards the number of times that the metric is not within the threshold.notBreaching- Assumes the missing data is within the threshold. Missing data does not count towards the number of times that the metric is not within the threshold.ignore- Ignores the missing data. Maintains the current alarm state.missing- Missing data is treated as missing.
- See Also:
-
builder
- Returns:
- a
CfnAlarmMixinProps.BuilderofCfnAlarmMixinProps
-