interface VotingPolicyProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ManagedBlockchain.CfnMember.VotingPolicyProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsmanagedblockchain#CfnMember_VotingPolicyProperty |
![]() | software.amazon.awscdk.services.managedblockchain.CfnMember.VotingPolicyProperty |
![]() | aws_cdk.aws_managedblockchain.CfnMember.VotingPolicyProperty |
![]() | aws-cdk-lib » aws_managedblockchain » CfnMember » VotingPolicyProperty |
The voting rules for the network to decide if a proposal is accepted.
Applies only to Hyperledger Fabric.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_managedblockchain as managedblockchain } from 'aws-cdk-lib';
const votingPolicyProperty: managedblockchain.CfnMember.VotingPolicyProperty = {
approvalThresholdPolicy: {
proposalDurationInHours: 123,
thresholdComparator: 'thresholdComparator',
thresholdPercentage: 123,
},
};
Properties
Name | Type | Description |
---|---|---|
approval | IResolvable | Approval | 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. |
approvalThresholdPolicy?
Type:
IResolvable
|
Approval
(optional)
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.