Class: AWSCDK::Sagemaker::CfnCluster::TieredStorageConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnCluster::TieredStorageConfigProperty
- Defined in:
- sagemaker/cfn_cluster.rb
Overview
Configuration for tiered storage in the SageMaker HyperPod cluster.
Instance Attribute Summary collapse
-
#instance_memory_allocation_percentage ⇒ Numeric?
readonly
The percentage of instance memory to allocate for tiered storage.
-
#mode ⇒ String
readonly
The mode of tiered storage.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mode:, instance_memory_allocation_percentage: nil) ⇒ TieredStorageConfigProperty
constructor
A new instance of TieredStorageConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mode:, instance_memory_allocation_percentage: nil) ⇒ TieredStorageConfigProperty
Returns a new instance of TieredStorageConfigProperty.
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_percentage ⇒ Numeric? (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 |
#mode ⇒ String (readonly)
The mode of tiered storage.
2132 2133 2134 |
# File 'sagemaker/cfn_cluster.rb', line 2132 def mode @mode end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |