All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.autoscaling.kotlin.inputs.AutoScalingGroupInstanceRequirementsArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.autoscaling.kotlin.inputs

import com.pulumi.awsnative.autoscaling.inputs.AutoScalingGroupInstanceRequirementsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The attributes for the instance types for a mixed instances policy. Amazon EC2 Auto Scaling uses your specified requirements to identify instance types. Then, it uses your On-Demand and Spot allocation strategies to launch instances from these instance types.
 *  When you specify multiple attributes, you get instance types that satisfy all of the specified attributes. If you specify multiple values for an attribute, you get instance types that satisfy any of the specified values.
 *  To limit the list of instance types from which Amazon EC2 Auto Scaling can identify matching instance types, you can use one of the following parameters, but not both in the same request:
 *   +   ``AllowedInstanceTypes`` - The instance types to include in the list. All other instance types are ignored, even if they match your specified attributes.
 *   +   ``ExcludedInstanceTypes`` - The instance types to exclude from the list, even if they match your specified attributes.
 *   You must specify ``VCpuCount`` and ``MemoryMiB``. All other attributes are optional. Any unspecified optional attribute is set to its default.
 *   For an example template, see [Configure Amazon EC2 Auto Scaling resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2-auto-scaling.html).
 *  For more information, see [Creating an Auto Scaling group using attribute-based instance type selection](https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html) in the *Amazon EC2 Auto Scaling User Guide*. For help determining which instance types match your attributes before you apply them to your Auto Scaling group, see [Preview instance types with specified attributes](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-get-instance-types-from-instance-requirements) in the *Amazon EC2 User Guide for Linux Instances*.
 *   ``InstanceRequirements`` is a property of the ``LaunchTemplateOverrides`` property of the [AWS::AutoScaling::AutoScalingGroup LaunchTemplate](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-autoscaling-autoscalinggroup-launchtemplate.html) property type.
 * @property acceleratorCount The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) for an instance type.
 *  To exclude accelerator-enabled instance types, set ``Max`` to ``0``.
 *  Default: No minimum or maximum limits
 * @property acceleratorManufacturers Indicates whether instance types must have accelerators by specific manufacturers.
 *   +  For instance types with NVIDIA devices, specify ``nvidia``.
 *   +  For instance types with AMD devices, specify ``amd``.
 *   +  For instance types with AWS devices, specify ``amazon-web-services``.
 *   +  For instance types with Xilinx devices, specify ``xilinx``.
 *  Default: Any manufacturer
 * @property acceleratorNames Lists the accelerators that must be on an instance type.
 *   +  For instance types with NVIDIA A100 GPUs, specify ``a100``.
 *   +  For instance types with NVIDIA V100 GPUs, specify ``v100``.
 *   +  For instance types with NVIDIA K80 GPUs, specify ``k80``.
 *   +  For instance types with NVIDIA T4 GPUs, specify ``t4``.
 *   +  For instance types with NVIDIA M60 GPUs, specify ``m60``.
 *   +  For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520``.
 *   +  For instance types with Xilinx VU9P FPGAs, specify ``vu9p``.
 *  Default: Any accelerator
 * @property acceleratorTotalMemoryMiB The minimum and maximum total memory size for the accelerators on an instance type, in MiB.
 *  Default: No minimum or maximum limits
 * @property acceleratorTypes Lists the accelerator types that must be on an instance type.
 *   +  For instance types with GPU accelerators, specify ``gpu``.
 *   +  For instance types with FPGA accelerators, specify ``fpga``.
 *   +  For instance types with inference accelerators, specify ``inference``.
 *  Default: Any accelerator type
 * @property allowedInstanceTypes The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
 *  You can use strings with one or more wild cards, represented by an asterisk (``*``), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
 *  For example, if you specify ``c5*``, Amazon EC2 Auto Scaling will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n instance types.
 *   If you specify ``AllowedInstanceTypes``, you can't specify ``ExcludedInstanceTypes``.
 *   Default: All instance types
 * @property bareMetal Indicates whether bare metal instance types are included, excluded, or required.
 *  Default: ``excluded``
 * @property baselineEbsBandwidthMbps The minimum and maximum baseline bandwidth performance for an instance type, in Mbps. For more information, see [Amazon EBS–optimized instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html) in the *Amazon EC2 User Guide for Linux Instances*.
 *  Default: No minimum or maximum limits
 * @property burstablePerformance Indicates whether burstable performance instance types are included, excluded, or required. For more information, see [Burstable performance instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the *Amazon EC2 User Guide for Linux Instances*.
 *  Default: ``excluded``
 * @property cpuManufacturers Lists which specific CPU manufacturers to include.
 *   +  For instance types with Intel CPUs, specify ``intel``.
 *   +  For instance types with AMD CPUs, specify ``amd``.
 *   +  For instance types with AWS CPUs, specify ``amazon-web-services``.
 *   Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
 *   Default: Any manufacturer
 * @property excludedInstanceTypes The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (``*``), to exclude an instance family, type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
 *  For example, if you specify ``c5*``, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not the M5n instance types.
 *   If you specify ``ExcludedInstanceTypes``, you can't specify ``AllowedInstanceTypes``.
 *   Default: No excluded instance types
 * @property instanceGenerations Indicates whether current or previous generation instance types are included.
 *   +  For current generation instance types, specify ``current``. The current generation includes EC2 instance types currently recommended for use. This typically includes the latest two to three generations in each instance family. For more information, see [Instance types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide for Linux Instances*.
 *   +  For previous generation instance types, specify ``previous``.
 *  Default: Any current or previous generation
 * @property localStorage Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, see [Amazon EC2 instance store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) in the *Amazon EC2 User Guide for Linux Instances*.
 *  Default: ``included``
 * @property localStorageTypes Indicates the type of local storage that is required.
 *   +  For instance types with hard disk drive (HDD) storage, specify ``hdd``.
 *   +  For instance types with solid state drive (SSD) storage, specify ``ssd``.
 *  Default: Any local storage type
 * @property maxSpotPriceAsPercentageOfOptimalOnDemandPrice [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
 *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
 *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is based on the per-vCPU or per-memory price instead of the per instance price.
 *   Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as ``999999``.
 * @property memoryGiBPerVCpu The minimum and maximum amount of memory per vCPU for an instance type, in GiB.
 *  Default: No minimum or maximum limits
 * @property memoryMiB The minimum and maximum instance memory size for an instance type, in MiB.
 * @property networkBandwidthGbps The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).
 *  Default: No minimum or maximum limits
 * @property networkInterfaceCount The minimum and maximum number of network interfaces for an instance type.
 *  Default: No minimum or maximum limits
 * @property onDemandMaxPricePercentageOverLowestPrice [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
 *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
 *  To turn off price protection, specify a high value, such as ``999999``.
 *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per instance price.
 *  Default: ``20``
 * @property requireHibernateSupport Indicates whether instance types must provide On-Demand Instance hibernation support.
 *  Default: ``false``
 * @property spotMaxPricePercentageOverLowestPrice [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
 *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
 *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is based on the per-vCPU or per-memory price instead of the per instance price.
 *   Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as ``999999``.
 * @property totalLocalStorageGb The minimum and maximum total local storage size for an instance type, in GB.
 *  Default: No minimum or maximum limits
 * @property vCpuCount The minimum and maximum number of vCPUs for an instance type.
 */
public data class AutoScalingGroupInstanceRequirementsArgs(
    public val acceleratorCount: Output? = null,
    public val acceleratorManufacturers: Output>? = null,
    public val acceleratorNames: Output>? = null,
    public val acceleratorTotalMemoryMiB: Output? = null,
    public val acceleratorTypes: Output>? = null,
    public val allowedInstanceTypes: Output>? = null,
    public val bareMetal: Output? = null,
    public val baselineEbsBandwidthMbps: Output? =
        null,
    public val burstablePerformance: Output? = null,
    public val cpuManufacturers: Output>? = null,
    public val excludedInstanceTypes: Output>? = null,
    public val instanceGenerations: Output>? = null,
    public val localStorage: Output? = null,
    public val localStorageTypes: Output>? = null,
    public val maxSpotPriceAsPercentageOfOptimalOnDemandPrice: Output? = null,
    public val memoryGiBPerVCpu: Output? = null,
    public val memoryMiB: Output,
    public val networkBandwidthGbps: Output? = null,
    public val networkInterfaceCount: Output? =
        null,
    public val onDemandMaxPricePercentageOverLowestPrice: Output? = null,
    public val requireHibernateSupport: Output? = null,
    public val spotMaxPricePercentageOverLowestPrice: Output? = null,
    public val totalLocalStorageGb: Output? = null,
    public val vCpuCount: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.autoscaling.inputs.AutoScalingGroupInstanceRequirementsArgs =
        com.pulumi.awsnative.autoscaling.inputs.AutoScalingGroupInstanceRequirementsArgs.builder()
            .acceleratorCount(acceleratorCount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .acceleratorManufacturers(
                acceleratorManufacturers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .acceleratorNames(acceleratorNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .acceleratorTotalMemoryMiB(
                acceleratorTotalMemoryMiB?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .acceleratorTypes(acceleratorTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .allowedInstanceTypes(allowedInstanceTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .bareMetal(bareMetal?.applyValue({ args0 -> args0 }))
            .baselineEbsBandwidthMbps(
                baselineEbsBandwidthMbps?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .burstablePerformance(burstablePerformance?.applyValue({ args0 -> args0 }))
            .cpuManufacturers(cpuManufacturers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .excludedInstanceTypes(excludedInstanceTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .instanceGenerations(instanceGenerations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .localStorage(localStorage?.applyValue({ args0 -> args0 }))
            .localStorageTypes(localStorageTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .maxSpotPriceAsPercentageOfOptimalOnDemandPrice(
                maxSpotPriceAsPercentageOfOptimalOnDemandPrice?.applyValue({ args0 ->
                    args0
                }),
            )
            .memoryGiBPerVCpu(memoryGiBPerVCpu?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .memoryMiB(memoryMiB.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .networkBandwidthGbps(
                networkBandwidthGbps?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .networkInterfaceCount(
                networkInterfaceCount?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .onDemandMaxPricePercentageOverLowestPrice(
                onDemandMaxPricePercentageOverLowestPrice?.applyValue({ args0 ->
                    args0
                }),
            )
            .requireHibernateSupport(requireHibernateSupport?.applyValue({ args0 -> args0 }))
            .spotMaxPricePercentageOverLowestPrice(
                spotMaxPricePercentageOverLowestPrice?.applyValue({ args0 ->
                    args0
                }),
            )
            .totalLocalStorageGb(
                totalLocalStorageGb?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .vCpuCount(vCpuCount.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [AutoScalingGroupInstanceRequirementsArgs].
 */
@PulumiTagMarker
public class AutoScalingGroupInstanceRequirementsArgsBuilder internal constructor() {
    private var acceleratorCount: Output? = null

    private var acceleratorManufacturers: Output>? = null

    private var acceleratorNames: Output>? = null

    private var acceleratorTotalMemoryMiB:
        Output? = null

    private var acceleratorTypes: Output>? = null

    private var allowedInstanceTypes: Output>? = null

    private var bareMetal: Output? = null

    private var baselineEbsBandwidthMbps: Output? =
        null

    private var burstablePerformance: Output? = null

    private var cpuManufacturers: Output>? = null

    private var excludedInstanceTypes: Output>? = null

    private var instanceGenerations: Output>? = null

    private var localStorage: Output? = null

    private var localStorageTypes: Output>? = null

    private var maxSpotPriceAsPercentageOfOptimalOnDemandPrice: Output? = null

    private var memoryGiBPerVCpu: Output? = null

    private var memoryMiB: Output? = null

    private var networkBandwidthGbps: Output? = null

    private var networkInterfaceCount: Output? =
        null

    private var onDemandMaxPricePercentageOverLowestPrice: Output? = null

    private var requireHibernateSupport: Output? = null

    private var spotMaxPricePercentageOverLowestPrice: Output? = null

    private var totalLocalStorageGb: Output? = null

    private var vCpuCount: Output? = null

    /**
     * @param value The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) for an instance type.
     *  To exclude accelerator-enabled instance types, set ``Max`` to ``0``.
     *  Default: No minimum or maximum limits
     */
    @JvmName("kmvvuhrjkreoiwqi")
    public suspend fun acceleratorCount(`value`: Output) {
        this.acceleratorCount = value
    }

    /**
     * @param value Indicates whether instance types must have accelerators by specific manufacturers.
     *   +  For instance types with NVIDIA devices, specify ``nvidia``.
     *   +  For instance types with AMD devices, specify ``amd``.
     *   +  For instance types with AWS devices, specify ``amazon-web-services``.
     *   +  For instance types with Xilinx devices, specify ``xilinx``.
     *  Default: Any manufacturer
     */
    @JvmName("taptdbttgdtajngq")
    public suspend fun acceleratorManufacturers(`value`: Output>) {
        this.acceleratorManufacturers = value
    }

    @JvmName("dgkpuqegyobsuphv")
    public suspend fun acceleratorManufacturers(vararg values: Output) {
        this.acceleratorManufacturers = Output.all(values.asList())
    }

    /**
     * @param values Indicates whether instance types must have accelerators by specific manufacturers.
     *   +  For instance types with NVIDIA devices, specify ``nvidia``.
     *   +  For instance types with AMD devices, specify ``amd``.
     *   +  For instance types with AWS devices, specify ``amazon-web-services``.
     *   +  For instance types with Xilinx devices, specify ``xilinx``.
     *  Default: Any manufacturer
     */
    @JvmName("qfauoufelkjxymav")
    public suspend fun acceleratorManufacturers(values: List>) {
        this.acceleratorManufacturers = Output.all(values)
    }

    /**
     * @param value Lists the accelerators that must be on an instance type.
     *   +  For instance types with NVIDIA A100 GPUs, specify ``a100``.
     *   +  For instance types with NVIDIA V100 GPUs, specify ``v100``.
     *   +  For instance types with NVIDIA K80 GPUs, specify ``k80``.
     *   +  For instance types with NVIDIA T4 GPUs, specify ``t4``.
     *   +  For instance types with NVIDIA M60 GPUs, specify ``m60``.
     *   +  For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520``.
     *   +  For instance types with Xilinx VU9P FPGAs, specify ``vu9p``.
     *  Default: Any accelerator
     */
    @JvmName("esvikhpntirvrwsr")
    public suspend fun acceleratorNames(`value`: Output>) {
        this.acceleratorNames = value
    }

    @JvmName("hhtvtuqfnuaximun")
    public suspend fun acceleratorNames(vararg values: Output) {
        this.acceleratorNames = Output.all(values.asList())
    }

    /**
     * @param values Lists the accelerators that must be on an instance type.
     *   +  For instance types with NVIDIA A100 GPUs, specify ``a100``.
     *   +  For instance types with NVIDIA V100 GPUs, specify ``v100``.
     *   +  For instance types with NVIDIA K80 GPUs, specify ``k80``.
     *   +  For instance types with NVIDIA T4 GPUs, specify ``t4``.
     *   +  For instance types with NVIDIA M60 GPUs, specify ``m60``.
     *   +  For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520``.
     *   +  For instance types with Xilinx VU9P FPGAs, specify ``vu9p``.
     *  Default: Any accelerator
     */
    @JvmName("urwcrmagrqlhvtxq")
    public suspend fun acceleratorNames(values: List>) {
        this.acceleratorNames = Output.all(values)
    }

    /**
     * @param value The minimum and maximum total memory size for the accelerators on an instance type, in MiB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("yeaufglirpgrrisa")
    public suspend fun acceleratorTotalMemoryMiB(`value`: Output) {
        this.acceleratorTotalMemoryMiB = value
    }

    /**
     * @param value Lists the accelerator types that must be on an instance type.
     *   +  For instance types with GPU accelerators, specify ``gpu``.
     *   +  For instance types with FPGA accelerators, specify ``fpga``.
     *   +  For instance types with inference accelerators, specify ``inference``.
     *  Default: Any accelerator type
     */
    @JvmName("jorgtnlchtlrydgw")
    public suspend fun acceleratorTypes(`value`: Output>) {
        this.acceleratorTypes = value
    }

    @JvmName("pippvwhldgpkxbrx")
    public suspend fun acceleratorTypes(vararg values: Output) {
        this.acceleratorTypes = Output.all(values.asList())
    }

    /**
     * @param values Lists the accelerator types that must be on an instance type.
     *   +  For instance types with GPU accelerators, specify ``gpu``.
     *   +  For instance types with FPGA accelerators, specify ``fpga``.
     *   +  For instance types with inference accelerators, specify ``inference``.
     *  Default: Any accelerator type
     */
    @JvmName("mogeillijnktnlqx")
    public suspend fun acceleratorTypes(values: List>) {
        this.acceleratorTypes = Output.all(values)
    }

    /**
     * @param value The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
     *  You can use strings with one or more wild cards, represented by an asterisk (``*``), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
     *  For example, if you specify ``c5*``, Amazon EC2 Auto Scaling will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n instance types.
     *   If you specify ``AllowedInstanceTypes``, you can't specify ``ExcludedInstanceTypes``.
     *   Default: All instance types
     */
    @JvmName("gmwnwukjgildfyqa")
    public suspend fun allowedInstanceTypes(`value`: Output>) {
        this.allowedInstanceTypes = value
    }

    @JvmName("gesteyuqqqbrkpji")
    public suspend fun allowedInstanceTypes(vararg values: Output) {
        this.allowedInstanceTypes = Output.all(values.asList())
    }

    /**
     * @param values The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
     *  You can use strings with one or more wild cards, represented by an asterisk (``*``), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
     *  For example, if you specify ``c5*``, Amazon EC2 Auto Scaling will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n instance types.
     *   If you specify ``AllowedInstanceTypes``, you can't specify ``ExcludedInstanceTypes``.
     *   Default: All instance types
     */
    @JvmName("rhdivdrctllmwxqp")
    public suspend fun allowedInstanceTypes(values: List>) {
        this.allowedInstanceTypes = Output.all(values)
    }

    /**
     * @param value Indicates whether bare metal instance types are included, excluded, or required.
     *  Default: ``excluded``
     */
    @JvmName("jfnfxugehugopnxl")
    public suspend fun bareMetal(`value`: Output) {
        this.bareMetal = value
    }

    /**
     * @param value The minimum and maximum baseline bandwidth performance for an instance type, in Mbps. For more information, see [Amazon EBS–optimized instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *  Default: No minimum or maximum limits
     */
    @JvmName("ctmortilhxcyhcah")
    public suspend fun baselineEbsBandwidthMbps(`value`: Output) {
        this.baselineEbsBandwidthMbps = value
    }

    /**
     * @param value Indicates whether burstable performance instance types are included, excluded, or required. For more information, see [Burstable performance instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *  Default: ``excluded``
     */
    @JvmName("mihjvpobtojcppfg")
    public suspend fun burstablePerformance(`value`: Output) {
        this.burstablePerformance = value
    }

    /**
     * @param value Lists which specific CPU manufacturers to include.
     *   +  For instance types with Intel CPUs, specify ``intel``.
     *   +  For instance types with AMD CPUs, specify ``amd``.
     *   +  For instance types with AWS CPUs, specify ``amazon-web-services``.
     *   Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
     *   Default: Any manufacturer
     */
    @JvmName("bnkqslrprlhcgxjj")
    public suspend fun cpuManufacturers(`value`: Output>) {
        this.cpuManufacturers = value
    }

    @JvmName("helqjxxjvnnwvjot")
    public suspend fun cpuManufacturers(vararg values: Output) {
        this.cpuManufacturers = Output.all(values.asList())
    }

    /**
     * @param values Lists which specific CPU manufacturers to include.
     *   +  For instance types with Intel CPUs, specify ``intel``.
     *   +  For instance types with AMD CPUs, specify ``amd``.
     *   +  For instance types with AWS CPUs, specify ``amazon-web-services``.
     *   Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
     *   Default: Any manufacturer
     */
    @JvmName("plwitjemlexrdfcj")
    public suspend fun cpuManufacturers(values: List>) {
        this.cpuManufacturers = Output.all(values)
    }

    /**
     * @param value The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (``*``), to exclude an instance family, type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
     *  For example, if you specify ``c5*``, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not the M5n instance types.
     *   If you specify ``ExcludedInstanceTypes``, you can't specify ``AllowedInstanceTypes``.
     *   Default: No excluded instance types
     */
    @JvmName("gropvexqwscdeqms")
    public suspend fun excludedInstanceTypes(`value`: Output>) {
        this.excludedInstanceTypes = value
    }

    @JvmName("cbiytrxjibidhrdb")
    public suspend fun excludedInstanceTypes(vararg values: Output) {
        this.excludedInstanceTypes = Output.all(values.asList())
    }

    /**
     * @param values The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (``*``), to exclude an instance family, type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
     *  For example, if you specify ``c5*``, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not the M5n instance types.
     *   If you specify ``ExcludedInstanceTypes``, you can't specify ``AllowedInstanceTypes``.
     *   Default: No excluded instance types
     */
    @JvmName("cmhqobrtbsgkgmre")
    public suspend fun excludedInstanceTypes(values: List>) {
        this.excludedInstanceTypes = Output.all(values)
    }

    /**
     * @param value Indicates whether current or previous generation instance types are included.
     *   +  For current generation instance types, specify ``current``. The current generation includes EC2 instance types currently recommended for use. This typically includes the latest two to three generations in each instance family. For more information, see [Instance types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *   +  For previous generation instance types, specify ``previous``.
     *  Default: Any current or previous generation
     */
    @JvmName("njeipgtxkdpkwupx")
    public suspend fun instanceGenerations(`value`: Output>) {
        this.instanceGenerations = value
    }

    @JvmName("xwdubfghtcyxwlkw")
    public suspend fun instanceGenerations(vararg values: Output) {
        this.instanceGenerations = Output.all(values.asList())
    }

    /**
     * @param values Indicates whether current or previous generation instance types are included.
     *   +  For current generation instance types, specify ``current``. The current generation includes EC2 instance types currently recommended for use. This typically includes the latest two to three generations in each instance family. For more information, see [Instance types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *   +  For previous generation instance types, specify ``previous``.
     *  Default: Any current or previous generation
     */
    @JvmName("ufxsxyrqdwhrgirx")
    public suspend fun instanceGenerations(values: List>) {
        this.instanceGenerations = Output.all(values)
    }

    /**
     * @param value Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, see [Amazon EC2 instance store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *  Default: ``included``
     */
    @JvmName("xdggfntwpujefcnl")
    public suspend fun localStorage(`value`: Output) {
        this.localStorage = value
    }

    /**
     * @param value Indicates the type of local storage that is required.
     *   +  For instance types with hard disk drive (HDD) storage, specify ``hdd``.
     *   +  For instance types with solid state drive (SSD) storage, specify ``ssd``.
     *  Default: Any local storage type
     */
    @JvmName("qoweyngjfqiclmbs")
    public suspend fun localStorageTypes(`value`: Output>) {
        this.localStorageTypes = value
    }

    @JvmName("kgxukcynuqrffioo")
    public suspend fun localStorageTypes(vararg values: Output) {
        this.localStorageTypes = Output.all(values.asList())
    }

    /**
     * @param values Indicates the type of local storage that is required.
     *   +  For instance types with hard disk drive (HDD) storage, specify ``hdd``.
     *   +  For instance types with solid state drive (SSD) storage, specify ``ssd``.
     *  Default: Any local storage type
     */
    @JvmName("cwllcgpbkbigvban")
    public suspend fun localStorageTypes(values: List>) {
        this.localStorageTypes = Output.all(values)
    }

    /**
     * @param value [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
     *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
     *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is based on the per-vCPU or per-memory price instead of the per instance price.
     *   Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as ``999999``.
     */
    @JvmName("dnattwakypigtoxc")
    public suspend fun maxSpotPriceAsPercentageOfOptimalOnDemandPrice(`value`: Output) {
        this.maxSpotPriceAsPercentageOfOptimalOnDemandPrice = value
    }

    /**
     * @param value The minimum and maximum amount of memory per vCPU for an instance type, in GiB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("esixwfddkmlpmvli")
    public suspend fun memoryGiBPerVCpu(`value`: Output) {
        this.memoryGiBPerVCpu = value
    }

    /**
     * @param value The minimum and maximum instance memory size for an instance type, in MiB.
     */
    @JvmName("vowufabtjxprmgjp")
    public suspend fun memoryMiB(`value`: Output) {
        this.memoryMiB = value
    }

    /**
     * @param value The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).
     *  Default: No minimum or maximum limits
     */
    @JvmName("ukkjefnbumwlodtt")
    public suspend fun networkBandwidthGbps(`value`: Output) {
        this.networkBandwidthGbps = value
    }

    /**
     * @param value The minimum and maximum number of network interfaces for an instance type.
     *  Default: No minimum or maximum limits
     */
    @JvmName("lmthjwpnhljjoque")
    public suspend fun networkInterfaceCount(`value`: Output) {
        this.networkInterfaceCount = value
    }

    /**
     * @param value [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
     *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
     *  To turn off price protection, specify a high value, such as ``999999``.
     *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per instance price.
     *  Default: ``20``
     */
    @JvmName("lospatvbimkfmxij")
    public suspend fun onDemandMaxPricePercentageOverLowestPrice(`value`: Output) {
        this.onDemandMaxPricePercentageOverLowestPrice = value
    }

    /**
     * @param value Indicates whether instance types must provide On-Demand Instance hibernation support.
     *  Default: ``false``
     */
    @JvmName("rnxdrxvniskflnpa")
    public suspend fun requireHibernateSupport(`value`: Output) {
        this.requireHibernateSupport = value
    }

    /**
     * @param value [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
     *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
     *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is based on the per-vCPU or per-memory price instead of the per instance price.
     *   Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as ``999999``.
     */
    @JvmName("eoifmjrlwomvgjqc")
    public suspend fun spotMaxPricePercentageOverLowestPrice(`value`: Output) {
        this.spotMaxPricePercentageOverLowestPrice = value
    }

    /**
     * @param value The minimum and maximum total local storage size for an instance type, in GB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("ypdtjfvigtdetldf")
    public suspend fun totalLocalStorageGb(`value`: Output) {
        this.totalLocalStorageGb = value
    }

    /**
     * @param value The minimum and maximum number of vCPUs for an instance type.
     */
    @JvmName("prwgkpgifmxgujvi")
    public suspend fun vCpuCount(`value`: Output) {
        this.vCpuCount = value
    }

    /**
     * @param value The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) for an instance type.
     *  To exclude accelerator-enabled instance types, set ``Max`` to ``0``.
     *  Default: No minimum or maximum limits
     */
    @JvmName("lcmmkebglxowwpoc")
    public suspend fun acceleratorCount(`value`: AutoScalingGroupAcceleratorCountRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorCount = mapped
    }

    /**
     * @param argument The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) for an instance type.
     *  To exclude accelerator-enabled instance types, set ``Max`` to ``0``.
     *  Default: No minimum or maximum limits
     */
    @JvmName("jhpaykmrsucifmap")
    public suspend fun acceleratorCount(argument: suspend AutoScalingGroupAcceleratorCountRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupAcceleratorCountRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.acceleratorCount = mapped
    }

    /**
     * @param value Indicates whether instance types must have accelerators by specific manufacturers.
     *   +  For instance types with NVIDIA devices, specify ``nvidia``.
     *   +  For instance types with AMD devices, specify ``amd``.
     *   +  For instance types with AWS devices, specify ``amazon-web-services``.
     *   +  For instance types with Xilinx devices, specify ``xilinx``.
     *  Default: Any manufacturer
     */
    @JvmName("nrnnbyruqpslrhln")
    public suspend fun acceleratorManufacturers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorManufacturers = mapped
    }

    /**
     * @param values Indicates whether instance types must have accelerators by specific manufacturers.
     *   +  For instance types with NVIDIA devices, specify ``nvidia``.
     *   +  For instance types with AMD devices, specify ``amd``.
     *   +  For instance types with AWS devices, specify ``amazon-web-services``.
     *   +  For instance types with Xilinx devices, specify ``xilinx``.
     *  Default: Any manufacturer
     */
    @JvmName("ohfjuxdfexxugaty")
    public suspend fun acceleratorManufacturers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.acceleratorManufacturers = mapped
    }

    /**
     * @param value Lists the accelerators that must be on an instance type.
     *   +  For instance types with NVIDIA A100 GPUs, specify ``a100``.
     *   +  For instance types with NVIDIA V100 GPUs, specify ``v100``.
     *   +  For instance types with NVIDIA K80 GPUs, specify ``k80``.
     *   +  For instance types with NVIDIA T4 GPUs, specify ``t4``.
     *   +  For instance types with NVIDIA M60 GPUs, specify ``m60``.
     *   +  For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520``.
     *   +  For instance types with Xilinx VU9P FPGAs, specify ``vu9p``.
     *  Default: Any accelerator
     */
    @JvmName("lbowwifnjhnufkil")
    public suspend fun acceleratorNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorNames = mapped
    }

    /**
     * @param values Lists the accelerators that must be on an instance type.
     *   +  For instance types with NVIDIA A100 GPUs, specify ``a100``.
     *   +  For instance types with NVIDIA V100 GPUs, specify ``v100``.
     *   +  For instance types with NVIDIA K80 GPUs, specify ``k80``.
     *   +  For instance types with NVIDIA T4 GPUs, specify ``t4``.
     *   +  For instance types with NVIDIA M60 GPUs, specify ``m60``.
     *   +  For instance types with AMD Radeon Pro V520 GPUs, specify ``radeon-pro-v520``.
     *   +  For instance types with Xilinx VU9P FPGAs, specify ``vu9p``.
     *  Default: Any accelerator
     */
    @JvmName("lyjfygabygvhkive")
    public suspend fun acceleratorNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.acceleratorNames = mapped
    }

    /**
     * @param value The minimum and maximum total memory size for the accelerators on an instance type, in MiB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("cfaeltcmuusavbut")
    public suspend fun acceleratorTotalMemoryMiB(`value`: AutoScalingGroupAcceleratorTotalMemoryMiBRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorTotalMemoryMiB = mapped
    }

    /**
     * @param argument The minimum and maximum total memory size for the accelerators on an instance type, in MiB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("eucstdtfmehrwdjg")
    public suspend fun acceleratorTotalMemoryMiB(argument: suspend AutoScalingGroupAcceleratorTotalMemoryMiBRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupAcceleratorTotalMemoryMiBRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.acceleratorTotalMemoryMiB = mapped
    }

    /**
     * @param value Lists the accelerator types that must be on an instance type.
     *   +  For instance types with GPU accelerators, specify ``gpu``.
     *   +  For instance types with FPGA accelerators, specify ``fpga``.
     *   +  For instance types with inference accelerators, specify ``inference``.
     *  Default: Any accelerator type
     */
    @JvmName("uxbhdskdebbfelet")
    public suspend fun acceleratorTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorTypes = mapped
    }

    /**
     * @param values Lists the accelerator types that must be on an instance type.
     *   +  For instance types with GPU accelerators, specify ``gpu``.
     *   +  For instance types with FPGA accelerators, specify ``fpga``.
     *   +  For instance types with inference accelerators, specify ``inference``.
     *  Default: Any accelerator type
     */
    @JvmName("uxcpwojwmhbqduol")
    public suspend fun acceleratorTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.acceleratorTypes = mapped
    }

    /**
     * @param value The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
     *  You can use strings with one or more wild cards, represented by an asterisk (``*``), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
     *  For example, if you specify ``c5*``, Amazon EC2 Auto Scaling will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n instance types.
     *   If you specify ``AllowedInstanceTypes``, you can't specify ``ExcludedInstanceTypes``.
     *   Default: All instance types
     */
    @JvmName("dunuufgpkkeecneh")
    public suspend fun allowedInstanceTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedInstanceTypes = mapped
    }

    /**
     * @param values The instance types to apply your specified attributes against. All other instance types are ignored, even if they match your specified attributes.
     *  You can use strings with one or more wild cards, represented by an asterisk (``*``), to allow an instance type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
     *  For example, if you specify ``c5*``, Amazon EC2 Auto Scaling will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will allow all the M5a instance types, but not the M5n instance types.
     *   If you specify ``AllowedInstanceTypes``, you can't specify ``ExcludedInstanceTypes``.
     *   Default: All instance types
     */
    @JvmName("skpwrbkwtwblrard")
    public suspend fun allowedInstanceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedInstanceTypes = mapped
    }

    /**
     * @param value Indicates whether bare metal instance types are included, excluded, or required.
     *  Default: ``excluded``
     */
    @JvmName("wudydmhdiqsmwsjc")
    public suspend fun bareMetal(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bareMetal = mapped
    }

    /**
     * @param value The minimum and maximum baseline bandwidth performance for an instance type, in Mbps. For more information, see [Amazon EBS–optimized instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *  Default: No minimum or maximum limits
     */
    @JvmName("pkhngvuqgdmtgqes")
    public suspend fun baselineEbsBandwidthMbps(`value`: AutoScalingGroupBaselineEbsBandwidthMbpsRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baselineEbsBandwidthMbps = mapped
    }

    /**
     * @param argument The minimum and maximum baseline bandwidth performance for an instance type, in Mbps. For more information, see [Amazon EBS–optimized instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *  Default: No minimum or maximum limits
     */
    @JvmName("muhynsfnmrssjkul")
    public suspend fun baselineEbsBandwidthMbps(argument: suspend AutoScalingGroupBaselineEbsBandwidthMbpsRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupBaselineEbsBandwidthMbpsRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.baselineEbsBandwidthMbps = mapped
    }

    /**
     * @param value Indicates whether burstable performance instance types are included, excluded, or required. For more information, see [Burstable performance instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/burstable-performance-instances.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *  Default: ``excluded``
     */
    @JvmName("qwjfchnwutvhpvdu")
    public suspend fun burstablePerformance(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.burstablePerformance = mapped
    }

    /**
     * @param value Lists which specific CPU manufacturers to include.
     *   +  For instance types with Intel CPUs, specify ``intel``.
     *   +  For instance types with AMD CPUs, specify ``amd``.
     *   +  For instance types with AWS CPUs, specify ``amazon-web-services``.
     *   Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
     *   Default: Any manufacturer
     */
    @JvmName("kqyrhmlspnlqknkj")
    public suspend fun cpuManufacturers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuManufacturers = mapped
    }

    /**
     * @param values Lists which specific CPU manufacturers to include.
     *   +  For instance types with Intel CPUs, specify ``intel``.
     *   +  For instance types with AMD CPUs, specify ``amd``.
     *   +  For instance types with AWS CPUs, specify ``amazon-web-services``.
     *   Don't confuse the CPU hardware manufacturer with the CPU hardware architecture. Instances will be launched with a compatible CPU architecture based on the Amazon Machine Image (AMI) that you specify in your launch template.
     *   Default: Any manufacturer
     */
    @JvmName("mpecqscaahbqkmuy")
    public suspend fun cpuManufacturers(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cpuManufacturers = mapped
    }

    /**
     * @param value The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (``*``), to exclude an instance family, type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
     *  For example, if you specify ``c5*``, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not the M5n instance types.
     *   If you specify ``ExcludedInstanceTypes``, you can't specify ``AllowedInstanceTypes``.
     *   Default: No excluded instance types
     */
    @JvmName("pgtxpqyhivgognnc")
    public suspend fun excludedInstanceTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.excludedInstanceTypes = mapped
    }

    /**
     * @param values The instance types to exclude. You can use strings with one or more wild cards, represented by an asterisk (``*``), to exclude an instance family, type, size, or generation. The following are examples: ``m5.8xlarge``, ``c5*.*``, ``m5a.*``, ``r*``, ``*3*``.
     *  For example, if you specify ``c5*``, you are excluding the entire C5 instance family, which includes all C5a and C5n instance types. If you specify ``m5a.*``, Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not the M5n instance types.
     *   If you specify ``ExcludedInstanceTypes``, you can't specify ``AllowedInstanceTypes``.
     *   Default: No excluded instance types
     */
    @JvmName("fplwyxmmiexbcaqm")
    public suspend fun excludedInstanceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.excludedInstanceTypes = mapped
    }

    /**
     * @param value Indicates whether current or previous generation instance types are included.
     *   +  For current generation instance types, specify ``current``. The current generation includes EC2 instance types currently recommended for use. This typically includes the latest two to three generations in each instance family. For more information, see [Instance types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *   +  For previous generation instance types, specify ``previous``.
     *  Default: Any current or previous generation
     */
    @JvmName("ukylercthdywdedn")
    public suspend fun instanceGenerations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceGenerations = mapped
    }

    /**
     * @param values Indicates whether current or previous generation instance types are included.
     *   +  For current generation instance types, specify ``current``. The current generation includes EC2 instance types currently recommended for use. This typically includes the latest two to three generations in each instance family. For more information, see [Instance types](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *   +  For previous generation instance types, specify ``previous``.
     *  Default: Any current or previous generation
     */
    @JvmName("ifyxorichpoqhusm")
    public suspend fun instanceGenerations(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceGenerations = mapped
    }

    /**
     * @param value Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, see [Amazon EC2 instance store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) in the *Amazon EC2 User Guide for Linux Instances*.
     *  Default: ``included``
     */
    @JvmName("ncvgjqtdlvbrabft")
    public suspend fun localStorage(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localStorage = mapped
    }

    /**
     * @param value Indicates the type of local storage that is required.
     *   +  For instance types with hard disk drive (HDD) storage, specify ``hdd``.
     *   +  For instance types with solid state drive (SSD) storage, specify ``ssd``.
     *  Default: Any local storage type
     */
    @JvmName("wxgerkhnwuouatyr")
    public suspend fun localStorageTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localStorageTypes = mapped
    }

    /**
     * @param values Indicates the type of local storage that is required.
     *   +  For instance types with hard disk drive (HDD) storage, specify ``hdd``.
     *   +  For instance types with solid state drive (SSD) storage, specify ``ssd``.
     *  Default: Any local storage type
     */
    @JvmName("hlfanfnixxjhdawm")
    public suspend fun localStorageTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.localStorageTypes = mapped
    }

    /**
     * @param value [Price protection] The price protection threshold for Spot Instances, as a percentage of an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
     *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
     *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is based on the per-vCPU or per-memory price instead of the per instance price.
     *   Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as ``999999``.
     */
    @JvmName("lwlwxylvtuutyemw")
    public suspend fun maxSpotPriceAsPercentageOfOptimalOnDemandPrice(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxSpotPriceAsPercentageOfOptimalOnDemandPrice = mapped
    }

    /**
     * @param value The minimum and maximum amount of memory per vCPU for an instance type, in GiB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("nuslodqlqtbrngpe")
    public suspend fun memoryGiBPerVCpu(`value`: AutoScalingGroupMemoryGiBPerVCpuRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memoryGiBPerVCpu = mapped
    }

    /**
     * @param argument The minimum and maximum amount of memory per vCPU for an instance type, in GiB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("ixgatwfksygttaeu")
    public suspend fun memoryGiBPerVCpu(argument: suspend AutoScalingGroupMemoryGiBPerVCpuRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupMemoryGiBPerVCpuRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.memoryGiBPerVCpu = mapped
    }

    /**
     * @param value The minimum and maximum instance memory size for an instance type, in MiB.
     */
    @JvmName("gttmffrmtbljhbnf")
    public suspend fun memoryMiB(`value`: AutoScalingGroupMemoryMiBRequestArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.memoryMiB = mapped
    }

    /**
     * @param argument The minimum and maximum instance memory size for an instance type, in MiB.
     */
    @JvmName("jfdjrjljqnngnhvy")
    public suspend fun memoryMiB(argument: suspend AutoScalingGroupMemoryMiBRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupMemoryMiBRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.memoryMiB = mapped
    }

    /**
     * @param value The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).
     *  Default: No minimum or maximum limits
     */
    @JvmName("fkdubfvfqnesxqtn")
    public suspend fun networkBandwidthGbps(`value`: AutoScalingGroupNetworkBandwidthGbpsRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkBandwidthGbps = mapped
    }

    /**
     * @param argument The minimum and maximum amount of network bandwidth, in gigabits per second (Gbps).
     *  Default: No minimum or maximum limits
     */
    @JvmName("adketbnimgrudxgm")
    public suspend fun networkBandwidthGbps(argument: suspend AutoScalingGroupNetworkBandwidthGbpsRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupNetworkBandwidthGbpsRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.networkBandwidthGbps = mapped
    }

    /**
     * @param value The minimum and maximum number of network interfaces for an instance type.
     *  Default: No minimum or maximum limits
     */
    @JvmName("kwtgwqybvkeujvst")
    public suspend fun networkInterfaceCount(`value`: AutoScalingGroupNetworkInterfaceCountRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaceCount = mapped
    }

    /**
     * @param argument The minimum and maximum number of network interfaces for an instance type.
     *  Default: No minimum or maximum limits
     */
    @JvmName("oskvecwosgdisdai")
    public suspend fun networkInterfaceCount(argument: suspend AutoScalingGroupNetworkInterfaceCountRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupNetworkInterfaceCountRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.networkInterfaceCount = mapped
    }

    /**
     * @param value [Price protection] The price protection threshold for On-Demand Instances, as a percentage higher than an identified On-Demand price. The identified On-Demand price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
     *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
     *  To turn off price protection, specify a high value, such as ``999999``.
     *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is applied based on the per-vCPU or per-memory price instead of the per instance price.
     *  Default: ``20``
     */
    @JvmName("jrgponrgteaussvi")
    public suspend fun onDemandMaxPricePercentageOverLowestPrice(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onDemandMaxPricePercentageOverLowestPrice = mapped
    }

    /**
     * @param value Indicates whether instance types must provide On-Demand Instance hibernation support.
     *  Default: ``false``
     */
    @JvmName("qxlenycsyovlbqbb")
    public suspend fun requireHibernateSupport(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.requireHibernateSupport = mapped
    }

    /**
     * @param value [Price protection] The price protection threshold for Spot Instances, as a percentage higher than an identified Spot price. The identified Spot price is the price of the lowest priced current generation C, M, or R instance type with your specified attributes. If no current generation C, M, or R instance type matches your attributes, then the identified price is from either the lowest priced current generation instance types or, failing that, the lowest priced previous generation instance types that match your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will exclude instance types whose price exceeds your specified threshold.
     *  The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.
     *  If you set ``DesiredCapacityType`` to ``vcpu`` or ``memory-mib``, the price protection threshold is based on the per-vCPU or per-memory price instead of the per instance price.
     *   Only one of ``SpotMaxPricePercentageOverLowestPrice`` or ``MaxSpotPriceAsPercentageOfOptimalOnDemandPrice`` can be specified. If you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection to consistently select from a wide range of instance types. To indicate no price protection threshold for Spot Instances, meaning you want to consider all instance types that match your attributes, include one of these parameters and specify a high value, such as ``999999``.
     */
    @JvmName("tmnyjjvuqboupimt")
    public suspend fun spotMaxPricePercentageOverLowestPrice(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.spotMaxPricePercentageOverLowestPrice = mapped
    }

    /**
     * @param value The minimum and maximum total local storage size for an instance type, in GB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("sljfuwxxqophoxhs")
    public suspend fun totalLocalStorageGb(`value`: AutoScalingGroupTotalLocalStorageGbRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalLocalStorageGb = mapped
    }

    /**
     * @param argument The minimum and maximum total local storage size for an instance type, in GB.
     *  Default: No minimum or maximum limits
     */
    @JvmName("hbrokbbvotsgpigg")
    public suspend fun totalLocalStorageGb(argument: suspend AutoScalingGroupTotalLocalStorageGbRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupTotalLocalStorageGbRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.totalLocalStorageGb = mapped
    }

    /**
     * @param value The minimum and maximum number of vCPUs for an instance type.
     */
    @JvmName("ndbrhyolemdxqmls")
    public suspend fun vCpuCount(`value`: AutoScalingGroupVCpuCountRequestArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vCpuCount = mapped
    }

    /**
     * @param argument The minimum and maximum number of vCPUs for an instance type.
     */
    @JvmName("sujqkrnjqoskhswv")
    public suspend fun vCpuCount(argument: suspend AutoScalingGroupVCpuCountRequestArgsBuilder.() -> Unit) {
        val toBeMapped = AutoScalingGroupVCpuCountRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.vCpuCount = mapped
    }

    internal fun build(): AutoScalingGroupInstanceRequirementsArgs =
        AutoScalingGroupInstanceRequirementsArgs(
            acceleratorCount = acceleratorCount,
            acceleratorManufacturers = acceleratorManufacturers,
            acceleratorNames = acceleratorNames,
            acceleratorTotalMemoryMiB = acceleratorTotalMemoryMiB,
            acceleratorTypes = acceleratorTypes,
            allowedInstanceTypes = allowedInstanceTypes,
            bareMetal = bareMetal,
            baselineEbsBandwidthMbps = baselineEbsBandwidthMbps,
            burstablePerformance = burstablePerformance,
            cpuManufacturers = cpuManufacturers,
            excludedInstanceTypes = excludedInstanceTypes,
            instanceGenerations = instanceGenerations,
            localStorage = localStorage,
            localStorageTypes = localStorageTypes,
            maxSpotPriceAsPercentageOfOptimalOnDemandPrice = maxSpotPriceAsPercentageOfOptimalOnDemandPrice,
            memoryGiBPerVCpu = memoryGiBPerVCpu,
            memoryMiB = memoryMiB ?: throw PulumiNullFieldException("memoryMiB"),
            networkBandwidthGbps = networkBandwidthGbps,
            networkInterfaceCount = networkInterfaceCount,
            onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice,
            requireHibernateSupport = requireHibernateSupport,
            spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice,
            totalLocalStorageGb = totalLocalStorageGb,
            vCpuCount = vCpuCount ?: throw PulumiNullFieldException("vCpuCount"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy