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

*******************
list_proposal_votes
*******************



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

  

  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.

  

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


  **Request Syntax**
  ::

    response = client.list_proposal_votes(
        NetworkId='string',
        ProposalId='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :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 MaxResults: integer
  :param MaxResults: 

    The maximum number of votes to return.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token that indicates the next set of results to retrieve.

    

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

    
    ::

      {
          'ProposalVotes': [
              {
                  'Vote': 'YES'|'NO',
                  'MemberName': 'string',
                  'MemberId': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ProposalVotes** *(list) --* 

        The list of votes.

        
        

        - *(dict) --* 

          Properties of an individual vote that a member cast for a proposal.

           

          Applies only to Hyperledger Fabric.

          
          

          - **Vote** *(string) --* 

            The vote value, either ``YES`` or ``NO``.

            
          

          - **MemberName** *(string) --* 

            The name of the member that cast the vote.

            
          

          - **MemberId** *(string) --* 

            The unique identifier of the member that cast the vote.

            
      
    
      

      - **NextToken** *(string) --* 

        The pagination token that indicates the next set of results to retrieve.

        
  
  **Exceptions**
  
  *   :py:class:`ManagedBlockchain.Client.exceptions.InvalidRequestException`

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

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

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

  