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

com.pulumi.awsnative.cloudfront.kotlin.inputs.ContinuousDeploymentPolicySessionStickinessConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.cloudfront.kotlin.inputs

import com.pulumi.awsnative.cloudfront.inputs.ContinuousDeploymentPolicySessionStickinessConfigArgs.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 kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property idleTtl The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
 * @property maximumTtl The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
 */
public data class ContinuousDeploymentPolicySessionStickinessConfigArgs(
    public val idleTtl: Output,
    public val maximumTtl: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.ContinuousDeploymentPolicySessionStickinessConfigArgs =
        com.pulumi.awsnative.cloudfront.inputs.ContinuousDeploymentPolicySessionStickinessConfigArgs.builder()
            .idleTtl(idleTtl.applyValue({ args0 -> args0 }))
            .maximumTtl(maximumTtl.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContinuousDeploymentPolicySessionStickinessConfigArgs].
 */
@PulumiTagMarker
public class ContinuousDeploymentPolicySessionStickinessConfigArgsBuilder internal constructor() {
    private var idleTtl: Output? = null

    private var maximumTtl: Output? = null

    /**
     * @param value The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
     */
    @JvmName("orjrmpcwcsercdsh")
    public suspend fun idleTtl(`value`: Output) {
        this.idleTtl = value
    }

    /**
     * @param value The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
     */
    @JvmName("rsbcneqeffrlwikt")
    public suspend fun maximumTtl(`value`: Output) {
        this.maximumTtl = value
    }

    /**
     * @param value The amount of time after which you want sessions to cease if no requests are received. Allowed values are 300–3600 seconds (5–60 minutes).
     */
    @JvmName("ogpdhbhdqwmocayt")
    public suspend fun idleTtl(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.idleTtl = mapped
    }

    /**
     * @param value The maximum amount of time to consider requests from the viewer as being part of the same session. Allowed values are 300–3600 seconds (5–60 minutes).
     */
    @JvmName("plbpspoihmahnsfc")
    public suspend fun maximumTtl(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maximumTtl = mapped
    }

    internal fun build(): ContinuousDeploymentPolicySessionStickinessConfigArgs =
        ContinuousDeploymentPolicySessionStickinessConfigArgs(
            idleTtl = idleTtl ?: throw PulumiNullFieldException("idleTtl"),
            maximumTtl = maximumTtl ?: throw PulumiNullFieldException("maximumTtl"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy