Skip to main content

proposal_votes

Creates, updates, deletes, gets or lists a proposal_votes resource.

Overview

Nameproposal_votes
TypeResource
Idaws.managedblockchain.proposal_votes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
next_tokenstringThe pagination token that indicates the next set of results to retrieve.
proposal_votesarrayThe list of votes.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_proposal_votesselectnetwork_id, proposal_id, regionmaxResults, nextTokenReturns 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
network_idstringThe unique identifier of the network.
proposal_idstringThe unique identifier of the proposal.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of votes to return.
nextTokenstringThe pagination token that indicates the next set of results to retrieve.

SELECT examples

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.

SELECT
next_token,
proposal_votes
FROM aws.managedblockchain.proposal_votes
WHERE network_id = '{{ network_id }}' -- required
AND proposal_id = '{{ proposal_id }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;