Class: AWSCDK::Interfaces::AWSIottwinmaker::ComponentTypeReference

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

Overview

A reference to a ComponentType resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(component_type_arn:, component_type_id:, workspace_id:) ⇒ ComponentTypeReference

Returns a new instance of ComponentTypeReference.

Parameters:

  • component_type_arn (String)

    The ARN of the ComponentType resource.

  • component_type_id (String)

    The ComponentTypeId of the ComponentType resource.

  • workspace_id (String)

    The WorkspaceId of the ComponentType resource.



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

The ARN of the ComponentType resource.

Returns:

  • (String)


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

def component_type_arn
  @component_type_arn
end

#component_type_idString (readonly)

The ComponentTypeId of the ComponentType resource.

Returns:

  • (String)


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

def component_type_id
  @component_type_id
end

#workspace_idString (readonly)

The WorkspaceId of the ComponentType resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_iottwinmaker/component_type_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/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_jsiiObject



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