com.pulumi.gcp.container.kotlin.outputs.ClusterNodePoolAutoscaling.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.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property locationPolicy Location policy specifies the algorithm used when scaling-up the node pool. "BALANCED" - Is a best effort policy that aims to balance the sizes of available zones. "ANY" - Instructs the cluster autoscaler to prioritize utilization of unused reservations, and reduces preemption risk for Spot VMs.
* @property maxNodeCount Maximum number of nodes per zone in the node pool. Must be >= min_node_count. Cannot be used with total limits.
* @property minNodeCount Minimum number of nodes per zone in the node pool. Must be >=0 and <= max_node_count. Cannot be used with total limits.
* @property totalMaxNodeCount Maximum number of all nodes in the node pool. Must be >= total_min_node_count. Cannot be used with per zone limits.
* @property totalMinNodeCount Minimum number of all nodes in the node pool. Must be >=0 and <= total_max_node_count. Cannot be used with per zone limits.
*/
public data class ClusterNodePoolAutoscaling(
public val locationPolicy: String? = null,
public val maxNodeCount: Int? = null,
public val minNodeCount: Int? = null,
public val totalMaxNodeCount: Int? = null,
public val totalMinNodeCount: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.container.outputs.ClusterNodePoolAutoscaling): ClusterNodePoolAutoscaling = ClusterNodePoolAutoscaling(
locationPolicy = javaType.locationPolicy().map({ args0 -> args0 }).orElse(null),
maxNodeCount = javaType.maxNodeCount().map({ args0 -> args0 }).orElse(null),
minNodeCount = javaType.minNodeCount().map({ args0 -> args0 }).orElse(null),
totalMaxNodeCount = javaType.totalMaxNodeCount().map({ args0 -> args0 }).orElse(null),
totalMinNodeCount = javaType.totalMinNodeCount().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy