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 |
Ends a SQL transaction started with the BeginTransaction
operation and
commits the changes.
Synopsis
- data CommitTransaction = CommitTransaction' {
- resourceArn :: Text
- secretArn :: Text
- transactionId :: Text
- newCommitTransaction :: Text -> Text -> Text -> CommitTransaction
- commitTransaction_resourceArn :: Lens' CommitTransaction Text
- commitTransaction_secretArn :: Lens' CommitTransaction Text
- commitTransaction_transactionId :: Lens' CommitTransaction Text
- data CommitTransactionResponse = CommitTransactionResponse' {}
- newCommitTransactionResponse :: Int -> CommitTransactionResponse
- commitTransactionResponse_transactionStatus :: Lens' CommitTransactionResponse (Maybe Text)
- commitTransactionResponse_httpStatus :: Lens' CommitTransactionResponse Int
Creating a Request
data CommitTransaction Source #
The request parameters represent the input of a commit transaction request.
See: newCommitTransaction
smart constructor.
CommitTransaction' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> CommitTransaction |
Create a value of CommitTransaction
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:resourceArn:CommitTransaction'
, commitTransaction_resourceArn
- The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
$sel:secretArn:CommitTransaction'
, commitTransaction_secretArn
- The name or ARN of the secret that enables access to the DB cluster.
$sel:transactionId:CommitTransaction'
, commitTransaction_transactionId
- The identifier of the transaction to end and commit.
Request Lenses
commitTransaction_resourceArn :: Lens' CommitTransaction Text Source #
The Amazon Resource Name (ARN) of the Aurora Serverless DB cluster.
commitTransaction_secretArn :: Lens' CommitTransaction Text Source #
The name or ARN of the secret that enables access to the DB cluster.
commitTransaction_transactionId :: Lens' CommitTransaction Text Source #
The identifier of the transaction to end and commit.
Destructuring the Response
data CommitTransactionResponse Source #
The response elements represent the output of a commit transaction request.
See: newCommitTransactionResponse
smart constructor.
CommitTransactionResponse' | |
|
Instances
newCommitTransactionResponse Source #
Create a value of CommitTransactionResponse
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:transactionStatus:CommitTransactionResponse'
, commitTransactionResponse_transactionStatus
- The status of the commit operation.
$sel:httpStatus:CommitTransactionResponse'
, commitTransactionResponse_httpStatus
- The response's http status code.
Response Lenses
commitTransactionResponse_transactionStatus :: Lens' CommitTransactionResponse (Maybe Text) Source #
The status of the commit operation.
commitTransactionResponse_httpStatus :: Lens' CommitTransactionResponse Int Source #
The response's http status code.