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

com.pulumi.azurenative.cdn.kotlin.outputs.ManagedRuleSetResponse.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: 2.82.0.0
Show newest version
@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 a managed rule set.
 * @property anomalyScore Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
 * @property ruleGroupOverrides Defines the rule overrides to apply to the rule set.
 * @property ruleSetType Defines the rule set type to use.
 * @property ruleSetVersion Defines the version of the rule set to use.
 */
public data class ManagedRuleSetResponse(
    public val anomalyScore: Int? = null,
    public val ruleGroupOverrides: List? = null,
    public val ruleSetType: String,
    public val ruleSetVersion: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.cdn.outputs.ManagedRuleSetResponse): ManagedRuleSetResponse = ManagedRuleSetResponse(
            anomalyScore = javaType.anomalyScore().map({ args0 -> args0 }).orElse(null),
            ruleGroupOverrides = javaType.ruleGroupOverrides().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azurenative.cdn.kotlin.outputs.ManagedRuleGroupOverrideResponse.Companion.toKotlin(args0)
                })
            }),
            ruleSetType = javaType.ruleSetType(),
            ruleSetVersion = javaType.ruleSetVersion(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy