Skip to main content

projects

Creates, updates, deletes, gets or lists a projects resource.

Overview

Nameprojects
TypeResource
Idaws.databrew.projects

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
create_datestring (date-time)The date and time that the project was created.
created_bystringThe identifier (user name) of the user who created the project.
dataset_namestringThe dataset associated with the project.
last_modified_bystringThe identifier (user name) of the user who last modified the project.
last_modified_datestring (date-time)The date and time that the project was last modified.
namestringThe name of the project.
open_datestring (date-time)The date and time when the project was opened.
opened_bystringThe identifier (user name) of the user that opened the project for use.
recipe_namestringThe recipe associated with this job.
resource_arnstringThe Amazon Resource Name (ARN) of the project.
role_arnstringThe ARN of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
sampleobjectRepresents the sample size and sampling type for DataBrew to use for interactive data analysis.
session_statusstringDescribes the current state of the session: PROVISIONING - allocating resources for the session. INITIALIZING - getting the session ready for first use. ASSIGNED - the session is ready for use. (ASSIGNED, FAILED, INITIALIZING, PROVISIONING, READY, RECYCLING, ROTATING, TERMINATED, TERMINATING, UPDATING)
tagsobjectMetadata tags associated with this project.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_projectselectname, regionReturns the definition of a specific DataBrew project.
list_projectsselectregionnextToken, maxResultsLists all of the DataBrew projects that are defined.
create_projectinsertregion, DatasetName, RecipeName, RoleArnCreates a new DataBrew project.
update_projectupdatename, region, RoleArnModifies the definition of an existing DataBrew project.
delete_projectdeletename, regionDeletes an existing DataBrew project.
send_project_session_actionexecname, regionPerforms a recipe step within an interactive DataBrew session that's currently open.
start_project_sessionexecname, regionCreates an interactive session, enabling you to manipulate data in a DataBrew project.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
namestringThe name of the project to act upon.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in this request.
nextTokenstringThe token returned by a previous call to retrieve the next set of results.

SELECT examples

Returns the definition of a specific DataBrew project.

SELECT
create_date,
created_by,
dataset_name,
last_modified_by,
last_modified_date,
name,
open_date,
opened_by,
recipe_name,
resource_arn,
role_arn,
sample,
session_status,
tags
FROM aws.databrew.projects
WHERE name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new DataBrew project.

INSERT INTO aws.databrew.projects (
DatasetName,
Name,
RecipeName,
Sample,
RoleArn,
Tags,
region
)
SELECT
'{{ DatasetName }}' /* required */,
'{{ Name }}',
'{{ RecipeName }}' /* required */,
'{{ Sample }}',
'{{ RoleArn }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
name
;

UPDATE examples

Modifies the definition of an existing DataBrew project.

UPDATE aws.databrew.projects
SET
Sample = '{{ Sample }}',
RoleArn = '{{ RoleArn }}'
WHERE
name = '{{ name }}' --required
AND region = '{{ region }}' --required
AND RoleArn = '{{ RoleArn }}' --required
RETURNING
last_modified_date,
name;

DELETE examples

Deletes an existing DataBrew project.

DELETE FROM aws.databrew.projects
WHERE name = '{{ name }}' --required
AND region = '{{ region }}' --required
;

Lifecycle Methods

Performs a recipe step within an interactive DataBrew session that's currently open.

EXEC aws.databrew.projects.send_project_session_action
@name='{{ name }}' --required,
@region='{{ region }}' --required
@@json=
'{
"Preview": {{ Preview }},
"RecipeStep": "{{ RecipeStep }}",
"StepIndex": {{ StepIndex }},
"ClientSessionId": "{{ ClientSessionId }}",
"ViewFrame": "{{ ViewFrame }}"
}'
;