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

com.pulumi.gcp.container.kotlin.inputs.NodePoolPlacementPolicyArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.NodePoolPlacementPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 NodePoolPlacementPolicyArgs(
    public val policyName: Output? = null,
    public val tpuTopology: Output? = null,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.NodePoolPlacementPolicyArgs =
        com.pulumi.gcp.container.inputs.NodePoolPlacementPolicyArgs.builder()
            .policyName(policyName?.applyValue({ args0 -> args0 }))
            .tpuTopology(tpuTopology?.applyValue({ args0 -> args0 }))
            .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NodePoolPlacementPolicyArgs].
 */
@PulumiTagMarker
public class NodePoolPlacementPolicyArgsBuilder internal constructor() {
    private var policyName: Output? = null

    private var tpuTopology: Output? = null

    private var type: Output? = null

    /**
     * @param value 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.
     */
    @JvmName("ytpsffwasnfkrywd")
    public suspend fun policyName(`value`: Output) {
        this.policyName = value
    }

    /**
     * @param value The [TPU placement topology](https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies) for pod slice node pool.
     */
    @JvmName("wmsyxmalivigdjct")
    public suspend fun tpuTopology(`value`: Output) {
        this.tpuTopology = value
    }

    /**
     * @param value 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.
     */
    @JvmName("dowogqtdjamyfaao")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value 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.
     */
    @JvmName("wpiumviidmmrcngb")
    public suspend fun policyName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.policyName = mapped
    }

    /**
     * @param value The [TPU placement topology](https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies) for pod slice node pool.
     */
    @JvmName("gpxhlhxlpaiiysum")
    public suspend fun tpuTopology(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tpuTopology = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("jhlhoavddrnultvj")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): NodePoolPlacementPolicyArgs = NodePoolPlacementPolicyArgs(
        policyName = policyName,
        tpuTopology = tpuTopology,
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy