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 |
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.
Instances
Eq GetDigest Source # | |
Read GetDigest Source # | |
Show GetDigest Source # | |
Generic GetDigest Source # | |
NFData GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest | |
Hashable GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest | |
ToJSON GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest | |
AWSRequest GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest type AWSResponse GetDigest # request :: GetDigest -> Request GetDigest # response :: MonadResource m => Logger -> Service -> Proxy GetDigest -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetDigest))) # | |
ToHeaders GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest | |
ToPath GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest toPath :: GetDigest -> ByteString # | |
ToQuery GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest toQuery :: GetDigest -> QueryString # | |
type Rep GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest | |
type AWSResponse GetDigest Source # | |
Defined in Amazonka.QLDB.GetDigest |
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:
$sel:name:GetDigest'
, getDigest_name
- The name of the ledger.
Request Lenses
Destructuring the Response
data GetDigestResponse Source #
See: newGetDigestResponse
smart constructor.
GetDigestResponse' | |
|
Instances
:: 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
.