
com.pulumi.awsnative.cloudfront.kotlin.inputs.ContinuousDeploymentPolicyTrafficConfigArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.inputs
import com.pulumi.awsnative.cloudfront.inputs.ContinuousDeploymentPolicyTrafficConfigArgs.builder
import com.pulumi.awsnative.cloudfront.kotlin.enums.ContinuousDeploymentPolicyTrafficConfigType
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.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property singleHeaderConfig Determines which HTTP requests are sent to the staging distribution.
* @property singleWeightConfig Contains the percentage of traffic to send to the staging distribution.
* @property type The type of traffic configuration.
*/
public data class ContinuousDeploymentPolicyTrafficConfigArgs(
public val singleHeaderConfig: Output? = null,
public val singleWeightConfig: Output? = null,
public val type: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.ContinuousDeploymentPolicyTrafficConfigArgs =
com.pulumi.awsnative.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.let({ args0 -> args0.toJava() }) })).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.
*/
@JvmName("cqwxkvbxkxbrsdtr")
public suspend fun singleHeaderConfig(`value`: Output) {
this.singleHeaderConfig = value
}
/**
* @param value Contains the percentage of traffic to send to the staging distribution.
*/
@JvmName("qmomansssrldqlsg")
public suspend fun singleWeightConfig(`value`: Output) {
this.singleWeightConfig = value
}
/**
* @param value The type of traffic configuration.
*/
@JvmName("pfmlvmovmoxmawge")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Determines which HTTP requests are sent to the staging distribution.
*/
@JvmName("dplubelndrwbmgsc")
public suspend fun singleHeaderConfig(`value`: ContinuousDeploymentPolicySingleHeaderConfigArgs?) {
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.
*/
@JvmName("ciaoqoervohkwbkv")
public suspend fun singleHeaderConfig(argument: suspend ContinuousDeploymentPolicySingleHeaderConfigArgsBuilder.() -> Unit) {
val toBeMapped = ContinuousDeploymentPolicySingleHeaderConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.singleHeaderConfig = mapped
}
/**
* @param value Contains the percentage of traffic to send to the staging distribution.
*/
@JvmName("ltsakunshmeamnds")
public suspend fun singleWeightConfig(`value`: ContinuousDeploymentPolicySingleWeightConfigArgs?) {
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.
*/
@JvmName("yiowovegekchrice")
public suspend fun singleWeightConfig(argument: suspend ContinuousDeploymentPolicySingleWeightConfigArgsBuilder.() -> Unit) {
val toBeMapped = ContinuousDeploymentPolicySingleWeightConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.singleWeightConfig = mapped
}
/**
* @param value The type of traffic configuration.
*/
@JvmName("edukcaswfttggdoy")
public suspend fun type(`value`: ContinuousDeploymentPolicyTrafficConfigType) {
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 - 2025 Weber Informatics LLC | Privacy Policy