Skip to main content

recipe_versions

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

Overview​

Namerecipe_versions
TypeResource
Idaws.databrew.recipe_versions

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 Amazon Resource Name (ARN) of the user who created the recipe.
descriptionstringThe description of the recipe.
last_modified_bystringThe Amazon Resource Name (ARN) of the user who last modified the recipe.
last_modified_datestring (date-time)The last modification date and time of the recipe.
namestringThe unique name for the recipe.
project_namestringThe name of the project that the recipe is associated with.
published_bystringThe Amazon Resource Name (ARN) of the user who published the recipe.
published_datestring (date-time)The date and time when the recipe was published.
recipe_versionstringThe identifier for the version for the recipe. Must be one of the following: Numeric version (X.Y) - X and Y stand for major and minor version numbers. The maximum length of each is 6 digits, and neither can be negative values. Both X and Y are required, and "0.0" isn't a valid version. LATEST_WORKING - the most recent valid version being developed in a DataBrew project. LATEST_PUBLISHED - the most recent published version.
resource_arnstringThe Amazon Resource Name (ARN) for the recipe.
stepsarrayA list of steps that are defined by the recipe.
tagsobjectMetadata tags that have been applied to the recipe.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_recipe_versionsselectname, regionmaxResults, nextTokenLists the versions of a particular DataBrew recipe, except for LATEST_WORKING.
delete_recipe_versiondeletename, recipe_version, regionDeletes a single 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.
recipe_versionstringThe version of the recipe to be deleted. You can specify a numeric versions (X.Y) or LATEST_WORKING. LATEST_PUBLISHED is not supported.
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.

SELECT examples​

Lists the versions of a particular DataBrew recipe, except for LATEST_WORKING.

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.recipe_versions
WHERE name = '{{ name }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

DELETE examples​

Deletes a single version of a DataBrew recipe.

DELETE FROM aws.databrew.recipe_versions
WHERE name = '{{ name }}' --required
AND recipe_version = '{{ recipe_version }}' --required
AND region = '{{ region }}' --required
;