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

com.pulumi.awsnative.lambda.kotlin.inputs.AliasVersionWeightArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lambda.kotlin.inputs

import com.pulumi.awsnative.lambda.inputs.AliasVersionWeightArgs.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.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The traffic-shifting configuration of a Lambda function alias.
 * @property functionVersion The qualifier of the second version.
 * @property functionWeight The percentage of traffic that the alias routes to the second version.
 */
public data class AliasVersionWeightArgs(
    public val functionVersion: Output,
    public val functionWeight: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lambda.inputs.AliasVersionWeightArgs =
        com.pulumi.awsnative.lambda.inputs.AliasVersionWeightArgs.builder()
            .functionVersion(functionVersion.applyValue({ args0 -> args0 }))
            .functionWeight(functionWeight.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AliasVersionWeightArgs].
 */
@PulumiTagMarker
public class AliasVersionWeightArgsBuilder internal constructor() {
    private var functionVersion: Output? = null

    private var functionWeight: Output? = null

    /**
     * @param value The qualifier of the second version.
     */
    @JvmName("ljqrghqdluehwurn")
    public suspend fun functionVersion(`value`: Output) {
        this.functionVersion = value
    }

    /**
     * @param value The percentage of traffic that the alias routes to the second version.
     */
    @JvmName("etluelkjnqpkcugh")
    public suspend fun functionWeight(`value`: Output) {
        this.functionWeight = value
    }

    /**
     * @param value The qualifier of the second version.
     */
    @JvmName("aoijnahnekboucnd")
    public suspend fun functionVersion(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.functionVersion = mapped
    }

    /**
     * @param value The percentage of traffic that the alias routes to the second version.
     */
    @JvmName("arwbfpaftdutdfis")
    public suspend fun functionWeight(`value`: Double) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.functionWeight = mapped
    }

    internal fun build(): AliasVersionWeightArgs = AliasVersionWeightArgs(
        functionVersion = functionVersion ?: throw PulumiNullFieldException("functionVersion"),
        functionWeight = functionWeight ?: throw PulumiNullFieldException("functionWeight"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy