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

com.pulumi.gcp.container.kotlin.outputs.NodePoolPlacementPolicy.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.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