Class: AWSCDK::ManagedBlockchain::CfnMemberProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ManagedBlockchain::CfnMemberProps
- Defined in:
- managed_blockchain/cfn_member_props.rb
Overview
Properties for defining a CfnMember.
Instance Attribute Summary collapse
-
#invitation_id ⇒ String?
readonly
The unique identifier of the invitation to join the network sent to the account that creates the member.
-
#member_configuration ⇒ AWSCDK::IResolvable, AWSCDK::ManagedBlockchain::CfnMember::MemberConfigurationProperty
readonly
Configuration properties of the member.
-
#network_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Configuration properties of the network to which the member belongs.
-
#network_id ⇒ String?
readonly
The unique identifier of the network to which the member belongs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(member_configuration:, invitation_id: nil, network_configuration: nil, network_id: nil) ⇒ CfnMemberProps
constructor
A new instance of CfnMemberProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(member_configuration:, invitation_id: nil, network_configuration: nil, network_id: nil) ⇒ CfnMemberProps
Returns a new instance of CfnMemberProps.
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_id ⇒ String? (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_configuration ⇒ AWSCDK::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_configuration ⇒ AWSCDK::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_id ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |