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

com.pulumi.awsnative.ec2.kotlin.inputs.Ec2FleetInstanceRequirementsRequestArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.Ec2FleetInstanceRequirementsRequestArgs.builder
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestAcceleratorManufacturersItem
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestAcceleratorNamesItem
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestAcceleratorTypesItem
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestBareMetal
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestBurstablePerformance
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestCpuManufacturersItem
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestInstanceGenerationsItem
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestLocalStorage
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetInstanceRequirementsRequestLocalStorageTypesItem
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 *
 * @property acceleratorCount The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
 * 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 AWS devices, specify `amazon-web-services` .
 * - For instance types with AMD devices, specify `amd` .
 * - For instance types with Habana devices, specify `habana` .
 * - For instance types with NVIDIA devices, specify `nvidia` .
 * - For instance types with Xilinx devices, specify `xilinx` .
 * Default: Any manufacturer
 * @property acceleratorNames The accelerators that must be on the instance type.
 * - For instance types with NVIDIA A10G GPUs, specify `a10g` .
 * - For instance types with NVIDIA A100 GPUs, specify `a100` .
 * - For instance types with NVIDIA H100 GPUs, specify `h100` .
 * - For instance types with AWS Inferentia chips, specify `inferentia` .
 * - For instance types with NVIDIA GRID K520 GPUs, specify `k520` .
 * - For instance types with NVIDIA K80 GPUs, specify `k80` .
 * - 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 NVIDIA T4 GPUs, specify `t4` .
 * - For instance types with NVIDIA T4G GPUs, specify `t4g` .
 * - For instance types with Xilinx VU9P FPGAs, specify `vu9p` .
 * - For instance types with NVIDIA V100 GPUs, specify `v100` .
 * Default: Any accelerator
 * @property acceleratorTotalMemoryMiB The minimum and maximum amount of total accelerator memory, in MiB.
 * Default: No minimum or maximum limits
 * @property acceleratorTypes The accelerator types that must be on the instance type.
 * - To include instance types with GPU hardware, specify `gpu` .
 * - To include instance types with FPGA hardware, specify `fpga` .
 * - To include instance types with inference hardware, 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 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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 must be included, excluded, or required.
 * - To include bare metal instance types, specify `included` .
 * - To require only bare metal instance types, specify `required` .
 * - To exclude bare metal instance types, specify `excluded` .
 * Default: `excluded`
 * @property baselineEbsBandwidthMbps The minimum and maximum baseline bandwidth to Amazon EBS, 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* .
 * Default: No minimum or maximum limits
 * @property burstablePerformance Indicates whether burstable performance T 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) .
 * - To include burstable performance instance types, specify `included` .
 * - To require only burstable performance instance types, specify `required` .
 * - To exclude burstable performance instance types, specify `excluded` .
 * Default: `excluded`
 * @property cpuManufacturers The 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 manufacturer with the CPU 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*` ,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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. The current generation instance types are recommended for use. Current generation instance types are typically 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 current generation instance types, specify `current` .
 * For previous generation instance types, specify `previous` .
 * Default: Current and previous generation instance types
 * @property localStorage Indicates whether instance types with instance store volumes are included, excluded, or required. For more information, [Amazon EC2 instance store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) in the *Amazon EC2 User Guide* .
 * - To include instance types with instance store volumes, specify `included` .
 * - To require only instance types with instance store volumes, specify `required` .
 * - To exclude instance types with instance store volumes, specify `excluded` .
 * Default: `included`
 * @property localStorageTypes 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: `hdd` and `ssd`
 * @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 the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
 * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
 * If you set `TargetCapacityUnitType` 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 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, in GiB.
 * Default: No minimum or maximum limits
 * @property memoryMiB The minimum and maximum amount of memory, in MiB.
 * @property networkBandwidthGbps The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see [Amazon EC2 instance network bandwidth](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html) in the *Amazon EC2 User Guide* .
 * Default: No minimum or maximum limits
 * @property networkInterfaceCount The minimum and maximum number of network interfaces.
 * 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. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
 * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
 * To indicate no price protection threshold, specify a high value, such as `999999` .
 * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) and [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) .
 * > If you set `TargetCapacityUnitType` 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 support hibernation for On-Demand Instances.
 * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) .
 * 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 Spot 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 Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
 * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
 * If you set `TargetCapacityUnitType` 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.
 * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) and [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) .
 * > Only one of `SpotMaxPricePercentageOverLowestPrice` or `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If you don't specify either, Amazon EC2 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` .
 * Default: `100`
 * @property totalLocalStorageGb The minimum and maximum amount of total local storage, in GB.
 * Default: No minimum or maximum limits
 * @property vCpuCount The minimum and maximum number of vCPUs.
 */
