import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CommitTransactionRequest, CommitTransactionResponse } from "../models/models_0"; import type { RDSDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RDSDataClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CommitTransactionCommand}. */ export interface CommitTransactionCommandInput extends CommitTransactionRequest { } /** * @public * * The output of {@link CommitTransactionCommand}. */ export interface CommitTransactionCommandOutput extends CommitTransactionResponse, __MetadataBearer { } declare const CommitTransactionCommand_base: { new (input: CommitTransactionCommandInput): import("@smithy/core/client").CommandImpl; new (input: CommitTransactionCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Ends a SQL transaction started with the BeginTransaction operation and * commits the changes.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RDSDataClient, CommitTransactionCommand } from "@aws-sdk/client-rds-data"; // ES Modules import * // const { RDSDataClient, CommitTransactionCommand } = require("@aws-sdk/client-rds-data"); // CommonJS import * // import type { RDSDataClientConfig } from "@aws-sdk/client-rds-data"; * const config = {}; // type is RDSDataClientConfig * const client = new RDSDataClient(config); * const input = { // CommitTransactionRequest * resourceArn: "STRING_VALUE", // required * secretArn: "STRING_VALUE", // required * transactionId: "STRING_VALUE", // required * }; * const command = new CommitTransactionCommand(input); * const response = await client.send(command); * // { // CommitTransactionResponse * // transactionStatus: "STRING_VALUE", * // }; * * ``` * * @param CommitTransactionCommandInput - {@link CommitTransactionCommandInput} * @returns {@link CommitTransactionCommandOutput} * @see {@link CommitTransactionCommandInput} for command's `input` shape. * @see {@link CommitTransactionCommandOutput} for command's `response` shape. * @see {@link RDSDataClientResolvedConfig | config} for RDSDataClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You don't have sufficient access to perform this action.

* * @throws {@link BadRequestException} (client fault) *

There is an error in the call or in a SQL statement. (This error only appears in calls from Aurora Serverless v1 databases.)

* * @throws {@link DatabaseErrorException} (client fault) *

There was an error in processing the SQL statement.

* * @throws {@link DatabaseNotFoundException} (client fault) *

The DB cluster doesn't have a DB instance.

* * @throws {@link DatabaseUnavailableException} (server fault) *

The writer instance in the DB cluster isn't available.

* * @throws {@link ForbiddenException} (client fault) *

There are insufficient privileges to make the call.

* * @throws {@link HttpEndpointNotEnabledException} (client fault) *

The HTTP endpoint for using RDS Data API isn't enabled for the DB cluster.

* * @throws {@link InternalServerErrorException} (server fault) *

An internal error occurred.

* * @throws {@link InvalidResourceStateException} (client fault) *

The resource is in an invalid state.

* * @throws {@link InvalidSecretException} (client fault) *

The Secrets Manager secret used with the request isn't valid.

* * @throws {@link NotFoundException} (client fault) *

The resourceArn, secretArn, or transactionId value can't be found.

* * @throws {@link SecretsErrorException} (client fault) *

There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:

* * * @throws {@link ServiceUnavailableError} (server fault) *

The service specified by the resourceArn parameter isn't * available.

* * @throws {@link StatementTimeoutException} (client fault) *

The execution of the SQL statement timed out.

* * @throws {@link TransactionNotFoundException} (client fault) *

The transaction ID wasn't found.

* * @throws {@link RDSDataServiceException} *

Base exception class for all service exceptions from RDSData service.

* * * @public */ export declare class CommitTransactionCommand extends CommitTransactionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CommitTransactionRequest; output: CommitTransactionResponse; }; sdk: { input: CommitTransactionCommandInput; output: CommitTransactionCommandOutput; }; }; }