
com.pulumi.awsnative.cloudfront.kotlin.outputs.ContinuousDeploymentPolicySingleWeightConfig.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.outputs
import kotlin.Double
import kotlin.Suppress
/**
*
* @property sessionStickinessConfig Session stickiness provides the ability to define multiple requests from a single viewer as a single session. This prevents the potentially inconsistent experience of sending some of a given user's requests to your staging distribution, while others are sent to your primary distribution. Define the session duration using TTL values.
* @property weight The percentage of traffic to send to a staging distribution, expressed as a decimal number between 0 and 0.15. For example, a value of 0.10 means 10% of traffic is sent to the staging distribution.
*/
public data class ContinuousDeploymentPolicySingleWeightConfig(
public val sessionStickinessConfig: ContinuousDeploymentPolicySessionStickinessConfig? = null,
public val weight: Double,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.cloudfront.outputs.ContinuousDeploymentPolicySingleWeightConfig): ContinuousDeploymentPolicySingleWeightConfig = ContinuousDeploymentPolicySingleWeightConfig(
sessionStickinessConfig = javaType.sessionStickinessConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.cloudfront.kotlin.outputs.ContinuousDeploymentPolicySessionStickinessConfig.Companion.toKotlin(args0)
})
}).orElse(null),
weight = javaType.weight(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy