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

com.pulumi.azure.cdn.kotlin.outputs.FrontdoorFirewallPolicyCustomRuleMatchCondition.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.cdn.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property matchValues Up to `600` possible values to match. Limit is in total across all `match_condition` blocks and `match_values` arguments. String value itself can be up to `256` characters in length.
 * @property matchVariable The request variable to compare with. Possible values are `Cookies`, `PostArgs`, `QueryString`, `RemoteAddr`, `RequestBody`, `RequestHeader`, `RequestMethod`, `RequestUri`, or `SocketAddr`.
 * @property negationCondition Should the result of the condition be negated.
 * @property operator Comparison type to use for matching with the variable value. Possible values are `Any`, `BeginsWith`, `Contains`, `EndsWith`, `Equal`, `GeoMatch`, `GreaterThan`, `GreaterThanOrEqual`, `IPMatch`, `LessThan`, `LessThanOrEqual` or `RegEx`.
 * @property selector Match against a specific key if the `match_variable` is `QueryString`, `PostArgs`, `RequestHeader` or `Cookies`.
 * @property transforms Up to `5` transforms to apply. Possible values are `Lowercase`, `RemoveNulls`, `Trim`, `Uppercase`, `URLDecode` or `URLEncode`.
 */
public data class FrontdoorFirewallPolicyCustomRuleMatchCondition(
    public val matchValues: List,
    public val matchVariable: String,
    public val negationCondition: Boolean? = null,
    public val `operator`: String,
    public val selector: String? = null,
    public val transforms: List? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.cdn.outputs.FrontdoorFirewallPolicyCustomRuleMatchCondition):
            FrontdoorFirewallPolicyCustomRuleMatchCondition =
            FrontdoorFirewallPolicyCustomRuleMatchCondition(
                matchValues = javaType.matchValues().map({ args0 -> args0 }),
                matchVariable = javaType.matchVariable(),
                negationCondition = javaType.negationCondition().map({ args0 -> args0 }).orElse(null),
                `operator` = javaType.`operator`(),
                selector = javaType.selector().map({ args0 -> args0 }).orElse(null),
                transforms = javaType.transforms().map({ args0 -> args0 }),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy