Class: AWSCDK::Interfaces::AWSSagemaker::SpaceReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_sagemaker/space_reference.rb

Overview

A reference to a Space resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_id:, space_arn:, space_name:) ⇒ SpaceReference

Returns a new instance of SpaceReference.

Parameters:

  • domain_id (String)

    The DomainId of the Space resource.

  • space_arn (String)

    The ARN of the Space resource.

  • space_name (String)

    The SpaceName of the Space resource.



10
11
12
13
14
15
16
17
# File 'interfaces/aws_sagemaker/space_reference.rb', line 10

def initialize(domain_id:, space_arn:, space_name:)
  @domain_id = domain_id
  Jsii::Type.check_type(@domain_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainId")
  @space_arn = space_arn
  Jsii::Type.check_type(@space_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "spaceArn")
  @space_name = space_name
  Jsii::Type.check_type(@space_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "spaceName")
end

Instance Attribute Details

#domain_idString (readonly)

The DomainId of the Space resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_sagemaker/space_reference.rb', line 22

def domain_id
  @domain_id
end

#space_arnString (readonly)

The ARN of the Space resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_sagemaker/space_reference.rb', line 26

def space_arn
  @space_arn
end

#space_nameString (readonly)

The SpaceName of the Space resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_sagemaker/space_reference.rb', line 30

def space_name
  @space_name
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/aws_sagemaker/space_reference.rb', line 32

def self.jsii_properties
  {
    :domain_id => "domainId",
    :space_arn => "spaceArn",
    :space_name => "spaceName",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/aws_sagemaker/space_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "domainId" => @domain_id,
    "spaceArn" => @space_arn,
    "spaceName" => @space_name,
  })
  result.compact
end