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
â–¶recipeobject
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 = '{{ region }}' 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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example​

/*+ delete */
DELETE FROM awscc.databrew.jobs
WHERE
Identifier = '{{ name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters​

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions​

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

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