Class: AWSCDK::Sagemaker::CfnCluster::ClusterAutoScalingConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnCluster::ClusterAutoScalingConfigProperty
- Defined in:
- sagemaker/cfn_cluster.rb
Overview
Specifies the autoscaling configuration for a HyperPod cluster.
Instance Attribute Summary collapse
-
#auto_scaler_type ⇒ String?
readonly
The type of autoscaler to use.
-
#mode ⇒ String
readonly
Describes whether autoscaling is enabled or disabled for the cluster.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mode:, auto_scaler_type: nil) ⇒ ClusterAutoScalingConfigProperty
constructor
A new instance of ClusterAutoScalingConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mode:, auto_scaler_type: nil) ⇒ ClusterAutoScalingConfigProperty
Returns a new instance of ClusterAutoScalingConfigProperty.
770 771 772 773 774 775 |
# File 'sagemaker/cfn_cluster.rb', line 770 def initialize(mode:, auto_scaler_type: nil) @mode = mode Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") @auto_scaler_type = auto_scaler_type Jsii::Type.check_type(@auto_scaler_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "autoScalerType") unless @auto_scaler_type.nil? end |
Instance Attribute Details
#auto_scaler_type ⇒ String? (readonly)
Note:
Default: - "Karpenter"
The type of autoscaler to use.
Currently supported value is Karpenter .
791 792 793 |
# File 'sagemaker/cfn_cluster.rb', line 791 def auto_scaler_type @auto_scaler_type end |
#mode ⇒ String (readonly)
Describes whether autoscaling is enabled or disabled for the cluster.
Valid values are Enable and Disable .
783 784 785 |
# File 'sagemaker/cfn_cluster.rb', line 783 def mode @mode end |
Class Method Details
.jsii_properties ⇒ Object
793 794 795 796 797 798 |
# File 'sagemaker/cfn_cluster.rb', line 793 def self.jsii_properties { :mode => "mode", :auto_scaler_type => "autoScalerType", } end |
Instance Method Details
#to_jsii ⇒ Object
800 801 802 803 804 805 806 807 |
# File 'sagemaker/cfn_cluster.rb', line 800 def to_jsii result = {} result.merge!({ "mode" => @mode, "autoScalerType" => @auto_scaler_type, }) result.compact end |