com.pulumi.gcp.compute.kotlin.outputs.RegionAutoscalerAutoscalingPolicyScalingSchedule.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.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property description An optional description of this resource.
* @property disabled A boolean value that specifies if a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect.
* @property durationSec The duration of time intervals (in seconds) for which this scaling schedule will be running. The minimum allowed value is 300.
* @property minRequiredReplicas Minimum number of VM instances that autoscaler will recommend in time intervals starting according to schedule.
* @property name The identifier for this object. Format specified above.
* @property schedule The start timestamps of time intervals when this scaling schedule should provide a scaling signal. This field uses the extended cron format (with an optional year field).
* @property timeZone The time zone to be used when interpreting the schedule. The value of this field must be a time zone name from the tz database: http://en.wikipedia.org/wiki/Tz_database.
*/
public data class RegionAutoscalerAutoscalingPolicyScalingSchedule(
public val description: String? = null,
public val disabled: Boolean? = null,
public val durationSec: Int,
public val minRequiredReplicas: Int,
public val name: String,
public val schedule: String,
public val timeZone: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.RegionAutoscalerAutoscalingPolicyScalingSchedule): RegionAutoscalerAutoscalingPolicyScalingSchedule =
RegionAutoscalerAutoscalingPolicyScalingSchedule(
description = javaType.description().map({ args0 -> args0 }).orElse(null),
disabled = javaType.disabled().map({ args0 -> args0 }).orElse(null),
durationSec = javaType.durationSec(),
minRequiredReplicas = javaType.minRequiredReplicas(),
name = javaType.name(),
schedule = javaType.schedule(),
timeZone = javaType.timeZone().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy