ScheduleConfigurationProperty Struct
The schedule configuration for the scheduled query.
| 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 scheduleConfigurationProperty: cloudwatch.CfnLogAlarm.ScheduleConfigurationProperty = {
scheduleExpression: 'scheduleExpression',
startTimeOffset: 123,
// the properties below are optional
endTimeOffset: 123,
};
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_configuration_property = cloudwatch.CfnLogAlarm.ScheduleConfigurationProperty(
schedule_expression="scheduleExpression",
start_time_offset=123,
# the properties below are optional
end_time_offset=123
)
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.*;
ScheduleConfigurationProperty scheduleConfigurationProperty = ScheduleConfigurationProperty.builder()
.scheduleExpression("scheduleExpression")
.startTimeOffset(123)
// the properties below are optional
.endTimeOffset(123)
.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 scheduleConfigurationProperty = new ScheduleConfigurationProperty {
ScheduleExpression = "scheduleExpression",
StartTimeOffset = 123,
// the properties below are optional
EndTimeOffset = 123
};
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"
scheduleConfigurationProperty := &ScheduleConfigurationProperty{
ScheduleExpression: jsii.String("scheduleExpression"),
StartTimeOffset: jsii.Number(123),
// the properties below are optional
EndTimeOffset: jsii.Number(123),
}
Properties
endTimeOffsetoptionalnumberend_time_offsetoptionalint | floatendTimeOffsetoptionalNumberEndTimeOffsetoptionaldoubleEndTimeOffsetoptional*float64 #The number of seconds into the past to end the query window.
Must be a non-negative value and cannot exceed 2592000 seconds (30 days).
scheduleExpressionstringschedule_expressionstrscheduleExpressionStringScheduleExpressionstringScheduleExpression*string required #The expression that defines when the scheduled query runs, e.g. rate(1 minute).
startTimeOffsetnumberstart_time_offsetint | floatstartTimeOffsetNumberStartTimeOffsetdoubleStartTimeOffset*float64 required #The number of seconds into the past to start the query window.
Must be a positive value and cannot exceed 2592000 seconds (30 days).