Class: AWSCDK::Sagemaker::CfnCluster::CapacitySizeConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnCluster::CapacitySizeConfigProperty
- 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
-
#type ⇒ String
readonly
Specifies whether SageMaker should process the update by amount or percentage of instances.
-
#value ⇒ Numeric
readonly
Specifies the amount or percentage of instances SageMaker updates at a time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, value:) ⇒ CapacitySizeConfigProperty
constructor
A new instance of CapacitySizeConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, value:) ⇒ CapacitySizeConfigProperty
Returns a new instance of CapacitySizeConfigProperty.
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
#type ⇒ String (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 |
#value ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |