CancelTransactionCommand

Attempts to cancel the specified transaction. Returns an exception if the transaction was previously committed.

Example Syntax

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

import { LakeFormationClient, CancelTransactionCommand } from "@aws-sdk/client-lakeformation"; // ES Modules import
// const { LakeFormationClient, CancelTransactionCommand } = require("@aws-sdk/client-lakeformation"); // CommonJS import
const client = new LakeFormationClient(config);
const input = { // CancelTransactionRequest
  TransactionId: "STRING_VALUE", // required
};
const command = new CancelTransactionCommand(input);
const response = await client.send(command);
// {};

CancelTransactionCommand Input

See CancelTransactionCommandInput for more details

Parameter
Type
Description
TransactionId
Required
string | undefined

The transaction to cancel.

CancelTransactionCommand Output

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

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.

TransactionCommitInProgressException
client

Contains details about an error related to a transaction commit that was in progress.

TransactionCommittedException
client

Contains details about an error where the specified transaction has already been committed and cannot be used for UpdateTableObjects.

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