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

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

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

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

import com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyFrameOptionsArgs.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 frameOption The value of the `X-Frame-Options` HTTP response header. Valid values are `DENY` and `SAMEORIGIN` .
 * For more information about these values, see [X-Frame-Options](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) in the MDN Web Docs.
 * @property override A Boolean that determines whether CloudFront overrides the `X-Frame-Options` HTTP response header received from the origin with the one specified in this response headers policy.
 */
public data class ResponseHeadersPolicyFrameOptionsArgs(
    public val frameOption: Output,
    public val `override`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyFrameOptionsArgs =
        com.pulumi.awsnative.cloudfront.inputs.ResponseHeadersPolicyFrameOptionsArgs.builder()
            .frameOption(frameOption.applyValue({ args0 -> args0 }))
            .`override`(`override`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResponseHeadersPolicyFrameOptionsArgs].
 */
@PulumiTagMarker
public class ResponseHeadersPolicyFrameOptionsArgsBuilder internal constructor() {
    private var frameOption: Output? = null

    private var `override`: Output? = null

    /**
     * @param value The value of the `X-Frame-Options` HTTP response header. Valid values are `DENY` and `SAMEORIGIN` .
     * For more information about these values, see [X-Frame-Options](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) in the MDN Web Docs.
     */
    @JvmName("yfepdysxiowcjfpd")
    public suspend fun frameOption(`value`: Output) {
        this.frameOption = value
    }

    /**
     * @param value A Boolean that determines whether CloudFront overrides the `X-Frame-Options` HTTP response header received from the origin with the one specified in this response headers policy.
     */
    @JvmName("nyswiuohugevjvdr")
    public suspend fun `override`(`value`: Output) {
        this.`override` = value
    }

    /**
     * @param value The value of the `X-Frame-Options` HTTP response header. Valid values are `DENY` and `SAMEORIGIN` .
     * For more information about these values, see [X-Frame-Options](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options) in the MDN Web Docs.
     */
    @JvmName("yurctmdceckvcdvd")
    public suspend fun frameOption(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frameOption = mapped
    }

    /**
     * @param value A Boolean that determines whether CloudFront overrides the `X-Frame-Options` HTTP response header received from the origin with the one specified in this response headers policy.
     */
    @JvmName("krhtpuyremeuvcqi")
    public suspend fun `override`(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`override` = mapped
    }

    internal fun build(): ResponseHeadersPolicyFrameOptionsArgs =
        ResponseHeadersPolicyFrameOptionsArgs(
            frameOption = frameOption ?: throw PulumiNullFieldException("frameOption"),
            `override` = `override` ?: throw PulumiNullFieldException("override"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy