
com.pulumi.awsnative.codedeploy.kotlin.inputs.DeploymentConfigTimeBasedLinearArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.codedeploy.kotlin.inputs
import com.pulumi.awsnative.codedeploy.inputs.DeploymentConfigTimeBasedLinearArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property linearInterval The number of minutes between each incremental traffic shift of a `TimeBasedLinear` deployment.
* @property linearPercentage The percentage of traffic that is shifted at the start of each increment of a `TimeBasedLinear` deployment.
*/
public data class DeploymentConfigTimeBasedLinearArgs(
public val linearInterval: Output,
public val linearPercentage: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.codedeploy.inputs.DeploymentConfigTimeBasedLinearArgs = com.pulumi.awsnative.codedeploy.inputs.DeploymentConfigTimeBasedLinearArgs.builder()
.linearInterval(linearInterval.applyValue({ args0 -> args0 }))
.linearPercentage(linearPercentage.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeploymentConfigTimeBasedLinearArgs].
*/
@PulumiTagMarker
public class DeploymentConfigTimeBasedLinearArgsBuilder internal constructor() {
private var linearInterval: Output? = null
private var linearPercentage: Output? = null
/**
* @param value The number of minutes between each incremental traffic shift of a `TimeBasedLinear` deployment.
*/
@JvmName("genpyrppibdoehrs")
public suspend fun linearInterval(`value`: Output) {
this.linearInterval = value
}
/**
* @param value The percentage of traffic that is shifted at the start of each increment of a `TimeBasedLinear` deployment.
*/
@JvmName("yeovwtyecwjsfuuq")
public suspend fun linearPercentage(`value`: Output) {
this.linearPercentage = value
}
/**
* @param value The number of minutes between each incremental traffic shift of a `TimeBasedLinear` deployment.
*/
@JvmName("rcjcckiipkowfbpa")
public suspend fun linearInterval(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.linearInterval = mapped
}
/**
* @param value The percentage of traffic that is shifted at the start of each increment of a `TimeBasedLinear` deployment.
*/
@JvmName("krddqbdcktwnufqt")
public suspend fun linearPercentage(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.linearPercentage = mapped
}
internal fun build(): DeploymentConfigTimeBasedLinearArgs = DeploymentConfigTimeBasedLinearArgs(
linearInterval = linearInterval ?: throw PulumiNullFieldException("linearInterval"),
linearPercentage = linearPercentage ?: throw PulumiNullFieldException("linearPercentage"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy