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

com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisAnalysisAclRule.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.outputs

import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property cidr The IPv4 address range, in CIDR notation.
 * @property egress Indicates whether the rule is an outbound rule.
 * @property portRange The range of ports.
 * @property protocol The protocol.
 * @property ruleAction Indicates whether to allow or deny traffic that matches the rule.
 * @property ruleNumber The rule number.
 */
public data class NetworkInsightsAnalysisAnalysisAclRule(
    public val cidr: String? = null,
    public val egress: Boolean? = null,
    public val portRange: NetworkInsightsAnalysisPortRange? = null,
    public val protocol: String? = null,
    public val ruleAction: String? = null,
    public val ruleNumber: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.NetworkInsightsAnalysisAnalysisAclRule): NetworkInsightsAnalysisAnalysisAclRule = NetworkInsightsAnalysisAnalysisAclRule(
            cidr = javaType.cidr().map({ args0 -> args0 }).orElse(null),
            egress = javaType.egress().map({ args0 -> args0 }).orElse(null),
            portRange = javaType.portRange().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisPortRange.Companion.toKotlin(args0)
                })
            }).orElse(null),
            protocol = javaType.protocol().map({ args0 -> args0 }).orElse(null),
            ruleAction = javaType.ruleAction().map({ args0 -> args0 }).orElse(null),
            ruleNumber = javaType.ruleNumber().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy