Class: AWSCDK::Interfaces::AWSIottwinmaker::ComponentTypeReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSIottwinmaker::ComponentTypeReference
- Defined in:
- interfaces/aws_iottwinmaker/component_type_reference.rb
Overview
A reference to a ComponentType resource.
Instance Attribute Summary collapse
-
#component_type_arn ⇒ String
readonly
The ARN of the ComponentType resource.
-
#component_type_id ⇒ String
readonly
The ComponentTypeId of the ComponentType resource.
-
#workspace_id ⇒ String
readonly
The WorkspaceId of the ComponentType resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(component_type_arn:, component_type_id:, workspace_id:) ⇒ ComponentTypeReference
constructor
A new instance of ComponentTypeReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(component_type_arn:, component_type_id:, workspace_id:) ⇒ ComponentTypeReference
Returns a new instance of ComponentTypeReference.
10 11 12 13 14 15 16 17 |
# File 'interfaces/aws_iottwinmaker/component_type_reference.rb', line 10 def initialize(component_type_arn:, component_type_id:, workspace_id:) @component_type_arn = component_type_arn Jsii::Type.check_type(@component_type_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentTypeArn") @component_type_id = component_type_id Jsii::Type.check_type(@component_type_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "componentTypeId") @workspace_id = workspace_id Jsii::Type.check_type(@workspace_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workspaceId") end |
Instance Attribute Details
#component_type_arn ⇒ String (readonly)
The ARN of the ComponentType resource.
22 23 24 |
# File 'interfaces/aws_iottwinmaker/component_type_reference.rb', line 22 def component_type_arn @component_type_arn end |
#component_type_id ⇒ String (readonly)
The ComponentTypeId of the ComponentType resource.
26 27 28 |
# File 'interfaces/aws_iottwinmaker/component_type_reference.rb', line 26 def component_type_id @component_type_id end |
#workspace_id ⇒ String (readonly)
The WorkspaceId of the ComponentType resource.
30 31 32 |
# File 'interfaces/aws_iottwinmaker/component_type_reference.rb', line 30 def workspace_id @workspace_id end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'interfaces/aws_iottwinmaker/component_type_reference.rb', line 32 def self.jsii_properties { :component_type_arn => "componentTypeArn", :component_type_id => "componentTypeId", :workspace_id => "workspaceId", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'interfaces/aws_iottwinmaker/component_type_reference.rb', line 40 def to_jsii result = {} result.merge!({ "componentTypeArn" => @component_type_arn, "componentTypeId" => @component_type_id, "workspaceId" => @workspace_id, }) result.compact end |