libZSservicesZSamazonka-qldb-sessionZSamazonka-qldb-session
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.QLDBSession.Types.CommitTransactionRequest

Description

 
Synopsis

Documentation

data CommitTransactionRequest Source #

Contains the details of the transaction to commit.

See: newCommitTransactionRequest smart constructor.

Constructors

CommitTransactionRequest' 

Fields

  • transactionId :: Text

    Specifies the transaction ID of the transaction to commit.

  • commitDigest :: Base64

    Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates CommitDigest and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB.

    The purpose of the CommitDigest parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.

Instances

Instances details
Eq CommitTransactionRequest Source # 
Instance details

Defined in Amazonka.QLDBSession.Types.CommitTransactionRequest

Read CommitTransactionRequest Source # 
Instance details

Defined in Amazonka.QLDBSession.Types.CommitTransactionRequest

Show CommitTransactionRequest Source # 
Instance details

Defined in Amazonka.QLDBSession.Types.CommitTransactionRequest

Generic CommitTransactionRequest Source # 
Instance details

Defined in Amazonka.QLDBSession.Types.CommitTransactionRequest

Associated Types

type Rep CommitTransactionRequest :: Type -> Type #

NFData CommitTransactionRequest Source # 
Instance details

Defined in Amazonka.QLDBSession.Types.CommitTransactionRequest

Hashable CommitTransactionRequest Source # 
Instance details

Defined in Amazonka.QLDBSession.Types.CommitTransactionRequest

ToJSON CommitTransactionRequest Source # 
Instance details

Defined in Amazonka.QLDBSession.Types.CommitTransactionRequest

type Rep CommitTransactionRequest Source # 
Instance details

Defined in Amazonka.QLDBSession.Types.CommitTransactionRequest

type Rep CommitTransactionRequest = D1 ('MetaData "CommitTransactionRequest" "Amazonka.QLDBSession.Types.CommitTransactionRequest" "libZSservicesZSamazonka-qldb-sessionZSamazonka-qldb-session" 'False) (C1 ('MetaCons "CommitTransactionRequest'" 'PrefixI 'True) (S1 ('MetaSel ('Just "transactionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "commitDigest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Base64)))

newCommitTransactionRequest Source #

Create a value of CommitTransactionRequest 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:CommitTransactionRequest', commitTransactionRequest_transactionId - Specifies the transaction ID of the transaction to commit.

$sel:commitDigest:CommitTransactionRequest', commitTransactionRequest_commitDigest - Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates CommitDigest and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB.

The purpose of the CommitDigest parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.

commitTransactionRequest_transactionId :: Lens' CommitTransactionRequest Text Source #

Specifies the transaction ID of the transaction to commit.

commitTransactionRequest_commitDigest :: Lens' CommitTransactionRequest ByteString Source #

Specifies the commit digest for the transaction to commit. For every active transaction, the commit digest must be passed. QLDB validates CommitDigest and rejects the commit with an error if the digest computed on the client does not match the digest computed by QLDB.

The purpose of the CommitDigest parameter is to ensure that QLDB commits a transaction if and only if the server has processed the exact set of statements sent by the client, in the same order that client sent them, and with no duplicates.-- -- Note: This Lens automatically encodes and decodes Base64 data. -- The underlying isomorphism will encode to Base64 representation during -- serialisation, and decode from Base64 representation during deserialisation. -- This Lens accepts and returns only raw unencoded data.