![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.cdn.kotlin.outputs.CustomRuleResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.cdn.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Defines the common attributes for a custom rule that can be included in a waf policy
* @property action Describes what action to be applied when rule matches
* @property enabledState Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
* @property matchConditions List of match conditions.
* @property name Defines the name of the custom rule
* @property priority Defines in what order this rule be evaluated in the overall list of custom rules
*/
public data class CustomRuleResponse(
public val action: String,
public val enabledState: String? = null,
public val matchConditions: List,
public val name: String,
public val priority: Int,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azurenative.cdn.outputs.CustomRuleResponse): CustomRuleResponse = CustomRuleResponse(
action = javaType.action(),
enabledState = javaType.enabledState().map({ args0 -> args0 }).orElse(null),
matchConditions = javaType.matchConditions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azurenative.cdn.kotlin.outputs.MatchConditionResponse.Companion.toKotlin(args0)
})
}),
name = javaType.name(),
priority = javaType.priority(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy