Skip to content
v2.278.0

ScheduleProperty Struct ​

A scheduling object using a cron statement to schedule an event.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const scheduleProperty: glue.CfnCrawler.ScheduleProperty = {
  scheduleExpression: 'scheduleExpression',
};
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_glue as glue

schedule_property = glue.CfnCrawler.ScheduleProperty(
    schedule_expression="scheduleExpression"
)
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.glue.*;

ScheduleProperty scheduleProperty = ScheduleProperty.builder()
        .scheduleExpression("scheduleExpression")
        .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.Glue;

var scheduleProperty = new ScheduleProperty {
    ScheduleExpression = "scheduleExpression"
};
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{
	ScheduleExpression: jsii.String("scheduleExpression"),
}

Properties ​

scheduleExpressionoptionalstringschedule_expressionoptionalstrscheduleExpressionoptionalStringScheduleExpressionoptionalstringScheduleExpressionoptional*string #
A `cron` expression used to specify the schedule.

For more information, see Time-Based Schedules for Jobs and Crawlers . For example, to run something every day at 12:15 UTC, specify cron(15 12 * * ? *) .