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

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

@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 id The ID of the attachment.
 * @property options The options for the transit gateway vpc attachment.
 * @property subnetIds The IDs of one or more subnets. You can specify only one subnet per Availability Zone. You must specify at least one subnet, but we recommend that you specify two subnets for better availability. The transit gateway uses one IP address from each specified subnet.
 * @property tags The tags for the attachment.
 */
public data class GetTransitGatewayAttachmentResult(
    public val id: String? = null,
    public val options: OptionsProperties? = null,
    public val subnetIds: List? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.outputs.GetTransitGatewayAttachmentResult): GetTransitGatewayAttachmentResult = GetTransitGatewayAttachmentResult(
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            options = javaType.options().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.ec2.kotlin.outputs.OptionsProperties.Companion.toKotlin(args0)
                })
            }).orElse(null),
            subnetIds = javaType.subnetIds().map({ args0 -> args0 }),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy