ManagedScalingProperty Struct
The managed scaling settings for the Auto Scaling group capacity provider.
When managed scaling is turned on, Amazon ECS manages the scale-in and scale-out actions of the Auto Scaling group. Amazon ECS manages a target tracking scaling policy using an Amazon ECS managed CloudWatch metric with the specified targetCapacity value as the target value for the metric. For more information, see Using managed scaling in the Amazon Elastic Container Service Developer Guide .
If managed scaling is off, the user must manage the scaling of the Auto Scaling group.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const managedScalingProperty: ecs.CfnCapacityProvider.ManagedScalingProperty = {
instanceWarmupPeriod: 123,
maximumScalingStepSize: 123,
minimumScalingStepSize: 123,
status: 'status',
targetCapacity: 123,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ecs as ecs
managed_scaling_property = ecs.CfnCapacityProvider.ManagedScalingProperty(
instance_warmup_period=123,
maximum_scaling_step_size=123,
minimum_scaling_step_size=123,
status="status",
target_capacity=123
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ecs.*;
ManagedScalingProperty managedScalingProperty = ManagedScalingProperty.builder()
.instanceWarmupPeriod(123)
.maximumScalingStepSize(123)
.minimumScalingStepSize(123)
.status("status")
.targetCapacity(123)
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ECS;
var managedScalingProperty = new ManagedScalingProperty {
InstanceWarmupPeriod = 123,
MaximumScalingStepSize = 123,
MinimumScalingStepSize = 123,
Status = "status",
TargetCapacity = 123
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
managedScalingProperty := &ManagedScalingProperty{
InstanceWarmupPeriod: jsii.Number(123),
MaximumScalingStepSize: jsii.Number(123),
MinimumScalingStepSize: jsii.Number(123),
Status: jsii.String("status"),
TargetCapacity: jsii.Number(123),
}
Properties
instanceWarmupPeriodoptionalnumberinstance_warmup_periodoptionalint | floatinstanceWarmupPeriodoptionalNumberInstanceWarmupPeriodoptionaldoubleInstanceWarmupPeriodoptional*float64 #If this parameter is omitted, the default value of 300 seconds is used.
maximumScalingStepSizeoptionalnumbermaximum_scaling_step_sizeoptionalint | floatmaximumScalingStepSizeoptionalNumberMaximumScalingStepSizeoptionaldoubleMaximumScalingStepSizeoptional*float64 #If this parameter is omitted, the default value of 10000 is used.
minimumScalingStepSizeoptionalnumberminimum_scaling_step_sizeoptionalint | floatminimumScalingStepSizeoptionalNumberMinimumScalingStepSizeoptionaldoubleMinimumScalingStepSizeoptional*float64 #notes
The scale in process is not affected by this parameter If this parameter is omitted, the default value of 1 is used.
When additional capacity is required, Amazon ECS will scale up the minimum scaling step size even if the actual demand is less than the minimum scaling step size.
statusoptionalstringstatusoptionalstrstatusoptionalStringStatusoptionalstringStatusoptional*string #targetCapacityoptionalnumbertarget_capacityoptionalint | floattargetCapacityoptionalNumberTargetCapacityoptionaldoubleTargetCapacityoptional*float64 #notes
The specified value must be greater than 0 and less than or equal to 100 . For example, if you want the capacity provider to maintain 10% spare capacity, then that means the utilization is 90%, so use a targetCapacity of 90 . The default value of 100 percent results in the Amazon EC2 instances in your Auto Scaling group being completely used.