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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnMember.ApprovalThresholdPolicyProperty
static final class
An implementation forCfnMember.ApprovalThresholdPolicyProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
The duration from the time that a proposal is created until it expires.default String
Determines whether the vote percentage must be greater than theThresholdPercentage
or must be greater than or equal to theThresholdPercentage
to be approved.default Number
The percentage of votes among all members that must beYES
for 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
YES
votes to approve the proposal nor the number ofNO
votes required to reject it before the duration expires, the proposal isEXPIRED
andProposalActions
aren't carried out.- See Also:
-
getThresholdComparator
Determines whether the vote percentage must be greater than theThresholdPercentage
or must be greater than or equal to theThresholdPercentage
to be approved.- See Also:
-
getThresholdPercentage
The percentage of votes among all members that must beYES
for a proposal to be approved.For example, a
ThresholdPercentage
value of50
indicates 50%. TheThresholdComparator
determines the precise comparison. If aThresholdPercentage
value of50
is specified on a network with 10 members, along with aThresholdComparator
value ofGREATER_THAN
, this indicates that 6YES
votes are required for the proposal to be approved.- See Also:
-
builder
-