Class: AWSCDK::Sagemaker::CfnCluster::ClusterFSXOpenZfsConfigProperty

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

Overview

Configuration for mounting an Amazon FSx OpenZFS 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_path: nil) ⇒ ClusterFSXOpenZfsConfigProperty

Returns a new instance of ClusterFSXOpenZfsConfigProperty.

Parameters:

  • dns_name (String)

    The DNS name of the FSx for OpenZFS file system.

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

    The mount path for the FSx for OpenZFS file system.



983
984
985
986
987
988
# File 'sagemaker/cfn_cluster.rb', line 983

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



994
995
996
# File 'sagemaker/cfn_cluster.rb', line 994

def dns_name
  @dns_name
end

#mount_pathString? (readonly)

The mount path for the FSx for OpenZFS file system.



999
1000
1001
# File 'sagemaker/cfn_cluster.rb', line 999

def mount_path
  @mount_path
end

Class Method Details

.jsii_propertiesObject



1001
1002
1003
1004
1005
1006
# File 'sagemaker/cfn_cluster.rb', line 1001

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

Instance Method Details

#to_jsiiObject



1008
1009
1010
1011
1012
1013
1014
1015
# File 'sagemaker/cfn_cluster.rb', line 1008

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