Class AsgCapacityProviderProps.Jsii$Proxy
- All Implemented Interfaces:
AddAutoScalingGroupCapacityOptions
,AsgCapacityProviderProps
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- AsgCapacityProviderProps
AsgCapacityProviderProps
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.AsgCapacityProviderProps
AsgCapacityProviderProps.Builder, AsgCapacityProviderProps.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor that initializes the object based on literal property values passed by theAsgCapacityProviderProps.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
final IAutoScalingGroup
The autoscaling group to add as a Capacity Provider.final Boolean
Specifies whether the containers can access the container instance role.final String
The name of the capacity provider.final Boolean
Whether to enable managed scaling.final Boolean
Whether to enable managed termination protection.final MachineImageType
What type of machine image this is.final Number
Maximum scaling step size.final Number
Minimum scaling step size.final Boolean
Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.final Number
Target capacity percent.final Duration
(deprecated) The time period to wait before force terminating an instance that is draining.final IKey
IfAddAutoScalingGroupCapacityOptions.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.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theAsgCapacityProviderProps.Builder
.
-
-
Method Details
-
getAutoScalingGroup
Description copied from interface:AsgCapacityProviderProps
The autoscaling group to add as a Capacity Provider.- Specified by:
getAutoScalingGroup
in interfaceAsgCapacityProviderProps
-
getCapacityProviderName
Description copied from interface:AsgCapacityProviderProps
The name of the capacity provider.If a name is specified, it cannot start with
aws
,ecs
, orfargate
. If no name is specified, a default name in the CFNStackName-CFNResourceName-RandomString format is used.Default: CloudFormation-generated name
- Specified by:
getCapacityProviderName
in interfaceAsgCapacityProviderProps
-
getEnableManagedScaling
Description copied from interface:AsgCapacityProviderProps
Whether to enable managed scaling.Default: true
- Specified by:
getEnableManagedScaling
in interfaceAsgCapacityProviderProps
-
getEnableManagedTerminationProtection
Description copied from interface:AsgCapacityProviderProps
Whether to enable managed termination protection.Default: true
- Specified by:
getEnableManagedTerminationProtection
in interfaceAsgCapacityProviderProps
-
getMaximumScalingStepSize
Description copied from interface:AsgCapacityProviderProps
Maximum scaling step size.In most cases this should be left alone.
Default: 1000
- Specified by:
getMaximumScalingStepSize
in interfaceAsgCapacityProviderProps
-
getMinimumScalingStepSize
Description copied from interface:AsgCapacityProviderProps
Minimum scaling step size.In most cases this should be left alone.
Default: 1
- Specified by:
getMinimumScalingStepSize
in interfaceAsgCapacityProviderProps
-
getTargetCapacityPercent
Description copied from interface:AsgCapacityProviderProps
Target capacity percent.In most cases this should be left alone.
Default: 100
- Specified by:
getTargetCapacityPercent
in interfaceAsgCapacityProviderProps
-
getCanContainersAccessInstanceRole
Description copied from interface:AddAutoScalingGroupCapacityOptions
Specifies whether the containers can access the container instance role.Default: false
- Specified by:
getCanContainersAccessInstanceRole
in interfaceAddAutoScalingGroupCapacityOptions
-
getMachineImageType
Description copied from interface:AddAutoScalingGroupCapacityOptions
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 viaaddAutoScalingGroup()
, you must specify this value. If you are adding anautoScalingGroup
viaaddCapacity
, this value will be determined from themachineImage
you pass.Default: - Automatically determined from `machineImage`, if available, otherwise `MachineImageType.AMAZON_LINUX_2`.
- Specified by:
getMachineImageType
in interfaceAddAutoScalingGroupCapacityOptions
-
getSpotInstanceDraining
Description copied from interface:AddAutoScalingGroupCapacityOptions
Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.For more information, see Using Spot Instances.
Default: false
- Specified by:
getSpotInstanceDraining
in interfaceAddAutoScalingGroupCapacityOptions
-
getTaskDrainTime
Description copied from interface:AddAutoScalingGroupCapacityOptions
(deprecated) The time period to wait before force terminating an instance that is draining.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)
- Specified by:
getTaskDrainTime
in interfaceAddAutoScalingGroupCapacityOptions
-
getTopicEncryptionKey
Description copied from interface:AddAutoScalingGroupCapacityOptions
IfAddAutoScalingGroupCapacityOptions.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.
- Specified by:
getTopicEncryptionKey
in interfaceAddAutoScalingGroupCapacityOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-