Class: AWSCDK::Interfaces::AWSSagemaker::AppReference

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

Overview

A reference to a App resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_arn:, app_name:, app_type:, domain_id:, user_profile_name:) ⇒ AppReference

Returns a new instance of AppReference.

Parameters:

  • app_arn (String)

    The ARN of the App resource.

  • app_name (String)

    The AppName of the App resource.

  • app_type (String)

    The AppType of the App resource.

  • domain_id (String)

    The DomainId of the App resource.

  • user_profile_name (String)

    The UserProfileName of the App resource.



12
13
14
15
16
17
18
19
20
21
22
23
# File 'interfaces/aws_sagemaker/app_reference.rb', line 12

def initialize(app_arn:, app_name:, app_type:, domain_id:, user_profile_name:)
  @app_arn = app_arn
  Jsii::Type.check_type(@app_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appArn")
  @app_name = app_name
  Jsii::Type.check_type(@app_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appName")
  @app_type = app_type
  Jsii::Type.check_type(@app_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "appType")
  @domain_id = domain_id
  Jsii::Type.check_type(@domain_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainId")
  @user_profile_name = 
  Jsii::Type.check_type(@user_profile_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userProfileName")
end

Instance Attribute Details

#app_arnString (readonly)

The ARN of the App resource.

Returns:

  • (String)


28
29
30
# File 'interfaces/aws_sagemaker/app_reference.rb', line 28

def app_arn
  @app_arn
end

#app_nameString (readonly)

The AppName of the App resource.

Returns:

  • (String)


32
33
34
# File 'interfaces/aws_sagemaker/app_reference.rb', line 32

def app_name
  @app_name
end

#app_typeString (readonly)

The AppType of the App resource.

Returns:

  • (String)


36
37
38
# File 'interfaces/aws_sagemaker/app_reference.rb', line 36

def app_type
  @app_type
end

#domain_idString (readonly)

The DomainId of the App resource.

Returns:

  • (String)


40
41
42
# File 'interfaces/aws_sagemaker/app_reference.rb', line 40

def domain_id
  @domain_id
end

#user_profile_nameString (readonly)

The UserProfileName of the App resource.

Returns:

  • (String)


44
45
46
# File 'interfaces/aws_sagemaker/app_reference.rb', line 44

def 
  @user_profile_name
end

Class Method Details

.jsii_propertiesObject



46
47
48
49
50
51
52
53
54
# File 'interfaces/aws_sagemaker/app_reference.rb', line 46

def self.jsii_properties
  {
    :app_arn => "appArn",
    :app_name => "appName",
    :app_type => "appType",
    :domain_id => "domainId",
    :user_profile_name => "userProfileName",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
66
# File 'interfaces/aws_sagemaker/app_reference.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "appArn" => @app_arn,
    "appName" => @app_name,
    "appType" => @app_type,
    "domainId" => @domain_id,
    "userProfileName" => @user_profile_name,
  })
  result.compact
end