Class: AWSCDK::ManagedBlockchain::CfnMember::VotingPolicyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ManagedBlockchain::CfnMember::VotingPolicyProperty
- Defined in:
- managed_blockchain/cfn_member.rb
Overview
The voting rules for the network to decide if a proposal is accepted.
Applies only to Hyperledger Fabric.
Instance Attribute Summary collapse
-
#approval_threshold_policy ⇒ AWSCDK::IResolvable, ...
readonly
Defines the rules for the network for voting on proposals, such as the percentage of
YESvotes required for the proposal to be approved and the duration of the proposal.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(approval_threshold_policy: nil) ⇒ VotingPolicyProperty
constructor
A new instance of VotingPolicyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(approval_threshold_policy: nil) ⇒ VotingPolicyProperty
Returns a new instance of VotingPolicyProperty.
918 919 920 921 |
# File 'managed_blockchain/cfn_member.rb', line 918 def initialize(approval_threshold_policy: nil) @approval_threshold_policy = approval_threshold_policy.is_a?(Hash) ? ::AWSCDK::ManagedBlockchain::CfnMember::ApprovalThresholdPolicyProperty.new(**approval_threshold_policy.transform_keys(&:to_sym)) : approval_threshold_policy Jsii::Type.check_type(@approval_threshold_policy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tYW5hZ2VkYmxvY2tjaGFpbi5DZm5NZW1iZXIuQXBwcm92YWxUaHJlc2hvbGRQb2xpY3lQcm9wZXJ0eSJ9XX19")), "approvalThresholdPolicy") unless @approval_threshold_policy.nil? end |
Instance Attribute Details
#approval_threshold_policy ⇒ AWSCDK::IResolvable, ... (readonly)
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.
929 930 931 |
# File 'managed_blockchain/cfn_member.rb', line 929 def approval_threshold_policy @approval_threshold_policy end |
Class Method Details
.jsii_properties ⇒ Object
931 932 933 934 935 |
# File 'managed_blockchain/cfn_member.rb', line 931 def self.jsii_properties { :approval_threshold_policy => "approvalThresholdPolicy", } end |
Instance Method Details
#to_jsii ⇒ Object
937 938 939 940 941 942 943 |
# File 'managed_blockchain/cfn_member.rb', line 937 def to_jsii result = {} result.merge!({ "approvalThresholdPolicy" => @approval_threshold_policy, }) result.compact end |