
com.pulumi.awsnative.cloudfront.kotlin.inputs.DistributionOriginCustomHeaderArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.cloudfront.kotlin.inputs
import com.pulumi.awsnative.cloudfront.inputs.DistributionOriginCustomHeaderArgs.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
/**
* A complex type that contains ``HeaderName`` and ``HeaderValue`` elements, if any, for this distribution.
* @property headerName The name of a header that you want CloudFront to send to your origin. For more information, see [Adding Custom Headers to Origin Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) in the *Amazon CloudFront Developer Guide*.
* @property headerValue The value for the header that you specified in the ``HeaderName`` field.
*/
public data class DistributionOriginCustomHeaderArgs(
public val headerName: Output,
public val headerValue: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.DistributionOriginCustomHeaderArgs =
com.pulumi.awsnative.cloudfront.inputs.DistributionOriginCustomHeaderArgs.builder()
.headerName(headerName.applyValue({ args0 -> args0 }))
.headerValue(headerValue.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DistributionOriginCustomHeaderArgs].
*/
@PulumiTagMarker
public class DistributionOriginCustomHeaderArgsBuilder internal constructor() {
private var headerName: Output? = null
private var headerValue: Output? = null
/**
* @param value The name of a header that you want CloudFront to send to your origin. For more information, see [Adding Custom Headers to Origin Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) in the *Amazon CloudFront Developer Guide*.
*/
@JvmName("uamggonhdbnpiwbm")
public suspend fun headerName(`value`: Output) {
this.headerName = value
}
/**
* @param value The value for the header that you specified in the ``HeaderName`` field.
*/
@JvmName("bcjriqhmpuynbmek")
public suspend fun headerValue(`value`: Output) {
this.headerValue = value
}
/**
* @param value The name of a header that you want CloudFront to send to your origin. For more information, see [Adding Custom Headers to Origin Requests](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/forward-custom-headers.html) in the *Amazon CloudFront Developer Guide*.
*/
@JvmName("inqeldgbcaicdnss")
public suspend fun headerName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.headerName = mapped
}
/**
* @param value The value for the header that you specified in the ``HeaderName`` field.
*/
@JvmName("dyfrvumcsooicysu")
public suspend fun headerValue(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.headerValue = mapped
}
internal fun build(): DistributionOriginCustomHeaderArgs = DistributionOriginCustomHeaderArgs(
headerName = headerName ?: throw PulumiNullFieldException("headerName"),
headerValue = headerValue ?: throw PulumiNullFieldException("headerValue"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy