com.pulumi.gcp.compute.kotlin.inputs.FirewallPolicyRuleMatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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. 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 256.
* @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 256.
* @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 srcThreatIntelligences Name of the Google Cloud Threat Intelligence list.
* 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. Destination address groups is only supported in Egress rules.
*/
@JvmName("riwwhfsddmtdqnuw")
public suspend fun destAddressGroups(`value`: Output>) {
this.destAddressGroups = value
}
@JvmName("welkjdhrynrlusrq")
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. Destination address groups is only supported in Egress rules.
*/
@JvmName("fwkysundihypldiq")
public suspend fun destAddressGroups(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy