Class: AWSCDK::Sagemaker::CfnCluster::ClusterAutoScalingConfigProperty

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

Overview

Specifies the autoscaling configuration for a HyperPod cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(mode:, auto_scaler_type: nil) ⇒ ClusterAutoScalingConfigProperty

Returns a new instance of ClusterAutoScalingConfigProperty.

Parameters:

  • mode (String)

    Describes whether autoscaling is enabled or disabled for the cluster.

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

    The type of autoscaler to use.



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_typeString? (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

#modeString (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_propertiesObject



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_jsiiObject



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