CmdID / aws / aws rds-data
aws rds-data rollback-transaction
Performs a rollback of a transaction. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To roll back a SQL transaction
The following rollback-transaction example rolls back the specified SQL transaction.
aws rds-data rollback-transaction --resource-arn "arn:aws:rds:us-west-2:123456789012:cluster:mydbcluster" --secret-arn "arn:aws:secretsmanager:us-west-2:123456789012:secret:mysecret" --transaction-id "ABC1234567890xyz"Identify--resource-arnThe Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.--secret-arnThe name or ARN of the secret that enables access to the DB cluster.--transaction-idThe identifier of the transaction to roll back.Its output
{
"transactionStatus": "Rollback Complete"
}For more information, see Using the Data API for Aurora Serverless in the Amazon RDS User Guide.
Options
--resource-arnThe Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.--secret-arnThe name or ARN of the secret that enables access to the DB cluster.--transaction-idThe identifier of the transaction to roll back.