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

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

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

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

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

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

    private var referrerPolicy: Output? = null

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

    /**
     * @param value The value of the `Referrer-Policy` HTTP response header. Valid values are:
     * - `no-referrer`
     * - `no-referrer-when-downgrade`
     * - `origin`
     * - `origin-when-cross-origin`
     * - `same-origin`
     * - `strict-origin`
     * - `strict-origin-when-cross-origin`
     * - `unsafe-url`
     * For more information about these values, see [Referrer-Policy](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) in the MDN Web Docs.
     */
    @JvmName("qhrofcywgwqdvviv")
    public suspend fun referrerPolicy(`value`: Output) {
        this.referrerPolicy = value
    }

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

    /**
     * @param value The value of the `Referrer-Policy` HTTP response header. Valid values are:
     * - `no-referrer`
     * - `no-referrer-when-downgrade`
     * - `origin`
     * - `origin-when-cross-origin`
     * - `same-origin`
     * - `strict-origin`
     * - `strict-origin-when-cross-origin`
     * - `unsafe-url`
     * For more information about these values, see [Referrer-Policy](https://docs.aws.amazon.com/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy) in the MDN Web Docs.
     */
    @JvmName("qcfmgyixumkhjpwo")
    public suspend fun referrerPolicy(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.referrerPolicy = mapped
    }

    internal fun build(): ResponseHeadersPolicyReferrerPolicyArgs =
        ResponseHeadersPolicyReferrerPolicyArgs(
            `override` = `override` ?: throw PulumiNullFieldException("override"),
            referrerPolicy = referrerPolicy ?: throw PulumiNullFieldException("referrerPolicy"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy