Skip to main content

rulesets

Creates, updates, deletes or gets a ruleset resource or lists rulesets in a region

Overview

Namerulesets
TypeResource
DescriptionResource schema for AWS::DataBrew::Ruleset.
Idaws.databrew.rulesets

Fields

NameDatatypeDescription
namestringName of the Ruleset
descriptionstringDescription of the Ruleset
target_arnstringArn of the target resource (dataset) to apply the ruleset to
rulesarrayList of the data quality rules in the ruleset
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTName, TargetArn, Rules, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all rulesets in a region.

SELECT
region,
name,
description,
target_arn,
rules,
tags
FROM aws.databrew.rulesets
WHERE region = 'us-east-1';

Gets all properties from an individual ruleset.

SELECT
region,
name,
description,
target_arn,
rules,
tags
FROM aws.databrew.rulesets
WHERE region = 'us-east-1' AND data__Identifier = '<Name>';

INSERT example

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

/*+ create */
INSERT INTO aws.databrew.rulesets (
Name,
TargetArn,
Rules,
region
)
SELECT
'{{ Name }}',
'{{ TargetArn }}',
'{{ Rules }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

databrew:CreateRuleset,
databrew:TagResource,
databrew:UntagResource,
iam:PassRole

Read

databrew:DescribeRuleset,
databrew:ListTagsForResource,
iam:ListRoles

Update

databrew:UpdateRuleset

Delete

databrew:DeleteRuleset

List

databrew:ListRulesets,
databrew:ListTagsForResource,
iam:ListRoles