Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Attempts to commit the specified transaction. Returns an exception if the transaction was previously aborted. This API action is idempotent if called multiple times for the same transaction.
Synopsis
- data CommitTransaction = CommitTransaction' {}
- newCommitTransaction :: Text -> CommitTransaction
- commitTransaction_transactionId :: Lens' CommitTransaction Text
- data CommitTransactionResponse = CommitTransactionResponse' {}
- newCommitTransactionResponse :: Int -> CommitTransactionResponse
- commitTransactionResponse_transactionStatus :: Lens' CommitTransactionResponse (Maybe TransactionStatus)
- commitTransactionResponse_httpStatus :: Lens' CommitTransactionResponse Int
Creating a Request
data CommitTransaction Source #
See: newCommitTransaction
smart constructor.
CommitTransaction' | |
|
Instances
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:
CommitTransaction
, commitTransaction_transactionId
- The transaction to commit.
Request Lenses
commitTransaction_transactionId :: Lens' CommitTransaction Text Source #
The transaction to commit.
Destructuring the Response
data CommitTransactionResponse Source #
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:
CommitTransactionResponse
, commitTransactionResponse_transactionStatus
- The status of the transaction.
$sel:httpStatus:CommitTransactionResponse'
, commitTransactionResponse_httpStatus
- The response's http status code.
Response Lenses
commitTransactionResponse_transactionStatus :: Lens' CommitTransactionResponse (Maybe TransactionStatus) Source #
The status of the transaction.
commitTransactionResponse_httpStatus :: Lens' CommitTransactionResponse Int Source #
The response's http status code.