com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs.HPAScalingPolicyPatch.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
* HPAScalingPolicy is a single policy which must hold true for a specified past interval.
* @property periodSeconds PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
* @property type Type is used to specify the scaling policy.
* @property value Value contains the amount of change which is permitted by the policy. It must be greater than zero
*/
public data class HPAScalingPolicyPatch(
public val periodSeconds: Int? = null,
public val type: String? = null,
public val `value`: Int? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2beta2.outputs.HPAScalingPolicyPatch): HPAScalingPolicyPatch = HPAScalingPolicyPatch(
periodSeconds = javaType.periodSeconds().map({ args0 -> args0 }).orElse(null),
type = javaType.type().map({ args0 -> args0 }).orElse(null),
`value` = javaType.`value`().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy