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.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
FromJSON VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

ToJSON 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 #

Read VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

Show VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

NFData VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

Methods

rnf :: VotingPolicy -> () #

Eq VotingPolicy Source # 
Instance details

Defined in Amazonka.ManagedBlockChain.Types.VotingPolicy

Hashable 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" "amazonka-managedblockchain-2.0-7ETEoTxOH0EDuOBkhEvxdC" '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.