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

com.pulumi.gcp.container.kotlin.inputs.NodePoolNodeConfigLinuxNodeConfigArgs.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.NodePoolNodeConfigLinuxNodeConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property cgroupMode cgroupMode specifies the cgroup mode to be used on the node.
 * @property hugepagesConfig Amounts for 2M and 1G hugepages.
 * @property sysctls The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
 */
public data class NodePoolNodeConfigLinuxNodeConfigArgs(
    public val cgroupMode: Output? = null,
    public val hugepagesConfig: Output? = null,
    public val sysctls: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.NodePoolNodeConfigLinuxNodeConfigArgs =
        com.pulumi.gcp.container.inputs.NodePoolNodeConfigLinuxNodeConfigArgs.builder()
            .cgroupMode(cgroupMode?.applyValue({ args0 -> args0 }))
            .hugepagesConfig(hugepagesConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sysctls(
                sysctls?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [NodePoolNodeConfigLinuxNodeConfigArgs].
 */
@PulumiTagMarker
public class NodePoolNodeConfigLinuxNodeConfigArgsBuilder internal constructor() {
    private var cgroupMode: Output? = null

    private var hugepagesConfig: Output? = null

    private var sysctls: Output>? = null

    /**
     * @param value cgroupMode specifies the cgroup mode to be used on the node.
     */
    @JvmName("ioumudfxwvbepkho")
    public suspend fun cgroupMode(`value`: Output) {
        this.cgroupMode = value
    }

    /**
     * @param value Amounts for 2M and 1G hugepages.
     */
    @JvmName("olcdvqqjtqumuhnh")
    public suspend fun hugepagesConfig(`value`: Output) {
        this.hugepagesConfig = value
    }

    /**
     * @param value The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
     */
    @JvmName("xbisvgksaudptxyr")
    public suspend fun sysctls(`value`: Output>) {
        this.sysctls = value
    }

    /**
     * @param value cgroupMode specifies the cgroup mode to be used on the node.
     */
    @JvmName("hteiivfevmjdtofj")
    public suspend fun cgroupMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cgroupMode = mapped
    }

    /**
     * @param value Amounts for 2M and 1G hugepages.
     */
    @JvmName("rjtsabcdppxdowpo")
    public suspend fun hugepagesConfig(`value`: NodePoolNodeConfigLinuxNodeConfigHugepagesConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.hugepagesConfig = mapped
    }

    /**
     * @param argument Amounts for 2M and 1G hugepages.
     */
    @JvmName("ynnlysntuqpgapcv")
    public suspend fun hugepagesConfig(argument: suspend NodePoolNodeConfigLinuxNodeConfigHugepagesConfigArgsBuilder.() -> Unit) {
        val toBeMapped = NodePoolNodeConfigLinuxNodeConfigHugepagesConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.hugepagesConfig = mapped
    }

    /**
     * @param value The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
     */
    @JvmName("xdnwsileqkwreqkl")
    public suspend fun sysctls(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sysctls = mapped
    }

    /**
     * @param values The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
     */
    @JvmName("lfnhksicrfpvmaid")
    public fun sysctls(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sysctls = mapped
    }

    internal fun build(): NodePoolNodeConfigLinuxNodeConfigArgs =
        NodePoolNodeConfigLinuxNodeConfigArgs(
            cgroupMode = cgroupMode,
            hugepagesConfig = hugepagesConfig,
            sysctls = sysctls,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy