vote_on_proposal
async
¶
vote_on_proposal(
network_id: ResourceIdString,
proposal_id: ResourceIdString,
voter_member_id: ResourceIdString,
vote: VoteValue,
*,
config_overrides: Optional[AsyncManagedBlockchainClientConfig] = None,
) -> VoteOnProposalOutput
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.
Parameters:
-
network_id(ResourceIdString) –The unique identifier of the network.
-
proposal_id(ResourceIdString) –The unique identifier of the proposal.
-
voter_member_id(ResourceIdString) –The unique identifier of the member casting the vote.
-
vote(VoteValue) –The value of the vote.
Raises:
-
AccessDeniedException–You don't have sufficient access to perform this action.
-
IllegalActionException– -
InternalServiceErrorException–The request processing has failed because of an unknown error, exception or failure.
-
InvalidRequestException–The action or operation requested is invalid. Verify that the action is typed correctly.
-
ResourceNotFoundException–A requested resource doesn't exist. It may have been deleted or referenced incorrectly.
-
ThrottlingException–The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.
-
UnknownServiceError–The service returned an error code this client does not model.