All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.codedeploy.kotlin.inputs.DeploymentConfigTrafficRoutingConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.codedeploy.kotlin.inputs

import com.pulumi.aws.codedeploy.inputs.DeploymentConfigTrafficRoutingConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property timeBasedCanary The time based canary configuration information. If `type` is `TimeBasedLinear`, use `time_based_linear` instead.
 * @property timeBasedLinear The time based linear configuration information. If `type` is `TimeBasedCanary`, use `time_based_canary` instead.
 * @property type Type of traffic routing config. One of `TimeBasedCanary`, `TimeBasedLinear`, `AllAtOnce`.
 */
public data class DeploymentConfigTrafficRoutingConfigArgs(
    public val timeBasedCanary: Output? =
        null,
    public val timeBasedLinear: Output? =
        null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.codedeploy.inputs.DeploymentConfigTrafficRoutingConfigArgs =
        com.pulumi.aws.codedeploy.inputs.DeploymentConfigTrafficRoutingConfigArgs.builder()
            .timeBasedCanary(timeBasedCanary?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .timeBasedLinear(timeBasedLinear?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DeploymentConfigTrafficRoutingConfigArgs].
 */
@PulumiTagMarker
public class DeploymentConfigTrafficRoutingConfigArgsBuilder internal constructor() {
    private var timeBasedCanary: Output? =
        null

    private var timeBasedLinear: Output? =
        null

    private var type: Output? = null

    /**
     * @param value The time based canary configuration information. If `type` is `TimeBasedLinear`, use `time_based_linear` instead.
     */
    @JvmName("ecbtlgkouemltejn")
    public suspend fun timeBasedCanary(`value`: Output) {
        this.timeBasedCanary = value
    }

    /**
     * @param value The time based linear configuration information. If `type` is `TimeBasedCanary`, use `time_based_canary` instead.
     */
    @JvmName("pnberdjyaklfyvcp")
    public suspend fun timeBasedLinear(`value`: Output) {
        this.timeBasedLinear = value
    }

    /**
     * @param value Type of traffic routing config. One of `TimeBasedCanary`, `TimeBasedLinear`, `AllAtOnce`.
     */
    @JvmName("swfyaexlkvioijtp")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The time based canary configuration information. If `type` is `TimeBasedLinear`, use `time_based_linear` instead.
     */
    @JvmName("luyvwehvhiicxsam")
    public suspend fun timeBasedCanary(`value`: DeploymentConfigTrafficRoutingConfigTimeBasedCanaryArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeBasedCanary = mapped
    }

    /**
     * @param argument The time based canary configuration information. If `type` is `TimeBasedLinear`, use `time_based_linear` instead.
     */
    @JvmName("wriyjsvqecvsviiw")
    public suspend fun timeBasedCanary(argument: suspend DeploymentConfigTrafficRoutingConfigTimeBasedCanaryArgsBuilder.() -> Unit) {
        val toBeMapped = DeploymentConfigTrafficRoutingConfigTimeBasedCanaryArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.timeBasedCanary = mapped
    }

    /**
     * @param value The time based linear configuration information. If `type` is `TimeBasedCanary`, use `time_based_canary` instead.
     */
    @JvmName("tpunyatrmdwjcayj")
    public suspend fun timeBasedLinear(`value`: DeploymentConfigTrafficRoutingConfigTimeBasedLinearArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.timeBasedLinear = mapped
    }

    /**
     * @param argument The time based linear configuration information. If `type` is `TimeBasedCanary`, use `time_based_canary` instead.
     */
    @JvmName("cxnnpwqqiekrjhmu")
    public suspend fun timeBasedLinear(argument: suspend DeploymentConfigTrafficRoutingConfigTimeBasedLinearArgsBuilder.() -> Unit) {
        val toBeMapped = DeploymentConfigTrafficRoutingConfigTimeBasedLinearArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.timeBasedLinear = mapped
    }

    /**
     * @param value Type of traffic routing config. One of `TimeBasedCanary`, `TimeBasedLinear`, `AllAtOnce`.
     */
    @JvmName("jwriuxxeynqhitgl")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DeploymentConfigTrafficRoutingConfigArgs =
        DeploymentConfigTrafficRoutingConfigArgs(
            timeBasedCanary = timeBasedCanary,
            timeBasedLinear = timeBasedLinear,
            type = type,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy