com.pulumi.gcp.compute.kotlin.inputs.RegionAutoscalerAutoscalingPolicyScalingScheduleArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionAutoscalerAutoscalingPolicyScalingScheduleArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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 RegionAutoscalerAutoscalingPolicyScalingScheduleArgs(
public val description: Output? = null,
public val disabled: Output? = null,
public val durationSec: Output,
public val minRequiredReplicas: Output,
public val name: Output,
public val schedule: Output,
public val timeZone: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionAutoscalerAutoscalingPolicyScalingScheduleArgs =
com.pulumi.gcp.compute.inputs.RegionAutoscalerAutoscalingPolicyScalingScheduleArgs.builder()
.description(description?.applyValue({ args0 -> args0 }))
.disabled(disabled?.applyValue({ args0 -> args0 }))
.durationSec(durationSec.applyValue({ args0 -> args0 }))
.minRequiredReplicas(minRequiredReplicas.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 }))
.schedule(schedule.applyValue({ args0 -> args0 }))
.timeZone(timeZone?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionAutoscalerAutoscalingPolicyScalingScheduleArgs].
*/
@PulumiTagMarker
public class RegionAutoscalerAutoscalingPolicyScalingScheduleArgsBuilder internal constructor() {
private var description: Output? = null
private var disabled: Output? = null
private var durationSec: Output? = null
private var minRequiredReplicas: Output? = null
private var name: Output? = null
private var schedule: Output? = null
private var timeZone: Output? = null
/**
* @param value An optional description of this resource.
*/
@JvmName("ycamhwdgwmhwdcwp")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value A boolean value that specifies if a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect.
*/
@JvmName("yklrjjesifkcdcka")
public suspend fun disabled(`value`: Output) {
this.disabled = value
}
/**
* @param value The duration of time intervals (in seconds) for which this scaling schedule will be running. The minimum allowed value is 300.
*/
@JvmName("ouabqxywllmodpnb")
public suspend fun durationSec(`value`: Output) {
this.durationSec = value
}
/**
* @param value Minimum number of VM instances that autoscaler will recommend in time intervals starting according to schedule.
*/
@JvmName("jukodbgiapprjsng")
public suspend fun minRequiredReplicas(`value`: Output) {
this.minRequiredReplicas = value
}
/**
* @param value The identifier for this object. Format specified above.
*/
@JvmName("pvvcdgmxnbkvvowc")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value 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).
*/
@JvmName("kjgmqrmjaywgonkl")
public suspend fun schedule(`value`: Output) {
this.schedule = value
}
/**
* @param value 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.
*/
@JvmName("kjpdxfeomafdssmy")
public suspend fun timeZone(`value`: Output) {
this.timeZone = value
}
/**
* @param value An optional description of this resource.
*/
@JvmName("fyxiuidihdhsovil")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value A boolean value that specifies if a scaling schedule can influence autoscaler recommendations. If set to true, then a scaling schedule has no effect.
*/
@JvmName("iikgpfytnkppqvuf")
public suspend fun disabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disabled = mapped
}
/**
* @param value The duration of time intervals (in seconds) for which this scaling schedule will be running. The minimum allowed value is 300.
*/
@JvmName("mmhqvvjvshdiwxit")
public suspend fun durationSec(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.durationSec = mapped
}
/**
* @param value Minimum number of VM instances that autoscaler will recommend in time intervals starting according to schedule.
*/
@JvmName("irrmniaollwatnoa")
public suspend fun minRequiredReplicas(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.minRequiredReplicas = mapped
}
/**
* @param value The identifier for this object. Format specified above.
*/
@JvmName("joixiegcythbwejo")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value 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).
*/
@JvmName("khcphnthfykhwlvr")
public suspend fun schedule(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.schedule = mapped
}
/**
* @param value 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.
*/
@JvmName("kecjxpdddjqpseku")
public suspend fun timeZone(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeZone = mapped
}
internal fun build(): RegionAutoscalerAutoscalingPolicyScalingScheduleArgs =
RegionAutoscalerAutoscalingPolicyScalingScheduleArgs(
description = description,
disabled = disabled,
durationSec = durationSec ?: throw PulumiNullFieldException("durationSec"),
minRequiredReplicas = minRequiredReplicas ?: throw PulumiNullFieldException("minRequiredReplicas"),
name = name ?: throw PulumiNullFieldException("name"),
schedule = schedule ?: throw PulumiNullFieldException("schedule"),
timeZone = timeZone,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy