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.Types.VotingPolicy

Description

 
Synopsis

Documentation

data VotingPolicy Source #

The voting rules for the network to decide if a proposal is accepted

Applies only to Hyperledger Fabric.

See: newVotingPolicy smart constructor.

Constructors

VotingPolicy' 

Fields

  • approvalThresholdPolicy :: Maybe ApprovalThresholdPolicy

    Defines the rules for the network for voting on proposals, such as the percentage of YES votes required for the proposal to be approved and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.

Instances

Instances details
Eq VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

Read VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

Show VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

Generic VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

Associated Types

type Rep VotingPolicy :: Type -> Type #

NFData VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

Methods

rnf :: VotingPolicy -> () #

Hashable VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

ToJSON VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

FromJSON VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

type Rep VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

type Rep VotingPolicy = D1 ('MetaData "VotingPolicy" "Amazonka.ManagedBlockChain.Types.VotingPolicy" "libZSservicesZSamazonka-managedblockchainZSamazonka-managedblockchain" 'False) (C1 ('MetaCons "VotingPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "approvalThresholdPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ApprovalThresholdPolicy))))

newVotingPolicy :: VotingPolicy Source #

Create a value of VotingPolicy 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:approvalThresholdPolicy:VotingPolicy', votingPolicy_approvalThresholdPolicy - Defines the rules for the network for voting on proposals, such as the percentage of YES votes required for the proposal to be approved and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.

votingPolicy_approvalThresholdPolicy :: Lens' VotingPolicy (Maybe ApprovalThresholdPolicy) Source #

Defines the rules for the network for voting on proposals, such as the percentage of YES votes required for the proposal to be approved and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.