com.pulumi.awsnative.ec2.kotlin.outputs.GetSecurityGroupResult.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 com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property groupId The group ID of the specified security group.
* @property id The group name or group ID depending on whether the SG is created in default or specific VPC
* @property securityGroupEgress [VPC only] The outbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
* @property securityGroupIngress The inbound rules associated with the security group. There is a short interruption during which you cannot connect to the security group.
* @property tags Any tags assigned to the security group.
*/
public data class GetSecurityGroupResult(
public val groupId: String? = null,
public val id: String? = null,
public val securityGroupEgress: List? = null,
public val securityGroupIngress: List? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetSecurityGroupResult): GetSecurityGroupResult = GetSecurityGroupResult(
groupId = javaType.groupId().map({ args0 -> args0 }).orElse(null),
id = javaType.id().map({ args0 -> args0 }).orElse(null),
securityGroupEgress = javaType.securityGroupEgress().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.SecurityGroupEgress.Companion.toKotlin(args0)
})
}),
securityGroupIngress = javaType.securityGroupIngress().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ec2.kotlin.outputs.SecurityGroupIngress.Companion.toKotlin(args0)
})
}),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}