amazonka-managedblockchain-2.0: Amazon Managed Blockchain SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Creating a Request

data VoteOnProposal Source #

See: newVoteOnProposal smart constructor.

Constructors

VoteOnProposal' 

Fields

Instances

Instances details
ToJSON VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

ToHeaders VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

ToPath VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

ToQuery VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

AWSRequest VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Associated Types

type AWSResponse VoteOnProposal #

Generic VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Associated Types

type Rep VoteOnProposal :: Type -> Type #

Read VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Show VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

NFData VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Methods

rnf :: VoteOnProposal -> () #

Eq VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Hashable VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

type AWSResponse VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

type Rep VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

type Rep VoteOnProposal = D1 ('MetaData "VoteOnProposal" "Amazonka.ManagedBlockChain.VoteOnProposal" "amazonka-managedblockchain-2.0-7ETEoTxOH0EDuOBkhEvxdC" 'False) (C1 ('MetaCons "VoteOnProposal'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "networkId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "proposalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "voterMemberId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "vote") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 VoteValue))))

newVoteOnProposal Source #

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.

Destructuring the Response

data VoteOnProposalResponse Source #

See: newVoteOnProposalResponse smart constructor.

Constructors

VoteOnProposalResponse' 

Fields

Instances

Instances details
Generic VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Associated Types

type Rep VoteOnProposalResponse :: Type -> Type #

Read VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Show VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

NFData VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Methods

rnf :: VoteOnProposalResponse -> () #

Eq VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

type Rep VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

type Rep VoteOnProposalResponse = D1 ('MetaData "VoteOnProposalResponse" "Amazonka.ManagedBlockChain.VoteOnProposal" "amazonka-managedblockchain-2.0-7ETEoTxOH0EDuOBkhEvxdC" 'False) (C1 ('MetaCons "VoteOnProposalResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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