Class: AWSCDK::Interfaces::AWSSagemaker::UserProfileReference

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

Overview

A reference to a UserProfile resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain_id:, user_profile_arn:, user_profile_name:) ⇒ UserProfileReference

Returns a new instance of UserProfileReference.

Parameters:

  • domain_id (String)

    The DomainId of the UserProfile resource.

  • user_profile_arn (String)

    The ARN of the UserProfile resource.

  • user_profile_name (String)

    The UserProfileName of the UserProfile resource.



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

def initialize(domain_id:, user_profile_arn:, user_profile_name:)
  @domain_id = domain_id
  Jsii::Type.check_type(@domain_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "domainId")
  @user_profile_arn = 
  Jsii::Type.check_type(@user_profile_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userProfileArn")
  @user_profile_name = 
  Jsii::Type.check_type(@user_profile_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "userProfileName")
end

Instance Attribute Details

#domain_idString (readonly)

The DomainId of the UserProfile resource.

Returns:

  • (String)


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

def domain_id
  @domain_id
end

#user_profile_arnString (readonly)

The ARN of the UserProfile resource.

Returns:

  • (String)


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

def 
  @user_profile_arn
end

#user_profile_nameString (readonly)

The UserProfileName of the UserProfile resource.

Returns:

  • (String)


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

def 
  @user_profile_name
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :domain_id => "domainId",
    :user_profile_arn => "userProfileArn",
    :user_profile_name => "userProfileName",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "domainId" => @domain_id,
    "userProfileArn" => @user_profile_arn,
    "userProfileName" => @user_profile_name,
  })
  result.compact
end