Class: AWSCDK::IoTTwinMaker::CfnEntity::ComponentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTTwinMaker::CfnEntity::ComponentProperty
- Defined in:
- io_t_twin_maker/cfn_entity.rb
Overview
The entity component.
Instance Attribute Summary collapse
-
#component_name ⇒ String?
readonly
The name of the component.
-
#component_type_id ⇒ String?
readonly
The ID of the component type.
-
#defined_in ⇒ String?
readonly
The name of the property definition set in the request.
-
#description ⇒ String?
readonly
The description of the component.
-
#properties ⇒ AWSCDK::IResolvable, ...
readonly
An object that maps strings to the properties to set in the component type.
-
#property_groups ⇒ AWSCDK::IResolvable, ...
readonly
An object that maps strings to the property groups in the component type.
-
#status ⇒ AWSCDK::IResolvable, ...
readonly
The status of the component.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(component_name: nil, component_type_id: nil, defined_in: nil, description: nil, properties: nil, property_groups: nil, status: nil) ⇒ ComponentProperty
constructor
A new instance of ComponentProperty.
- #to_jsii ⇒ Object
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.
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_name ⇒ String? (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_id ⇒ String? (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_in ⇒ String? (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 |
#description ⇒ String? (readonly)
The description of the component.
703 704 705 |
# File 'io_t_twin_maker/cfn_entity.rb', line 703 def description @description end |
#properties ⇒ AWSCDK::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_groups ⇒ AWSCDK::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 |
#status ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |