
com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterDefaultNodePoolLinuxOsConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerservice.kotlin.inputs
import com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolLinuxOsConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @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 KubernetesClusterDefaultNodePoolLinuxOsConfigArgs(
public val swapFileSizeMb: Output? = null,
public val sysctlConfig: Output? =
null,
public val transparentHugePageDefrag: Output? = null,
public val transparentHugePageEnabled: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolLinuxOsConfigArgs =
com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolLinuxOsConfigArgs.builder()
.swapFileSizeMb(swapFileSizeMb?.applyValue({ args0 -> args0 }))
.sysctlConfig(sysctlConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.transparentHugePageDefrag(transparentHugePageDefrag?.applyValue({ args0 -> args0 }))
.transparentHugePageEnabled(transparentHugePageEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KubernetesClusterDefaultNodePoolLinuxOsConfigArgs].
*/
@PulumiTagMarker
public class KubernetesClusterDefaultNodePoolLinuxOsConfigArgsBuilder internal constructor() {
private var swapFileSizeMb: Output? = null
private var sysctlConfig: Output? =
null
private var transparentHugePageDefrag: Output? = null
private var transparentHugePageEnabled: Output? = null
/**
* @param value Specifies the size of the swap file on each node in MB.
*/
@JvmName("wtrxyfgpgrmumjrm")
public suspend fun swapFileSizeMb(`value`: Output) {
this.swapFileSizeMb = value
}
/**
* @param value A `sysctl_config` block as defined below.
*/
@JvmName("rpwbsxqqsaobtapf")
public suspend fun sysctlConfig(`value`: Output) {
this.sysctlConfig = value
}
/**
* @param value specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`.
*/
@JvmName("raguwagiqsbulaaw")
public suspend fun transparentHugePageDefrag(`value`: Output) {
this.transparentHugePageDefrag = value
}
/**
* @param value Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`.
*/
@JvmName("rshjnlccafjsqmid")
public suspend fun transparentHugePageEnabled(`value`: Output) {
this.transparentHugePageEnabled = value
}
/**
* @param value Specifies the size of the swap file on each node in MB.
*/
@JvmName("aptxehtvjvdmkdxl")
public suspend fun swapFileSizeMb(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.swapFileSizeMb = mapped
}
/**
* @param value A `sysctl_config` block as defined below.
*/
@JvmName("ihuatbppwkqxsukb")
public suspend fun sysctlConfig(`value`: KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sysctlConfig = mapped
}
/**
* @param argument A `sysctl_config` block as defined below.
*/
@JvmName("tkfwepdnxlqvnnju")
public suspend fun sysctlConfig(argument: suspend KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfigArgsBuilder.() -> Unit) {
val toBeMapped =
KubernetesClusterDefaultNodePoolLinuxOsConfigSysctlConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.sysctlConfig = mapped
}
/**
* @param value specifies the defrag configuration for Transparent Huge Page. Possible values are `always`, `defer`, `defer+madvise`, `madvise` and `never`.
*/
@JvmName("yfqtdaukyidteren")
public suspend fun transparentHugePageDefrag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.transparentHugePageDefrag = mapped
}
/**
* @param value Specifies the Transparent Huge Page enabled configuration. Possible values are `always`, `madvise` and `never`.
*/
@JvmName("pnwnyxxbnwpgikvj")
public suspend fun transparentHugePageEnabled(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.transparentHugePageEnabled = mapped
}
internal fun build(): KubernetesClusterDefaultNodePoolLinuxOsConfigArgs =
KubernetesClusterDefaultNodePoolLinuxOsConfigArgs(
swapFileSizeMb = swapFileSizeMb,
sysctlConfig = sysctlConfig,
transparentHugePageDefrag = transparentHugePageDefrag,
transparentHugePageEnabled = transparentHugePageEnabled,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy