Class: AWSCDK::Sagemaker::CfnSpace::CustomFileSystemProperty

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

Overview

A file system, created by you, that you assign 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: nil, f_sx_lustre_file_system: nil, s3_file_system: nil) ⇒ CustomFileSystemProperty

Returns a new instance of CustomFileSystemProperty.

Parameters:



651
652
653
654
655
656
657
658
# File 'sagemaker/cfn_space.rb', line 651

def initialize(efs_file_system: nil, f_sx_lustre_file_system: nil, s3_file_system: nil)
  @efs_file_system = efs_file_system.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnSpace::EFSFileSystemProperty.new(**efs_file_system.transform_keys(&:to_sym)) : efs_file_system
  Jsii::Type.check_type(@efs_file_system, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuU3BhY2UuRUZTRmlsZVN5c3RlbVByb3BlcnR5In1dfX0=")), "efsFileSystem") unless @efs_file_system.nil?
  @f_sx_lustre_file_system = f_sx_lustre_file_system.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnSpace::FSXLustreFileSystemProperty.new(**f_sx_lustre_file_system.transform_keys(&:to_sym)) : f_sx_lustre_file_system
  Jsii::Type.check_type(@f_sx_lustre_file_system, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuU3BhY2UuRlN4THVzdHJlRmlsZVN5c3RlbVByb3BlcnR5In1dfX0=")), "fSxLustreFileSystem") unless @f_sx_lustre_file_system.nil?
  @s3_file_system = s3_file_system.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnSpace::S3FileSystemProperty.new(**s3_file_system.transform_keys(&:to_sym)) : s3_file_system
  Jsii::Type.check_type(@s3_file_system, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuU3BhY2UuUzNGaWxlU3lzdGVtUHJvcGVydHkifV19fQ==")), "s3FileSystem") unless @s3_file_system.nil?
end

Instance Attribute Details

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

A custom file system in Amazon EFS.



664
665
666
# File 'sagemaker/cfn_space.rb', line 664

def efs_file_system
  @efs_file_system
end

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

A custom file system in Amazon FSx for Lustre.



669
670
671
# File 'sagemaker/cfn_space.rb', line 669

def f_sx_lustre_file_system
  @f_sx_lustre_file_system
end

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

A custom file system in Amazon S3.

This is only supported in Amazon SageMaker Unified Studio.



676
677
678
# File 'sagemaker/cfn_space.rb', line 676

def s3_file_system
  @s3_file_system
end

Class Method Details

.jsii_propertiesObject



678
679
680
681
682
683
684
# File 'sagemaker/cfn_space.rb', line 678

def self.jsii_properties
  {
    :efs_file_system => "efsFileSystem",
    :f_sx_lustre_file_system => "fSxLustreFileSystem",
    :s3_file_system => "s3FileSystem",
  }
end

Instance Method Details

#to_jsiiObject



686
687
688
689
690
691
692
693
694
# File 'sagemaker/cfn_space.rb', line 686

def to_jsii
  result = {}
  result.merge!({
    "efsFileSystem" => @efs_file_system,
    "fSxLustreFileSystem" => @f_sx_lustre_file_system,
    "s3FileSystem" => @s3_file_system,
  })
  result.compact
end