Class: AWSCDK::Sagemaker::CfnCluster::CapacitySizeConfigProperty

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

Overview

The configuration of the size measurements of the AMI update.

Using this configuration, you can specify whether SageMaker should update your instance group by an amount or percentage of instances.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ CapacitySizeConfigProperty

Returns a new instance of CapacitySizeConfigProperty.

Parameters:

  • type (String)

    Specifies whether SageMaker should process the update by amount or percentage of instances.

  • value (Numeric)

    Specifies the amount or percentage of instances SageMaker updates at a time.



727
728
729
730
731
732
# File 'sagemaker/cfn_cluster.rb', line 727

def initialize(type:, value:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#typeString (readonly)

Specifies whether SageMaker should process the update by amount or percentage of instances.



738
739
740
# File 'sagemaker/cfn_cluster.rb', line 738

def type
  @type
end

#valueNumeric (readonly)

Specifies the amount or percentage of instances SageMaker updates at a time.



743
744
745
# File 'sagemaker/cfn_cluster.rb', line 743

def value
  @value
end

Class Method Details

.jsii_propertiesObject



745
746
747
748
749
750
# File 'sagemaker/cfn_cluster.rb', line 745

def self.jsii_properties
  {
    :type => "type",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



752
753
754
755
756
757
758
759
# File 'sagemaker/cfn_cluster.rb', line 752

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "value" => @value,
  })
  result.compact
end