Skip to main content

jobs

Creates, updates, deletes or gets a job resource or lists jobs in a region

Overview

Namejobs
TypeResource
DescriptionResource schema for AWS::DataBrew::Job.
Idaws.databrew.jobs

Fields

NameDatatypeDescription
dataset_namestringDataset name
encryption_key_arnstringEncryption Key Arn
encryption_modestringEncryption mode
namestringJob name
typestringJob type
log_subscriptionstringLog subscription
max_capacityintegerMax capacity
max_retriesintegerMax retries
outputsarray
data_catalog_outputsarray
database_outputsarray
output_locationobjectOutput location
project_namestringProject name
recipeobjectResource schema for AWS::DataBrew::Recipe.
role_arnstringRole arn
tagsarray
timeoutintegerTimeout
job_sampleobjectJob Sample
profile_configurationobjectProfile Job configuration
validation_configurationsarrayData quality rules configuration
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, RoleArn, Type, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all jobs in a region.

SELECT
region,
dataset_name,
encryption_key_arn,
encryption_mode,
name,
type,
log_subscription,
max_capacity,
max_retries,
outputs,
data_catalog_outputs,
database_outputs,
output_location,
project_name,
recipe,
role_arn,
tags,
timeout,
job_sample,
profile_configuration,
validation_configurations
FROM aws.databrew.jobs
WHERE region = 'us-east-1';

Gets all properties from an individual job.

SELECT
region,
dataset_name,
encryption_key_arn,
encryption_mode,
name,
type,
log_subscription,
max_capacity,
max_retries,
outputs,
data_catalog_outputs,
database_outputs,
output_location,
project_name,
recipe,
role_arn,
tags,
timeout,
job_sample,
profile_configuration,
validation_configurations
FROM aws.databrew.jobs
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.databrew.jobs (
Name,
Type,
RoleArn,
region
)
SELECT
'{{ Name }}',
'{{ Type }}',
'{{ RoleArn }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

databrew:CreateProfileJob,
databrew:CreateRecipeJob,
databrew:TagResource,
databrew:UntagResource,
iam:PassRole

Read

databrew:DescribeJob,
databrew:ListTagsForResource,
iam:ListRoles

Update

databrew:UpdateProfileJob,
databrew:UpdateRecipeJob,
iam:PassRole

Delete

databrew:DeleteJob

List

databrew:ListJobs,
databrew:ListTagsForResource,
iam:ListRoles