Skip to main content

asset_revisions

Creates, updates, deletes, gets or lists an asset_revisions resource.

Overview

Nameasset_revisions
TypeResource
Idaws.datazone.asset_revisions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the inventory asset revision. (pattern: <code>[a-zA-Z0-9_-]{1,36}</code>)
created_atstring (date-time)The timestamp of when an inventory asset revison was created.
created_bystringThe Amazon DataZone user who created the asset revision.
domain_idstringThe Amazon DataZone user who created the inventory asset. (pattern: <code>dzd[-][a-zA-Z0-9-]{1,36}</code>)
revisionstringThe revision details of the inventory asset.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_asset_revisionsselectdomain_identifier, identifier, regionnextToken, maxResultsLists the revisions for the asset. Prerequisites: The asset must exist in the domain. There must be at least one revision of the asset (which happens automatically after creation). The domain must be valid and active. User must have permissions on the asset and domain.
create_asset_revisioninsertdomain_identifier, identifier, region, nameCreates a revision of the asset. Asset revisions represent new versions of existing assets, capturing changes to either the underlying data or its metadata. They maintain a historical record of how assets evolve over time, who made changes, and when those changes occurred. This versioning capability is crucial for governance and compliance, allowing organizations to track changes, understand their impact, and roll back if necessary. Prerequisites: Asset must already exist in the domain with identifier. formsInput is required when asset has the form type. typeRevision should be the latest version of form type. The form content must include all required fields (e.g., bucketArn for S3ObjectCollectionForm). The owning project of the original asset must still exist and be active. User must have write access to the project and domain.

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 unique identifier of the domain where the asset is being revised.
identifierstringThe identifier of the asset.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of revisions to return in a single call to ListAssetRevisions. When the number of 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 ListAssetRevisions to list the next set of revisions.
nextTokenstringWhen the number of 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 revisions, the response includes a pagination token named NextToken. You can specify this NextToken value in a subsequent call to ListAssetRevisions to list the next set of revisions.

SELECT examples

Lists the revisions for the asset. Prerequisites: The asset must exist in the domain. There must be at least one revision of the asset (which happens automatically after creation). The domain must be valid and active. User must have permissions on the asset and domain.

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

INSERT examples

Creates a revision of the asset. Asset revisions represent new versions of existing assets, capturing changes to either the underlying data or its metadata. They maintain a historical record of how assets evolve over time, who made changes, and when those changes occurred. This versioning capability is crucial for governance and compliance, allowing organizations to track changes, understand their impact, and roll back if necessary. Prerequisites: Asset must already exist in the domain with identifier. formsInput is required when asset has the form type. typeRevision should be the latest version of form type. The form content must include all required fields (e.g., bucketArn for S3ObjectCollectionForm). The owning project of the original asset must still exist and be active. User must have write access to the project and domain.

INSERT INTO aws.datazone.asset_revisions (
name,
typeRevision,
description,
glossaryTerms,
formsInput,
predictionConfiguration,
clientToken,
domain_identifier,
identifier,
region
)
SELECT
'{{ name }}' /* required */,
'{{ typeRevision }}',
'{{ description }}',
'{{ glossaryTerms }}',
'{{ formsInput }}',
'{{ predictionConfiguration }}',
'{{ clientToken }}',
'{{ domain_identifier }}',
'{{ identifier }}',
'{{ region }}'
RETURNING
id,
name,
created_at,
created_by,
description,
domain_id,
external_identifier,
first_revision_created_at,
first_revision_created_by,
forms_output,
glossary_terms,
governed_glossary_terms,
latest_time_series_data_point_forms_output,
listing,
owning_project_id,
prediction_configuration,
read_only_forms_output,
revision,
type_identifier,
type_revision
;