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 |
Casts a vote for a specified ProposalId
on behalf of a member. The
member to vote as, specified by VoterMemberId
, must be in the same AWS
account as the principal that calls the action.
Applies only to Hyperledger Fabric.
Synopsis
- data VoteOnProposal = VoteOnProposal' {
- networkId :: Text
- proposalId :: Text
- voterMemberId :: Text
- vote :: VoteValue
- newVoteOnProposal :: Text -> Text -> Text -> VoteValue -> VoteOnProposal
- voteOnProposal_networkId :: Lens' VoteOnProposal Text
- voteOnProposal_proposalId :: Lens' VoteOnProposal Text
- voteOnProposal_voterMemberId :: Lens' VoteOnProposal Text
- voteOnProposal_vote :: Lens' VoteOnProposal VoteValue
- data VoteOnProposalResponse = VoteOnProposalResponse' {
- httpStatus :: Int
- newVoteOnProposalResponse :: Int -> VoteOnProposalResponse
- voteOnProposalResponse_httpStatus :: Lens' VoteOnProposalResponse Int
Creating a Request
data VoteOnProposal Source #
See: newVoteOnProposal
smart constructor.
VoteOnProposal' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> VoteValue | |
-> VoteOnProposal |
Create a value of VoteOnProposal
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:networkId:VoteOnProposal'
, voteOnProposal_networkId
- The unique identifier of the network.
$sel:proposalId:VoteOnProposal'
, voteOnProposal_proposalId
- The unique identifier of the proposal.
$sel:voterMemberId:VoteOnProposal'
, voteOnProposal_voterMemberId
- The unique identifier of the member casting the vote.
$sel:vote:VoteOnProposal'
, voteOnProposal_vote
- The value of the vote.
Request Lenses
voteOnProposal_networkId :: Lens' VoteOnProposal Text Source #
The unique identifier of the network.
voteOnProposal_proposalId :: Lens' VoteOnProposal Text Source #
The unique identifier of the proposal.
voteOnProposal_voterMemberId :: Lens' VoteOnProposal Text Source #
The unique identifier of the member casting the vote.
voteOnProposal_vote :: Lens' VoteOnProposal VoteValue Source #
The value of the vote.
Destructuring the Response
data VoteOnProposalResponse Source #
See: newVoteOnProposalResponse
smart constructor.
VoteOnProposalResponse' | |
|
Instances
newVoteOnProposalResponse Source #
Create a value of VoteOnProposalResponse
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:VoteOnProposalResponse'
, voteOnProposalResponse_httpStatus
- The response's http status code.
Response Lenses
voteOnProposalResponse_httpStatus :: Lens' VoteOnProposalResponse Int Source #
The response's http status code.