Class AlarmMuteRule.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlarmMuteRule>
- Enclosing class:
AlarmMuteRule
AlarmMuteRule.-
Method Summary
Modifier and TypeMethodDescriptionalarmMuteRuleName(String alarmMuteRuleName) The name of the alarm mute rule.The list of alarms that this mute rule targets.build()static AlarmMuteRule.Builderdescription(String description) A description of the alarm mute rule that helps you identify its purpose.The length of time that alarms remain muted when the schedule activates.expire(CalendarDateTime expire) The date and time when the mute rule expires and is no longer evaluated.schedule(ScheduleExpression schedule) The schedule defines when alarms should be muted.start(CalendarDateTime start) The date and time after which the mute rule takes effect.A list of tags associated with the alarm mute rule.
-
Method Details
-
create
@Stability(Stable) public static AlarmMuteRule.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
AlarmMuteRule.Builder.
-
duration
The length of time that alarms remain muted when the schedule activates.Minimum: 1 minute, Maximum: 15 days
- Parameters:
duration- The length of time that alarms remain muted when the schedule activates. This parameter is required.- Returns:
this
-
schedule
The schedule defines when alarms should be muted.- Parameters:
schedule- The schedule defines when alarms should be muted. This parameter is required.- Returns:
this
-
alarmMuteRuleName
The name of the alarm mute rule.This name must be unique within your AWS account and region.
Default: - generated by CloudFormation
- Parameters:
alarmMuteRuleName- The name of the alarm mute rule. This parameter is required.- Returns:
this
-
description
A description of the alarm mute rule that helps you identify its purpose.Default: - no description
- Parameters:
description- A description of the alarm mute rule that helps you identify its purpose. This parameter is required.- Returns:
this
-
expire
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
- Parameters:
expire- The date and time when the mute rule expires and is no longer evaluated. This parameter is required.- Returns:
this
-
start
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
- Parameters:
start- The date and time after which the mute rule takes effect. This parameter is required.- Returns:
this
-
tags
A list of tags associated with the alarm mute rule.Tags help you organize and categorize your AWS resources.
Default: - No tags are applied
- Parameters:
tags- A list of tags associated with the alarm mute rule. This parameter is required.- Returns:
this
-
alarms
The list of alarms that this mute rule targets.You can specify up to 100 alarms.
Default: - no target alarms
- Parameters:
alarms- The list of alarms that this mute rule targets. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AlarmMuteRule>- Returns:
- a newly built instance of
AlarmMuteRule.
-