Skip to main content

datasets

Creates, updates, deletes or gets a dataset resource or lists datasets in a region

Overview

Namedatasets
TypeResource
DescriptionResource schema for AWS::DataBrew::Dataset.
Idaws.databrew.datasets

Fields

NameDatatypeDescription
namestringDataset name
formatstringDataset format
format_optionsobjectFormat options for dataset
inputobjectInput
path_optionsobjectPathOptions
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, Input, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all datasets in a region.

SELECT
region,
name,
format,
format_options,
input,
path_options,
tags
FROM aws.databrew.datasets
WHERE region = 'us-east-1';

Gets all properties from an individual dataset.

SELECT
region,
name,
format,
format_options,
input,
path_options,
tags
FROM aws.databrew.datasets
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.databrew.datasets (
Name,
Input,
region
)
SELECT
'{{ Name }}',
'{{ Input }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

databrew:CreateDataset,
databrew:TagResource,
databrew:UntagResource,
glue:GetConnection,
glue:GetTable,
iam:PassRole

Read

databrew:DescribeDataset,
databrew:ListTagsForResource,
iam:ListRoles

Update

databrew:UpdateDataset,
glue:GetConnection,
glue:GetTable

Delete

databrew:DeleteDataset

List

databrew:ListDatasets,
databrew:ListTagsForResource,
iam:ListRoles