Class: AWSCDK::ManagedBlockchain::CfnMember::NetworkConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ManagedBlockchain::CfnMember::NetworkConfigurationProperty
- Defined in:
- managed_blockchain/cfn_member.rb
Overview
Configuration properties of the network to which the member belongs.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
Attributes of the blockchain framework for the network.
-
#framework ⇒ String
readonly
The blockchain framework that the network uses.
-
#framework_version ⇒ String
readonly
The version of the blockchain framework that the network uses.
-
#name ⇒ String
readonly
The name of the network.
-
#network_framework_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Configuration properties relevant to the network for the blockchain framework that the network uses.
-
#voting_policy ⇒ AWSCDK::IResolvable, AWSCDK::ManagedBlockchain::CfnMember::VotingPolicyProperty
readonly
The voting rules that the network uses to decide if a proposal is accepted.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(framework:, framework_version:, name:, voting_policy:, description: nil, network_framework_configuration: nil) ⇒ NetworkConfigurationProperty
constructor
A new instance of NetworkConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(framework:, framework_version:, name:, voting_policy:, description: nil, network_framework_configuration: nil) ⇒ NetworkConfigurationProperty
Returns a new instance of NetworkConfigurationProperty.
770 771 772 773 774 775 776 777 778 779 780 781 782 783 |
# File 'managed_blockchain/cfn_member.rb', line 770 def initialize(framework:, framework_version:, name:, voting_policy:, description: nil, network_framework_configuration: nil) @framework = framework Jsii::Type.check_type(@framework, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "framework") @framework_version = framework_version Jsii::Type.check_type(@framework_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "frameworkVersion") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @voting_policy = voting_policy.is_a?(Hash) ? ::AWSCDK::ManagedBlockchain::CfnMember::VotingPolicyProperty.new(**voting_policy.transform_keys(&:to_sym)) : voting_policy Jsii::Type.check_type(@voting_policy, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tYW5hZ2VkYmxvY2tjaGFpbi5DZm5NZW1iZXIuVm90aW5nUG9saWN5UHJvcGVydHkifV19fQ==")), "votingPolicy") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @network_framework_configuration = network_framework_configuration.is_a?(Hash) ? ::AWSCDK::ManagedBlockchain::CfnMember::NetworkFrameworkConfigurationProperty.new(**network_framework_configuration.transform_keys(&:to_sym)) : network_framework_configuration Jsii::Type.check_type(@network_framework_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tYW5hZ2VkYmxvY2tjaGFpbi5DZm5NZW1iZXIuTmV0d29ya0ZyYW1ld29ya0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "networkFrameworkConfiguration") unless @network_framework_configuration.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
Attributes of the blockchain framework for the network.
809 810 811 |
# File 'managed_blockchain/cfn_member.rb', line 809 def description @description end |
#framework ⇒ String (readonly)
The blockchain framework that the network uses.
789 790 791 |
# File 'managed_blockchain/cfn_member.rb', line 789 def framework @framework end |
#framework_version ⇒ String (readonly)
The version of the blockchain framework that the network uses.
794 795 796 |
# File 'managed_blockchain/cfn_member.rb', line 794 def framework_version @framework_version end |
#name ⇒ String (readonly)
The name of the network.
799 800 801 |
# File 'managed_blockchain/cfn_member.rb', line 799 def name @name end |
#network_framework_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration properties relevant to the network for the blockchain framework that the network uses.
814 815 816 |
# File 'managed_blockchain/cfn_member.rb', line 814 def network_framework_configuration @network_framework_configuration end |
#voting_policy ⇒ AWSCDK::IResolvable, AWSCDK::ManagedBlockchain::CfnMember::VotingPolicyProperty (readonly)
The voting rules that the network uses to decide if a proposal is accepted.
804 805 806 |
# File 'managed_blockchain/cfn_member.rb', line 804 def voting_policy @voting_policy end |
Class Method Details
.jsii_properties ⇒ Object
816 817 818 819 820 821 822 823 824 825 |
# File 'managed_blockchain/cfn_member.rb', line 816 def self.jsii_properties { :framework => "framework", :framework_version => "frameworkVersion", :name => "name", :voting_policy => "votingPolicy", :description => "description", :network_framework_configuration => "networkFrameworkConfiguration", } end |
Instance Method Details
#to_jsii ⇒ Object
827 828 829 830 831 832 833 834 835 836 837 838 |
# File 'managed_blockchain/cfn_member.rb', line 827 def to_jsii result = {} result.merge!({ "framework" => @framework, "frameworkVersion" => @framework_version, "name" => @name, "votingPolicy" => @voting_policy, "description" => @description, "networkFrameworkConfiguration" => @network_framework_configuration, }) result.compact end |