Class: AWSCDK::Sagemaker::CfnCluster::TieredStorageConfigProperty

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

Overview

Configuration for tiered storage in the SageMaker HyperPod cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode:, instance_memory_allocation_percentage: nil) ⇒ TieredStorageConfigProperty

Returns a new instance of TieredStorageConfigProperty.

Parameters:

  • mode (String)

    The mode of tiered storage.

  • instance_memory_allocation_percentage (Numeric, nil) (defaults to: nil)

    The percentage of instance memory to allocate for tiered storage.



2121
2122
2123
2124
2125
2126
# File 'sagemaker/cfn_cluster.rb', line 2121

def initialize(mode:, instance_memory_allocation_percentage: nil)
  @mode = mode
  Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode")
  @instance_memory_allocation_percentage = instance_memory_allocation_percentage
  Jsii::Type.check_type(@instance_memory_allocation_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "instanceMemoryAllocationPercentage") unless @instance_memory_allocation_percentage.nil?
end

Instance Attribute Details

#instance_memory_allocation_percentageNumeric? (readonly)

The percentage of instance memory to allocate for tiered storage.



2137
2138
2139
# File 'sagemaker/cfn_cluster.rb', line 2137

def instance_memory_allocation_percentage
  @instance_memory_allocation_percentage
end

#modeString (readonly)

The mode of tiered storage.



2132
2133
2134
# File 'sagemaker/cfn_cluster.rb', line 2132

def mode
  @mode
end

Class Method Details

.jsii_propertiesObject



2139
2140
2141
2142
2143
2144
# File 'sagemaker/cfn_cluster.rb', line 2139

def self.jsii_properties
  {
    :mode => "mode",
    :instance_memory_allocation_percentage => "instanceMemoryAllocationPercentage",
  }
end

Instance Method Details

#to_jsiiObject



2146
2147
2148
2149
2150
2151
2152
2153
# File 'sagemaker/cfn_cluster.rb', line 2146

def to_jsii
  result = {}
  result.merge!({
    "mode" => @mode,
    "instanceMemoryAllocationPercentage" => @instance_memory_allocation_percentage,
  })
  result.compact
end