Skip to content

Revision

Source: src/AWS/DataExchange/Revision.ts

A revision of an AWS Data Exchange data set — a versioned container of assets. Providers import assets into a revision (via DataExchange jobs) and then finalize it to make the snapshot available to subscribers.

import * as AWS from "alchemy/AWS";
const dataSet = yield* AWS.DataExchange.DataSet("Prices", {
description: "Daily commodity price snapshots",
});
const revision = yield* AWS.DataExchange.Revision("PricesV1", {
dataSetId: dataSet.dataSetId,
comment: "Initial snapshot",
});

Once assets have been imported into the revision (via a DataExchange import job), flip finalized to publish it. Finalizing an empty revision fails.

const revision = yield* AWS.DataExchange.Revision("PricesV1", {
dataSetId: dataSet.dataSetId,
comment: "Initial snapshot",
finalized: true,
});