
com.pulumi.awsnative.codedeploy.kotlin.inputs.DeploymentConfigTimeBasedCanaryArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.codedeploy.kotlin.inputs
import com.pulumi.awsnative.codedeploy.inputs.DeploymentConfigTimeBasedCanaryArgs.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 canaryInterval The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment.
* @property canaryPercentage The percentage of traffic to shift in the first increment of a `TimeBasedCanary` deployment.
*/
public data class DeploymentConfigTimeBasedCanaryArgs(
public val canaryInterval: Output,
public val canaryPercentage: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.codedeploy.inputs.DeploymentConfigTimeBasedCanaryArgs = com.pulumi.awsnative.codedeploy.inputs.DeploymentConfigTimeBasedCanaryArgs.builder()
.canaryInterval(canaryInterval.applyValue({ args0 -> args0 }))
.canaryPercentage(canaryPercentage.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DeploymentConfigTimeBasedCanaryArgs].
*/
@PulumiTagMarker
public class DeploymentConfigTimeBasedCanaryArgsBuilder internal constructor() {
private var canaryInterval: Output? = null
private var canaryPercentage: Output? = null
/**
* @param value The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment.
*/
@JvmName("ycrklpynuwagimcs")
public suspend fun canaryInterval(`value`: Output) {
this.canaryInterval = value
}
/**
* @param value The percentage of traffic to shift in the first increment of a `TimeBasedCanary` deployment.
*/
@JvmName("nsaxkafvxubaahck")
public suspend fun canaryPercentage(`value`: Output) {
this.canaryPercentage = value
}
/**
* @param value The number of minutes between the first and second traffic shifts of a `TimeBasedCanary` deployment.
*/
@JvmName("ccwmgpwslckbhycd")
public suspend fun canaryInterval(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.canaryInterval = mapped
}
/**
* @param value The percentage of traffic to shift in the first increment of a `TimeBasedCanary` deployment.
*/
@JvmName("utspqenjcdwmlycn")
public suspend fun canaryPercentage(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.canaryPercentage = mapped
}
internal fun build(): DeploymentConfigTimeBasedCanaryArgs = DeploymentConfigTimeBasedCanaryArgs(
canaryInterval = canaryInterval ?: throw PulumiNullFieldException("canaryInterval"),
canaryPercentage = canaryPercentage ?: throw PulumiNullFieldException("canaryPercentage"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy