com.pulumi.gcp.container.kotlin.outputs.NodePoolPlacementPolicy.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.container.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property policyName If set, refers to the name of a custom resource policy supplied by the user.
* The resource policy must be in the same project and region as the node pool.
* If not found, InvalidArgument error is returned.
* @property tpuTopology The [TPU placement topology](https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies) for pod slice node pool.
* @property type The type of the policy. Supports a single value: COMPACT.
* Specifying COMPACT placement policy type places node pool's nodes in a closer
* physical proximity in order to reduce network latency between nodes.
*/
public data class NodePoolPlacementPolicy(
public val policyName: String? = null,
public val tpuTopology: String? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.NodePoolPlacementPolicy): NodePoolPlacementPolicy = NodePoolPlacementPolicy(
policyName = javaType.policyName().map({ args0 -> args0 }).orElse(null),
tpuTopology = javaType.tpuTopology().map({ args0 -> args0 }).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy