
com.pulumi.awsnative.codedeploy.kotlin.outputs.DeploymentConfigTrafficRoutingConfig.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.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property timeBasedCanary A configuration that shifts traffic from one version of a Lambda function or ECS task set to another in two increments. The original and target Lambda function versions or ECS task sets are specified in the deployment's AppSpec file.
* @property timeBasedLinear A configuration that shifts traffic from one version of a Lambda function or Amazon ECS task set to another in equal increments, with an equal number of minutes between each increment. The original and target Lambda function versions or Amazon ECS task sets are specified in the deployment's AppSpec file.
* @property type The type of traffic shifting ( `TimeBasedCanary` or `TimeBasedLinear` ) used by a deployment configuration.
*/
public data class DeploymentConfigTrafficRoutingConfig(
public val timeBasedCanary: DeploymentConfigTimeBasedCanary? = null,
public val timeBasedLinear: DeploymentConfigTimeBasedLinear? = null,
public val type: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.codedeploy.outputs.DeploymentConfigTrafficRoutingConfig): DeploymentConfigTrafficRoutingConfig = DeploymentConfigTrafficRoutingConfig(
timeBasedCanary = javaType.timeBasedCanary().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codedeploy.kotlin.outputs.DeploymentConfigTimeBasedCanary.Companion.toKotlin(args0)
})
}).orElse(null),
timeBasedLinear = javaType.timeBasedLinear().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.codedeploy.kotlin.outputs.DeploymentConfigTimeBasedLinear.Companion.toKotlin(args0)
})
}).orElse(null),
type = javaType.type(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy