Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ListTransactionsCommandProtected

Returns metadata about transactions and their status. To prevent the response from growing indefinitely, only uncommitted transactions and those available for time-travel queries are returned.

This operation can help you identify uncommitted transactions or to get information about transactions.

Example

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

import { LakeFormationClient, ListTransactionsCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
// const { LakeFormationClient, ListTransactionsCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
const client = new LakeFormationClient(config);
const input = { // ListTransactionsRequest
CatalogId: "STRING_VALUE",
StatusFilter: "ALL" || "COMPLETED" || "ACTIVE" || "COMMITTED" || "ABORTED",
MaxResults: Number("int"),
NextToken: "STRING_VALUE",
};
const command = new ListTransactionsCommand(input);
const response = await client.send(command);
// { // ListTransactionsResponse
// Transactions: [ // TransactionDescriptionList
// { // TransactionDescription
// TransactionId: "STRING_VALUE",
// TransactionStatus: "ACTIVE" || "COMMITTED" || "ABORTED" || "COMMIT_IN_PROGRESS",
// TransactionStartTime: new Date("TIMESTAMP"),
// TransactionEndTime: new Date("TIMESTAMP"),
// },
// ],
// NextToken: "STRING_VALUE",
// };

Param

ListTransactionsCommandInput

Returns

ListTransactionsCommandOutput

See

Throws

InternalServiceException (server fault)

An internal service error occurred.

Throws

InvalidInputException (client fault)

The input provided was not valid.

Throws

OperationTimeoutException (client fault)

The operation timed out.

Throws

LakeFormationServiceException

Base exception class for all service exceptions from LakeFormation service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods