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

com.pulumi.cloudflare.kotlin.inputs.UserAgentBlockingRuleConfigurationArgs.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: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.UserAgentBlockingRuleConfigurationArgs.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

/**
 *
 * @property target The configuration target for this rule. You must set the target to ua for User Agent Blocking rules.
 * @property value The exact user agent string to match. This value will be compared to the received User-Agent HTTP header value.
 */
public data class UserAgentBlockingRuleConfigurationArgs(
    public val target: Output,
    public val `value`: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.UserAgentBlockingRuleConfigurationArgs =
        com.pulumi.cloudflare.inputs.UserAgentBlockingRuleConfigurationArgs.builder()
            .target(target.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserAgentBlockingRuleConfigurationArgs].
 */
@PulumiTagMarker
public class UserAgentBlockingRuleConfigurationArgsBuilder internal constructor() {
    private var target: Output? = null

    private var `value`: Output? = null

    /**
     * @param value The configuration target for this rule. You must set the target to ua for User Agent Blocking rules.
     */
    @JvmName("fhcvjfldrxfjlpai")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value The exact user agent string to match. This value will be compared to the received User-Agent HTTP header value.
     */
    @JvmName("jgxjrqhmocvufera")
    public suspend fun `value`(`value`: Output) {
        this.`value` = value
    }

    /**
     * @param value The configuration target for this rule. You must set the target to ua for User Agent Blocking rules.
     */
    @JvmName("micyrhtcktplyuan")
    public suspend fun target(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.target = mapped
    }

    /**
     * @param value The exact user agent string to match. This value will be compared to the received User-Agent HTTP header value.
     */
    @JvmName("anwepdbjcmxturgm")
    public suspend fun `value`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): UserAgentBlockingRuleConfigurationArgs =
        UserAgentBlockingRuleConfigurationArgs(
            target = target ?: throw PulumiNullFieldException("target"),
            `value` = `value` ?: throw PulumiNullFieldException("value"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy