Class: AWSCDK::IoTTwinMaker::CfnEntity::RelationshipProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnEntity::RelationshipProperty
- Defined in:
- io_t_twin_maker/cfn_entity.rb
Overview
The entity relationship.
Instance Attribute Summary collapse
-
#relationship_type ⇒ String?
readonly
The relationship type.
-
#target_component_type_id ⇒ String?
readonly
the component type Id target.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(relationship_type: nil, target_component_type_id: nil) ⇒ RelationshipProperty
constructor
A new instance of RelationshipProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(relationship_type: nil, target_component_type_id: nil) ⇒ RelationshipProperty
Returns a new instance of RelationshipProperty.
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_type ⇒ String? (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_id ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |