com.pulumi.awsnative.networkfirewall.kotlin.outputs.RuleGroupHeader.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.networkfirewall.kotlin.outputs
import com.pulumi.awsnative.networkfirewall.kotlin.enums.RuleGroupHeaderDirection
import com.pulumi.awsnative.networkfirewall.kotlin.enums.RuleGroupHeaderProtocol
import kotlin.String
import kotlin.Suppress
/**
*
* @property destination The destination IP address or address range to inspect for, in CIDR notation. To match with any address, specify `ANY` .
* Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) notation. Network Firewall supports all address ranges for IPv4 and IPv6.
* Examples:
* - To configure Network Firewall to inspect for the IP address 192.0.2.44, specify `192.0.2.44/32` .
* - To configure Network Firewall to inspect for IP addresses from 192.0.2.0 to 192.0.2.255, specify `192.0.2.0/24` .
* - To configure Network Firewall to inspect for the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify `1111:0000:0000:0000:0000:0000:0000:0111/128` .
* - To configure Network Firewall to inspect for IP addresses from 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify `1111:0000:0000:0000:0000:0000:0000:0000/64` .
* For more information about CIDR notation, see the Wikipedia entry [Classless Inter-Domain Routing](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) .
* @property destinationPort The destination port to inspect for. You can specify an individual port, for example `1994` and you can specify a port range, for example `1990:1994` . To match with any port, specify `ANY` .
* @property direction The direction of traffic flow to inspect. If set to `ANY` , the inspection matches bidirectional traffic, both from the source to the destination and from the destination to the source. If set to `FORWARD` , the inspection only matches traffic going from the source to the destination.
* @property protocol The protocol to inspect for. To specify all, you can use `IP` , because all traffic on AWS and on the internet is IP.
* @property source The source IP address or address range to inspect for, in CIDR notation. To match with any address, specify `ANY` .
* Specify an IP address or a block of IP addresses in Classless Inter-Domain Routing (CIDR) notation. Network Firewall supports all address ranges for IPv4 and IPv6.
* Examples:
* - To configure Network Firewall to inspect for the IP address 192.0.2.44, specify `192.0.2.44/32` .
* - To configure Network Firewall to inspect for IP addresses from 192.0.2.0 to 192.0.2.255, specify `192.0.2.0/24` .
* - To configure Network Firewall to inspect for the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify `1111:0000:0000:0000:0000:0000:0000:0111/128` .
* - To configure Network Firewall to inspect for IP addresses from 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify `1111:0000:0000:0000:0000:0000:0000:0000/64` .
* For more information about CIDR notation, see the Wikipedia entry [Classless Inter-Domain Routing](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) .
* @property sourcePort The source port to inspect for. You can specify an individual port, for example `1994` and you can specify a port range, for example `1990:1994` . To match with any port, specify `ANY` .
*/
public data class RuleGroupHeader(
public val destination: String,
public val destinationPort: String,
public val direction: RuleGroupHeaderDirection,
public val protocol: RuleGroupHeaderProtocol,
public val source: String,
public val sourcePort: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.networkfirewall.outputs.RuleGroupHeader): RuleGroupHeader = RuleGroupHeader(
destination = javaType.destination(),
destinationPort = javaType.destinationPort(),
direction = javaType.direction().let({ args0 ->
com.pulumi.awsnative.networkfirewall.kotlin.enums.RuleGroupHeaderDirection.Companion.toKotlin(args0)
}),
protocol = javaType.protocol().let({ args0 ->
com.pulumi.awsnative.networkfirewall.kotlin.enums.RuleGroupHeaderProtocol.Companion.toKotlin(args0)
}),
source = javaType.source(),
sourcePort = javaType.sourcePort(),
)
}
}