Class: AWSCDK::Sagemaker::CfnCluster::ClusterFSXLustreConfigProperty

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

Overview

Configuration for mounting an Amazon FSx Lustre file system to the instances in the SageMaker HyperPod cluster instance group.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dns_name:, mount_name:, mount_path: nil) ⇒ ClusterFSXLustreConfigProperty

Returns a new instance of ClusterFSXLustreConfigProperty.

Parameters:

  • dns_name (String)

    The DNS name of the FSx for Lustre file system.

  • mount_name (String)

    The mount name of the FSx for Lustre file system.

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

    The mount path for the FSx for Lustre file system.



931
932
933
934
935
936
937
938
# File 'sagemaker/cfn_cluster.rb', line 931

def initialize(dns_name:, mount_name:, mount_path: nil)
  @dns_name = dns_name
  Jsii::Type.check_type(@dns_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsName")
  @mount_name = mount_name
  Jsii::Type.check_type(@mount_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mountName")
  @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

#dns_nameString (readonly)

The DNS name of the FSx for Lustre file system.



944
945
946
# File 'sagemaker/cfn_cluster.rb', line 944

def dns_name
  @dns_name
end

#mount_nameString (readonly)

The mount name of the FSx for Lustre file system.



949
950
951
# File 'sagemaker/cfn_cluster.rb', line 949

def mount_name
  @mount_name
end

#mount_pathString? (readonly)

The mount path for the FSx for Lustre file system.



954
955
956
# File 'sagemaker/cfn_cluster.rb', line 954

def mount_path
  @mount_path
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :dns_name => "dnsName",
    :mount_name => "mountName",
    :mount_path => "mountPath",
  }
end

Instance Method Details

#to_jsiiObject



964
965
966
967
968
969
970
971
972
# File 'sagemaker/cfn_cluster.rb', line 964

def to_jsii
  result = {}
  result.merge!({
    "dnsName" => @dns_name,
    "mountName" => @mount_name,
    "mountPath" => @mount_path,
  })
  result.compact
end