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

com.pulumi.gcp.networksecurity.kotlin.outputs.AuthzPolicyHttpRule.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networksecurity.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property from Describes properties of one or more sources of a request.
 * Structure is documented below.
 * @property to Describes properties of one or more targets of a request
 * Structure is documented below.
 * @property when CEL expression that describes the conditions to be satisfied for the action. The result of the CEL expression is ANDed with the from and to. Refer to the CEL language reference for a list of available attributes.
 */
public data class AuthzPolicyHttpRule(
    public val from: AuthzPolicyHttpRuleFrom? = null,
    public val to: AuthzPolicyHttpRuleTo? = null,
    public val `when`: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.networksecurity.outputs.AuthzPolicyHttpRule): AuthzPolicyHttpRule = AuthzPolicyHttpRule(
            from = javaType.from().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.networksecurity.kotlin.outputs.AuthzPolicyHttpRuleFrom.Companion.toKotlin(args0)
                })
            }).orElse(null),
            to = javaType.to().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.networksecurity.kotlin.outputs.AuthzPolicyHttpRuleTo.Companion.toKotlin(args0)
                })
            }).orElse(null),
            `when` = javaType.`when`().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy