Class AddAutoScalingGroupCapacityOptions.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.AddAutoScalingGroupCapacityOptions.Jsii$Proxy
All Implemented Interfaces:
AddAutoScalingGroupCapacityOptions, software.amazon.jsii.JsiiSerializable
Enclosing interface:
AddAutoScalingGroupCapacityOptions

@Stability(Stable) @Internal public static final class AddAutoScalingGroupCapacityOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements AddAutoScalingGroupCapacityOptions
  • 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

      protected Jsii$Proxy(AddAutoScalingGroupCapacityOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the AddAutoScalingGroupCapacityOptions.Builder.
  • Method Details

    • getCanContainersAccessInstanceRole

      public final Boolean getCanContainersAccessInstanceRole()
      Description copied from interface: AddAutoScalingGroupCapacityOptions
      Specifies whether the containers can access the container instance role.

      Default: false

      Specified by:
      getCanContainersAccessInstanceRole in interface AddAutoScalingGroupCapacityOptions
    • getMachineImageType

      public final MachineImageType 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 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`.

      Specified by:
      getMachineImageType in interface AddAutoScalingGroupCapacityOptions
    • getSpotInstanceDraining

      public final Boolean 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 interface AddAutoScalingGroupCapacityOptions
    • getTopicEncryptionKey

      public final IKey getTopicEncryptionKey()
      Description copied from interface: AddAutoScalingGroupCapacityOptions
      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 for more information.

      Default: The SNS Topic will not be encrypted.

      Specified by:
      getTopicEncryptionKey in interface AddAutoScalingGroupCapacityOptions
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object