@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.565Z") @Stability(value=Stable) public interface AddAutoScalingGroupCapacityOptions extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
AddAutoScalingGroupCapacityOptions.Builder
A builder for
AddAutoScalingGroupCapacityOptions |
static class |
AddAutoScalingGroupCapacityOptions.Jsii$Proxy
An implementation for
AddAutoScalingGroupCapacityOptions |
| Modifier and Type | Method and Description |
|---|---|
static AddAutoScalingGroupCapacityOptions.Builder |
builder() |
default Boolean |
getCanContainersAccessInstanceRole()
Specifies whether the containers can access the container instance role.
|
default MachineImageType |
getMachineImageType()
What type of machine image this is.
|
default Boolean |
getSpotInstanceDraining()
Specify whether to enable Automated Draining for Spot Instances running Amazon ECS Services.
|
default 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. |
@Stability(value=Stable) @Nullable default Boolean getCanContainersAccessInstanceRole()
Default: false
@Stability(value=Stable) @Nullable default MachineImageType getMachineImageType()
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`.
@Stability(value=Stable) @Nullable default Boolean getSpotInstanceDraining()
For more information, see Using Spot Instances.
Default: false
@Stability(value=Stable) @Nullable default IKey getTopicEncryptionKey()
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.
@Stability(value=Stable) static AddAutoScalingGroupCapacityOptions.Builder builder()
Copyright © 2022. All rights reserved.