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

com.pulumi.gcp.recaptcha.kotlin.inputs.EnterpriseKeyWebSettingsArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.recaptcha.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyWebSettingsArgs.builder
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowAllDomains If set to true, it means allowed_domains will not be enforced.
 * @property allowAmpTraffic If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
 * @property allowedDomains Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com'
 * @property challengeSecurityPreference Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE. Possible values: CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED, USABILITY, BALANCE, SECURITY
 * @property integrationType Required. Describes how this key is integrated with the website. Possible values: SCORE, CHECKBOX, INVISIBLE
 */
public data class EnterpriseKeyWebSettingsArgs(
    public val allowAllDomains: Output? = null,
    public val allowAmpTraffic: Output? = null,
    public val allowedDomains: Output>? = null,
    public val challengeSecurityPreference: Output? = null,
    public val integrationType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyWebSettingsArgs =
        com.pulumi.gcp.recaptcha.inputs.EnterpriseKeyWebSettingsArgs.builder()
            .allowAllDomains(allowAllDomains?.applyValue({ args0 -> args0 }))
            .allowAmpTraffic(allowAmpTraffic?.applyValue({ args0 -> args0 }))
            .allowedDomains(allowedDomains?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .challengeSecurityPreference(challengeSecurityPreference?.applyValue({ args0 -> args0 }))
            .integrationType(integrationType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnterpriseKeyWebSettingsArgs].
 */
@PulumiTagMarker
public class EnterpriseKeyWebSettingsArgsBuilder internal constructor() {
    private var allowAllDomains: Output? = null

    private var allowAmpTraffic: Output? = null

    private var allowedDomains: Output>? = null

    private var challengeSecurityPreference: Output? = null

    private var integrationType: Output? = null

    /**
     * @param value If set to true, it means allowed_domains will not be enforced.
     */
    @JvmName("vctqtcyrjukdgqgh")
    public suspend fun allowAllDomains(`value`: Output) {
        this.allowAllDomains = value
    }

    /**
     * @param value If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
     */
    @JvmName("trgyrlregjmmmqpo")
    public suspend fun allowAmpTraffic(`value`: Output) {
        this.allowAmpTraffic = value
    }

    /**
     * @param value Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com'
     */
    @JvmName("ubjtitemeotysrfk")
    public suspend fun allowedDomains(`value`: Output>) {
        this.allowedDomains = value
    }

    @JvmName("ogiwyjueosnnogvf")
    public suspend fun allowedDomains(vararg values: Output) {
        this.allowedDomains = Output.all(values.asList())
    }

    /**
     * @param values Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com'
     */
    @JvmName("lsfnegmqdmxnmrhb")
    public suspend fun allowedDomains(values: List>) {
        this.allowedDomains = Output.all(values)
    }

    /**
     * @param value Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE. Possible values: CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED, USABILITY, BALANCE, SECURITY
     */
    @JvmName("vdxujxtsrowwkgpq")
    public suspend fun challengeSecurityPreference(`value`: Output) {
        this.challengeSecurityPreference = value
    }

    /**
     * @param value Required. Describes how this key is integrated with the website. Possible values: SCORE, CHECKBOX, INVISIBLE
     */
    @JvmName("kqtkwahcdlvfffhw")
    public suspend fun integrationType(`value`: Output) {
        this.integrationType = value
    }

    /**
     * @param value If set to true, it means allowed_domains will not be enforced.
     */
    @JvmName("lpuasxcjduidhjox")
    public suspend fun allowAllDomains(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowAllDomains = mapped
    }

    /**
     * @param value If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
     */
    @JvmName("btuyocnubibigewk")
    public suspend fun allowAmpTraffic(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowAmpTraffic = mapped
    }

    /**
     * @param value Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com'
     */
    @JvmName("npsqnxgmfqvjymms")
    public suspend fun allowedDomains(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedDomains = mapped
    }

    /**
     * @param values Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com'
     */
    @JvmName("xnexgmkyygsnyjwo")
    public suspend fun allowedDomains(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedDomains = mapped
    }

    /**
     * @param value Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE. Possible values: CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED, USABILITY, BALANCE, SECURITY
     */
    @JvmName("ctpsgeuujxwbtsya")
    public suspend fun challengeSecurityPreference(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.challengeSecurityPreference = mapped
    }

    /**
     * @param value Required. Describes how this key is integrated with the website. Possible values: SCORE, CHECKBOX, INVISIBLE
     */
    @JvmName("oeixcflbhveaimqw")
    public suspend fun integrationType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.integrationType = mapped
    }

    internal fun build(): EnterpriseKeyWebSettingsArgs = EnterpriseKeyWebSettingsArgs(
        allowAllDomains = allowAllDomains,
        allowAmpTraffic = allowAmpTraffic,
        allowedDomains = allowedDomains,
        challengeSecurityPreference = challengeSecurityPreference,
        integrationType = integrationType ?: throw PulumiNullFieldException("integrationType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy