Skip to main content

data_product_revisions

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

Overview

Namedata_product_revisions
TypeResource
Idaws.datazone.data_product_revisions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the data product revision. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
created_atstring (date-time)The timestamp at which the data product revision was created.
created_bystringThe user who created the data product revision.
domain_idstringThe ID of the domain where the data product revision lives. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
revisionstringThe data product revision.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_data_product_revisionsselectdomain_identifier, identifier, regionmaxResults, nextTokenLists data product revisions. Prerequisites: The data product ID must exist within the domain. User must have view permissions on the data product. The domain must be in a valid and accessible state.
create_data_product_revisioninsertdomain_identifier, identifier, region, nameCreates a data product revision. Prerequisites: The original data product must exist in the given domain. User must have permissions on the data product. The domain must be valid and accessible. The new revision name must comply with naming constraints (if required).

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
domain_identifierstringThe ID of the domain where the data product revision is created.
identifierstringThe ID of the data product revision.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of asset filters to return in a single call to ListDataProductRevisions. When the number of data product revisions to be listed is greater than the value of MaxResults, the response contains a NextToken value that you can use in a subsequent call to ListDataProductRevisions to list the next set of data product revisions.
nextTokenstringWhen the number of data product revisions is greater than the default value for the MaxResults parameter, or if you explicitly specify a value for MaxResults that is less than the number of data product revisions, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListDataProductRevisions to list the next set of data product revisions.

SELECT examples

Lists data product revisions. Prerequisites: The data product ID must exist within the domain. User must have view permissions on the data product. The domain must be in a valid and accessible state.

SELECT
id,
created_at,
created_by,
domain_id,
revision
FROM aws.datazone.data_product_revisions
WHERE domain_identifier = '{{ domain_identifier }}' -- required
AND identifier = '{{ identifier }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

INSERT examples

Creates a data product revision. Prerequisites: The original data product must exist in the given domain. User must have permissions on the data product. The domain must be valid and accessible. The new revision name must comply with naming constraints (if required).

INSERT INTO aws.datazone.data_product_revisions (
name,
description,
glossaryTerms,
items,
formsInput,
clientToken,
domain_identifier,
identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ glossaryTerms }}',
'{{ items }}',
'{{ formsInput }}',
'{{ clientToken }}',
'{{ domain_identifier }}',
'{{ identifier }}',
'{{ region }}'
RETURNING
id,
name,
created_at,
created_by,
description,
domain_id,
first_revision_created_at,
first_revision_created_by,
forms_output,
glossary_terms,
items_,
owning_project_id,
revision,
status
;