Class: AWSCDK::Interfaces::AWSIottwinmaker::EntityReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_iottwinmaker/entity_reference.rb

Overview

A reference to a Entity resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entity_arn:, entity_id:, workspace_id:) ⇒ EntityReference

Returns a new instance of EntityReference.

Parameters:

  • entity_arn (String)

    The ARN of the Entity resource.

  • entity_id (String)

    The EntityId of the Entity resource.

  • workspace_id (String)

    The WorkspaceId of the Entity resource.



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_arnString (readonly)

The ARN of the Entity resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_iottwinmaker/entity_reference.rb', line 22

def entity_arn
  @entity_arn
end

#entity_idString (readonly)

The EntityId of the Entity resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_iottwinmaker/entity_reference.rb', line 26

def entity_id
  @entity_id
end

#workspace_idString (readonly)

The WorkspaceId of the Entity resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_iottwinmaker/entity_reference.rb', line 30

def workspace_id
  @workspace_id
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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