Class: AWSCDK::Interfaces::AWSIottwinmaker::EntityReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSIottwinmaker::EntityReference
- Defined in:
- interfaces/aws_iottwinmaker/entity_reference.rb
Overview
A reference to a Entity resource.
Instance Attribute Summary collapse
-
#entity_arn ⇒ String
readonly
The ARN of the Entity resource.
-
#entity_id ⇒ String
readonly
The EntityId of the Entity resource.
-
#workspace_id ⇒ String
readonly
The WorkspaceId of the Entity resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(entity_arn:, entity_id:, workspace_id:) ⇒ EntityReference
constructor
A new instance of EntityReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(entity_arn:, entity_id:, workspace_id:) ⇒ EntityReference
Returns a new instance of EntityReference.
10 11 12 13 14 15 16 17 |
# File 'interfaces/aws_iottwinmaker/entity_reference.rb', line 10 def initialize(entity_arn:, entity_id:, workspace_id:) @entity_arn = entity_arn Jsii::Type.check_type(@entity_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityArn") @entity_id = entity_id Jsii::Type.check_type(@entity_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "entityId") @workspace_id = workspace_id Jsii::Type.check_type(@workspace_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workspaceId") end |
Instance Attribute Details
#entity_arn ⇒ String (readonly)
The ARN of the Entity resource.
22 23 24 |
# File 'interfaces/aws_iottwinmaker/entity_reference.rb', line 22 def entity_arn @entity_arn end |
#entity_id ⇒ String (readonly)
The EntityId of the Entity resource.
26 27 28 |
# File 'interfaces/aws_iottwinmaker/entity_reference.rb', line 26 def entity_id @entity_id end |
#workspace_id ⇒ String (readonly)
The WorkspaceId of the Entity resource.
30 31 32 |
# File 'interfaces/aws_iottwinmaker/entity_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/entity_reference.rb', line 32 def self.jsii_properties { :entity_arn => "entityArn", :entity_id => "entityId", :workspace_id => "workspaceId", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'interfaces/aws_iottwinmaker/entity_reference.rb', line 40 def to_jsii result = {} result.merge!({ "entityArn" => @entity_arn, "entityId" => @entity_id, "workspaceId" => @workspace_id, }) result.compact end |