Skip to main content

projects

Creates, updates, deletes or gets a project resource or lists projects in a region

Overview

Nameprojects
TypeResource
DescriptionResource schema for AWS::DataBrew::Project.
Idaws.databrew.projects

Fields

NameDatatypeDescription
dataset_namestringDataset name
namestringProject name
recipe_namestringRecipe name
role_arnstringRole arn
sampleobjectSample
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTDatasetName, Name, RecipeName, RoleArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all projects in a region.

SELECT
region,
dataset_name,
name,
recipe_name,
role_arn,
sample,
tags
FROM aws.databrew.projects
WHERE region = 'us-east-1';

Gets all properties from an individual project.

SELECT
region,
dataset_name,
name,
recipe_name,
role_arn,
sample,
tags
FROM aws.databrew.projects
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

databrew:CreateProject,
databrew:TagResource,
databrew:UntagResource,
iam:PassRole

Read

databrew:DescribeProject,
databrew:ListTagsForResource,
iam:ListRoles

Update

databrew:UpdateProject,
iam:PassRole

Delete

databrew:DeleteProject

List

databrew:ListProjects,
databrew:ListTagsForResource,
iam:ListRoles