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 |
Starts a new transaction and returns its transaction ID. Transaction IDs are opaque objects that you can use to identify a transaction.
Synopsis
- data StartTransaction = StartTransaction' {}
- newStartTransaction :: StartTransaction
- startTransaction_transactionType :: Lens' StartTransaction (Maybe TransactionType)
- data StartTransactionResponse = StartTransactionResponse' {
- transactionId :: Maybe Text
- httpStatus :: Int
- newStartTransactionResponse :: Int -> StartTransactionResponse
- startTransactionResponse_transactionId :: Lens' StartTransactionResponse (Maybe Text)
- startTransactionResponse_httpStatus :: Lens' StartTransactionResponse Int
Creating a Request
data StartTransaction Source #
See: newStartTransaction
smart constructor.
StartTransaction' | |
|
Instances
newStartTransaction :: StartTransaction Source #
Create a value of StartTransaction
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:transactionType:StartTransaction'
, startTransaction_transactionType
- Indicates whether this transaction should be read only or read and
write. Writes made using a read-only transaction ID will be rejected.
Read-only transactions do not need to be committed.
Request Lenses
startTransaction_transactionType :: Lens' StartTransaction (Maybe TransactionType) Source #
Indicates whether this transaction should be read only or read and write. Writes made using a read-only transaction ID will be rejected. Read-only transactions do not need to be committed.
Destructuring the Response
data StartTransactionResponse Source #
See: newStartTransactionResponse
smart constructor.
StartTransactionResponse' | |
|
Instances
newStartTransactionResponse Source #
Create a value of StartTransactionResponse
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:
StartTransactionResponse
, startTransactionResponse_transactionId
- An opaque identifier for the transaction.
$sel:httpStatus:StartTransactionResponse'
, startTransactionResponse_httpStatus
- The response's http status code.
Response Lenses
startTransactionResponse_transactionId :: Lens' StartTransactionResponse (Maybe Text) Source #
An opaque identifier for the transaction.
startTransactionResponse_httpStatus :: Lens' StartTransactionResponse Int Source #
The response's http status code.