Class: AWSCDK::IoTTwinMaker::CfnEntity::CompositeComponentProperty

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

Overview

Information about a composite component.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_name: nil, component_path: nil, component_type_id: nil, description: nil, properties: nil, property_groups: nil, status: nil) ⇒ CompositeComponentProperty

Returns a new instance of CompositeComponentProperty.

Parameters:



764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
# File 'io_t_twin_maker/cfn_entity.rb', line 764

def initialize(component_name: nil, component_path: nil, component_type_id: 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_path = component_path
  Jsii::Type.check_type(@component_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentPath") unless @component_path.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?
  @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.



785
786
787
# File 'io_t_twin_maker/cfn_entity.rb', line 785

def component_name
  @component_name
end

#component_pathString? (readonly)

The path to the composite component, starting from the top-level component.



790
791
792
# File 'io_t_twin_maker/cfn_entity.rb', line 790

def component_path
  @component_path
end

#component_type_idString? (readonly)

The ID of the composite component type.



795
796
797
# File 'io_t_twin_maker/cfn_entity.rb', line 795

def component_type_id
  @component_type_id
end

#descriptionString? (readonly)

The description of the component type.



800
801
802
# File 'io_t_twin_maker/cfn_entity.rb', line 800

def description
  @description
end

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

Map of strings to the properties in the component type.

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



807
808
809
# File 'io_t_twin_maker/cfn_entity.rb', line 807

def properties
  @properties
end

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

The property groups.



812
813
814
# File 'io_t_twin_maker/cfn_entity.rb', line 812

def property_groups
  @property_groups
end

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

The current status of the composite component.



817
818
819
# File 'io_t_twin_maker/cfn_entity.rb', line 817

def status
  @status
end

Class Method Details

.jsii_propertiesObject



819
820
821
822
823
824
825
826
827
828
829
# File 'io_t_twin_maker/cfn_entity.rb', line 819

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

Instance Method Details

#to_jsiiObject



831
832
833
834
835
836
837
838
839
840
841
842
843
# File 'io_t_twin_maker/cfn_entity.rb', line 831

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