Class LaunchTemplateOverrides.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class LaunchTemplateOverrides.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements LaunchTemplateOverrides
An implementation for LaunchTemplateOverrides
  • 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(LaunchTemplateOverrides.Builder builder)
      Constructor that initializes the object based on literal property values passed by the LaunchTemplateOverrides.Builder.
  • Method Details

    • getInstanceType

      public final InstanceType getInstanceType()
      Description copied from interface: LaunchTemplateOverrides
      The instance type, such as m3.xlarge. You must use an instance type that is supported in your requested Region and Availability Zones.

      Default: - Do not override instance type

      Specified by:
      getInstanceType in interface LaunchTemplateOverrides
    • getLaunchTemplate

      public final ILaunchTemplate getLaunchTemplate()
      Description copied from interface: LaunchTemplateOverrides
      Provides the launch template to be used when launching the instance type.

      For example, some instance types might require a launch template with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's defined for your mixed instances policy.

      Default: - Do not override launch template

      Specified by:
      getLaunchTemplate in interface LaunchTemplateOverrides
    • getWeightedCapacity

      public final Number getWeightedCapacity()
      Description copied from interface: LaunchTemplateOverrides
      The number of capacity units provided by the specified instance type in terms of virtual CPUs, memory, storage, throughput, or other relative performance characteristic.

      When a Spot or On-Demand Instance is provisioned, the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling provisions instances until the desired capacity is totally fulfilled, even if this results in an overage. Value must be in the range of 1 to 999.

      For example, If there are 2 units remaining to fulfill capacity, and Amazon EC2 Auto Scaling can only provision an instance with a WeightedCapacity of 5 units, the instance is provisioned, and the desired capacity is exceeded by 3 units.

      Default: - Do not provide weight

      Specified by:
      getWeightedCapacity in interface LaunchTemplateOverrides
      See Also:
    • $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