libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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 AWS 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
Eq VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Read VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Show VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Generic VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Associated Types

type Rep VoteOnProposal :: Type -> Type #

NFData VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Methods

rnf :: VoteOnProposal -> () #

Hashable VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

ToJSON VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

AWSRequest VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Associated Types

type AWSResponse 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

type Rep VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

type Rep VoteOnProposal = D1 ('MetaData "VoteOnProposal" "Amazonka.ManagedBlockChain.VoteOnProposal" "libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain" '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))))
type AWSResponse VoteOnProposal Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

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:

$sel:networkId:VoteOnProposal', voteOnProposal_networkId - The unique identifier of the network.

$sel:proposalId:VoteOnProposal', voteOnProposal_proposalId - The unique identifier of the proposal.

$sel:voterMemberId:VoteOnProposal', voteOnProposal_voterMemberId - The unique identifier of the member casting the vote.

$sel: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
Eq VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Read VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Show VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Generic VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Associated Types

type Rep VoteOnProposalResponse :: Type -> Type #

NFData VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

Methods

rnf :: VoteOnProposalResponse -> () #

type Rep VoteOnProposalResponse Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.VoteOnProposal

type Rep VoteOnProposalResponse = D1 ('MetaData "VoteOnProposalResponse" "Amazonka.ManagedBlockChain.VoteOnProposal" "libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain" '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