public static final class AsgCapacityProviderProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AsgCapacityProviderProps
AsgCapacityProviderProps
AsgCapacityProviderProps.Builder, AsgCapacityProviderProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
IAutoScalingGroup |
getAutoScalingGroup()
The autoscaling group to add as a Capacity Provider.
|
java.lang.Boolean |
getCanContainersAccessInstanceRole()
Specifies whether the containers can access the container instance role.
|
java.lang.String |
getCapacityProviderName()
The name of the capacity provider.
|
java.lang.Boolean |
getEnableManagedScaling()
Whether to enable managed scaling.
|
java.lang.Boolean |
getEnableManagedTerminationProtection()
Whether to enable managed termination protection.
|
MachineImageType |
getMachineImageType()
What type of machine image this is.
|
java.lang.Number |
getMaximumScalingStepSize()
Maximum scaling step size.
|
java.lang.Number |
getMinimumScalingStepSize()
Minimum scaling step size.
|
java.lang.Boolean |
getSpotInstanceDraining()
Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.
|
java.lang.Number |
getTargetCapacityPercent()
Target capacity percent.
|
Duration |
getTaskDrainTime()
(deprecated) The time period to wait before force terminating an instance that is draining.
|
IKey |
getTopicEncryptionKey()
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. |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final IAutoScalingGroup getAutoScalingGroup()
AsgCapacityProviderProps
getAutoScalingGroup
in interface AsgCapacityProviderProps
public final java.lang.String getCapacityProviderName()
AsgCapacityProviderProps
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.
Default: CloudFormation-generated name
getCapacityProviderName
in interface AsgCapacityProviderProps
public final java.lang.Boolean getEnableManagedScaling()
AsgCapacityProviderProps
Default: true
getEnableManagedScaling
in interface AsgCapacityProviderProps
public final java.lang.Boolean getEnableManagedTerminationProtection()
AsgCapacityProviderProps
Default: true
getEnableManagedTerminationProtection
in interface AsgCapacityProviderProps
public final java.lang.Number getMaximumScalingStepSize()
AsgCapacityProviderProps
In most cases this should be left alone.
Default: 1000
getMaximumScalingStepSize
in interface AsgCapacityProviderProps
public final java.lang.Number getMinimumScalingStepSize()
AsgCapacityProviderProps
In most cases this should be left alone.
Default: 1
getMinimumScalingStepSize
in interface AsgCapacityProviderProps
public final java.lang.Number getTargetCapacityPercent()
AsgCapacityProviderProps
In most cases this should be left alone.
Default: 100
getTargetCapacityPercent
in interface AsgCapacityProviderProps
public final java.lang.Boolean getCanContainersAccessInstanceRole()
AddAutoScalingGroupCapacityOptions
Default: false
getCanContainersAccessInstanceRole
in interface AddAutoScalingGroupCapacityOptions
public final MachineImageType getMachineImageType()
AddAutoScalingGroupCapacityOptions
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.
Default: - Automatically determined from `machineImage`, if available, otherwise `MachineImageType.AMAZON_LINUX_2`.
getMachineImageType
in interface AddAutoScalingGroupCapacityOptions
public final java.lang.Boolean getSpotInstanceDraining()
AddAutoScalingGroupCapacityOptions
For more information, see Using Spot Instances.
Default: false
getSpotInstanceDraining
in interface AddAutoScalingGroupCapacityOptions
public final Duration getTaskDrainTime()
AddAutoScalingGroupCapacityOptions
This creates a Lambda function that is used by a lifecycle hook for the AutoScalingGroup that will delay instance termination until all ECS tasks have drained from the instance. Set to 0 to disable task draining.
Set to 0 to disable task draining.
Default: Duration.minutes(5)
getTaskDrainTime
in interface AddAutoScalingGroupCapacityOptions
public final IKey getTopicEncryptionKey()
AddAutoScalingGroupCapacityOptions
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.
getTopicEncryptionKey
in interface AddAutoScalingGroupCapacityOptions
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()