
com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAnalysisAnalysisSecurityGroupRule.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.ec2.kotlin.outputs
import kotlin.String
import kotlin.Suppress
/**
*
* @property cidr The IPv4 address range, in CIDR notation.
* @property direction The direction. The following are the possible values:
* - egress
* - ingress
* @property portRange The port range.
* @property prefixListId The prefix list ID.
* @property protocol The protocol name.
* @property securityGroupId The security group ID.
*/
public data class NetworkInsightsAnalysisAnalysisSecurityGroupRule(
public val cidr: String? = null,
public val direction: String? = null,
public val portRange: NetworkInsightsAnalysisPortRange? = null,
public val prefixListId: String? = null,
public val protocol: String? = null,
public val securityGroupId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.NetworkInsightsAnalysisAnalysisSecurityGroupRule): NetworkInsightsAnalysisAnalysisSecurityGroupRule =
NetworkInsightsAnalysisAnalysisSecurityGroupRule(
cidr = javaType.cidr().map({ args0 -> args0 }).orElse(null),
direction = javaType.direction().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),
prefixListId = javaType.prefixListId().map({ args0 -> args0 }).orElse(null),
protocol = javaType.protocol().map({ args0 -> args0 }).orElse(null),
securityGroupId = javaType.securityGroupId().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy