Interface AlarmMuteRuleOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
AlarmMuteRuleProps
- All Known Implementing Classes:
AlarmMuteRuleOptions.Jsii$Proxy,AlarmMuteRuleProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.cloudwatch.*;
ScheduleExpression scheduleExpression;
AlarmMuteRuleOptions alarmMuteRuleOptions = AlarmMuteRuleOptions.builder()
.duration(Duration.minutes(30))
.schedule(scheduleExpression)
// the properties below are optional
.alarmMuteRuleName("alarmMuteRuleName")
.description("description")
.expire(CalendarDateTime.builder()
.day(123)
.hour(123)
.minute(123)
.month(123)
.year(123)
.build())
.start(CalendarDateTime.builder()
.day(123)
.hour(123)
.minute(123)
.month(123)
.year(123)
.build())
.tags(Map.of(
"tagsKey", "tags"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forAlarmMuteRuleOptionsstatic final classAn implementation forAlarmMuteRuleOptions -
Method Summary
Modifier and TypeMethodDescriptionstatic AlarmMuteRuleOptions.Builderbuilder()default StringThe name of the alarm mute rule.default StringA description of the alarm mute rule that helps you identify its purpose.The length of time that alarms remain muted when the schedule activates.default CalendarDateTimeThe date and time when the mute rule expires and is no longer evaluated.The schedule defines when alarms should be muted.default CalendarDateTimegetStart()The date and time after which the mute rule takes effect.getTags()A list of tags associated with the alarm mute rule.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDuration
The length of time that alarms remain muted when the schedule activates.Minimum: 1 minute, Maximum: 15 days
-
getSchedule
The schedule defines when alarms should be muted. -
getAlarmMuteRuleName
The name of the alarm mute rule.This name must be unique within your AWS account and region.
Default: - generated by CloudFormation
-
getDescription
A description of the alarm mute rule that helps you identify its purpose.Default: - no description
-
getExpire
The date and time when the mute rule expires and is no longer evaluated.After this time, the rule status becomes EXPIRED and will no longer mute the targeted alarms.
This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.
Default: - no configuration
-
getStart
The date and time after which the mute rule takes effect.If not specified, the mute rule takes effect immediately upon creation and the mutes are applied as per the schedule expression.
This date and time is interpreted according to the schedule timezone, or UTC if no timezone is specified.
Default: - no configuration
-
getTags
A list of tags associated with the alarm mute rule.Tags help you organize and categorize your AWS resources.
Default: - No tags are applied
-
builder
- Returns:
- a
AlarmMuteRuleOptions.BuilderofAlarmMuteRuleOptions
-