Skip to main content

schedules

Creates, updates, deletes or gets a schedule resource or lists schedules in a region

Overview

Nameschedules
TypeResource
DescriptionResource schema for AWS::DataBrew::Schedule.
Idaws.databrew.schedules

Fields

NameDatatypeDescription
job_namesarray
cron_expressionstringSchedule cron
namestringSchedule Name
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, CronExpression, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all schedules in a region.

SELECT
region,
job_names,
cron_expression,
name,
tags
FROM aws.databrew.schedules
WHERE region = 'us-east-1';

Gets all properties from an individual schedule.

SELECT
region,
job_names,
cron_expression,
name,
tags
FROM aws.databrew.schedules
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

Use the following StackQL query and manifest file to create a new schedule resource, using stack-deploy.

/*+ create */
INSERT INTO aws.databrew.schedules (
CronExpression,
Name,
region
)
SELECT
'{{ CronExpression }}',
'{{ Name }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.databrew.schedules
WHERE data__Identifier = '<Name>'
AND region = 'us-east-1';

Permissions

To operate on the schedules resource, the following permissions are required:

Create

databrew:CreateSchedule,
databrew:TagResource,
databrew:UntagResource,
iam:PassRole

Read

databrew:DescribeSchedule,
databrew:ListTagsForResource,
iam:ListRoles

Update

databrew:UpdateSchedule

Delete

databrew:DeleteSchedule

List

databrew:ListSchedules,
databrew:ListTagsForResource,
iam:ListRoles