@Stability(value=Stable) public static final class AsgCapacityProviderProps.Builder extends Object implements software.amazon.jsii.Builder<AsgCapacityProviderProps>
AsgCapacityProviderProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) 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=Stable) public AsgCapacityProviderProps.Builder capacityProviderName(String capacityProviderName)
AsgCapacityProviderProps.getCapacityProviderName()capacityProviderName - The name of the capacity provider.
If a name is specified,
it cannot start with aws, ecs, or fargate. If no name is specified,
a default name in the CFNStackName-CFNResourceName-RandomString format is used.this@Stability(value=Stable) public AsgCapacityProviderProps.Builder enableManagedScaling(Boolean enableManagedScaling)
AsgCapacityProviderProps.getEnableManagedScaling()enableManagedScaling - Whether to enable managed scaling.this@Stability(value=Stable) public AsgCapacityProviderProps.Builder enableManagedTerminationProtection(Boolean enableManagedTerminationProtection)
AsgCapacityProviderProps.getEnableManagedTerminationProtection()enableManagedTerminationProtection - Whether to enable managed termination protection.this@Stability(value=Stable) public AsgCapacityProviderProps.Builder maximumScalingStepSize(Number maximumScalingStepSize)
AsgCapacityProviderProps.getMaximumScalingStepSize()maximumScalingStepSize - Maximum scaling step size.
In most cases this should be left alone.this@Stability(value=Stable) public AsgCapacityProviderProps.Builder minimumScalingStepSize(Number minimumScalingStepSize)
AsgCapacityProviderProps.getMinimumScalingStepSize()minimumScalingStepSize - Minimum scaling step size.
In most cases this should be left alone.this@Stability(value=Stable) public AsgCapacityProviderProps.Builder targetCapacityPercent(Number targetCapacityPercent)
AsgCapacityProviderProps.getTargetCapacityPercent()targetCapacityPercent - Target capacity percent.
In most cases this should be left alone.this@Stability(value=Stable) public AsgCapacityProviderProps.Builder canContainersAccessInstanceRole(Boolean canContainersAccessInstanceRole)
AddAutoScalingGroupCapacityOptions.getCanContainersAccessInstanceRole()canContainersAccessInstanceRole - Specifies whether the containers can access the container instance role.this@Stability(value=Stable) public AsgCapacityProviderProps.Builder machineImageType(MachineImageType machineImageType)
AddAutoScalingGroupCapacityOptions.getMachineImageType()machineImageType - What type of machine image this is.
Depending on the setting, different UserData will automatically be added
to the AutoScalingGroup to configure it properly for use with ECS.
If you create an AutoScalingGroup yourself and are adding it via
addAutoScalingGroup(), you must specify this value. If you are adding an
autoScalingGroup via addCapacity, this value will be determined
from the machineImage you pass.
this@Stability(value=Stable) 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=Stable) 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=Stable) public AsgCapacityProviderProps build()
build in interface software.amazon.jsii.Builder<AsgCapacityProviderProps>AsgCapacityProviderPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.