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.
Idawscc.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.

For more information, see AWS::DataBrew::Job.

Methods

NameResourceAccessible byRequired Params
create_resourcejobsINSERTName, RoleArn, Type, region
delete_resourcejobsDELETEIdentifier, region
update_resourcejobsUPDATEIdentifier, PatchDocument, region
list_resourcesjobs_list_onlySELECTregion
get_resourcejobsSELECTIdentifier, region

SELECT examples

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 awscc.databrew.jobs
WHERE
region = 'us-east-1' AND
Identifier = '{{ name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.databrew.jobs
SET PatchDocument = string('{{ {
"DatasetName": dataset_name,
"EncryptionKeyArn": encryption_key_arn,
"EncryptionMode": encryption_mode,
"LogSubscription": log_subscription,
"MaxCapacity": max_capacity,
"MaxRetries": max_retries,
"Outputs": outputs,
"DataCatalogOutputs": data_catalog_outputs,
"DatabaseOutputs": database_outputs,
"OutputLocation": output_location,
"ProjectName": project_name,
"Recipe": recipe,
"RoleArn": role_arn,
"Tags": tags,
"Timeout": timeout,
"JobSample": job_sample,
"ProfileConfiguration": profile_configuration,
"ValidationConfigurations": validation_configurations
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.databrew.jobs
WHERE
Identifier = '{{ name }}' AND
region = 'us-east-1';

Permissions

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

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