Class: AWSCDK::IoTTwinMaker::CfnEntity::ComponentProperty

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

Overview

The entity component.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_name: nil, component_type_id: nil, defined_in: nil, description: nil, properties: nil, property_groups: nil, status: nil) ⇒ ComponentProperty

Returns a new instance of ComponentProperty.

Parameters:



667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
# File 'io_t_twin_maker/cfn_entity.rb', line 667

def initialize(component_name: nil, component_type_id: nil, defined_in: nil, description: nil, properties: nil, property_groups: nil, status: nil)
  @component_name = component_name
  Jsii::Type.check_type(@component_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentName") unless @component_name.nil?
  @component_type_id = component_type_id
  Jsii::Type.check_type(@component_type_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentTypeId") unless @component_type_id.nil?
  @defined_in = defined_in
  Jsii::Type.check_type(@defined_in, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "definedIn") unless @defined_in.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @properties = properties
  Jsii::Type.check_type(@properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90dHdpbm1ha2VyLkNmbkVudGl0eS5Qcm9wZXJ0eVByb3BlcnR5In1dfX0sImtpbmQiOiJtYXAifX1dfX0=")), "properties") unless @properties.nil?
  @property_groups = property_groups
  Jsii::Type.check_type(@property_groups, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW90dHdpbm1ha2VyLkNmbkVudGl0eS5Qcm9wZXJ0eUdyb3VwUHJvcGVydHkifV19fSwia2luZCI6Im1hcCJ9fV19fQ==")), "propertyGroups") unless @property_groups.nil?
  @status = status.is_a?(Hash) ? ::AWSCDK::IoTTwinMaker::CfnEntity::StatusProperty.new(**status.transform_keys(&:to_sym)) : status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3R0d2lubWFrZXIuQ2ZuRW50aXR5LlN0YXR1c1Byb3BlcnR5In1dfX0=")), "status") unless @status.nil?
end

Instance Attribute Details

#component_nameString? (readonly)

The name of the component.



688
689
690
# File 'io_t_twin_maker/cfn_entity.rb', line 688

def component_name
  @component_name
end

#component_type_idString? (readonly)

The ID of the component type.



693
694
695
# File 'io_t_twin_maker/cfn_entity.rb', line 693

def component_type_id
  @component_type_id
end

#defined_inString? (readonly)

The name of the property definition set in the request.



698
699
700
# File 'io_t_twin_maker/cfn_entity.rb', line 698

def defined_in
  @defined_in
end

#descriptionString? (readonly)

The description of the component.



703
704
705
# File 'io_t_twin_maker/cfn_entity.rb', line 703

def description
  @description
end

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

An object that maps strings to the properties to set in the component type.

Each string in the mapping must be unique to this object.



710
711
712
# File 'io_t_twin_maker/cfn_entity.rb', line 710

def properties
  @properties
end

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

An object that maps strings to the property groups in the component type.

Each string in the mapping must be unique to this object.



717
718
719
# File 'io_t_twin_maker/cfn_entity.rb', line 717

def property_groups
  @property_groups
end

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

The status of the component.



722
723
724
# File 'io_t_twin_maker/cfn_entity.rb', line 722

def status
  @status
end

Class Method Details

.jsii_propertiesObject



724
725
726
727
728
729
730
731
732
733
734
# File 'io_t_twin_maker/cfn_entity.rb', line 724

def self.jsii_properties
  {
    :component_name => "componentName",
    :component_type_id => "componentTypeId",
    :defined_in => "definedIn",
    :description => "description",
    :properties => "properties",
    :property_groups => "propertyGroups",
    :status => "status",
  }
end

Instance Method Details

#to_jsiiObject



736
737
738
739
740
741
742
743
744
745
746
747
748
# File 'io_t_twin_maker/cfn_entity.rb', line 736

def to_jsii
  result = {}
  result.merge!({
    "componentName" => @component_name,
    "componentTypeId" => @component_type_id,
    "definedIn" => @defined_in,
    "description" => @description,
    "properties" => @properties,
    "propertyGroups" => @property_groups,
    "status" => @status,
  })
  result.compact
end