Interface CfnMember.ApprovalThresholdPolicyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnMember.ApprovalThresholdPolicyProperty.Jsii$Proxy
- Enclosing class:
CfnMember
The rules decide if a proposal is approved. Approval may be based on criteria such as the percentage of YES votes and the duration of the proposal. The policy applies to all proposals and is specified when the network is created.
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 software.amazon.awscdk.services.managedblockchain.*;
ApprovalThresholdPolicyProperty approvalThresholdPolicyProperty = ApprovalThresholdPolicyProperty.builder()
.proposalDurationInHours(123)
.thresholdComparator("thresholdComparator")
.thresholdPercentage(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnMember.ApprovalThresholdPolicyPropertystatic final classAn implementation forCfnMember.ApprovalThresholdPolicyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe duration from the time that a proposal is created until it expires.default StringDetermines whether the vote percentage must be greater than theThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.default NumberThe percentage of votes among all members that must beYESfor a proposal to be approved.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProposalDurationInHours
The duration from the time that a proposal is created until it expires.If members cast neither the required number of
YESvotes to approve the proposal nor the number ofNOvotes required to reject it before the duration expires, the proposal isEXPIREDandProposalActionsaren't carried out.- See Also:
-
getThresholdComparator
Determines whether the vote percentage must be greater than theThresholdPercentageor must be greater than or equal to theThresholdPercentageto be approved.- See Also:
-
getThresholdPercentage
The percentage of votes among all members that must beYESfor a proposal to be approved.For example, a
ThresholdPercentagevalue of50indicates 50%. TheThresholdComparatordetermines the precise comparison. If aThresholdPercentagevalue of50is specified on a network with 10 members, along with aThresholdComparatorvalue ofGREATER_THAN, this indicates that 6YESvotes are required for the proposal to be approved.- See Also:
-
builder
-