Class CfnAlarmMuteRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.cloudwatch.CfnAlarmMuteRule
- All Implemented Interfaces:
IInspectable,IAlarmMuteRuleRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-02T12:05:05.130Z")
@Stability(Stable)
public class CfnAlarmMuteRule
extends CfnResource
implements IInspectable, IAlarmMuteRuleRef, ITaggableV2
Resource Type definition for AWS::CloudWatch::AlarmMuteRule that allows defining a rule and targeting alarms to mute their actions during the specified window.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudwatch.*;
CfnAlarmMuteRule cfnAlarmMuteRule = CfnAlarmMuteRule.Builder.create(this, "MyCfnAlarmMuteRule")
.rule(RuleProperty.builder()
.schedule(ScheduleProperty.builder()
.duration("duration")
.expression("expression")
// the properties below are optional
.timezone("timezone")
.build())
.build())
// the properties below are optional
.description("description")
.expireDate("expireDate")
.muteTargets(MuteTargetsProperty.builder()
.alarmNames(List.of("alarmNames"))
.build())
.name("name")
.startDate("startDate")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnAlarmMuteRule.static interfaceTargets to be muted.static interfaceThe rule for the mute.static interfaceSchedule for the mute to be active.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.cloudwatch.IAlarmMuteRuleRef
IAlarmMuteRuleRef.Jsii$Default, IAlarmMuteRuleRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAlarmMuteRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAlarmMuteRule(software.amazon.jsii.JsiiObjectRef objRef) CfnAlarmMuteRule(software.constructs.Construct scope, String id, CfnAlarmMuteRuleProps props) Create a newAWS::CloudWatch::AlarmMuteRule. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForAlarmMuteRule(IAlarmMuteRuleRef resource) A reference to a AlarmMuteRule resource.Amazon Resource Name (ARN) of the AlarmMuteRule.The last update timestamp of the alarm mute schedule.The mute type of the alarm mute.The current status of the AlarmMuteRule.Tag Manager which manages the tags for this resource.The description of the AlarmMuteRule.The date, with the same timezone offset as "ScheduleTimezone" after which the alarm mute rule will be expired.Targets to be muted.getName()The name of the AlarmMuteRule.getRule()The rule for the mute.The date, with the same timezone offset as "ScheduleTimezone", after which the alarm mute rule will become active.getTags()An array of key-value pairs to apply to this resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAlarmMuteRule.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the AlarmMuteRule.voidsetExpireDate(String value) The date, with the same timezone offset as "ScheduleTimezone" after which the alarm mute rule will be expired.voidsetMuteTargets(IResolvable value) Targets to be muted.voidTargets to be muted.voidThe name of the AlarmMuteRule.voidsetRule(IResolvable value) The rule for the mute.voidThe rule for the mute.voidsetStartDate(String value) The date, with the same timezone offset as "ScheduleTimezone", after which the alarm mute rule will become active.voidAn array of key-value pairs to apply to this resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAlarmMuteRule
protected CfnAlarmMuteRule(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAlarmMuteRule
protected CfnAlarmMuteRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAlarmMuteRule
@Stability(Stable) public CfnAlarmMuteRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAlarmMuteRuleProps props) Create a newAWS::CloudWatch::AlarmMuteRule.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForAlarmMuteRule
@Stability(Stable) @NotNull public static String arnForAlarmMuteRule(@NotNull IAlarmMuteRuleRef resource) - Parameters:
resource- This parameter is required.
-
isCfnAlarmMuteRule
Checks whether the given object is a CfnAlarmMuteRule.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAlarmMuteRuleRef
A reference to a AlarmMuteRule resource.- Specified by:
getAlarmMuteRuleRefin interfaceIAlarmMuteRuleRef
-
getAttrArn
Amazon Resource Name (ARN) of the AlarmMuteRule. -
getAttrLastUpdatedTimestamp
The last update timestamp of the alarm mute schedule. -
getAttrMuteType
The mute type of the alarm mute. -
getAttrStatus
The current status of the AlarmMuteRule. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getRule
The rule for the mute.Returns union: either
IResolvableorCfnAlarmMuteRule.RuleProperty -
setRule
The rule for the mute. -
setRule
The rule for the mute. -
getDescription
The description of the AlarmMuteRule. -
setDescription
The description of the AlarmMuteRule. -
getExpireDate
The date, with the same timezone offset as "ScheduleTimezone" after which the alarm mute rule will be expired. -
setExpireDate
The date, with the same timezone offset as "ScheduleTimezone" after which the alarm mute rule will be expired. -
getMuteTargets
Targets to be muted.Returns union: either
IResolvableorCfnAlarmMuteRule.MuteTargetsProperty -
setMuteTargets
Targets to be muted. -
setMuteTargets
Targets to be muted. -
getName
The name of the AlarmMuteRule. -
setName
The name of the AlarmMuteRule. -
getStartDate
The date, with the same timezone offset as "ScheduleTimezone", after which the alarm mute rule will become active. -
setStartDate
The date, with the same timezone offset as "ScheduleTimezone", after which the alarm mute rule will become active. -
getTags
An array of key-value pairs to apply to this resource. -
setTags
An array of key-value pairs to apply to this resource.
-