Skip to main content

recipes

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

Overview

Namerecipes
TypeResource
Idaws.databrew.recipes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
create_datestring (date-time)The date and time that the recipe was created.
created_bystringThe identifier (user name) of the user who created the recipe.
descriptionstringThe description of the recipe.
last_modified_bystringThe identifier (user name) of the user who last modified the recipe.
last_modified_datestring (date-time)The date and time that the recipe was last modified.
namestringThe name of the recipe.
project_namestringThe name of the project associated with this recipe.
published_bystringThe identifier (user name) of the user who last published the recipe.
published_datestring (date-time)The date and time when the recipe was last published.
recipe_versionstringThe recipe version identifier.
resource_arnstringThe ARN of the recipe.
stepsarrayOne or more steps to be performed by the recipe. Each step consists of an action, and the conditions under which the action should succeed.
tagsobjectMetadata tags associated with this project.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_recipeselectname, regionrecipeVersionReturns the definition of a specific DataBrew recipe corresponding to a particular version.
list_recipesselectregionmaxResults, nextToken, recipeVersionLists all of the DataBrew recipes that are defined.
create_recipeinsertregionCreates a new DataBrew recipe.
update_recipeupdatename, regionModifies the definition of the LATEST_WORKING version of a DataBrew recipe.

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 recipe to be updated.
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.
recipeVersionstringReturn only those recipes with a version identifier of LATEST_WORKING or LATEST_PUBLISHED. If RecipeVersion is omitted, ListRecipes returns all of the LATEST_PUBLISHED recipe versions. Valid values: LATEST_WORKING | LATEST_PUBLISHED

SELECT examples

Returns the definition of a specific DataBrew recipe corresponding to a particular version.

SELECT
create_date,
created_by,
description,
last_modified_by,
last_modified_date,
name,
project_name,
published_by,
published_date,
recipe_version,
resource_arn,
steps,
tags
FROM aws.databrew.recipes
WHERE name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
AND recipeVersion = '{{ recipeVersion }}'
;

INSERT examples

Creates a new DataBrew recipe.

INSERT INTO aws.databrew.recipes (
Description,
Name,
Steps,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ Name }}',
'{{ Steps }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
name
;

UPDATE examples

Modifies the definition of the LATEST_WORKING version of a DataBrew recipe.

UPDATE aws.databrew.recipes
SET
Description = '{{ Description }}',
Steps = '{{ Steps }}'
WHERE
name = '{{ name }}' --required
AND region = '{{ region }}' --required
RETURNING
name;