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

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

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.ResourcePolicyGroupPlacementPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property availabilityDomainCount The number of availability domains instances will be spread across. If two instances are in different
 * availability domain, they will not be put in the same low latency network
 * @property collocation Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network.
 * Specify `COLLOCATED` to enable collocation. Can only be specified with `vm_count`. If compute instances are created
 * with a COLLOCATED policy, then exactly `vm_count` instances must be created at the same time with the resource policy
 * attached.
 * Possible values are: `COLLOCATED`.
 * @property maxDistance Specifies the number of max logical switches.
 * @property vmCount Number of VMs in this placement group. Google does not recommend that you use this field
 * unless you use a compact policy and you want your policy to work only if it contains this
 * exact number of VMs.
 */
public data class ResourcePolicyGroupPlacementPolicyArgs(
    public val availabilityDomainCount: Output? = null,
    public val collocation: Output? = null,
    public val maxDistance: Output? = null,
    public val vmCount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.ResourcePolicyGroupPlacementPolicyArgs =
        com.pulumi.gcp.compute.inputs.ResourcePolicyGroupPlacementPolicyArgs.builder()
            .availabilityDomainCount(availabilityDomainCount?.applyValue({ args0 -> args0 }))
            .collocation(collocation?.applyValue({ args0 -> args0 }))
            .maxDistance(maxDistance?.applyValue({ args0 -> args0 }))
            .vmCount(vmCount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourcePolicyGroupPlacementPolicyArgs].
 */
@PulumiTagMarker
public class ResourcePolicyGroupPlacementPolicyArgsBuilder internal constructor() {
    private var availabilityDomainCount: Output? = null

    private var collocation: Output? = null

    private var maxDistance: Output? = null

    private var vmCount: Output? = null

    /**
     * @param value The number of availability domains instances will be spread across. If two instances are in different
     * availability domain, they will not be put in the same low latency network
     */
    @JvmName("jmtcgiwnqkmseyay")
    public suspend fun availabilityDomainCount(`value`: Output) {
        this.availabilityDomainCount = value
    }

    /**
     * @param value Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network.
     * Specify `COLLOCATED` to enable collocation. Can only be specified with `vm_count`. If compute instances are created
     * with a COLLOCATED policy, then exactly `vm_count` instances must be created at the same time with the resource policy
     * attached.
     * Possible values are: `COLLOCATED`.
     */
    @JvmName("apegvwkaokuqvyyc")
    public suspend fun collocation(`value`: Output) {
        this.collocation = value
    }

    /**
     * @param value Specifies the number of max logical switches.
     */
    @JvmName("hqfpsuwoahipashr")
    public suspend fun maxDistance(`value`: Output) {
        this.maxDistance = value
    }

    /**
     * @param value Number of VMs in this placement group. Google does not recommend that you use this field
     * unless you use a compact policy and you want your policy to work only if it contains this
     * exact number of VMs.
     */
    @JvmName("wsqmbnhjewejliwp")
    public suspend fun vmCount(`value`: Output) {
        this.vmCount = value
    }

    /**
     * @param value The number of availability domains instances will be spread across. If two instances are in different
     * availability domain, they will not be put in the same low latency network
     */
    @JvmName("rdqfaofaigjxtivu")
    public suspend fun availabilityDomainCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityDomainCount = mapped
    }

    /**
     * @param value Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network.
     * Specify `COLLOCATED` to enable collocation. Can only be specified with `vm_count`. If compute instances are created
     * with a COLLOCATED policy, then exactly `vm_count` instances must be created at the same time with the resource policy
     * attached.
     * Possible values are: `COLLOCATED`.
     */
    @JvmName("suwatrunammtfjof")
    public suspend fun collocation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.collocation = mapped
    }

    /**
     * @param value Specifies the number of max logical switches.
     */
    @JvmName("ondsvtwhqxiinktr")
    public suspend fun maxDistance(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxDistance = mapped
    }

    /**
     * @param value Number of VMs in this placement group. Google does not recommend that you use this field
     * unless you use a compact policy and you want your policy to work only if it contains this
     * exact number of VMs.
     */
    @JvmName("fnxwebrdgjutuvir")
    public suspend fun vmCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vmCount = mapped
    }

    internal fun build(): ResourcePolicyGroupPlacementPolicyArgs =
        ResourcePolicyGroupPlacementPolicyArgs(
            availabilityDomainCount = availabilityDomainCount,
            collocation = collocation,
            maxDistance = maxDistance,
            vmCount = vmCount,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy