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

com.pulumi.azure.containerservice.kotlin.outputs.KubernetesClusterDefaultNodePoolLinuxOsConfig.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.containerservice.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property swapFileSizeMb Specifies the size of the swap file on each node in MB.
 * @property sysctlConfig A `sysctl_config` block as defined below.
 * @property transparentHugePageDefrag specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`.
 * @property transparentHugePageEnabled Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`.
 */
public data class KubernetesClusterDefaultNodePoolLinuxOsConfig(
    public val swapFileSizeMb: Int? = null,
    public val sysctlConfig: KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfig? = null,
    public val transparentHugePageDefrag: String? = null,
    public val transparentHugePageEnabled: String? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.containerservice.outputs.KubernetesClusterDefaultNodePoolLinuxOsConfig):
            KubernetesClusterDefaultNodePoolLinuxOsConfig =
            KubernetesClusterDefaultNodePoolLinuxOsConfig(
                swapFileSizeMb = javaType.swapFileSizeMb().map({ args0 -> args0 }).orElse(null),
                sysctlConfig = javaType.sysctlConfig().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.azure.containerservice.kotlin.outputs.KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfig.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                transparentHugePageDefrag = javaType.transparentHugePageDefrag().map({ args0 ->
                    args0
                }).orElse(null),
                transparentHugePageEnabled = javaType.transparentHugePageEnabled().map({ args0 ->
                    args0
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy