Skip to main content

recipes

Creates, updates, deletes or gets a recipe resource or lists recipes in a region

Overview

Namerecipes
TypeResource
DescriptionResource schema for AWS::DataBrew::Recipe.
Idaws.databrew.recipes

Fields

NameDatatypeDescription
descriptionstringDescription of the recipe
namestringRecipe name
stepsarray
tagsarray
regionstringAWS region.

Methods

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

SELECT examples

Gets all recipes in a region.

SELECT
region,
description,
name,
steps,
tags
FROM aws.databrew.recipes
WHERE region = 'us-east-1';

Gets all properties from an individual recipe.

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

INSERT example

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

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

DELETE example

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

Permissions

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

Create

databrew:CreateRecipe,
databrew:TagResource,
databrew:UntagResource,
iam:PassRole

Read

databrew:DescribeRecipe,
databrew:ListTagsForResource,
iam:ListRoles

Delete

databrew:DeleteRecipeVersion

List

databrew:ListRecipes,
databrew:ListTagsForResource,
iam:ListRoles

Update

databrew:UpdateRecipe