com.pulumi.aws.cloudfront.kotlin.inputs.ContinuousDeploymentPolicyTrafficConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.cloudfront.kotlin.inputs
import com.pulumi.aws.cloudfront.inputs.ContinuousDeploymentPolicyTrafficConfigArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property singleHeaderConfig Determines which HTTP requests are sent to the staging distribution. See `single_header_config`.
* @property singleWeightConfig Contains the percentage of traffic to send to the staging distribution. See `single_weight_config`.
* @property type Type of traffic configuration. Valid values are `SingleWeight` and `SingleHeader`.
*/
public data class ContinuousDeploymentPolicyTrafficConfigArgs(
public val singleHeaderConfig: Output? = null,
public val singleWeightConfig: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.cloudfront.inputs.ContinuousDeploymentPolicyTrafficConfigArgs =
com.pulumi.aws.cloudfront.inputs.ContinuousDeploymentPolicyTrafficConfigArgs.builder()
.singleHeaderConfig(
singleHeaderConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.singleWeightConfig(
singleWeightConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ContinuousDeploymentPolicyTrafficConfigArgs].
*/
@PulumiTagMarker
public class ContinuousDeploymentPolicyTrafficConfigArgsBuilder internal constructor() {
private var singleHeaderConfig:
Output? = null
private var singleWeightConfig:
Output? = null
private var type: Output? = null
/**
* @param value Determines which HTTP requests are sent to the staging distribution. See `single_header_config`.
*/
@JvmName("bqlwhmjcdvbpphqb")
public suspend fun singleHeaderConfig(`value`: Output) {
this.singleHeaderConfig = value
}
/**
* @param value Contains the percentage of traffic to send to the staging distribution. See `single_weight_config`.
*/
@JvmName("qghdlvtagjxtigke")
public suspend fun singleWeightConfig(`value`: Output) {
this.singleWeightConfig = value
}
/**
* @param value Type of traffic configuration. Valid values are `SingleWeight` and `SingleHeader`.
*/
@JvmName("xktcuyulihoqsswb")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Determines which HTTP requests are sent to the staging distribution. See `single_header_config`.
*/
@JvmName("jtislxutttkoonge")
public suspend fun singleHeaderConfig(`value`: ContinuousDeploymentPolicyTrafficConfigSingleHeaderConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.singleHeaderConfig = mapped
}
/**
* @param argument Determines which HTTP requests are sent to the staging distribution. See `single_header_config`.
*/
@JvmName("mtiatftrxclcyjin")
public suspend fun singleHeaderConfig(argument: suspend ContinuousDeploymentPolicyTrafficConfigSingleHeaderConfigArgsBuilder.() -> Unit) {
val toBeMapped =
ContinuousDeploymentPolicyTrafficConfigSingleHeaderConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.singleHeaderConfig = mapped
}
/**
* @param value Contains the percentage of traffic to send to the staging distribution. See `single_weight_config`.
*/
@JvmName("duvubvjwmceaeinx")
public suspend fun singleWeightConfig(`value`: ContinuousDeploymentPolicyTrafficConfigSingleWeightConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.singleWeightConfig = mapped
}
/**
* @param argument Contains the percentage of traffic to send to the staging distribution. See `single_weight_config`.
*/
@JvmName("tecdepeqpvkdwpab")
public suspend fun singleWeightConfig(argument: suspend ContinuousDeploymentPolicyTrafficConfigSingleWeightConfigArgsBuilder.() -> Unit) {
val toBeMapped =
ContinuousDeploymentPolicyTrafficConfigSingleWeightConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.singleWeightConfig = mapped
}
/**
* @param value Type of traffic configuration. Valid values are `SingleWeight` and `SingleHeader`.
*/
@JvmName("plmqavbpucghohmg")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): ContinuousDeploymentPolicyTrafficConfigArgs =
ContinuousDeploymentPolicyTrafficConfigArgs(
singleHeaderConfig = singleHeaderConfig,
singleWeightConfig = singleWeightConfig,
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy