Interface CfnInstanceGroupConfig.IScalingConstraintsProperty
ScalingConstraints
is a subproperty of the AutoScalingPolicy
property type.
Namespace: Amazon.CDK.AWS.EMR
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IScalingConstraintsProperty
Syntax (vb)
Public Interface IScalingConstraintsProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EMR;
var scalingConstraintsProperty = new ScalingConstraintsProperty {
MaxCapacity = 123,
MinCapacity = 123
};
Synopsis
Properties
MaxCapacity | The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow. |
MinCapacity | The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink. |
Properties
MaxCapacity
The upper boundary of Amazon EC2 instances in an instance group beyond which scaling activities are not allowed to grow.
double MaxCapacity { get; }
Property Value
System.Double
Remarks
Scale-out activities will not add instances beyond this boundary.
MinCapacity
The lower boundary of Amazon EC2 instances in an instance group below which scaling activities are not allowed to shrink.
double MinCapacity { get; }
Property Value
System.Double
Remarks
Scale-in activities will not terminate instances below this boundary.