Class: AWSCDK::ManagedBlockchain::CfnMember::NetworkConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
managed_blockchain/cfn_member.rb

Overview

Configuration properties of the network to which the member belongs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(framework:, framework_version:, name:, voting_policy:, description: nil, network_framework_configuration: nil) ⇒ NetworkConfigurationProperty

Returns a new instance of NetworkConfigurationProperty.

Parameters:



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

#descriptionString? (readonly)

Attributes of the blockchain framework for the network.



809
810
811
# File 'managed_blockchain/cfn_member.rb', line 809

def description
  @description
end

#frameworkString (readonly)

The blockchain framework that the network uses.



789
790
791
# File 'managed_blockchain/cfn_member.rb', line 789

def framework
  @framework
end

#framework_versionString (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

#nameString (readonly)

The name of the network.



799
800
801
# File 'managed_blockchain/cfn_member.rb', line 799

def name
  @name
end

#network_framework_configurationAWSCDK::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_policyAWSCDK::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_propertiesObject



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_jsiiObject



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