
com.pulumi.gcp.compute.kotlin.inputs.FirewallPolicyRuleMatchArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.FirewallPolicyRuleMatchArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property destAddressGroups Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.
* @property destFqdns Fully Qualified Domain Name (FQDN) which should be matched against traffic destination. Maximum number of destination fqdn allowed is 100.
* @property destIpRanges CIDR IP address range. Maximum number of destination CIDR IP ranges allowed is 5000.
* @property destRegionCodes Region codes whose IP addresses will be used to match for destination of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of dest region codes allowed is 5000.
* @property destThreatIntelligences Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic destination.
* @property layer4Configs Pairs of IP protocols and ports that the rule should match.
* Structure is documented below.
* @property srcAddressGroups Address groups which should be matched against the traffic source. Maximum number of source address groups is 10.
* @property srcFqdns Fully Qualified Domain Name (FQDN) which should be matched against traffic source. Maximum number of source fqdn allowed is 100.
* @property srcIpRanges CIDR IP address range. Maximum number of source CIDR IP ranges allowed is 5000.
* @property srcRegionCodes Region codes whose IP addresses will be used to match for source of traffic. Should be specified as 2 letter country code defined as per ISO 3166 alpha-2 country codes. ex."US" Maximum number of source region codes allowed is 5000.
* @property srcThreatIntelligences Names of Network Threat Intelligence lists. The IPs in these lists will be matched against traffic source.
* The `layer4_configs` block supports:
*/
public data class FirewallPolicyRuleMatchArgs(
public val destAddressGroups: Output>? = null,
public val destFqdns: Output>? = null,
public val destIpRanges: Output>? = null,
public val destRegionCodes: Output>? = null,
public val destThreatIntelligences: Output>? = null,
public val layer4Configs: Output>,
public val srcAddressGroups: Output>? = null,
public val srcFqdns: Output>? = null,
public val srcIpRanges: Output>? = null,
public val srcRegionCodes: Output>? = null,
public val srcThreatIntelligences: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.FirewallPolicyRuleMatchArgs =
com.pulumi.gcp.compute.inputs.FirewallPolicyRuleMatchArgs.builder()
.destAddressGroups(destAddressGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.destFqdns(destFqdns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.destIpRanges(destIpRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.destRegionCodes(destRegionCodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.destThreatIntelligences(
destThreatIntelligences?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
)
.layer4Configs(
layer4Configs.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.srcAddressGroups(srcAddressGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.srcFqdns(srcFqdns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.srcIpRanges(srcIpRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.srcRegionCodes(srcRegionCodes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.srcThreatIntelligences(
srcThreatIntelligences?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [FirewallPolicyRuleMatchArgs].
*/
@PulumiTagMarker
public class FirewallPolicyRuleMatchArgsBuilder internal constructor() {
private var destAddressGroups: Output>? = null
private var destFqdns: Output>? = null
private var destIpRanges: Output>? = null
private var destRegionCodes: Output>? = null
private var destThreatIntelligences: Output>? = null
private var layer4Configs: Output>? = null
private var srcAddressGroups: Output>? = null
private var srcFqdns: Output>? = null
private var srcIpRanges: Output>? = null
private var srcRegionCodes: Output>? = null
private var srcThreatIntelligences: Output>? = null
/**
* @param value Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.
*/
@JvmName("ygoctdwympedqjqy")
public suspend fun destAddressGroups(`value`: Output>) {
this.destAddressGroups = value
}
@JvmName("ouyferyxptkhposw")
public suspend fun destAddressGroups(vararg values: Output) {
this.destAddressGroups = Output.all(values.asList())
}
/**
* @param values Address groups which should be matched against the traffic destination. Maximum number of destination address groups is 10.
*/
@JvmName("fwgvnmnxahwaykww")
public suspend fun destAddressGroups(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy