Class: AWSCDK::EMR::CfnInstanceGroupConfig::ScalingConstraintsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EMR::CfnInstanceGroupConfig::ScalingConstraintsProperty
- Defined in:
- emr/cfn_instance_group_config.rb
Overview
ScalingConstraints is a subproperty of the AutoScalingPolicy property type.
ScalingConstraints defines the upper and lower EC2 instance limits for an automatic scaling policy. Automatic scaling activities triggered by automatic scaling rules will not cause an instance group to grow above or shrink below these limits.
Instance Attribute Summary collapse
-
#max_capacity ⇒ Numeric
readonly
The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow.
-
#min_capacity ⇒ Numeric
readonly
The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(max_capacity:, min_capacity:) ⇒ ScalingConstraintsProperty
constructor
A new instance of ScalingConstraintsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(max_capacity:, min_capacity:) ⇒ ScalingConstraintsProperty
Returns a new instance of ScalingConstraintsProperty.
1048 1049 1050 1051 1052 1053 |
# File 'emr/cfn_instance_group_config.rb', line 1048 def initialize(max_capacity:, min_capacity:) @max_capacity = max_capacity Jsii::Type.check_type(@max_capacity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxCapacity") @min_capacity = min_capacity Jsii::Type.check_type(@min_capacity, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minCapacity") end |
Instance Attribute Details
#max_capacity ⇒ Numeric (readonly)
The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow.
Scale-out activities will not add instances beyond this boundary.
1061 1062 1063 |
# File 'emr/cfn_instance_group_config.rb', line 1061 def max_capacity @max_capacity end |
#min_capacity ⇒ Numeric (readonly)
The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink.
Scale-in activities will not terminate instances below this boundary.
1068 1069 1070 |
# File 'emr/cfn_instance_group_config.rb', line 1068 def min_capacity @min_capacity end |
Class Method Details
.jsii_properties ⇒ Object
1070 1071 1072 1073 1074 1075 |
# File 'emr/cfn_instance_group_config.rb', line 1070 def self.jsii_properties { :max_capacity => "maxCapacity", :min_capacity => "minCapacity", } end |
Instance Method Details
#to_jsii ⇒ Object
1077 1078 1079 1080 1081 1082 1083 1084 |
# File 'emr/cfn_instance_group_config.rb', line 1077 def to_jsii result = {} result.merge!({ "maxCapacity" => @max_capacity, "minCapacity" => @min_capacity, }) result.compact end |