Class: AWSCDK::Interfaces::AWSIottwinmaker::WorkspaceReference

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

Overview

A reference to a Workspace resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workspace_arn:, workspace_id:) ⇒ WorkspaceReference

Returns a new instance of WorkspaceReference.

Parameters:

  • workspace_arn (String)

    The ARN of the Workspace resource.

  • workspace_id (String)

    The WorkspaceId of the Workspace resource.



9
10
11
12
13
14
# File 'interfaces/aws_iottwinmaker/workspace_reference.rb', line 9

def initialize(workspace_arn:, workspace_id:)
  @workspace_arn = workspace_arn
  Jsii::Type.check_type(@workspace_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workspaceArn")
  @workspace_id = workspace_id
  Jsii::Type.check_type(@workspace_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workspaceId")
end

Instance Attribute Details

#workspace_arnString (readonly)

The ARN of the Workspace resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_iottwinmaker/workspace_reference.rb', line 19

def workspace_arn
  @workspace_arn
end

#workspace_idString (readonly)

The WorkspaceId of the Workspace resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_iottwinmaker/workspace_reference.rb', line 23

def workspace_id
  @workspace_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_iottwinmaker/workspace_reference.rb', line 25

def self.jsii_properties
  {
    :workspace_arn => "workspaceArn",
    :workspace_id => "workspaceId",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_iottwinmaker/workspace_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "workspaceArn" => @workspace_arn,
    "workspaceId" => @workspace_id,
  })
  result.compact
end