ListDataSetRevisionsCommand

This operation lists a data set's revisions sorted by CreatedAt in descending order.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { DataExchangeClient, ListDataSetRevisionsCommand } from "@aws-sdk/client-dataexchange"; // ES Modules import
// const { DataExchangeClient, ListDataSetRevisionsCommand } = require("@aws-sdk/client-dataexchange"); // CommonJS import
const client = new DataExchangeClient(config);
const input = { // ListDataSetRevisionsRequest
  DataSetId: "STRING_VALUE", // required
  MaxResults: Number("int"),
  NextToken: "STRING_VALUE",
};
const command = new ListDataSetRevisionsCommand(input);
const response = await client.send(command);
// { // ListDataSetRevisionsResponse
//   NextToken: "STRING_VALUE",
//   Revisions: [ // ListOfRevisionEntry
//     { // RevisionEntry
//       Arn: "STRING_VALUE", // required
//       Comment: "STRING_VALUE",
//       CreatedAt: new Date("TIMESTAMP"), // required
//       DataSetId: "STRING_VALUE", // required
//       Finalized: true || false,
//       Id: "STRING_VALUE", // required
//       SourceId: "STRING_VALUE",
//       UpdatedAt: new Date("TIMESTAMP"), // required
//       RevocationComment: "STRING_VALUE",
//       Revoked: true || false,
//       RevokedAt: new Date("TIMESTAMP"),
//     },
//   ],
// };

ListDataSetRevisionsCommand Input

Parameter
Type
Description
DataSetId
Required
string | undefined

The unique identifier for a data set.

MaxResults
number | undefined

The maximum number of results returned by a single call.

NextToken
string | undefined

The token value retrieved from a previous call to access the next page of results.

ListDataSetRevisionsCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
NextToken
string | undefined

The token value retrieved from a previous call to access the next page of results.

Revisions
RevisionEntry[] | undefined

The asset objects listed by the request.

Throws

Name
Fault
Details
InternalServerException
server

An exception occurred with the service.

ResourceNotFoundException
client

The resource couldn't be found.

ThrottlingException
client

The limit on the number of requests per second was exceeded.

ValidationException
client

The request was invalid.

DataExchangeServiceException
Base exception class for all service exceptions from DataExchange service.