Class: AWSCDK::Sagemaker::CfnUserProfile::CustomFileSystemConfigProperty

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

Overview

The settings for assigning a custom file system to a user profile or space for an Amazon SageMaker AI Domain.

Permitted users can access this file system in Amazon SageMaker AI Studio.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(efs_file_system_config: nil, f_sx_lustre_file_system_config: nil, s3_file_system_config: nil) ⇒ CustomFileSystemConfigProperty

Returns a new instance of CustomFileSystemConfigProperty.

Parameters:



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

def initialize(efs_file_system_config: nil, f_sx_lustre_file_system_config: nil, s3_file_system_config: nil)
  @efs_file_system_config = efs_file_system_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnUserProfile::EFSFileSystemConfigProperty.new(**efs_file_system_config.transform_keys(&:to_sym)) : efs_file_system_config
  Jsii::Type.check_type(@efs_file_system_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuVXNlclByb2ZpbGUuRUZTRmlsZVN5c3RlbUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "efsFileSystemConfig") unless @efs_file_system_config.nil?
  @f_sx_lustre_file_system_config = f_sx_lustre_file_system_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnUserProfile::FSXLustreFileSystemConfigProperty.new(**f_sx_lustre_file_system_config.transform_keys(&:to_sym)) : f_sx_lustre_file_system_config
  Jsii::Type.check_type(@f_sx_lustre_file_system_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuVXNlclByb2ZpbGUuRlN4THVzdHJlRmlsZVN5c3RlbUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "fSxLustreFileSystemConfig") unless @f_sx_lustre_file_system_config.nil?
  @s3_file_system_config = s3_file_system_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnUserProfile::S3FileSystemConfigProperty.new(**s3_file_system_config.transform_keys(&:to_sym)) : s3_file_system_config
  Jsii::Type.check_type(@s3_file_system_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuVXNlclByb2ZpbGUuUzNGaWxlU3lzdGVtQ29uZmlnUHJvcGVydHkifV19fQ==")), "s3FileSystemConfig") unless @s3_file_system_config.nil?
end

Instance Attribute Details

#efs_file_system_configAWSCDK::IResolvable, ... (readonly)

The settings for a custom Amazon EFS file system.



747
748
749
# File 'sagemaker/cfn_user_profile.rb', line 747

def efs_file_system_config
  @efs_file_system_config
end

#f_sx_lustre_file_system_configAWSCDK::IResolvable, ... (readonly)

The settings for a custom Amazon FSx for Lustre file system.



752
753
754
# File 'sagemaker/cfn_user_profile.rb', line 752

def f_sx_lustre_file_system_config
  @f_sx_lustre_file_system_config
end

#s3_file_system_configAWSCDK::IResolvable, ... (readonly)

Configuration settings for a custom Amazon S3 file system.



757
758
759
# File 'sagemaker/cfn_user_profile.rb', line 757

def s3_file_system_config
  @s3_file_system_config
end

Class Method Details

.jsii_propertiesObject



759
760
761
762
763
764
765
# File 'sagemaker/cfn_user_profile.rb', line 759

def self.jsii_properties
  {
    :efs_file_system_config => "efsFileSystemConfig",
    :f_sx_lustre_file_system_config => "fSxLustreFileSystemConfig",
    :s3_file_system_config => "s3FileSystemConfig",
  }
end

Instance Method Details

#to_jsiiObject



767
768
769
770
771
772
773
774
775
# File 'sagemaker/cfn_user_profile.rb', line 767

def to_jsii
  result = {}
  result.merge!({
    "efsFileSystemConfig" => @efs_file_system_config,
    "fSxLustreFileSystemConfig" => @f_sx_lustre_file_system_config,
    "s3FileSystemConfig" => @s3_file_system_config,
  })
  result.compact
end