AWS::DataBrew::Schedule - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::DataBrew::Schedule

Specifies a new schedule for one or more Amazon Glue DataBrew jobs. Jobs can be run at a specific date and time, or at regular intervals.

Syntax

To declare this entity in your Amazon 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: String JobNames: - String Name: String Tags: - 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 Amazon Glue DataBrew Developer Guide.

Required: Yes

Type: String

Minimum: 1

Maximum: 512

Update requires: No interruption

JobNames

A list of jobs to be run, according to the schedule.

Required: No

Type: Array of String

Maximum: 50

Update requires: No interruption

Name

The name of the schedule.

Required: Yes

Type: String

Minimum: 1

Maximum: 255

Update requires: Replacement

Tags

Metadata tags that have been applied to the schedule.

Required: No

Type: Array of Tag

Update requires: Replacement

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 Amazon 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" } ] } } }