Class: AWSCDK::Sagemaker::CfnCluster::SharedEnvironmentConfigProperty

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

Overview

The shared environment configuration for restricted instance groups that use cluster-level shared FSx Lustre storage.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(f_sx_lustre_deletion_policy:, f_sx_lustre_config: nil) ⇒ SharedEnvironmentConfigProperty

Returns a new instance of SharedEnvironmentConfigProperty.

Parameters:



2076
2077
2078
2079
2080
2081
# File 'sagemaker/cfn_cluster.rb', line 2076

def initialize(f_sx_lustre_deletion_policy:, f_sx_lustre_config: nil)
  @f_sx_lustre_deletion_policy = f_sx_lustre_deletion_policy
  Jsii::Type.check_type(@f_sx_lustre_deletion_policy, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fSxLustreDeletionPolicy")
  @f_sx_lustre_config = f_sx_lustre_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnCluster::FSXLustreConfigProperty.new(**f_sx_lustre_config.transform_keys(&:to_sym)) : f_sx_lustre_config
  Jsii::Type.check_type(@f_sx_lustre_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuQ2x1c3Rlci5GU3hMdXN0cmVDb25maWdQcm9wZXJ0eSJ9XX19")), "fSxLustreConfig") unless @f_sx_lustre_config.nil?
end

Instance Attribute Details

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

Configuration settings for an Amazon FSx for Lustre file system to be used with the cluster.



2094
2095
2096
# File 'sagemaker/cfn_cluster.rb', line 2094

def f_sx_lustre_config
  @f_sx_lustre_config
end

#f_sx_lustre_deletion_policyString (readonly)

The deletion policy for the shared FSx Lustre file system.

Keep retains the FSx when RIGs are deleted. DeleteIfNotUsed deletes the FSx when no RIGs reference it.



2089
2090
2091
# File 'sagemaker/cfn_cluster.rb', line 2089

def f_sx_lustre_deletion_policy
  @f_sx_lustre_deletion_policy
end

Class Method Details

.jsii_propertiesObject



2096
2097
2098
2099
2100
2101
# File 'sagemaker/cfn_cluster.rb', line 2096

def self.jsii_properties
  {
    :f_sx_lustre_deletion_policy => "fSxLustreDeletionPolicy",
    :f_sx_lustre_config => "fSxLustreConfig",
  }
end

Instance Method Details

#to_jsiiObject



2103
2104
2105
2106
2107
2108
2109
2110
# File 'sagemaker/cfn_cluster.rb', line 2103

def to_jsii
  result = {}
  result.merge!({
    "fSxLustreDeletionPolicy" => @f_sx_lustre_deletion_policy,
    "fSxLustreConfig" => @f_sx_lustre_config,
  })
  result.compact
end