CommitTransactionCommand

Attempts to commit the specified transaction. Returns an exception if the transaction was previously aborted. This API action is idempotent if called multiple times for the same transaction.

Example Syntax

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

import { LakeFormationClient, CommitTransactionCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
// const { LakeFormationClient, CommitTransactionCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
const client = new LakeFormationClient(config);
const input = { // CommitTransactionRequest
  TransactionId: "STRING_VALUE", // required
};
const command = new CommitTransactionCommand(input);
const response = await client.send(command);
// { // CommitTransactionResponse
//   TransactionStatus: "ACTIVE" || "COMMITTED" || "ABORTED" || "COMMIT_IN_PROGRESS",
// };

CommitTransactionCommand Input

See CommitTransactionCommandInput for more details

Parameter
Type
Description
TransactionId
Required
string | undefined

The transaction to commit.

CommitTransactionCommand Output

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

The status of the transaction.

Throws

Name
Fault
Details
ConcurrentModificationException
client

Two processes are trying to modify a resource simultaneously.

EntityNotFoundException
client

A specified entity does not exist.

InternalServiceException
server

An internal service error occurred.

InvalidInputException
client

The input provided was not valid.

OperationTimeoutException
client

The operation timed out.

TransactionCanceledException
client

Contains details about an error related to a transaction that was cancelled.

LakeFormationServiceException
Base exception class for all service exceptions from LakeFormation service.