Class: AWSCDK::ManagedBlockchain::CfnMember::MemberConfigurationProperty

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

Overview

Configuration properties of the member.

Applies only to Hyperledger Fabric.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, description: nil, member_framework_configuration: nil) ⇒ MemberConfigurationProperty

Returns a new instance of MemberConfigurationProperty.

Parameters:



636
637
638
639
640
641
642
643
# File 'managed_blockchain/cfn_member.rb', line 636

def initialize(name:, description: nil, member_framework_configuration: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @member_framework_configuration = member_framework_configuration.is_a?(Hash) ? ::AWSCDK::ManagedBlockchain::CfnMember::MemberFrameworkConfigurationProperty.new(**member_framework_configuration.transform_keys(&:to_sym)) : member_framework_configuration
  Jsii::Type.check_type(@member_framework_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tYW5hZ2VkYmxvY2tjaGFpbi5DZm5NZW1iZXIuTWVtYmVyRnJhbWV3b3JrQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "memberFrameworkConfiguration") unless @member_framework_configuration.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

An optional description of the member.



654
655
656
# File 'managed_blockchain/cfn_member.rb', line 654

def description
  @description
end

#member_framework_configurationAWSCDK::IResolvable, ... (readonly)

Configuration properties of the blockchain framework relevant to the member.



659
660
661
# File 'managed_blockchain/cfn_member.rb', line 659

def member_framework_configuration
  @member_framework_configuration
end

#nameString (readonly)

The name of the member.



649
650
651
# File 'managed_blockchain/cfn_member.rb', line 649

def name
  @name
end

Class Method Details

.jsii_propertiesObject



661
662
663
664
665
666
667
# File 'managed_blockchain/cfn_member.rb', line 661

def self.jsii_properties
  {
    :name => "name",
    :description => "description",
    :member_framework_configuration => "memberFrameworkConfiguration",
  }
end

Instance Method Details

#to_jsiiObject



669
670
671
672
673
674
675
676
677
# File 'managed_blockchain/cfn_member.rb', line 669

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "description" => @description,
    "memberFrameworkConfiguration" => @member_framework_configuration,
  })
  result.compact
end