@Stability(value=Experimental) public static final class AsgCapacityProvider.Builder extends Object implements software.amazon.jsii.Builder<AsgCapacityProvider>
AsgCapacityProvider.| Modifier and Type | Method and Description |
|---|---|
AsgCapacityProvider.Builder |
autoScalingGroup(IAutoScalingGroup autoScalingGroup)
(experimental) The autoscaling group to add as a Capacity Provider.
|
AsgCapacityProvider |
build() |
AsgCapacityProvider.Builder |
canContainersAccessInstanceRole(Boolean canContainersAccessInstanceRole)
(experimental) Specifies whether the containers can access the container instance role.
|
AsgCapacityProvider.Builder |
capacityProviderName(String capacityProviderName)
(experimental) The name for the capacity provider.
|
static AsgCapacityProvider.Builder |
create(software.constructs.Construct scope,
String id) |
AsgCapacityProvider.Builder |
enableManagedScaling(Boolean enableManagedScaling)
(experimental) Whether to enable managed scaling.
|
AsgCapacityProvider.Builder |
enableManagedTerminationProtection(Boolean enableManagedTerminationProtection)
(experimental) Whether to enable managed termination protection.
|
AsgCapacityProvider.Builder |
machineImageType(MachineImageType machineImageType)
(experimental) Specify the machine image type.
|
AsgCapacityProvider.Builder |
maximumScalingStepSize(Number maximumScalingStepSize)
(experimental) Maximum scaling step size.
|
AsgCapacityProvider.Builder |
minimumScalingStepSize(Number minimumScalingStepSize)
(experimental) Minimum scaling step size.
|
AsgCapacityProvider.Builder |
spotInstanceDraining(Boolean spotInstanceDraining)
(experimental) Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.
|
AsgCapacityProvider.Builder |
targetCapacityPercent(Number targetCapacityPercent)
(experimental) Target capacity percent.
|
AsgCapacityProvider.Builder |
topicEncryptionKey(IKey topicEncryptionKey)
(experimental) 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. |
@Stability(value=Experimental) public static AsgCapacityProvider.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.AsgCapacityProvider.Builder.@Stability(value=Experimental) public AsgCapacityProvider.Builder canContainersAccessInstanceRole(Boolean canContainersAccessInstanceRole)
Default: false
canContainersAccessInstanceRole - Specifies whether the containers can access the container instance role. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder machineImageType(MachineImageType machineImageType)
Default: MachineImageType.AMAZON_LINUX_2
machineImageType - Specify the machine image type. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder spotInstanceDraining(Boolean spotInstanceDraining)
For more information, see Using Spot Instances.
Default: false
spotInstanceDraining - Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder topicEncryptionKey(IKey topicEncryptionKey)
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.
Default: The SNS Topic will not be encrypted.
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 parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
autoScalingGroup - The autoscaling group to add as a Capacity Provider. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder capacityProviderName(String capacityProviderName)
Default: CloudFormation-generated name
capacityProviderName - The name for the capacity provider. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder enableManagedScaling(Boolean enableManagedScaling)
Default: true
enableManagedScaling - Whether to enable managed scaling. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder enableManagedTerminationProtection(Boolean enableManagedTerminationProtection)
Default: true
enableManagedTerminationProtection - Whether to enable managed termination protection. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder maximumScalingStepSize(Number maximumScalingStepSize)
In most cases this should be left alone.
Default: 1000
maximumScalingStepSize - Maximum scaling step size. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder minimumScalingStepSize(Number minimumScalingStepSize)
In most cases this should be left alone.
Default: 1
minimumScalingStepSize - Minimum scaling step size. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider.Builder targetCapacityPercent(Number targetCapacityPercent)
In most cases this should be left alone.
Default: 100
targetCapacityPercent - Target capacity percent. This parameter is required.this@Stability(value=Experimental) public AsgCapacityProvider build()
build in interface software.amazon.jsii.Builder<AsgCapacityProvider>Copyright © 2021. All rights reserved.