Skip to main content

revisions

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

Overview

Namerevisions
TypeResource
Idaws.dataexchange.revisions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN for the revision.
commentstringAn optional comment about the revision.
created_atstring (date-time)The date and time that the revision was created, in ISO 8601 format.
data_set_idstringThe unique identifier for the data set associated with the data set revision. (pattern: <code>[a-zA-Z0-9]{30,40}</code>)
finalizedbooleanTo publish a revision to a data set in a product, the revision must first be finalized. Finalizing a revision tells AWS Data Exchange that your changes to the assets in the revision are complete. After it's in this read-only state, you can publish the revision to your products. Finalized revisions can be published through the AWS Data Exchange console or the AWS Marketplace Catalog API, using the StartChangeSet AWS Marketplace Catalog API action. When using the API, revisions are uniquely identified by their ARN.
idstringThe unique identifier for the revision. (pattern: <code>[a-zA-Z0-9]{30,40}</code>)
revocation_commentstringA required comment to inform subscribers of the reason their access to the revision was revoked.
revokedbooleanA status indicating that subscribers' access to the revision was revoked.
revoked_atstring (date-time)The date and time that the revision was revoked, in ISO 8601 format.
source_idstringThe revision ID of the owned revision corresponding to the entitled revision being viewed. This parameter is returned when a revision owner is viewing the entitled copy of its owned revision. (pattern: <code>[a-zA-Z0-9]{30,40}</code>)
tagsobjectThe tags for the revision.
updated_atstring (date-time)The date and time that the revision was last updated, in ISO 8601 format.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_revisionselectdata_set_id, revision_id, regionThis operation returns information about a revision.
create_revisioninsertdata_set_id, regionThis operation creates a revision for a data set.
revoke_revisionupdatedata_set_id, revision_id, region, RevocationCommentThis operation revokes subscribers' access to a revision.
update_revisionupdatedata_set_id, revision_id, regionThis operation updates a revision.
delete_revisiondeletedata_set_id, revision_id, regionThis operation deletes a revision.

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
data_set_idstringThe unique identifier for a data set.
regionstringAWS region (default: us-east-1)
revision_idstringThe unique identifier for a revision.

SELECT examples

This operation returns information about a revision.

SELECT
arn,
comment,
created_at,
data_set_id,
finalized,
id,
revocation_comment,
revoked,
revoked_at,
source_id,
tags,
updated_at
FROM aws.dataexchange.revisions
WHERE data_set_id = '{{ data_set_id }}' -- required
AND revision_id = '{{ revision_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

This operation creates a revision for a data set.

INSERT INTO aws.dataexchange.revisions (
Comment,
Tags,
data_set_id,
region
)
SELECT
'{{ Comment }}',
'{{ Tags }}',
'{{ data_set_id }}',
'{{ region }}'
RETURNING
arn,
comment,
created_at,
data_set_id,
finalized,
id,
revocation_comment,
revoked,
revoked_at,
source_id,
tags,
updated_at
;

UPDATE examples

This operation revokes subscribers' access to a revision.

UPDATE aws.dataexchange.revisions
SET
RevocationComment = '{{ RevocationComment }}'
WHERE
data_set_id = '{{ data_set_id }}' --required
AND revision_id = '{{ revision_id }}' --required
AND region = '{{ region }}' --required
AND RevocationComment = '{{ RevocationComment }}' --required
RETURNING
arn,
comment,
created_at,
data_set_id,
finalized,
id,
revocation_comment,
revoked,
revoked_at,
source_id,
updated_at;

DELETE examples

This operation deletes a revision.

DELETE FROM aws.dataexchange.revisions
WHERE data_set_id = '{{ data_set_id }}' --required
AND revision_id = '{{ revision_id }}' --required
AND region = '{{ region }}' --required
;