RuleProperty Struct
The rule for the mute.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const ruleProperty: cloudwatch.CfnAlarmMuteRule.RuleProperty = {
schedule: {
duration: 'duration',
expression: 'expression',
// the properties below are optional
timezone: 'timezone',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudwatch as cloudwatch
rule_property = cloudwatch.CfnAlarmMuteRule.RuleProperty(
schedule=cloudwatch.CfnAlarmMuteRule.ScheduleProperty(
duration="duration",
expression="expression",
# the properties below are optional
timezone="timezone"
)
)
java
// 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.*;
RuleProperty ruleProperty = RuleProperty.builder()
.schedule(ScheduleProperty.builder()
.duration("duration")
.expression("expression")
// the properties below are optional
.timezone("timezone")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudWatch;
var ruleProperty = new RuleProperty {
Schedule = new ScheduleProperty {
Duration = "duration",
Expression = "expression",
// the properties below are optional
Timezone = "timezone"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
ruleProperty := &RuleProperty{
Schedule: &ScheduleProperty{
Duration: jsii.String("duration"),
Expression: jsii.String("expression"),
// the properties below are optional
Timezone: jsii.String("timezone"),
},
}
Properties
scheduleIResolvable | CfnAlarmMuteRule.scheduletyping.Union[IResolvable, ScheduleProperty]scheduleIResolvableScheduleIResolvableScheduleinterface{} required #Schedule for the mute to be active.