Class: AWSCDK::ManagedBlockchain::CfnMemberProps

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

Overview

Properties for defining a CfnMember.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(member_configuration:, invitation_id: nil, network_configuration: nil, network_id: nil) ⇒ CfnMemberProps

Returns a new instance of CfnMemberProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'managed_blockchain/cfn_member_props.rb', line 13

def initialize(member_configuration:, invitation_id: nil, network_configuration: nil, network_id: nil)
  @member_configuration = member_configuration.is_a?(Hash) ? ::AWSCDK::ManagedBlockchain::CfnMember::MemberConfigurationProperty.new(**member_configuration.transform_keys(&:to_sym)) : member_configuration
  Jsii::Type.check_type(@member_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tYW5hZ2VkYmxvY2tjaGFpbi5DZm5NZW1iZXIuTWVtYmVyQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "memberConfiguration")
  @invitation_id = invitation_id
  Jsii::Type.check_type(@invitation_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "invitationId") unless @invitation_id.nil?
  @network_configuration = network_configuration.is_a?(Hash) ? ::AWSCDK::ManagedBlockchain::CfnMember::NetworkConfigurationProperty.new(**network_configuration.transform_keys(&:to_sym)) : network_configuration
  Jsii::Type.check_type(@network_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tYW5hZ2VkYmxvY2tjaGFpbi5DZm5NZW1iZXIuTmV0d29ya0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "networkConfiguration") unless @network_configuration.nil?
  @network_id = network_id
  Jsii::Type.check_type(@network_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "networkId") unless @network_id.nil?
end

Instance Attribute Details

#invitation_idString? (readonly)

The unique identifier of the invitation to join the network sent to the account that creates the member.



33
34
35
# File 'managed_blockchain/cfn_member_props.rb', line 33

def invitation_id
  @invitation_id
end

#member_configurationAWSCDK::IResolvable, AWSCDK::ManagedBlockchain::CfnMember::MemberConfigurationProperty (readonly)

Configuration properties of the member.



28
29
30
# File 'managed_blockchain/cfn_member_props.rb', line 28

def member_configuration
  @member_configuration
end

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

Configuration properties of the network to which the member belongs.



38
39
40
# File 'managed_blockchain/cfn_member_props.rb', line 38

def network_configuration
  @network_configuration
end

#network_idString? (readonly)

The unique identifier of the network to which the member belongs.



43
44
45
# File 'managed_blockchain/cfn_member_props.rb', line 43

def network_id
  @network_id
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'managed_blockchain/cfn_member_props.rb', line 45

def self.jsii_properties
  {
    :member_configuration => "memberConfiguration",
    :invitation_id => "invitationId",
    :network_configuration => "networkConfiguration",
    :network_id => "networkId",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'managed_blockchain/cfn_member_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "memberConfiguration" => @member_configuration,
    "invitationId" => @invitation_id,
    "networkConfiguration" => @network_configuration,
    "networkId" => @network_id,
  })
  result.compact
end