public data class Ec2FleetInstanceRequirementsRequestArgs(
    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? = null,
    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? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.Ec2FleetInstanceRequirementsRequestArgs =
        com.pulumi.awsnative.ec2.inputs.Ec2FleetInstanceRequirementsRequestArgs.builder()
            .acceleratorCount(acceleratorCount?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .acceleratorManufacturers(
                acceleratorManufacturers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .acceleratorNames(
                acceleratorNames?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .acceleratorTotalMemoryMiB(
                acceleratorTotalMemoryMiB?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .acceleratorTypes(
                acceleratorTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .allowedInstanceTypes(allowedInstanceTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .bareMetal(bareMetal?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .baselineEbsBandwidthMbps(
                baselineEbsBandwidthMbps?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .burstablePerformance(
                burstablePerformance?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .cpuManufacturers(
                cpuManufacturers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .excludedInstanceTypes(excludedInstanceTypes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .instanceGenerations(
                instanceGenerations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .localStorage(localStorage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .localStorageTypes(
                localStorageTypes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .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 [Ec2FleetInstanceRequirementsRequestArgs].
 */
@PulumiTagMarker
public class Ec2FleetInstanceRequirementsRequestArgsBuilder 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) on an instance.
     * To exclude accelerator-enabled instance types, set `Max` to `0` .
     * Default: No minimum or maximum limits
     */
    @JvmName("stiwgjhmftaidrii")
    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 AWS devices, specify `amazon-web-services` .
     * - For instance types with AMD devices, specify `amd` .
     * - For instance types with Habana devices, specify `habana` .
     * - For instance types with NVIDIA devices, specify `nvidia` .
     * - For instance types with Xilinx devices, specify `xilinx` .
     * Default: Any manufacturer
     */
    @JvmName("bapkjjmlwmitwohd")
    public suspend fun acceleratorManufacturers(`value`: Output>) {
        this.acceleratorManufacturers = value
    }

    @JvmName("obvxaovrotdchmnc")
    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 AWS devices, specify `amazon-web-services` .
     * - For instance types with AMD devices, specify `amd` .
     * - For instance types with Habana devices, specify `habana` .
     * - For instance types with NVIDIA devices, specify `nvidia` .
     * - For instance types with Xilinx devices, specify `xilinx` .
     * Default: Any manufacturer
     */
    @JvmName("qwdoreggrtchuqmj")
    public suspend fun acceleratorManufacturers(values: List>) {
        this.acceleratorManufacturers = Output.all(values)
    }

    /**
     * @param value The accelerators that must be on the instance type.
     * - For instance types with NVIDIA A10G GPUs, specify `a10g` .
     * - For instance types with NVIDIA A100 GPUs, specify `a100` .
     * - For instance types with NVIDIA H100 GPUs, specify `h100` .
     * - For instance types with AWS Inferentia chips, specify `inferentia` .
     * - For instance types with NVIDIA GRID K520 GPUs, specify `k520` .
     * - For instance types with NVIDIA K80 GPUs, specify `k80` .
     * - 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 NVIDIA T4 GPUs, specify `t4` .
     * - For instance types with NVIDIA T4G GPUs, specify `t4g` .
     * - For instance types with Xilinx VU9P FPGAs, specify `vu9p` .
     * - For instance types with NVIDIA V100 GPUs, specify `v100` .
     * Default: Any accelerator
     */
    @JvmName("dglfekicfkoxepfq")
    public suspend fun acceleratorNames(`value`: Output>) {
        this.acceleratorNames = value
    }

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

    /**
     * @param values The accelerators that must be on the instance type.
     * - For instance types with NVIDIA A10G GPUs, specify `a10g` .
     * - For instance types with NVIDIA A100 GPUs, specify `a100` .
     * - For instance types with NVIDIA H100 GPUs, specify `h100` .
     * - For instance types with AWS Inferentia chips, specify `inferentia` .
     * - For instance types with NVIDIA GRID K520 GPUs, specify `k520` .
     * - For instance types with NVIDIA K80 GPUs, specify `k80` .
     * - 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 NVIDIA T4 GPUs, specify `t4` .
     * - For instance types with NVIDIA T4G GPUs, specify `t4g` .
     * - For instance types with Xilinx VU9P FPGAs, specify `vu9p` .
     * - For instance types with NVIDIA V100 GPUs, specify `v100` .
     * Default: Any accelerator
     */
    @JvmName("vdowcehylrdpiqdb")
    public suspend fun acceleratorNames(values: List>) {
        this.acceleratorNames = Output.all(values)
    }

    /**
     * @param value The minimum and maximum amount of total accelerator memory, in MiB.
     * Default: No minimum or maximum limits
     */
    @JvmName("knxscmjmafdfoakh")
    public suspend fun acceleratorTotalMemoryMiB(`value`: Output) {
        this.acceleratorTotalMemoryMiB = value
    }

    /**
     * @param value The accelerator types that must be on the instance type.
     * - To include instance types with GPU hardware, specify `gpu` .
     * - To include instance types with FPGA hardware, specify `fpga` .
     * - To include instance types with inference hardware, specify `inference` .
     * Default: Any accelerator type
     */
    @JvmName("dcdauddihjsbgsef")
    public suspend fun acceleratorTypes(`value`: Output>) {
        this.acceleratorTypes = value
    }

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

    /**
     * @param values The accelerator types that must be on the instance type.
     * - To include instance types with GPU hardware, specify `gpu` .
     * - To include instance types with FPGA hardware, specify `fpga` .
     * - To include instance types with inference hardware, specify `inference` .
     * Default: Any accelerator type
     */
    @JvmName("efsusoehxsvxjdgm")
    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 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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("glmqjhtbfsbmbyux")
    public suspend fun allowedInstanceTypes(`value`: Output>) {
        this.allowedInstanceTypes = value
    }

    @JvmName("ieclsbmduyxuqitg")
    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 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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("ljlegqsusnstjtsp")
    public suspend fun allowedInstanceTypes(values: List>) {
        this.allowedInstanceTypes = Output.all(values)
    }

    /**
     * @param value Indicates whether bare metal instance types must be included, excluded, or required.
     * - To include bare metal instance types, specify `included` .
     * - To require only bare metal instance types, specify `required` .
     * - To exclude bare metal instance types, specify `excluded` .
     * Default: `excluded`
     */
    @JvmName("taycpnlsmpwjkplo")
    public suspend fun bareMetal(`value`: Output) {
        this.bareMetal = value
    }

    /**
     * @param value The minimum and maximum baseline bandwidth to Amazon EBS, 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* .
     * Default: No minimum or maximum limits
     */
    @JvmName("tnlaycoyicuibeig")
    public suspend fun baselineEbsBandwidthMbps(`value`: Output) {
        this.baselineEbsBandwidthMbps = value
    }

    /**
     * @param value Indicates whether burstable performance T 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) .
     * - To include burstable performance instance types, specify `included` .
     * - To require only burstable performance instance types, specify `required` .
     * - To exclude burstable performance instance types, specify `excluded` .
     * Default: `excluded`
     */
    @JvmName("imrsnvubvwixolgk")
    public suspend fun burstablePerformance(`value`: Output) {
        this.burstablePerformance = value
    }

    /**
     * @param value The 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 manufacturer with the CPU 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("piutpvbvmylsqbav")
    public suspend fun cpuManufacturers(`value`: Output>) {
        this.cpuManufacturers = value
    }

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

    /**
     * @param values The 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 manufacturer with the CPU 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("oaibpyyhwmdhhovo")
    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*` ,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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("vlynqhoquapvmhen")
    public suspend fun excludedInstanceTypes(`value`: Output>) {
        this.excludedInstanceTypes = value
    }

    @JvmName("xbqqxcmeykjwxnyo")
    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*` ,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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("lisupkspktwnqvnh")
    public suspend fun excludedInstanceTypes(values: List>) {
        this.excludedInstanceTypes = Output.all(values)
    }

    /**
     * @param value Indicates whether current or previous generation instance types are included. The current generation instance types are recommended for use. Current generation instance types are typically 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 current generation instance types, specify `current` .
     * For previous generation instance types, specify `previous` .
     * Default: Current and previous generation instance types
     */
    @JvmName("tpbdmhtdbxacjuoh")
    public suspend fun instanceGenerations(`value`: Output>) {
        this.instanceGenerations = value
    }

    @JvmName("nbsvhvjqpeldgkoj")
    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. The current generation instance types are recommended for use. Current generation instance types are typically 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 current generation instance types, specify `current` .
     * For previous generation instance types, specify `previous` .
     * Default: Current and previous generation instance types
     */
    @JvmName("hmxxvtrhbokbbsrc")
    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, [Amazon EC2 instance store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) in the *Amazon EC2 User Guide* .
     * - To include instance types with instance store volumes, specify `included` .
     * - To require only instance types with instance store volumes, specify `required` .
     * - To exclude instance types with instance store volumes, specify `excluded` .
     * Default: `included`
     */
    @JvmName("ipfbgtlnxospmxlt")
    public suspend fun localStorage(`value`: Output) {
        this.localStorage = value
    }

    /**
     * @param value 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: `hdd` and `ssd`
     */
    @JvmName("grgieebundhcmyjt")
    public suspend fun localStorageTypes(`value`: Output>) {
        this.localStorageTypes = value
    }

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

    /**
     * @param values 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: `hdd` and `ssd`
     */
    @JvmName("vyativdkukqdmxxc")
    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 the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
     * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
     * If you set `TargetCapacityUnitType` 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 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("sqedxkbnivkslaes")
    public suspend fun maxSpotPriceAsPercentageOfOptimalOnDemandPrice(`value`: Output) {
        this.maxSpotPriceAsPercentageOfOptimalOnDemandPrice = value
    }

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

    /**
     * @param value The minimum and maximum amount of memory, in MiB.
     */
    @JvmName("pbhdphexbumpcjfe")
    public suspend fun memoryMiB(`value`: Output) {
        this.memoryMiB = value
    }

    /**
     * @param value The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see [Amazon EC2 instance network bandwidth](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html) in the *Amazon EC2 User Guide* .
     * Default: No minimum or maximum limits
     */
    @JvmName("jcxtuwmolauwggep")
    public suspend fun networkBandwidthGbps(`value`: Output) {
        this.networkBandwidthGbps = value
    }

    /**
     * @param value The minimum and maximum number of network interfaces.
     * Default: No minimum or maximum limits
     */
    @JvmName("mekpggrcnrsdbmah")
    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. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
     * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
     * To indicate no price protection threshold, specify a high value, such as `999999` .
     * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) and [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) .
     * > If you set `TargetCapacityUnitType` 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("bkmobvifddhfyuwj")
    public suspend fun onDemandMaxPricePercentageOverLowestPrice(`value`: Output) {
        this.onDemandMaxPricePercentageOverLowestPrice = value
    }

    /**
     * @param value Indicates whether instance types must support hibernation for On-Demand Instances.
     * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) .
     * Default: `false`
     */
    @JvmName("qginxyrempeefsqg")
    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 Spot 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 Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
     * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
     * If you set `TargetCapacityUnitType` 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.
     * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) and [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) .
     * > Only one of `SpotMaxPricePercentageOverLowestPrice` or `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If you don't specify either, Amazon EC2 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` .
     * Default: `100`
     */
    @JvmName("wtgmqfjjdfvhrkue")
    public suspend fun spotMaxPricePercentageOverLowestPrice(`value`: Output) {
        this.spotMaxPricePercentageOverLowestPrice = value
    }

    /**
     * @param value The minimum and maximum amount of total local storage, in GB.
     * Default: No minimum or maximum limits
     */
    @JvmName("hcwcrhrkmwxneose")
    public suspend fun totalLocalStorageGb(`value`: Output) {
        this.totalLocalStorageGb = value
    }

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

    /**
     * @param value The minimum and maximum number of accelerators (GPUs, FPGAs, or AWS Inferentia chips) on an instance.
     * To exclude accelerator-enabled instance types, set `Max` to `0` .
     * Default: No minimum or maximum limits
     */
    @JvmName("yivefbkdncvobxmc")
    public suspend fun acceleratorCount(`value`: Ec2FleetAcceleratorCountRequestArgs?) {
        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) on an instance.
     * To exclude accelerator-enabled instance types, set `Max` to `0` .
     * Default: No minimum or maximum limits
     */
    @JvmName("fdpxmaurklhmsqhj")
    public suspend fun acceleratorCount(argument: suspend Ec2FleetAcceleratorCountRequestArgsBuilder.() -> Unit) {
        val toBeMapped = Ec2FleetAcceleratorCountRequestArgsBuilder().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 AWS devices, specify `amazon-web-services` .
     * - For instance types with AMD devices, specify `amd` .
     * - For instance types with Habana devices, specify `habana` .
     * - For instance types with NVIDIA devices, specify `nvidia` .
     * - For instance types with Xilinx devices, specify `xilinx` .
     * Default: Any manufacturer
     */
    @JvmName("wxablutclqbiqrtd")
    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 AWS devices, specify `amazon-web-services` .
     * - For instance types with AMD devices, specify `amd` .
     * - For instance types with Habana devices, specify `habana` .
     * - For instance types with NVIDIA devices, specify `nvidia` .
     * - For instance types with Xilinx devices, specify `xilinx` .
     * Default: Any manufacturer
     */
    @JvmName("knctjfvuebyqbvye")
    public suspend fun acceleratorManufacturers(vararg values: Ec2FleetInstanceRequirementsRequestAcceleratorManufacturersItem) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.acceleratorManufacturers = mapped
    }

    /**
     * @param value The accelerators that must be on the instance type.
     * - For instance types with NVIDIA A10G GPUs, specify `a10g` .
     * - For instance types with NVIDIA A100 GPUs, specify `a100` .
     * - For instance types with NVIDIA H100 GPUs, specify `h100` .
     * - For instance types with AWS Inferentia chips, specify `inferentia` .
     * - For instance types with NVIDIA GRID K520 GPUs, specify `k520` .
     * - For instance types with NVIDIA K80 GPUs, specify `k80` .
     * - 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 NVIDIA T4 GPUs, specify `t4` .
     * - For instance types with NVIDIA T4G GPUs, specify `t4g` .
     * - For instance types with Xilinx VU9P FPGAs, specify `vu9p` .
     * - For instance types with NVIDIA V100 GPUs, specify `v100` .
     * Default: Any accelerator
     */
    @JvmName("jgmvequatkpasosk")
    public suspend fun acceleratorNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorNames = mapped
    }

    /**
     * @param values The accelerators that must be on the instance type.
     * - For instance types with NVIDIA A10G GPUs, specify `a10g` .
     * - For instance types with NVIDIA A100 GPUs, specify `a100` .
     * - For instance types with NVIDIA H100 GPUs, specify `h100` .
     * - For instance types with AWS Inferentia chips, specify `inferentia` .
     * - For instance types with NVIDIA GRID K520 GPUs, specify `k520` .
     * - For instance types with NVIDIA K80 GPUs, specify `k80` .
     * - 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 NVIDIA T4 GPUs, specify `t4` .
     * - For instance types with NVIDIA T4G GPUs, specify `t4g` .
     * - For instance types with Xilinx VU9P FPGAs, specify `vu9p` .
     * - For instance types with NVIDIA V100 GPUs, specify `v100` .
     * Default: Any accelerator
     */
    @JvmName("ddibuyxbcgogjgva")
    public suspend fun acceleratorNames(vararg values: Ec2FleetInstanceRequirementsRequestAcceleratorNamesItem) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.acceleratorNames = mapped
    }

    /**
     * @param value The minimum and maximum amount of total accelerator memory, in MiB.
     * Default: No minimum or maximum limits
     */
    @JvmName("spwrxrvklokttxea")
    public suspend fun acceleratorTotalMemoryMiB(`value`: Ec2FleetAcceleratorTotalMemoryMiBRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.acceleratorTotalMemoryMiB = mapped
    }

    /**
     * @param argument The minimum and maximum amount of total accelerator memory, in MiB.
     * Default: No minimum or maximum limits
     */
    @JvmName("dddsmolywjwtkeqo")
    public suspend fun acceleratorTotalMemoryMiB(argument: suspend Ec2FleetAcceleratorTotalMemoryMiBRequestArgsBuilder.() -> Unit) {
        val toBeMapped = Ec2FleetAcceleratorTotalMemoryMiBRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.acceleratorTotalMemoryMiB = mapped
    }

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

    /**
     * @param values The accelerator types that must be on the instance type.
     * - To include instance types with GPU hardware, specify `gpu` .
     * - To include instance types with FPGA hardware, specify `fpga` .
     * - To include instance types with inference hardware, specify `inference` .
     * Default: Any accelerator type
     */
    @JvmName("vvklcroqnynmeuhh")
    public suspend fun acceleratorTypes(vararg values: Ec2FleetInstanceRequirementsRequestAcceleratorTypesItem) {
        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 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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("xnqxentflypadhqk")
    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 will allow the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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("phmuyrcajdpfxgfc")
    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 must be included, excluded, or required.
     * - To include bare metal instance types, specify `included` .
     * - To require only bare metal instance types, specify `required` .
     * - To exclude bare metal instance types, specify `excluded` .
     * Default: `excluded`
     */
    @JvmName("ypiurnklbuljeyto")
    public suspend fun bareMetal(`value`: Ec2FleetInstanceRequirementsRequestBareMetal?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.bareMetal = mapped
    }

    /**
     * @param value The minimum and maximum baseline bandwidth to Amazon EBS, 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* .
     * Default: No minimum or maximum limits
     */
    @JvmName("uitscqnnvdnvywgb")
    public suspend fun baselineEbsBandwidthMbps(`value`: Ec2FleetBaselineEbsBandwidthMbpsRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baselineEbsBandwidthMbps = mapped
    }

    /**
     * @param argument The minimum and maximum baseline bandwidth to Amazon EBS, 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* .
     * Default: No minimum or maximum limits
     */
    @JvmName("ruamvnersxwqbkfx")
    public suspend fun baselineEbsBandwidthMbps(argument: suspend Ec2FleetBaselineEbsBandwidthMbpsRequestArgsBuilder.() -> Unit) {
        val toBeMapped = Ec2FleetBaselineEbsBandwidthMbpsRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.baselineEbsBandwidthMbps = mapped
    }

    /**
     * @param value Indicates whether burstable performance T 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) .
     * - To include burstable performance instance types, specify `included` .
     * - To require only burstable performance instance types, specify `required` .
     * - To exclude burstable performance instance types, specify `excluded` .
     * Default: `excluded`
     */
    @JvmName("kuufgbvsbtyocbst")
    public suspend fun burstablePerformance(`value`: Ec2FleetInstanceRequirementsRequestBurstablePerformance?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.burstablePerformance = mapped
    }

    /**
     * @param value The 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 manufacturer with the CPU 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("ivntaeyjiafbjgfo")
    public suspend fun cpuManufacturers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuManufacturers = mapped
    }

    /**
     * @param values The 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 manufacturer with the CPU 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("hiuwxeoxqyipwedx")
    public suspend fun cpuManufacturers(vararg values: Ec2FleetInstanceRequirementsRequestCpuManufacturersItem) {
        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*` ,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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("pyoendvtinkfcbvy")
    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*` ,Amazon EC2 will exclude the entire C5 instance family, which includes all C5a and C5n instance types. If you specify `m5a.*` , Amazon EC2 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("skmmqfanovyowfrp")
    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. The current generation instance types are recommended for use. Current generation instance types are typically 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 current generation instance types, specify `current` .
     * For previous generation instance types, specify `previous` .
     * Default: Current and previous generation instance types
     */
    @JvmName("quhrkmxdmybbtuvd")
    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. The current generation instance types are recommended for use. Current generation instance types are typically 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 current generation instance types, specify `current` .
     * For previous generation instance types, specify `previous` .
     * Default: Current and previous generation instance types
     */
    @JvmName("kysncioxxqqnmrul")
    public suspend fun instanceGenerations(vararg values: Ec2FleetInstanceRequirementsRequestInstanceGenerationsItem) {
        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, [Amazon EC2 instance store](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html) in the *Amazon EC2 User Guide* .
     * - To include instance types with instance store volumes, specify `included` .
     * - To require only instance types with instance store volumes, specify `required` .
     * - To exclude instance types with instance store volumes, specify `excluded` .
     * Default: `included`
     */
    @JvmName("rrnwdphapjpcvxjo")
    public suspend fun localStorage(`value`: Ec2FleetInstanceRequirementsRequestLocalStorage?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localStorage = mapped
    }

    /**
     * @param value 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: `hdd` and `ssd`
     */
    @JvmName("yuyaodbbygavcprw")
    public suspend fun localStorageTypes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.localStorageTypes = mapped
    }

    /**
     * @param values 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: `hdd` and `ssd`
     */
    @JvmName("hptmpvpwdexqiqfd")
    public suspend fun localStorageTypes(vararg values: Ec2FleetInstanceRequirementsRequestLocalStorageTypesItem) {
        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 the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
     * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
     * If you set `TargetCapacityUnitType` 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 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("uahsbxptsspelxgv")
    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, in GiB.
     * Default: No minimum or maximum limits
     */
    @JvmName("wchhcvnxdlcbmpii")
    public suspend fun memoryGiBPerVCpu(`value`: Ec2FleetMemoryGiBPerVCpuRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memoryGiBPerVCpu = mapped
    }

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

    /**
     * @param value The minimum and maximum amount of memory, in MiB.
     */
    @JvmName("tewkgctujceplipg")
    public suspend fun memoryMiB(`value`: Ec2FleetMemoryMiBRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memoryMiB = mapped
    }

    /**
     * @param argument The minimum and maximum amount of memory, in MiB.
     */
    @JvmName("abduywjrumfttlke")
    public suspend fun memoryMiB(argument: suspend Ec2FleetMemoryMiBRequestArgsBuilder.() -> Unit) {
        val toBeMapped = Ec2FleetMemoryMiBRequestArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.memoryMiB = mapped
    }

    /**
     * @param value The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see [Amazon EC2 instance network bandwidth](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html) in the *Amazon EC2 User Guide* .
     * Default: No minimum or maximum limits
     */
    @JvmName("kqxibywlyldmbbkr")
    public suspend fun networkBandwidthGbps(`value`: Ec2FleetNetworkBandwidthGbpsRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkBandwidthGbps = mapped
    }

    /**
     * @param argument The minimum and maximum amount of baseline network bandwidth, in gigabits per second (Gbps). For more information, see [Amazon EC2 instance network bandwidth](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html) in the *Amazon EC2 User Guide* .
     * Default: No minimum or maximum limits
     */
    @JvmName("wwrwstyjkkthcgkn")
    public suspend fun networkBandwidthGbps(argument: suspend Ec2FleetNetworkBandwidthGbpsRequestArgsBuilder.() -> Unit) {
        val toBeMapped = Ec2FleetNetworkBandwidthGbpsRequestArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.networkBandwidthGbps = mapped
    }

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

    /**
     * @param argument The minimum and maximum number of network interfaces.
     * Default: No minimum or maximum limits
     */
    @JvmName("ysrplrfbsdnfpqyh")
    public suspend fun networkInterfaceCount(argument: suspend Ec2FleetNetworkInterfaceCountRequestArgsBuilder.() -> Unit) {
        val toBeMapped = Ec2FleetNetworkInterfaceCountRequestArgsBuilder().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. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose price exceeds your specified threshold.
     * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
     * To indicate no price protection threshold, specify a high value, such as `999999` .
     * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) and [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) .
     * > If you set `TargetCapacityUnitType` 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("kurcyeogmjwkmlci")
    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 support hibernation for On-Demand Instances.
     * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) .
     * Default: `false`
     */
    @JvmName("esyykxwgvsikevri")
    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 Spot 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 Spot price is from the lowest priced current generation instance types, and failing that, from the lowest priced previous generation instance types that match your attributes. When Amazon EC2 selects instance types with your attributes, it will exclude instance types whose Spot price exceeds your specified threshold.
     * The parameter accepts an integer, which Amazon EC2 interprets as a percentage.
     * If you set `TargetCapacityUnitType` 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.
     * This parameter is not supported for [GetSpotPlacementScores](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetSpotPlacementScores.html) and [GetInstanceTypesFromInstanceRequirements](https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_GetInstanceTypesFromInstanceRequirements.html) .
     * > Only one of `SpotMaxPricePercentageOverLowestPrice` or `MaxSpotPriceAsPercentageOfOptimalOnDemandPrice` can be specified. If you don't specify either, Amazon EC2 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` .
     * Default: `100`
     */
    @JvmName("xmaknfjyquuicwhn")
    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 amount of total local storage, in GB.
     * Default: No minimum or maximum limits
     */
    @JvmName("nsowavxbgwcabdoi")
    public suspend fun totalLocalStorageGb(`value`: Ec2FleetTotalLocalStorageGbRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalLocalStorageGb = mapped
    }

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

    /**
     * @param value The minimum and maximum number of vCPUs.
     */
    @JvmName("abnpvtmijpynlgbm")
    public suspend fun vCpuCount(`value`: Ec2FleetVCpuCountRangeRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vCpuCount = mapped
    }

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

    internal fun build(): Ec2FleetInstanceRequirementsRequestArgs =
        Ec2FleetInstanceRequirementsRequestArgs(
            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,
            networkBandwidthGbps = networkBandwidthGbps,
            networkInterfaceCount = networkInterfaceCount,
            onDemandMaxPricePercentageOverLowestPrice = onDemandMaxPricePercentageOverLowestPrice,
            requireHibernateSupport = requireHibernateSupport,
            spotMaxPricePercentageOverLowestPrice = spotMaxPricePercentageOverLowestPrice,
            totalLocalStorageGb = totalLocalStorageGb,
            vCpuCount = vCpuCount,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy