Class: AWSCDK::IoTTwinMaker::CfnComponentType::RelationshipProperty

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

Overview

An object that specifies a relationship with another component type.

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 type of the relationship.

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

    The ID of the target component type associated with this relationship.



1225
1226
1227
1228
1229
1230
# File 'io_t_twin_maker/cfn_component_type.rb', line 1225

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 type of the relationship.



1236
1237
1238
# File 'io_t_twin_maker/cfn_component_type.rb', line 1236

def relationship_type
  @relationship_type
end

#target_component_type_idString? (readonly)

The ID of the target component type associated with this relationship.



1241
1242
1243
# File 'io_t_twin_maker/cfn_component_type.rb', line 1241

def target_component_type_id
  @target_component_type_id
end

Class Method Details

.jsii_propertiesObject



1243
1244
1245
1246
1247
1248
# File 'io_t_twin_maker/cfn_component_type.rb', line 1243

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

Instance Method Details

#to_jsiiObject



1250
1251
1252
1253
1254
1255
1256
1257
# File 'io_t_twin_maker/cfn_component_type.rb', line 1250

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