rollback_transaction
¶
rollback_transaction(
resource_arn: Arn,
secret_arn: Arn,
transaction_id: Id,
*,
config_overrides: Optional[RDSDataClientConfig] = None,
) -> RollbackTransactionResponse
Performs a rollback of a transaction. Rolling back a transaction cancels its changes.
Parameters:
-
resource_arn(Arn) –The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
-
secret_arn(Arn) –The name or ARN of the secret that enables access to the DB cluster.
-
transaction_id(Id) –The identifier of the transaction to roll back.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
BadRequestException–There is an error in the call or in a SQL statement. This exception is deprecated.
-
DatabaseErrorException–There was an error in processing the SQL statement.
-
DatabaseNotFoundException–The DB cluster doesn't have a DB instance.
-
DatabaseUnavailableException–The writer instance in the DB cluster isn't available.
-
ForbiddenException–There are insufficient privileges to make the call.
-
HttpEndpointNotEnabledException–The HTTP endpoint for using RDS Data API isn't enabled for the DB cluster.
-
InternalServerErrorException–An internal error occurred.
-
InvalidResourceStateException–The resource is in an invalid state.
-
InvalidSecretException–The Secrets Manager secret used with the request isn't valid.
-
NotFoundException–The
resourceArn,secretArn, ortransactionIdvalue can't be found. -
SecretsErrorException–There was a problem with the Secrets Manager secret used with the request, caused by one of the following conditions:
-
RDS Data API timed out retrieving the secret.
-
The secret provided wasn't found.
-
The secret couldn't be decrypted.
-
-
ServiceUnavailableError–The service specified by the
resourceArnparameter isn't available. -
StatementTimeoutException–The execution of the SQL statement timed out.
-
TransactionNotFoundException–The transaction ID wasn't found.
-
UnknownServiceError–The service returned an error code this client does not model.