@Stability(value=Experimental) public static final class AsgCapacityProviderProps.Builder extends Object implements software.amazon.jsii.Builder<AsgCapacityProviderProps>
AsgCapacityProviderProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Experimental) public AsgCapacityProviderProps.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
AsgCapacityProviderProps.getAutoScalingGroup()autoScalingGroup - The autoscaling group to add as a Capacity Provider. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder capacityProviderName(String capacityProviderName)
AsgCapacityProviderProps.getCapacityProviderName()capacityProviderName - The name for the capacity provider.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder enableManagedScaling(Boolean enableManagedScaling)
AsgCapacityProviderProps.getEnableManagedScaling()enableManagedScaling - Whether to enable managed scaling.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder enableManagedTerminationProtection(Boolean enableManagedTerminationProtection)
AsgCapacityProviderProps.getEnableManagedTerminationProtection()enableManagedTerminationProtection - Whether to enable managed termination protection.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder maximumScalingStepSize(Number maximumScalingStepSize)
AsgCapacityProviderProps.getMaximumScalingStepSize()maximumScalingStepSize - Maximum scaling step size.
In most cases this should be left alone.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder minimumScalingStepSize(Number minimumScalingStepSize)
AsgCapacityProviderProps.getMinimumScalingStepSize()minimumScalingStepSize - Minimum scaling step size.
In most cases this should be left alone.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder targetCapacityPercent(Number targetCapacityPercent)
AsgCapacityProviderProps.getTargetCapacityPercent()targetCapacityPercent - Target capacity percent.
In most cases this should be left alone.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder canContainersAccessInstanceRole(Boolean canContainersAccessInstanceRole)
AddAutoScalingGroupCapacityOptions.getCanContainersAccessInstanceRole()canContainersAccessInstanceRole - Specifies whether the containers can access the container instance role.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder machineImageType(MachineImageType machineImageType)
AddAutoScalingGroupCapacityOptions.getMachineImageType()machineImageType - Specify the machine image type.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder spotInstanceDraining(Boolean spotInstanceDraining)
AddAutoScalingGroupCapacityOptions.getSpotInstanceDraining()spotInstanceDraining - Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.
For more information, see Using Spot Instances.this@Stability(value=Experimental) public AsgCapacityProviderProps.Builder topicEncryptionKey(IKey topicEncryptionKey)
AddAutoScalingGroupCapacityOptions.getTopicEncryptionKey()topicEncryptionKey - If AddAutoScalingGroupCapacityOptions.taskDrainTime is non-zero, then the ECS cluster creates an SNS Topic to as part of a system to drain instances of tasks when the instance is being shut down. If this property is provided, then this key will be used to encrypt the contents of that SNS Topic. See [SNS Data Encryption](https://docs.aws.amazon.com/sns/latest/dg/sns-data-encryption.html) for more information.this@Stability(value=Experimental) public AsgCapacityProviderProps build()
build in interface software.amazon.jsii.Builder<AsgCapacityProviderProps>AsgCapacityProviderPropsNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.