com.pulumi.gcp.compute.kotlin.outputs.ResourcePolicyGroupPlacementPolicy.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 ResourcePolicyGroupPlacementPolicy(
public val availabilityDomainCount: Int? = null,
public val collocation: String? = null,
public val maxDistance: Int? = null,
public val vmCount: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.ResourcePolicyGroupPlacementPolicy): ResourcePolicyGroupPlacementPolicy = ResourcePolicyGroupPlacementPolicy(
availabilityDomainCount = javaType.availabilityDomainCount().map({ args0 -> args0 }).orElse(null),
collocation = javaType.collocation().map({ args0 -> args0 }).orElse(null),
maxDistance = javaType.maxDistance().map({ args0 -> args0 }).orElse(null),
vmCount = javaType.vmCount().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy