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

com.pulumi.gcp.container.kotlin.inputs.ClusterNodeConfigKubeletConfigArgs.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.ClusterNodeConfigKubeletConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property cpuCfsQuota If true, enables CPU CFS quota enforcement for
 * containers that specify CPU limits.
 * @property cpuCfsQuotaPeriod The CPU CFS quota period value. Specified
 * as a sequence of decimal numbers, each with optional fraction and a unit suffix,
 * such as `"300ms"`. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
 * "h". The value must be a positive duration.
 * > Note: At the time of writing (2020/08/18) the GKE API rejects the `none`
 * value and accepts an invalid `default` value instead. While this remains true,
 * not specifying the `kubelet_config` block should be the equivalent of specifying
 * `none`.
 * @property cpuManagerPolicy The CPU management policy on the node. See
 * [K8S CPU Management Policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/).
 * One of `"none"` or `"static"`. Defaults to `none` when `kubelet_config` is unset.
 * @property podPidsLimit Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304.
 */
public data class ClusterNodeConfigKubeletConfigArgs(
    public val cpuCfsQuota: Output? = null,
    public val cpuCfsQuotaPeriod: Output? = null,
    public val cpuManagerPolicy: Output,
    public val podPidsLimit: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodeConfigKubeletConfigArgs =
        com.pulumi.gcp.container.inputs.ClusterNodeConfigKubeletConfigArgs.builder()
            .cpuCfsQuota(cpuCfsQuota?.applyValue({ args0 -> args0 }))
            .cpuCfsQuotaPeriod(cpuCfsQuotaPeriod?.applyValue({ args0 -> args0 }))
            .cpuManagerPolicy(cpuManagerPolicy.applyValue({ args0 -> args0 }))
            .podPidsLimit(podPidsLimit?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ClusterNodeConfigKubeletConfigArgs].
 */
@PulumiTagMarker
public class ClusterNodeConfigKubeletConfigArgsBuilder internal constructor() {
    private var cpuCfsQuota: Output? = null

    private var cpuCfsQuotaPeriod: Output? = null

    private var cpuManagerPolicy: Output? = null

    private var podPidsLimit: Output? = null

    /**
     * @param value If true, enables CPU CFS quota enforcement for
     * containers that specify CPU limits.
     */
    @JvmName("iipktffmdyjwcxls")
    public suspend fun cpuCfsQuota(`value`: Output) {
        this.cpuCfsQuota = value
    }

    /**
     * @param value The CPU CFS quota period value. Specified
     * as a sequence of decimal numbers, each with optional fraction and a unit suffix,
     * such as `"300ms"`. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
     * "h". The value must be a positive duration.
     * > Note: At the time of writing (2020/08/18) the GKE API rejects the `none`
     * value and accepts an invalid `default` value instead. While this remains true,
     * not specifying the `kubelet_config` block should be the equivalent of specifying
     * `none`.
     */
    @JvmName("ptnqgnsgwqyjemnr")
    public suspend fun cpuCfsQuotaPeriod(`value`: Output) {
        this.cpuCfsQuotaPeriod = value
    }

    /**
     * @param value The CPU management policy on the node. See
     * [K8S CPU Management Policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/).
     * One of `"none"` or `"static"`. Defaults to `none` when `kubelet_config` is unset.
     */
    @JvmName("ecpqomnujnkweiyq")
    public suspend fun cpuManagerPolicy(`value`: Output) {
        this.cpuManagerPolicy = value
    }

    /**
     * @param value Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304.
     */
    @JvmName("lykhnaukpmrxfnju")
    public suspend fun podPidsLimit(`value`: Output) {
        this.podPidsLimit = value
    }

    /**
     * @param value If true, enables CPU CFS quota enforcement for
     * containers that specify CPU limits.
     */
    @JvmName("cbyginjxrqjgjksd")
    public suspend fun cpuCfsQuota(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuCfsQuota = mapped
    }

    /**
     * @param value The CPU CFS quota period value. Specified
     * as a sequence of decimal numbers, each with optional fraction and a unit suffix,
     * such as `"300ms"`. Valid time units are "ns", "us" (or "µs"), "ms", "s", "m",
     * "h". The value must be a positive duration.
     * > Note: At the time of writing (2020/08/18) the GKE API rejects the `none`
     * value and accepts an invalid `default` value instead. While this remains true,
     * not specifying the `kubelet_config` block should be the equivalent of specifying
     * `none`.
     */
    @JvmName("wwdlndqlqwblfxyg")
    public suspend fun cpuCfsQuotaPeriod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuCfsQuotaPeriod = mapped
    }

    /**
     * @param value The CPU management policy on the node. See
     * [K8S CPU Management Policies](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/).
     * One of `"none"` or `"static"`. Defaults to `none` when `kubelet_config` is unset.
     */
    @JvmName("tnfjttmmhmcebsau")
    public suspend fun cpuManagerPolicy(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.cpuManagerPolicy = mapped
    }

    /**
     * @param value Controls the maximum number of processes allowed to run in a pod. The value must be greater than or equal to 1024 and less than 4194304.
     */
    @JvmName("gxkyopvxricnskyt")
    public suspend fun podPidsLimit(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.podPidsLimit = mapped
    }

    internal fun build(): ClusterNodeConfigKubeletConfigArgs = ClusterNodeConfigKubeletConfigArgs(
        cpuCfsQuota = cpuCfsQuota,
        cpuCfsQuotaPeriod = cpuCfsQuotaPeriod,
        cpuManagerPolicy = cpuManagerPolicy ?: throw PulumiNullFieldException("cpuManagerPolicy"),
        podPidsLimit = podPidsLimit,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy