| 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.ManagedBlockChain.ListProposalVotes
Description
Returns the list of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.
Applies only to Hyperledger Fabric.
Synopsis
- data ListProposalVotes = ListProposalVotes' {
- maxResults :: Maybe Natural
- nextToken :: Maybe Text
- networkId :: Text
- proposalId :: Text
- newListProposalVotes :: Text -> Text -> ListProposalVotes
- listProposalVotes_maxResults :: Lens' ListProposalVotes (Maybe Natural)
- listProposalVotes_nextToken :: Lens' ListProposalVotes (Maybe Text)
- listProposalVotes_networkId :: Lens' ListProposalVotes Text
- listProposalVotes_proposalId :: Lens' ListProposalVotes Text
- data ListProposalVotesResponse = ListProposalVotesResponse' {
- nextToken :: Maybe Text
- proposalVotes :: Maybe [VoteSummary]
- httpStatus :: Int
- newListProposalVotesResponse :: Int -> ListProposalVotesResponse
- listProposalVotesResponse_nextToken :: Lens' ListProposalVotesResponse (Maybe Text)
- listProposalVotesResponse_proposalVotes :: Lens' ListProposalVotesResponse (Maybe [VoteSummary])
- listProposalVotesResponse_httpStatus :: Lens' ListProposalVotesResponse Int
Creating a Request
data ListProposalVotes Source #
See: newListProposalVotes smart constructor.
Constructors
| ListProposalVotes' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> ListProposalVotes |
Create a value of ListProposalVotes 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:maxResults:ListProposalVotes', listProposalVotes_maxResults - The maximum number of votes to return.
ListProposalVotes, listProposalVotes_nextToken - The pagination token that indicates the next set of results to retrieve.
ListProposalVotes, listProposalVotes_networkId - The unique identifier of the network.
ListProposalVotes, listProposalVotes_proposalId - The unique identifier of the proposal.
Request Lenses
listProposalVotes_maxResults :: Lens' ListProposalVotes (Maybe Natural) Source #
The maximum number of votes to return.
listProposalVotes_nextToken :: Lens' ListProposalVotes (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listProposalVotes_networkId :: Lens' ListProposalVotes Text Source #
The unique identifier of the network.
listProposalVotes_proposalId :: Lens' ListProposalVotes Text Source #
The unique identifier of the proposal.
Destructuring the Response
data ListProposalVotesResponse Source #
See: newListProposalVotesResponse smart constructor.
Constructors
| ListProposalVotesResponse' | |
Fields
| |
Instances
newListProposalVotesResponse Source #
Create a value of ListProposalVotesResponse 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:
ListProposalVotes, listProposalVotesResponse_nextToken - The pagination token that indicates the next set of results to retrieve.
$sel:proposalVotes:ListProposalVotesResponse', listProposalVotesResponse_proposalVotes - The list of votes.
$sel:httpStatus:ListProposalVotesResponse', listProposalVotesResponse_httpStatus - The response's http status code.
Response Lenses
listProposalVotesResponse_nextToken :: Lens' ListProposalVotesResponse (Maybe Text) Source #
The pagination token that indicates the next set of results to retrieve.
listProposalVotesResponse_proposalVotes :: Lens' ListProposalVotesResponse (Maybe [VoteSummary]) Source #
The list of votes.
listProposalVotesResponse_httpStatus :: Lens' ListProposalVotesResponse Int Source #
The response's http status code.