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

com.pulumi.kubernetes.autoscaling.v2.kotlin.outputs.HPAScalingPolicy.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: 4.18.2.0
Show 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 HPAScalingPolicy(
    public val periodSeconds: Int,
    public val type: String,
    public val `value`: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.kubernetes.autoscaling.v2.outputs.HPAScalingPolicy): HPAScalingPolicy = HPAScalingPolicy(
            periodSeconds = javaType.periodSeconds(),
            type = javaType.type(),
            `value` = javaType.`value`(),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy