Skip to main content

schedules

Creates, updates, deletes, gets or lists a schedules resource.

Overview

Nameschedules
TypeResource
Idaws.databrew.schedules

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
create_datestring (date-time)The date and time that the schedule was created.
created_bystringThe identifier (user name) of the user who created the schedule.
cron_expressionstringThe date or dates and time or times when the jobs are to be run for the schedule. For more information, see Cron expressions in the Glue DataBrew Developer Guide.
job_namesarrayThe name or names of one or more jobs to be run by using the schedule.
last_modified_bystringThe identifier (user name) of the user who last modified the schedule.
last_modified_datestring (date-time)The date and time that the schedule was last modified.
namestringThe name of the schedule.
resource_arnstringThe Amazon Resource Name (ARN) of the schedule.
tagsobjectMetadata tags associated with this schedule.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_scheduleselectname, regionReturns the definition of a specific DataBrew schedule.
list_schedulesselectregionjobName, maxResults, nextTokenLists the DataBrew schedules that are defined.
create_scheduleinsertregion, CronExpressionCreates a new schedule for one or more DataBrew jobs. Jobs can be run at a specific date and time, or at regular intervals.
update_scheduleupdatename, region, CronExpressionModifies the definition of an existing DataBrew schedule.
delete_scheduledeletename, regionDeletes the specified DataBrew schedule.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
namestringThe name of the schedule to be deleted.
regionstringAWS region (default: us-east-1)
jobNamestringThe name of the job that these schedules apply to.
maxResultsintegerThe maximum number of results to return in this request.
nextTokenstringThe token returned by a previous call to retrieve the next set of results.

SELECT examples

Returns the definition of a specific DataBrew schedule.

SELECT
create_date,
created_by,
cron_expression,
job_names,
last_modified_by,
last_modified_date,
name,
resource_arn,
tags
FROM aws.databrew.schedules
WHERE name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

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

INSERT INTO aws.databrew.schedules (
JobNames,
CronExpression,
Tags,
Name,
region
)
SELECT
'{{ JobNames }}',
'{{ CronExpression }}' /* required */,
'{{ Tags }}',
'{{ Name }}',
'{{ region }}'
RETURNING
name
;

UPDATE examples

Modifies the definition of an existing DataBrew schedule.

UPDATE aws.databrew.schedules
SET
JobNames = '{{ JobNames }}',
CronExpression = '{{ CronExpression }}'
WHERE
name = '{{ name }}' --required
AND region = '{{ region }}' --required
AND CronExpression = '{{ CronExpression }}' --required
RETURNING
name;

DELETE examples

Deletes the specified DataBrew schedule.

DELETE FROM aws.databrew.schedules
WHERE name = '{{ name }}' --required
AND region = '{{ region }}' --required
;