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 a revision data object for a specified document ID and block
address. Also returns a proof of the specified revision for verification
if DigestTipAddress
is provided.
Synopsis
- data GetRevision = GetRevision' {}
- newGetRevision :: Text -> ValueHolder -> Text -> GetRevision
- getRevision_digestTipAddress :: Lens' GetRevision (Maybe ValueHolder)
- getRevision_name :: Lens' GetRevision Text
- getRevision_blockAddress :: Lens' GetRevision ValueHolder
- getRevision_documentId :: Lens' GetRevision Text
- data GetRevisionResponse = GetRevisionResponse' {}
- newGetRevisionResponse :: Int -> ValueHolder -> GetRevisionResponse
- getRevisionResponse_proof :: Lens' GetRevisionResponse (Maybe ValueHolder)
- getRevisionResponse_httpStatus :: Lens' GetRevisionResponse Int
- getRevisionResponse_revision :: Lens' GetRevisionResponse ValueHolder
Creating a Request
data GetRevision Source #
See: newGetRevision
smart constructor.
GetRevision' | |
|
Instances
:: Text | |
-> ValueHolder | |
-> Text | |
-> GetRevision |
Create a value of GetRevision
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:digestTipAddress:GetRevision'
, getRevision_digestTipAddress
- The latest block location covered by the digest for which to request a
proof. An address is an Amazon Ion structure that has two fields:
strandId
and sequenceNo
.
For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}
.
$sel:name:GetRevision'
, getRevision_name
- The name of the ledger.
$sel:blockAddress:GetRevision'
, getRevision_blockAddress
- The block location of the document revision to be verified. An address
is an Amazon Ion structure that has two fields: strandId
and
sequenceNo
.
For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
.
$sel:documentId:GetRevision'
, getRevision_documentId
- The UUID (represented in Base62-encoded text) of the document to be
verified.
Request Lenses
getRevision_digestTipAddress :: Lens' GetRevision (Maybe ValueHolder) Source #
The latest block location covered by the digest for which to request a
proof. An address is an Amazon Ion structure that has two fields:
strandId
and sequenceNo
.
For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:49}
.
getRevision_name :: Lens' GetRevision Text Source #
The name of the ledger.
getRevision_blockAddress :: Lens' GetRevision ValueHolder Source #
The block location of the document revision to be verified. An address
is an Amazon Ion structure that has two fields: strandId
and
sequenceNo
.
For example: {strandId:"BlFTjlSXze9BIh1KOszcE3",sequenceNo:14}
.
getRevision_documentId :: Lens' GetRevision Text Source #
The UUID (represented in Base62-encoded text) of the document to be verified.
Destructuring the Response
data GetRevisionResponse Source #
See: newGetRevisionResponse
smart constructor.
GetRevisionResponse' | |
|
Instances
newGetRevisionResponse Source #
:: Int | |
-> ValueHolder | |
-> GetRevisionResponse |
Create a value of GetRevisionResponse
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:proof:GetRevisionResponse'
, getRevisionResponse_proof
- The proof object in Amazon Ion format returned by a GetRevision
request. A proof contains the list of hash values that are required to
recalculate the specified digest using a Merkle tree, starting with the
specified document revision.
$sel:httpStatus:GetRevisionResponse'
, getRevisionResponse_httpStatus
- The response's http status code.
$sel:revision:GetRevisionResponse'
, getRevisionResponse_revision
- The document revision data object in Amazon Ion format.
Response Lenses
getRevisionResponse_proof :: Lens' GetRevisionResponse (Maybe ValueHolder) Source #
The proof object in Amazon Ion format returned by a GetRevision
request. A proof contains the list of hash values that are required to
recalculate the specified digest using a Merkle tree, starting with the
specified document revision.
getRevisionResponse_httpStatus :: Lens' GetRevisionResponse Int Source #
The response's http status code.
getRevisionResponse_revision :: Lens' GetRevisionResponse ValueHolder Source #
The document revision data object in Amazon Ion format.