Class: AWSCDK::Interfaces::AWSWorkspaces::WorkspacesPoolReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_workspaces/workspaces_pool_reference.rb

Overview

A reference to a WorkspacesPool resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pool_arn:, pool_id:) ⇒ WorkspacesPoolReference

Returns a new instance of WorkspacesPoolReference.

Parameters:

  • pool_arn (String)

    The ARN of the WorkspacesPool resource.

  • pool_id (String)

    The PoolId of the WorkspacesPool resource.



9
10
11
12
13
14
# File 'interfaces/aws_workspaces/workspaces_pool_reference.rb', line 9

def initialize(pool_arn:, pool_id:)
  @pool_arn = pool_arn
  Jsii::Type.check_type(@pool_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "poolArn")
  @pool_id = pool_id
  Jsii::Type.check_type(@pool_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "poolId")
end

Instance Attribute Details

#pool_arnString (readonly)

The ARN of the WorkspacesPool resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_workspaces/workspaces_pool_reference.rb', line 19

def pool_arn
  @pool_arn
end

#pool_idString (readonly)

The PoolId of the WorkspacesPool resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_workspaces/workspaces_pool_reference.rb', line 23

def pool_id
  @pool_id
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_workspaces/workspaces_pool_reference.rb', line 25

def self.jsii_properties
  {
    :pool_arn => "poolArn",
    :pool_id => "poolId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "poolArn" => @pool_arn,
    "poolId" => @pool_id,
  })
  result.compact
end