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

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

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

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

import com.pulumi.awsnative.ec2.inputs.SpotFleetSpotPlacementArgs.builder
import com.pulumi.awsnative.ec2.kotlin.enums.SpotFleetSpotPlacementTenancy
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property availabilityZone The Availability Zone.
 * To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
 * @property groupName The name of the placement group.
 * @property tenancy The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of `dedicated` runs on single-tenant hardware. The `host` tenancy is not supported for Spot Instances.
 */
public data class SpotFleetSpotPlacementArgs(
    public val availabilityZone: Output? = null,
    public val groupName: Output? = null,
    public val tenancy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.SpotFleetSpotPlacementArgs =
        com.pulumi.awsnative.ec2.inputs.SpotFleetSpotPlacementArgs.builder()
            .availabilityZone(availabilityZone?.applyValue({ args0 -> args0 }))
            .groupName(groupName?.applyValue({ args0 -> args0 }))
            .tenancy(tenancy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [SpotFleetSpotPlacementArgs].
 */
@PulumiTagMarker
public class SpotFleetSpotPlacementArgsBuilder internal constructor() {
    private var availabilityZone: Output? = null

    private var groupName: Output? = null

    private var tenancy: Output? = null

    /**
     * @param value The Availability Zone.
     * To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
     */
    @JvmName("helympidqalqsaio")
    public suspend fun availabilityZone(`value`: Output) {
        this.availabilityZone = value
    }

    /**
     * @param value The name of the placement group.
     */
    @JvmName("shcevyngantdhlkt")
    public suspend fun groupName(`value`: Output) {
        this.groupName = value
    }

    /**
     * @param value The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of `dedicated` runs on single-tenant hardware. The `host` tenancy is not supported for Spot Instances.
     */
    @JvmName("townbywflnsqkbvx")
    public suspend fun tenancy(`value`: Output) {
        this.tenancy = value
    }

    /**
     * @param value The Availability Zone.
     * To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".
     */
    @JvmName("cifgeybmenlkfysr")
    public suspend fun availabilityZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityZone = mapped
    }

    /**
     * @param value The name of the placement group.
     */
    @JvmName("hhtuyfkwsyqjfgrd")
    public suspend fun groupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.groupName = mapped
    }

    /**
     * @param value The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of `dedicated` runs on single-tenant hardware. The `host` tenancy is not supported for Spot Instances.
     */
    @JvmName("tgtmmfhockatbuys")
    public suspend fun tenancy(`value`: SpotFleetSpotPlacementTenancy?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tenancy = mapped
    }

    internal fun build(): SpotFleetSpotPlacementArgs = SpotFleetSpotPlacementArgs(
        availabilityZone = availabilityZone,
        groupName = groupName,
        tenancy = tenancy,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy