com.pulumi.awsnative.networkmanager.kotlin.outputs.GetTransitGatewayPeeringResult.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.networkmanager.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property coreNetworkArn The ARN (Amazon Resource Name) of the core network that you want to peer a transit gateway to.
* @property createdAt The creation time of the transit gateway peering
* @property edgeLocation The location of the transit gateway peering
* @property ownerAccountId Peering owner account Id
* @property peeringId The Id of the transit gateway peering
* @property peeringType Peering type (TransitGatewayPeering)
* @property resourceArn The ARN (Amazon Resource Name) of the resource that you will peer to a core network
* @property state The state of the transit gateway peering
* @property tags An array of key-value pairs to apply to this resource.
* @property transitGatewayPeeringAttachmentId The ID of the TransitGatewayPeeringAttachment
*/
public data class GetTransitGatewayPeeringResult(
public val coreNetworkArn: String? = null,
public val createdAt: String? = null,
public val edgeLocation: String? = null,
public val ownerAccountId: String? = null,
public val peeringId: String? = null,
public val peeringType: String? = null,
public val resourceArn: String? = null,
public val state: String? = null,
public val tags: List? = null,
public val transitGatewayPeeringAttachmentId: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.networkmanager.outputs.GetTransitGatewayPeeringResult): GetTransitGatewayPeeringResult = GetTransitGatewayPeeringResult(
coreNetworkArn = javaType.coreNetworkArn().map({ args0 -> args0 }).orElse(null),
createdAt = javaType.createdAt().map({ args0 -> args0 }).orElse(null),
edgeLocation = javaType.edgeLocation().map({ args0 -> args0 }).orElse(null),
ownerAccountId = javaType.ownerAccountId().map({ args0 -> args0 }).orElse(null),
peeringId = javaType.peeringId().map({ args0 -> args0 }).orElse(null),
peeringType = javaType.peeringType().map({ args0 -> args0 }).orElse(null),
resourceArn = javaType.resourceArn().map({ args0 -> args0 }).orElse(null),
state = javaType.state().map({ args0 -> args0 }).orElse(null),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
transitGatewayPeeringAttachmentId = javaType.transitGatewayPeeringAttachmentId().map({ args0 ->
args0
}).orElse(null),
)
}
}