Class: AWSCDK::Sagemaker::CfnAppImageConfig::FileSystemConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnAppImageConfig::FileSystemConfigProperty
- 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
-
#default_gid ⇒ Numeric?
readonly
The default POSIX group ID (GID).
-
#default_uid ⇒ Numeric?
readonly
The default POSIX user ID (UID).
-
#mount_path ⇒ String?
readonly
The path within the image to mount the user's EFS home directory.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(default_gid: nil, default_uid: nil, mount_path: nil) ⇒ FileSystemConfigProperty
constructor
A new instance of FileSystemConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(default_gid: nil, default_uid: nil, mount_path: nil) ⇒ FileSystemConfigProperty
Returns a new instance of FileSystemConfigProperty.
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_gid ⇒ Numeric? (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_uid ⇒ Numeric? (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_path ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |