
com.pulumi.gcp.vmwareengine.kotlin.outputs.ClusterAutoscalingSettingsAutoscalingPolicy.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.vmwareengine.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property autoscalePolicyId The identifier for this object. Format specified above.
* @property consumedMemoryThresholds Utilization thresholds pertaining to amount of consumed memory.
* Structure is documented below.
* @property cpuThresholds Utilization thresholds pertaining to CPU utilization.
* Structure is documented below.
* @property nodeTypeId The canonical identifier of the node type to add or remove.
* @property scaleOutSize Number of nodes to add to a cluster during a scale-out operation.
* Must be divisible by 2 for stretched clusters.
* @property storageThresholds Utilization thresholds pertaining to amount of consumed storage.
* Structure is documented below.
*/
public data class ClusterAutoscalingSettingsAutoscalingPolicy(
public val autoscalePolicyId: String,
public val consumedMemoryThresholds: ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholds? = null,
public val cpuThresholds: ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholds? = null,
public val nodeTypeId: String,
public val scaleOutSize: Int,
public val storageThresholds: ClusterAutoscalingSettingsAutoscalingPolicyStorageThresholds? =
null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.vmwareengine.outputs.ClusterAutoscalingSettingsAutoscalingPolicy): ClusterAutoscalingSettingsAutoscalingPolicy = ClusterAutoscalingSettingsAutoscalingPolicy(
autoscalePolicyId = javaType.autoscalePolicyId(),
consumedMemoryThresholds = javaType.consumedMemoryThresholds().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.vmwareengine.kotlin.outputs.ClusterAutoscalingSettingsAutoscalingPolicyConsumedMemoryThresholds.Companion.toKotlin(args0)
})
}).orElse(null),
cpuThresholds = javaType.cpuThresholds().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.vmwareengine.kotlin.outputs.ClusterAutoscalingSettingsAutoscalingPolicyCpuThresholds.Companion.toKotlin(args0)
})
}).orElse(null),
nodeTypeId = javaType.nodeTypeId(),
scaleOutSize = javaType.scaleOutSize(),
storageThresholds = javaType.storageThresholds().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.vmwareengine.kotlin.outputs.ClusterAutoscalingSettingsAutoscalingPolicyStorageThresholds.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy