Skip to content
v2.278.0

ScheduleProperty ​

Struct External

Schedule for the mute to be active.

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 scheduleProperty: cloudwatch.CfnAlarmMuteRule.ScheduleProperty = {
  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

schedule_property = 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.*;

ScheduleProperty scheduleProperty = ScheduleProperty.builder()
        .duration("duration")
        .expression("expression")

        // the properties below are optional
        .timezone("timezone")
        .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 scheduleProperty = 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"

scheduleProperty := &ScheduleProperty{
	Duration: jsii.String("duration"),
	Expression: jsii.String("expression"),

	// the properties below are optional
	Timezone: jsii.String("timezone"),
}

Properties ​

durationstringdurationstrdurationStringDurationstringDuration*string required #
The duration of the schedule when it triggers.
expressionstringexpressionstrexpressionStringExpressionstringExpression*string required #
The expression of the schedule.
timezoneoptionalstringtimezoneoptionalstrtimezoneoptionalStringTimezoneoptionalstringTimezoneoptional*string #
The timezone of the schedule.