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

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

/**
 *
 * @property cpuCfsQuota Whether or not to enable CPU CFS quota. Defaults to true.
 * @property cpuCfsQuotaPeriod Optional. The CPU CFS quota period to use for the node. Defaults to "100ms".
 * @property cpuManagerPolicy The CpuManagerPolicy to use for the node. Defaults to "none".
 * @property podPidsLimit Optional. The maximum number of PIDs in each pod running on the node. The limit scales automatically based on underlying machine size if left unset.
 */
public data class AwsNodePoolKubeletConfigArgs(
    public val cpuCfsQuota: Output? = null,
    public val cpuCfsQuotaPeriod: Output? = null,
    public val cpuManagerPolicy: Output? = null,
    public val podPidsLimit: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.AwsNodePoolKubeletConfigArgs =
        com.pulumi.gcp.container.inputs.AwsNodePoolKubeletConfigArgs.builder()
            .cpuCfsQuota(cpuCfsQuota?.applyValue({ args0 -> args0 }))
            .cpuCfsQuotaPeriod(cpuCfsQuotaPeriod?.applyValue({ args0 -> args0 }))
            .cpuManagerPolicy(cpuManagerPolicy?.applyValue({ args0 -> args0 }))
            .podPidsLimit(podPidsLimit?.applyValue({ args0 -> args0 })).build()
}

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

    private var cpuCfsQuotaPeriod: Output? = null

    private var cpuManagerPolicy: Output? = null

    private var podPidsLimit: Output? = null

    /**
     * @param value Whether or not to enable CPU CFS quota. Defaults to true.
     */
    @JvmName("hmbtjanwbnykpown")
    public suspend fun cpuCfsQuota(`value`: Output) {
        this.cpuCfsQuota = value
    }

    /**
     * @param value Optional. The CPU CFS quota period to use for the node. Defaults to "100ms".
     */
    @JvmName("qaunscxidvywwkek")
    public suspend fun cpuCfsQuotaPeriod(`value`: Output) {
        this.cpuCfsQuotaPeriod = value
    }

    /**
     * @param value The CpuManagerPolicy to use for the node. Defaults to "none".
     */
    @JvmName("mgpgibfbmutklqiw")
    public suspend fun cpuManagerPolicy(`value`: Output) {
        this.cpuManagerPolicy = value
    }

    /**
     * @param value Optional. The maximum number of PIDs in each pod running on the node. The limit scales automatically based on underlying machine size if left unset.
     */
    @JvmName("fdmygqdcrfnjcvyj")
    public suspend fun podPidsLimit(`value`: Output) {
        this.podPidsLimit = value
    }

    /**
     * @param value Whether or not to enable CPU CFS quota. Defaults to true.
     */
    @JvmName("amellssamwppxqbv")
    public suspend fun cpuCfsQuota(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuCfsQuota = mapped
    }

    /**
     * @param value Optional. The CPU CFS quota period to use for the node. Defaults to "100ms".
     */
    @JvmName("lofrtdxcjrfysgmt")
    public suspend fun cpuCfsQuotaPeriod(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuCfsQuotaPeriod = mapped
    }

    /**
     * @param value The CpuManagerPolicy to use for the node. Defaults to "none".
     */
    @JvmName("jwhkivqkpgqlmrtn")
    public suspend fun cpuManagerPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuManagerPolicy = mapped
    }

    /**
     * @param value Optional. The maximum number of PIDs in each pod running on the node. The limit scales automatically based on underlying machine size if left unset.
     */
    @JvmName("fgwiouplgftrnuum")
    public suspend fun podPidsLimit(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.podPidsLimit = mapped
    }

    internal fun build(): AwsNodePoolKubeletConfigArgs = AwsNodePoolKubeletConfigArgs(
        cpuCfsQuota = cpuCfsQuota,
        cpuCfsQuotaPeriod = cpuCfsQuotaPeriod,
        cpuManagerPolicy = cpuManagerPolicy,
        podPidsLimit = podPidsLimit,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy