Class: AWSCDK::Sagemaker::CfnAppImageConfig::FileSystemConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_app_image_config.rb

Overview

The Amazon Elastic File System storage configuration for a SageMaker AI image.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(default_gid: nil, default_uid: nil, mount_path: nil) ⇒ FileSystemConfigProperty

Returns a new instance of FileSystemConfigProperty.

Parameters:

  • default_gid (Numeric, nil) (defaults to: nil)

    The default POSIX group ID (GID).

  • default_uid (Numeric, nil) (defaults to: nil)

    The default POSIX user ID (UID).

  • mount_path (String, nil) (defaults to: nil)

    The path within the image to mount the user's EFS home directory.



733
734
735
736
737
738
739
740
# File 'sagemaker/cfn_app_image_config.rb', line 733

def initialize(default_gid: nil, default_uid: nil, mount_path: nil)
  @default_gid = default_gid
  Jsii::Type.check_type(@default_gid, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "defaultGid") unless @default_gid.nil?
  @default_uid = default_uid
  Jsii::Type.check_type(@default_uid, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "defaultUid") unless @default_uid.nil?
  @mount_path = mount_path
  Jsii::Type.check_type(@mount_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mountPath") unless @mount_path.nil?
end

Instance Attribute Details

#default_gidNumeric? (readonly)

The default POSIX group ID (GID).

If not specified, defaults to 100 .



748
749
750
# File 'sagemaker/cfn_app_image_config.rb', line 748

def default_gid
  @default_gid
end

#default_uidNumeric? (readonly)

The default POSIX user ID (UID).

If not specified, defaults to 1000 .



755
756
757
# File 'sagemaker/cfn_app_image_config.rb', line 755

def default_uid
  @default_uid
end

#mount_pathString? (readonly)

The path within the image to mount the user's EFS home directory.

The directory should be empty. If not specified, defaults to * /home/sagemaker-user* .



762
763
764
# File 'sagemaker/cfn_app_image_config.rb', line 762

def mount_path
  @mount_path
end

Class Method Details

.jsii_propertiesObject



764
765
766
767
768
769
770
# File 'sagemaker/cfn_app_image_config.rb', line 764

def self.jsii_properties
  {
    :default_gid => "defaultGid",
    :default_uid => "defaultUid",
    :mount_path => "mountPath",
  }
end

Instance Method Details

#to_jsiiObject



772
773
774
775
776
777
778
779
780
# File 'sagemaker/cfn_app_image_config.rb', line 772

def to_jsii
  result = {}
  result.merge!({
    "defaultGid" => @default_gid,
    "defaultUid" => @default_uid,
    "mountPath" => @mount_path,
  })
  result.compact
end