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

com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.HPAScalingPolicyPatch.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.kubernetes.autoscaling.v2.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.v2.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