
com.pulumi.awsnative.cloudfront.kotlin.inputs.ResponseHeadersPolicyCustomHeaderArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.inputs
import com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyCustomHeaderArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property header The HTTP response header name.
* @property override A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
* @property value The value for the HTTP response header.
*/
public data class ResponseHeadersPolicyCustomHeaderArgs(
public val `header`: Output,
public val `override`: Output,
public val `value`: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyCustomHeaderArgs =
com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyCustomHeaderArgs.builder()
.`header`(`header`.applyValue({ args0 -> args0 }))
.`override`(`override`.applyValue({ args0 -> args0 }))
.`value`(`value`.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResponseHeadersPolicyCustomHeaderArgs].
*/
@PulumiTagMarker
public class ResponseHeadersPolicyCustomHeaderArgsBuilder internal constructor() {
private var `header`: Output? = null
private var `override`: Output? = null
private var `value`: Output? = null
/**
* @param value The HTTP response header name.
*/
@JvmName("vgyoutuculasvyla")
public suspend fun `header`(`value`: Output) {
this.`header` = value
}
/**
* @param value A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
*/
@JvmName("ogmodguajlsfbahk")
public suspend fun `override`(`value`: Output) {
this.`override` = value
}
/**
* @param value The value for the HTTP response header.
*/
@JvmName("higfebafnmiusfli")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The HTTP response header name.
*/
@JvmName("pqqditgryxgshdge")
public suspend fun `header`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`header` = mapped
}
/**
* @param value A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
*/
@JvmName("ccjqsyeqtmbfniea")
public suspend fun `override`(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`override` = mapped
}
/**
* @param value The value for the HTTP response header.
*/
@JvmName("hcqirisfqlgeqkoy")
public suspend fun `value`(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): ResponseHeadersPolicyCustomHeaderArgs =
ResponseHeadersPolicyCustomHeaderArgs(
`header` = `header` ?: throw PulumiNullFieldException("header"),
`override` = `override` ?: throw PulumiNullFieldException("override"),
`value` = `value` ?: throw PulumiNullFieldException("value"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy