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

com.pulumi.gcp.vmwareengine.kotlin.outputs.GetPrivateCloudManagementClusterAutoscalingSettingAutoscalingPolicy.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: 8.13.1.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.vmwareengine.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property autoscalePolicyId
 * @property consumedMemoryThresholds Utilization thresholds pertaining to amount of consumed memory.
 * @property cpuThresholds Utilization thresholds pertaining to CPU utilization.
 * @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.
 */
public data class GetPrivateCloudManagementClusterAutoscalingSettingAutoscalingPolicy(
    public val autoscalePolicyId: String,
    public val consumedMemoryThresholds: List,
    public val cpuThresholds: List,
    public val nodeTypeId: String,
    public val scaleOutSize: Int,
    public val storageThresholds: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.vmwareengine.outputs.GetPrivateCloudManagementClusterAutoscalingSettingAutoscalingPolicy): GetPrivateCloudManagementClusterAutoscalingSettingAutoscalingPolicy =
            GetPrivateCloudManagementClusterAutoscalingSettingAutoscalingPolicy(
                autoscalePolicyId = javaType.autoscalePolicyId(),
                consumedMemoryThresholds = javaType.consumedMemoryThresholds().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.vmwareengine.kotlin.outputs.GetPrivateCloudManagementClusterAutoscalingSettingAutoscalingPolicyConsumedMemoryThreshold.Companion.toKotlin(args0)
                    })
                }),
                cpuThresholds = javaType.cpuThresholds().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.vmwareengine.kotlin.outputs.GetPrivateCloudManagementClusterAutoscalingSettingAutoscalingPolicyCpuThreshold.Companion.toKotlin(args0)
                    })
                }),
                nodeTypeId = javaType.nodeTypeId(),
                scaleOutSize = javaType.scaleOutSize(),
                storageThresholds = javaType.storageThresholds().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.vmwareengine.kotlin.outputs.GetPrivateCloudManagementClusterAutoscalingSettingAutoscalingPolicyStorageThreshold.Companion.toKotlin(args0)
                    })
                }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy