| 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 |
Amazonka.QLDB.GetDigest
Description
Returns the digest of a ledger at the latest committed block in the journal. The response includes a 256-bit hash value and a block address.
Synopsis
- data GetDigest = GetDigest' {}
- newGetDigest :: Text -> GetDigest
- getDigest_name :: Lens' GetDigest Text
- data GetDigestResponse = GetDigestResponse' {}
- newGetDigestResponse :: Int -> ByteString -> ValueHolder -> GetDigestResponse
- getDigestResponse_httpStatus :: Lens' GetDigestResponse Int
- getDigestResponse_digest :: Lens' GetDigestResponse ByteString
- getDigestResponse_digestTipAddress :: Lens' GetDigestResponse ValueHolder
Creating a Request
See: newGetDigest smart constructor.
Constructors
| GetDigest' | |
Instances
Create a value of GetDigest 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:
GetDigest, getDigest_name - The name of the ledger.
Request Lenses
Destructuring the Response
data GetDigestResponse Source #
See: newGetDigestResponse smart constructor.
Constructors
| GetDigestResponse' | |
Fields
| |
Instances
Arguments
| :: Int | |
| -> ByteString | |
| -> ValueHolder | |
| -> GetDigestResponse |
Create a value of GetDigestResponse 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:httpStatus:GetDigestResponse', getDigestResponse_httpStatus - The response's http status code.
$sel:digest:GetDigestResponse', getDigestResponse_digest - The 256-bit hash value representing the digest returned by a GetDigest
request.--
-- 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.
$sel:digestTipAddress:GetDigestResponse', getDigestResponse_digestTipAddress - The latest block location covered by the digest that you requested. An
address is an Amazon Ion structure that has two fields: strandId and
sequenceNo.
Response Lenses
getDigestResponse_httpStatus :: Lens' GetDigestResponse Int Source #
The response's http status code.
getDigestResponse_digest :: Lens' GetDigestResponse ByteString Source #
The 256-bit hash value representing the digest returned by a GetDigest
request.--
-- 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.
getDigestResponse_digestTipAddress :: Lens' GetDigestResponse ValueHolder Source #
The latest block location covered by the digest that you requested. An
address is an Amazon Ion structure that has two fields: strandId and
sequenceNo.