| 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.VoteOnProposal
Description
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
 Amazon Web Services 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.
Constructors
| VoteOnProposal' | |
Fields 
  | |
Instances
Arguments
| :: 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:
VoteOnProposal, voteOnProposal_networkId - The unique identifier of the network.
VoteOnProposal, voteOnProposal_proposalId - The unique identifier of the proposal.
$sel:voterMemberId:VoteOnProposal', voteOnProposal_voterMemberId - The unique identifier of the member casting the 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.
Constructors
| VoteOnProposalResponse' | |
Fields 
  | |
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.