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 list of proposals for the network.
Applies only to Hyperledger Fabric.
Synopsis
- data ListProposals = ListProposals' {}
- newListProposals :: Text -> ListProposals
- listProposals_nextToken :: Lens' ListProposals (Maybe Text)
- listProposals_maxResults :: Lens' ListProposals (Maybe Natural)
- listProposals_networkId :: Lens' ListProposals Text
- data ListProposalsResponse = ListProposalsResponse' {
- proposals :: Maybe [ProposalSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListProposalsResponse :: Int -> ListProposalsResponse
- listProposalsResponse_proposals :: Lens' ListProposalsResponse (Maybe [ProposalSummary])
- listProposalsResponse_nextToken :: Lens' ListProposalsResponse (Maybe Text)
- listProposalsResponse_httpStatus :: Lens' ListProposalsResponse Int
Creating a Request
data ListProposals Source #
See: newListProposals
smart constructor.
Instances
Create a value of ListProposals
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:nextToken:ListProposals'
, listProposals_nextToken
- The pagination token that indicates the next set of results to retrieve.
$sel:maxResults:ListProposals'
, listProposals_maxResults
- The maximum number of proposals to return.
$sel:networkId:ListProposals'
, listProposals_networkId
- The unique identifier of the network.
Request Lenses
listProposals_nextToken :: Lens' ListProposals (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listProposals_maxResults :: Lens' ListProposals (Maybe Natural) Source #
The maximum number of proposals to return.
listProposals_networkId :: Lens' ListProposals Text Source #
The unique identifier of the network.
Destructuring the Response
data ListProposalsResponse Source #
See: newListProposalsResponse
smart constructor.
ListProposalsResponse' | |
|
Instances
newListProposalsResponse Source #
Create a value of ListProposalsResponse
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:proposals:ListProposalsResponse'
, listProposalsResponse_proposals
- The summary of each proposal made on the network.
$sel:nextToken:ListProposals'
, listProposalsResponse_nextToken
- The pagination token that indicates the next set of results to retrieve.
$sel:httpStatus:ListProposalsResponse'
, listProposalsResponse_httpStatus
- The response's http status code.
Response Lenses
listProposalsResponse_proposals :: Lens' ListProposalsResponse (Maybe [ProposalSummary]) Source #
The summary of each proposal made on the network.
listProposalsResponse_nextToken :: Lens' ListProposalsResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listProposalsResponse_httpStatus :: Lens' ListProposalsResponse Int Source #
The response's http status code.