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

com.pulumi.gcp.container.kotlin.inputs.AwsNodePoolConfigSpotConfigArgs.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: 8.12.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.container.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.AwsNodePoolConfigSpotConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property instanceTypes List of AWS EC2 instance types for creating a spot node pool's nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
 */
public data class AwsNodePoolConfigSpotConfigArgs(
    public val instanceTypes: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.AwsNodePoolConfigSpotConfigArgs =
        com.pulumi.gcp.container.inputs.AwsNodePoolConfigSpotConfigArgs.builder()
            .instanceTypes(instanceTypes.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [AwsNodePoolConfigSpotConfigArgs].
 */
@PulumiTagMarker
public class AwsNodePoolConfigSpotConfigArgsBuilder internal constructor() {
    private var instanceTypes: Output>? = null

    /**
     * @param value List of AWS EC2 instance types for creating a spot node pool's nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
     */
    @JvmName("hdloeieejxjxprgo")
    public suspend fun instanceTypes(`value`: Output>) {
        this.instanceTypes = value
    }

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

    /**
     * @param values List of AWS EC2 instance types for creating a spot node pool's nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
     */
    @JvmName("pcrkvrctyxcjdcku")
    public suspend fun instanceTypes(values: List>) {
        this.instanceTypes = Output.all(values)
    }

    /**
     * @param value List of AWS EC2 instance types for creating a spot node pool's nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
     */
    @JvmName("dgftuqilugncemkb")
    public suspend fun instanceTypes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceTypes = mapped
    }

    /**
     * @param values List of AWS EC2 instance types for creating a spot node pool's nodes. The specified instance types must have the same number of CPUs and memory. You can use the Amazon EC2 Instance Selector tool (https://github.com/aws/amazon-ec2-instance-selector) to choose instance types with matching CPU and memory
     */
    @JvmName("pdkqjkjetpwurfer")
    public suspend fun instanceTypes(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instanceTypes = mapped
    }

    internal fun build(): AwsNodePoolConfigSpotConfigArgs = AwsNodePoolConfigSpotConfigArgs(
        instanceTypes = instanceTypes ?: throw PulumiNullFieldException("instanceTypes"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy