Class: AWSCDK::IoTTwinMaker::CfnEntity::RelationshipProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_twin_maker/cfn_entity.rb

Overview

The entity relationship.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(relationship_type: nil, target_component_type_id: nil) ⇒ RelationshipProperty

Returns a new instance of RelationshipProperty.

Parameters:

  • relationship_type (String, nil) (defaults to: nil)

    The relationship type.

  • target_component_type_id (String, nil) (defaults to: nil)

    the component type Id target.



1292
1293
1294
1295
1296
1297
# File 'io_t_twin_maker/cfn_entity.rb', line 1292

def initialize(relationship_type: nil, target_component_type_id: nil)
  @relationship_type = relationship_type
  Jsii::Type.check_type(@relationship_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "relationshipType") unless @relationship_type.nil?
  @target_component_type_id = target_component_type_id
  Jsii::Type.check_type(@target_component_type_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetComponentTypeId") unless @target_component_type_id.nil?
end

Instance Attribute Details

#relationship_typeString? (readonly)

The relationship type.



1303
1304
1305
# File 'io_t_twin_maker/cfn_entity.rb', line 1303

def relationship_type
  @relationship_type
end

#target_component_type_idString? (readonly)

the component type Id target.



1308
1309
1310
# File 'io_t_twin_maker/cfn_entity.rb', line 1308

def target_component_type_id
  @target_component_type_id
end

Class Method Details

.jsii_propertiesObject



1310
1311
1312
1313
1314
1315
# File 'io_t_twin_maker/cfn_entity.rb', line 1310

def self.jsii_properties
  {
    :relationship_type => "relationshipType",
    :target_component_type_id => "targetComponentTypeId",
  }
end

Instance Method Details

#to_jsiiObject



1317
1318
1319
1320
1321
1322
1323
1324
# File 'io_t_twin_maker/cfn_entity.rb', line 1317

def to_jsii
  result = {}
  result.merge!({
    "relationshipType" => @relationship_type,
    "targetComponentTypeId" => @target_component_type_id,
  })
  result.compact
end