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

com.pulumi.azure.containerservice.kotlin.outputs.KubernetesClusterNodePoolLinuxOsConfig.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: 6.15.0.0
Show newest version
@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 swap file on each node in MB. Changing this forces a new resource to be created.
 * @property sysctlConfig A `sysctl_config` block as defined below. Changing this forces a new resource to be created.
 * @property transparentHugePageDefrag specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`. Changing this forces a new resource to be created.
 * @property transparentHugePageEnabled Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`. Changing this forces a new resource to be created.
 */
public data class KubernetesClusterNodePoolLinuxOsConfig(
    public val swapFileSizeMb: Int? = null,
    public val sysctlConfig: KubernetesClusterNodePoolLinuxOsConfigSysctlConfig? = null,
    public val transparentHugePageDefrag: String? = null,
    public val transparentHugePageEnabled: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.containerservice.outputs.KubernetesClusterNodePoolLinuxOsConfig): KubernetesClusterNodePoolLinuxOsConfig = KubernetesClusterNodePoolLinuxOsConfig(
            swapFileSizeMb = javaType.swapFileSizeMb().map({ args0 -> args0 }).orElse(null),
            sysctlConfig = javaType.sysctlConfig().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.containerservice.kotlin.outputs.KubernetesClusterNodePoolLinuxOsConfigSysctlConfig.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