Class: AWSCDK::Sagemaker::CfnDomain::CustomFileSystemConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_domain.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:



922
923
924
925
926
927
928
929
# File 'sagemaker/cfn_domain.rb', line 922

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::CfnDomain::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuRG9tYWluLkVGU0ZpbGVTeXN0ZW1Db25maWdQcm9wZXJ0eSJ9XX19")), "efsFileSystemConfig") unless @efs_file_system_config.nil?
  @f_sx_lustre_file_system_config = f_sx_lustre_file_system_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnDomain::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuRG9tYWluLkZTeEx1c3RyZUZpbGVTeXN0ZW1Db25maWdQcm9wZXJ0eSJ9XX19")), "fSxLustreFileSystemConfig") unless @f_sx_lustre_file_system_config.nil?
  @s3_file_system_config = s3_file_system_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnDomain::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("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuRG9tYWluLlMzRmlsZVN5c3RlbUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "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.



935
936
937
# File 'sagemaker/cfn_domain.rb', line 935

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.



940
941
942
# File 'sagemaker/cfn_domain.rb', line 940

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.



945
946
947
# File 'sagemaker/cfn_domain.rb', line 945

def s3_file_system_config
  @s3_file_system_config
end

Class Method Details

.jsii_propertiesObject



947
948
949
950
951
952
953
# File 'sagemaker/cfn_domain.rb', line 947

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



955
956
957
958
959
960
961
962
963
# File 'sagemaker/cfn_domain.rb', line 955

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