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

com.pulumi.azure.frontdoor.kotlin.outputs.RulesEngineRule.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.frontdoor.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property action An `action` block as defined below.
 * @property matchConditions One or more `match_condition` block as defined below.
 * @property name The name of the rule.
 * @property priority Priority of the rule, must be unique per rules engine definition.
 */
public data class RulesEngineRule(
    public val action: RulesEngineRuleAction? = null,
    public val matchConditions: List? = null,
    public val name: String,
    public val priority: Int,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.frontdoor.outputs.RulesEngineRule):
            RulesEngineRule = RulesEngineRule(
            action = javaType.action().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.frontdoor.kotlin.outputs.RulesEngineRuleAction.Companion.toKotlin(args0)
                })
            }).orElse(null),
            matchConditions = javaType.matchConditions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.frontdoor.kotlin.outputs.RulesEngineRuleMatchCondition.Companion.toKotlin(args0)
                })
            }),
            name = javaType.name(),
            priority = javaType.priority(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy