Interface AddAutoScalingGroupCapacityOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
AddCapacityOptions
,AsgCapacityProviderProps
- All Known Implementing Classes:
AddAutoScalingGroupCapacityOptions.Jsii$Proxy
,AddCapacityOptions.Jsii$Proxy
,AsgCapacityProviderProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:00.884Z")
@Stability(Stable)
public interface AddAutoScalingGroupCapacityOptions
extends software.amazon.jsii.JsiiSerializable
The properties for adding an AutoScalingGroup.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.ecs.*; import software.amazon.awscdk.services.kms.*; Key key; AddAutoScalingGroupCapacityOptions addAutoScalingGroupCapacityOptions = AddAutoScalingGroupCapacityOptions.builder() .canContainersAccessInstanceRole(false) .machineImageType(MachineImageType.AMAZON_LINUX_2) .spotInstanceDraining(false) .topicEncryptionKey(key) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAddAutoScalingGroupCapacityOptions
static final class
An implementation forAddAutoScalingGroupCapacityOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
Specifies whether the containers can access the container instance role.default MachineImageType
What type of machine image this is.default Boolean
Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.default 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.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCanContainersAccessInstanceRole
Specifies whether the containers can access the container instance role.Default: false
-
getMachineImageType
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`.
-
getSpotInstanceDraining
Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.For more information, see Using Spot Instances.
Default: false
-
getTopicEncryptionKey
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 for more information.Default: The SNS Topic will not be encrypted.
-
builder
-