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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

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

/**
 * This configuration determines which HTTP requests are sent to the staging distribution. If the HTTP request contains a header and value that matches what you specify here, the request is sent to the staging distribution. Otherwise the request is sent to the primary distribution.
 * @property header
 * @property value
 */
public data class ContinuousDeploymentPolicyConfigSingleHeaderPolicyConfigPropertiesArgs(
    public val `header`: Output,
    public val `value`: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.ContinuousDeploymentPolicyConfigSingleHeaderPolicyConfigPropertiesArgs =
        com.pulumi.awsnative.cloudfront.inputs.ContinuousDeploymentPolicyConfigSingleHeaderPolicyConfigPropertiesArgs.builder()
            .`header`(`header`.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ContinuousDeploymentPolicyConfigSingleHeaderPolicyConfigPropertiesArgs].
 */
@PulumiTagMarker
public class ContinuousDeploymentPolicyConfigSingleHeaderPolicyConfigPropertiesArgsBuilder internal constructor() {
    private var `header`: Output? = null

    private var `value`: Output? = null

    /**
     * @param value
     */
    @JvmName("wifedsfmtwicrxtp")
    public suspend fun `header`(`value`: Output) {
        this.`header` = value
    }

    /**
     * @param value
     */
    @JvmName("yihcexpknotknkso")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value
     */
    @JvmName("rtbyxdfipyxdvupk")
    public suspend fun `header`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`header` = mapped
    }

    /**
     * @param value
     */
    @JvmName("aqaydcxptppddttu")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): ContinuousDeploymentPolicyConfigSingleHeaderPolicyConfigPropertiesArgs =
        ContinuousDeploymentPolicyConfigSingleHeaderPolicyConfigPropertiesArgs(
            `header` = `header` ?: throw PulumiNullFieldException("header"),
            `value` = `value` ?: throw PulumiNullFieldException("value"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy