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

com.pulumi.gcp.compute.kotlin.outputs.GetResourcePolicyGroupPlacementPolicy.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.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: ["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 GetResourcePolicyGroupPlacementPolicy(
    public val availabilityDomainCount: Int,
    public val collocation: String,
    public val maxDistance: Int,
    public val vmCount: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.GetResourcePolicyGroupPlacementPolicy): GetResourcePolicyGroupPlacementPolicy = GetResourcePolicyGroupPlacementPolicy(
            availabilityDomainCount = javaType.availabilityDomainCount(),
            collocation = javaType.collocation(),
            maxDistance = javaType.maxDistance(),
            vmCount = javaType.vmCount(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy