Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Starts a SQL transaction.
<important> <p>A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.</p> <p>A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.</p> <p>DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate <code>ExecuteStatement</code> call with <code>continueAfterTimeout</code> enabled.</p> </important>
Synopsis
- data BeginTransaction = BeginTransaction' {}
- newBeginTransaction :: Text -> Text -> BeginTransaction
- beginTransaction_database :: Lens' BeginTransaction (Maybe Text)
- beginTransaction_schema :: Lens' BeginTransaction (Maybe Text)
- beginTransaction_resourceArn :: Lens' BeginTransaction Text
- beginTransaction_secretArn :: Lens' BeginTransaction Text
- data BeginTransactionResponse = BeginTransactionResponse' {
- transactionId :: Maybe Text
- httpStatus :: Int
- newBeginTransactionResponse :: Int -> BeginTransactionResponse
- beginTransactionResponse_transactionId :: Lens' BeginTransactionResponse (Maybe Text)
- beginTransactionResponse_httpStatus :: Lens' BeginTransactionResponse Int
Creating a Request
data BeginTransaction Source #
The request parameters represent the input of a request to start a SQL transaction.
See: newBeginTransaction
smart constructor.
Instances
Create a value of BeginTransaction
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:database:BeginTransaction'
, beginTransaction_database
- The name of the database.
$sel:schema:BeginTransaction'
, beginTransaction_schema
- The name of the database schema.
$sel:resourceArn:BeginTransaction'
, beginTransaction_resourceArn
- The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
$sel:secretArn:BeginTransaction'
, beginTransaction_secretArn
- The name or ARN of the secret that enables access to the DB cluster.
Request Lenses
beginTransaction_database :: Lens' BeginTransaction (Maybe Text) Source #
The name of the database.
beginTransaction_schema :: Lens' BeginTransaction (Maybe Text) Source #
The name of the database schema.
beginTransaction_resourceArn :: Lens' BeginTransaction Text Source #
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
beginTransaction_secretArn :: Lens' BeginTransaction Text Source #
The name or ARN of the secret that enables access to the DB cluster.
Destructuring the Response
data BeginTransactionResponse Source #
The response elements represent the output of a request to start a SQL transaction.
See: newBeginTransactionResponse
smart constructor.
BeginTransactionResponse' | |
|
Instances
newBeginTransactionResponse Source #
Create a value of BeginTransactionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:transactionId:BeginTransactionResponse'
, beginTransactionResponse_transactionId
- The transaction ID of the transaction started by the call.
$sel:httpStatus:BeginTransactionResponse'
, beginTransactionResponse_httpStatus
- The response's http status code.
Response Lenses
beginTransactionResponse_transactionId :: Lens' BeginTransactionResponse (Maybe Text) Source #
The transaction ID of the transaction started by the call.
beginTransactionResponse_httpStatus :: Lens' BeginTransactionResponse Int Source #
The response's http status code.