com.pulumi.gcp.compute.kotlin.outputs.FirewallPolicyRuleMatch.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.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 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 FirewallPolicyRuleMatch(
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 srcThreatIntelligences: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.FirewallPolicyRuleMatch): FirewallPolicyRuleMatch = FirewallPolicyRuleMatch(
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.FirewallPolicyRuleMatchLayer4Config.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 }),
srcThreatIntelligences = javaType.srcThreatIntelligences().map({ args0 -> args0 }),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy