@Stability(value=Stable) public static final class CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnCapacityProvider.AutoScalingGroupProviderProperty>
CfnCapacityProvider.AutoScalingGroupProviderProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder |
autoScalingGroupArn(String autoScalingGroupArn)
|
CfnCapacityProvider.AutoScalingGroupProviderProperty |
build()
Builds the configured instance.
|
CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder |
managedScaling(CfnCapacityProvider.ManagedScalingProperty managedScaling)
Sets the value of
CfnCapacityProvider.AutoScalingGroupProviderProperty.getManagedScaling() |
CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder |
managedScaling(IResolvable managedScaling)
Sets the value of
CfnCapacityProvider.AutoScalingGroupProviderProperty.getManagedScaling() |
CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder |
managedTerminationProtection(String managedTerminationProtection)
|
@Stability(value=Stable) public CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder autoScalingGroupArn(String autoScalingGroupArn)
autoScalingGroupArn - The Amazon Resource Name (ARN) or short name that identifies the Auto Scaling group. This parameter is required.this@Stability(value=Stable) public CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder managedScaling(CfnCapacityProvider.ManagedScalingProperty managedScaling)
CfnCapacityProvider.AutoScalingGroupProviderProperty.getManagedScaling()managedScaling - The managed scaling settings for the Auto Scaling group capacity provider.this@Stability(value=Stable) public CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder managedScaling(IResolvable managedScaling)
CfnCapacityProvider.AutoScalingGroupProviderProperty.getManagedScaling()managedScaling - The managed scaling settings for the Auto Scaling group capacity provider.this@Stability(value=Stable) public CfnCapacityProvider.AutoScalingGroupProviderProperty.Builder managedTerminationProtection(String managedTerminationProtection)
CfnCapacityProvider.AutoScalingGroupProviderProperty.getManagedTerminationProtection()managedTerminationProtection - 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 disabled.
When using managed termination protection, managed scaling must also be used otherwise managed termination protection doesn't work.
When managed termination protection is enabled, 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 enabled as well. For more information, see Instance Protection in the AWS Auto Scaling User Guide .
When managed termination protection is disabled, your Amazon EC2 instances aren't protected from termination when the Auto Scaling group scales in.
this@Stability(value=Stable) public CfnCapacityProvider.AutoScalingGroupProviderProperty build()
build in interface software.amazon.jsii.Builder<CfnCapacityProvider.AutoScalingGroupProviderProperty>CfnCapacityProvider.AutoScalingGroupProviderPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.