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

com.pulumi.gcp.compute.kotlin.outputs.NetworkFirewallPolicyRuleMatch.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.outputs

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

/**
 *
 * @property destAddressGroups Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10. Destination address groups is only supported in Egress rules.
 * @property destFqdns Domain names that will be used to match against the resolved domain name of destination of traffic. Can only be specified if DIRECTION is egress.
 * @property destIpRanges CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
 * @property destRegionCodes The Unicode country codes whose IP addresses will be used to match against the source of traffic. Can only be specified if DIRECTION is egress.
 * @property destThreatIntelligences Name of the Google Cloud Threat Intelligence list.
 * @property layer4Configs Pairs of IP protocols and ports that the rule should match.
 * @property srcAddressGroups Address groups which should be matched against the traffic source. Maximum number of source address groups is 10. Source address groups is only supported in Ingress rules.
 * @property srcFqdns Domain names that will be used to match against the resolved domain name of source of traffic. Can only be specified if DIRECTION is ingress.
 * @property srcIpRanges CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
 * @property srcRegionCodes The Unicode country codes whose IP addresses will be used to match against the source of traffic. Can only be specified if DIRECTION is ingress.
 * @property srcSecureTags List of secure tag values, which should be matched at the source of the traffic. For INGRESS rule, if all the srcSecureTag are INEFFECTIVE, and there is no srcIpRange, this rule will be ignored. Maximum number of source tag values allowed is 256.
 * @property srcThreatIntelligences Name of the Google Cloud Threat Intelligence list.
 * The `layer4_configs` block supports:
 */
public data class NetworkFirewallPolicyRuleMatch(
    public val destAddressGroups: List? = null,
    public val destFqdns: List? = null,
    public val destIpRanges: List? = null,
    public val destRegionCodes: List? = null,
    public val destThreatIntelligences: List? = null,
    public val layer4Configs: List,
    public val srcAddressGroups: List? = null,
    public val srcFqdns: List? = null,
    public val srcIpRanges: List? = null,
    public val srcRegionCodes: List? = null,
    public val srcSecureTags: List? = null,
    public val srcThreatIntelligences: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.NetworkFirewallPolicyRuleMatch): NetworkFirewallPolicyRuleMatch = NetworkFirewallPolicyRuleMatch(
            destAddressGroups = javaType.destAddressGroups().map({ args0 -> args0 }),
            destFqdns = javaType.destFqdns().map({ args0 -> args0 }),
            destIpRanges = javaType.destIpRanges().map({ args0 -> args0 }),
            destRegionCodes = javaType.destRegionCodes().map({ args0 -> args0 }),
            destThreatIntelligences = javaType.destThreatIntelligences().map({ args0 -> args0 }),
            layer4Configs = javaType.layer4Configs().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.NetworkFirewallPolicyRuleMatchLayer4Config.Companion.toKotlin(args0)
                })
            }),
            srcAddressGroups = javaType.srcAddressGroups().map({ args0 -> args0 }),
            srcFqdns = javaType.srcFqdns().map({ args0 -> args0 }),
            srcIpRanges = javaType.srcIpRanges().map({ args0 -> args0 }),
            srcRegionCodes = javaType.srcRegionCodes().map({ args0 -> args0 }),
            srcSecureTags = javaType.srcSecureTags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.gcp.compute.kotlin.outputs.NetworkFirewallPolicyRuleMatchSrcSecureTag.Companion.toKotlin(args0)
                })
            }),
            srcThreatIntelligences = javaType.srcThreatIntelligences().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy