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

Fields

NameDatatypeDescription
namestringDataset name
formatstringDataset format
format_optionsobjectFormat options for dataset
inputobjectInput
sourcestringSource type of the dataset
path_optionsobjectPathOptions
tagsarray
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcedatasetsINSERTName, Input, region
delete_resourcedatasetsDELETEIdentifier, region
update_resourcedatasetsUPDATEIdentifier, PatchDocument, region
list_resourcesdatasets_list_onlySELECTregion
get_resourcedatasetsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual dataset.

SELECT
region,
name,
format,
format_options,
input,
source,
path_options,
tags
FROM awscc.databrew.datasets
WHERE
region = 'us-east-1' AND
Identifier = '{{ name }}';

INSERT example

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

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

UPDATE example

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

/*+ update */
UPDATE awscc.databrew.datasets
SET PatchDocument = string('{{ {
"Format": format,
"FormatOptions": format_options,
"Input": input,
"Source": source,
"PathOptions": path_options,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ name }}';

DELETE example

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

Permissions

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

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