:doc:`ManagedBlockchain <../../managedblockchain>` / Client / vote_on_proposal

****************
vote_on_proposal
****************



.. py:method:: ManagedBlockchain.Client.vote_on_proposal(**kwargs)

  

  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.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/managedblockchain-2018-09-24/VoteOnProposal>`_  


  **Request Syntax**
  ::

    response = client.vote_on_proposal(
        NetworkId='string',
        ProposalId='string',
        VoterMemberId='string',
        Vote='YES'|'NO'
    )
    
  :type NetworkId: string
  :param NetworkId: **[REQUIRED]** 

    The unique identifier of the network.

    

  
  :type ProposalId: string
  :param ProposalId: **[REQUIRED]** 

    The unique identifier of the proposal.

    

  
  :type VoterMemberId: string
  :param VoterMemberId: **[REQUIRED]** 

    The unique identifier of the member casting the vote.

    

  
  :type Vote: string
  :param Vote: **[REQUIRED]** 

    The value of the vote.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`ManagedBlockchain.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`ManagedBlockchain.Client.exceptions.IllegalActionException`

  
  *   :py:class:`ManagedBlockchain.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`ManagedBlockchain.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ManagedBlockchain.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ManagedBlockchain.Client.exceptions.InternalServiceErrorException`

  