com.pulumi.gcp.container.kotlin.inputs.ClusterClusterAutoscalingArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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.ClusterClusterAutoscalingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property autoProvisioningDefaults Contains defaults for a node pool created by NAP. A subset of fields also apply to
* GKE Autopilot clusters.
* Structure is documented below.
* @property autoscalingProfile Configuration
* options for the [Autoscaling profile](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler#autoscaling_profiles)
* feature, which lets you choose whether the cluster autoscaler should optimize for resource utilization or resource availability
* when deciding to remove nodes from a cluster. Can be `BALANCED` or `OPTIMIZE_UTILIZATION`. Defaults to `BALANCED`.
* @property enabled Whether node auto-provisioning is enabled. Must be supplied for GKE Standard clusters, `true` is implied
* for autopilot clusters. Resource limits for `cpu` and `memory` must be defined to enable node auto-provisioning for GKE Standard.
* @property resourceLimits Global constraints for machine resources in the
* cluster. Configuring the `cpu` and `memory` types is required if node
* auto-provisioning is enabled. These limits will apply to node pool autoscaling
* in addition to node auto-provisioning. Structure is documented below.
*/
public data class ClusterClusterAutoscalingArgs(
public val autoProvisioningDefaults: Output? = null,
public val autoscalingProfile: Output? = null,
public val enabled: Output? = null,
public val resourceLimits: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingArgs =
com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingArgs.builder()
.autoProvisioningDefaults(
autoProvisioningDefaults?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.autoscalingProfile(autoscalingProfile?.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.resourceLimits(
resourceLimits?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ClusterClusterAutoscalingArgs].
*/
@PulumiTagMarker
public class ClusterClusterAutoscalingArgsBuilder internal constructor() {
private var autoProvisioningDefaults:
Output? = null
private var autoscalingProfile: Output? = null
private var enabled: Output? = null
private var resourceLimits: Output>? = null
/**
* @param value Contains defaults for a node pool created by NAP. A subset of fields also apply to
* GKE Autopilot clusters.
* Structure is documented below.
*/
@JvmName("theqtliqsuovuiim")
public suspend fun autoProvisioningDefaults(`value`: Output) {
this.autoProvisioningDefaults = value
}
/**
* @param value Configuration
* options for the [Autoscaling profile](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler#autoscaling_profiles)
* feature, which lets you choose whether the cluster autoscaler should optimize for resource utilization or resource availability
* when deciding to remove nodes from a cluster. Can be `BALANCED` or `OPTIMIZE_UTILIZATION`. Defaults to `BALANCED`.
*/
@JvmName("vdvrjhuonsvobrfs")
public suspend fun autoscalingProfile(`value`: Output) {
this.autoscalingProfile = value
}
/**
* @param value Whether node auto-provisioning is enabled. Must be supplied for GKE Standard clusters, `true` is implied
* for autopilot clusters. Resource limits for `cpu` and `memory` must be defined to enable node auto-provisioning for GKE Standard.
*/
@JvmName("oaaqjnafctrcgcga")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Global constraints for machine resources in the
* cluster. Configuring the `cpu` and `memory` types is required if node
* auto-provisioning is enabled. These limits will apply to node pool autoscaling
* in addition to node auto-provisioning. Structure is documented below.
*/
@JvmName("pumvfhvckifdyead")
public suspend fun resourceLimits(`value`: Output>) {
this.resourceLimits = value
}
@JvmName("nwptwpkpjnucsbeo")
public suspend fun resourceLimits(vararg values: Output) {
this.resourceLimits = Output.all(values.asList())
}
/**
* @param values Global constraints for machine resources in the
* cluster. Configuring the `cpu` and `memory` types is required if node
* auto-provisioning is enabled. These limits will apply to node pool autoscaling
* in addition to node auto-provisioning. Structure is documented below.
*/
@JvmName("ypigiimyamgpyhvl")
public suspend fun resourceLimits(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy