This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::DataBrew::Schedule
Specifies a new schedule for one or more AWS Glue DataBrew jobs. Jobs can be run at a specific date and time, or at regular intervals.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::DataBrew::Schedule", "Properties" : { "CronExpression" :String, "JobNames" :[ String, ... ], "Name" :String, "Tags" :[ Tag, ... ]} }
YAML
Type: AWS::DataBrew::Schedule Properties: CronExpression:StringJobNames:- StringName:StringTags:- Tag
Properties
CronExpression-
The dates and times when the job is to run. For more information, see Working with cron expressions for recipe jobs in the AWS Glue DataBrew Developer Guide.
Required: Yes
Type: String
Minimum:
1Maximum:
512Update requires: No interruption
JobNames-
A list of jobs to be run, according to the schedule.
Required: No
Type: Array of String
Maximum:
50Update requires: No interruption
Name-
The name of the schedule.
Required: Yes
Type: String
Minimum:
1Maximum:
255Update requires: Replacement
-
Metadata tags that have been applied to the schedule.
Required: No
Type: Array of Tag
Update requires: No interruption
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref
function, Ref returns the resource name. For example:
{ "Ref": "mySchedule" }
For an AWS Glue DataBrew schedule named mySchedule,
Ref returns the name of the schedule.
Examples
Creating schedules
The following examples create new DataBrew schedules.
YAML
Resources: TestDataBrewSchedule: Type: AWS::DataBrew::Schedule Properties: JobNames: ["job-name"] Name: schedule-name CronExpression: "cron(0 0/1 ? * * *)" Tags: [{Key: key00AtCreate, Value: value001AtCreate}]
JSON
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "This CloudFormation template specifies a DataBrew Schedule", "Resources": { "MyDataBrewSchedule": { "Type": "AWS::DataBrew::Schedule", "Properties": { "JobNames": ["job-test"], "Name": "cf-test-schedule1", "CronExpression": "cron(0 0/1 ? * * *)" }, "Tags": [ { "Key": "key00AtCreate", "Value": "value001AtCreate" } ] } } }