Interface CfnCapacityProviderPropsMixin.AutoScalingGroupProviderProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnCapacityProviderPropsMixin.AutoScalingGroupProviderProperty.Jsii$Proxy
- Enclosing class:
CfnCapacityProviderPropsMixin
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ecs.*;
AutoScalingGroupProviderProperty autoScalingGroupProviderProperty = AutoScalingGroupProviderProperty.builder()
.autoScalingGroupArn("autoScalingGroupArn")
.managedDraining("managedDraining")
.managedScaling(ManagedScalingProperty.builder()
.instanceWarmupPeriod(123)
.maximumScalingStepSize(123)
.minimumScalingStepSize(123)
.status("status")
.targetCapacity(123)
.build())
.managedTerminationProtection("managedTerminationProtection")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forCfnCapacityProviderPropsMixin.AutoScalingGroupProviderProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group name.default StringThe managed draining option for the Auto Scaling group capacity provider.default ObjectThe managed scaling settings for the Auto Scaling group capacity provider.default StringThe managed termination protection setting to use for the Auto Scaling group capacity provider.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoScalingGroupArn
The Amazon Resource Name (ARN) that identifies the Auto Scaling group, or the Auto Scaling group name.Returns union: either
StringorIAutoScalingGroupRef- See Also:
-
getManagedDraining
The managed draining option for the Auto Scaling group capacity provider.When you enable this, Amazon ECS manages and gracefully drains the EC2 container instances that are in the Auto Scaling group capacity provider.
- See Also:
-
getManagedScaling
The managed scaling settings for the Auto Scaling group capacity provider.Returns union: either
IResolvableorCfnCapacityProviderPropsMixin.ManagedScalingProperty- See Also:
-
getManagedTerminationProtection
The managed termination protection setting to use for the Auto Scaling group capacity provider.This determines whether the Auto Scaling group has managed termination protection. The default is off.
When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.
When managed termination protection is on, Amazon ECS prevents the Amazon EC2 instances in an Auto Scaling group that contain tasks from being terminated during a scale-in action. The Auto Scaling group and each instance in the Auto Scaling group must have instance protection from scale-in actions on as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide .
When managed termination protection is off, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.
- See Also:
-
builder
@Stability(Stable) static CfnCapacityProviderPropsMixin.AutoScalingGroupProviderProperty.Builder builder()
-