![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ec2.kotlin.TransitGatewayVpcAttachmentArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin
import com.pulumi.awsnative.ec2.TransitGatewayVpcAttachmentArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.OptionsPropertiesArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.OptionsPropertiesArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::EC2::TransitGatewayVpcAttachment
* @property addSubnetIds The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.
* @property options The options for the transit gateway vpc attachment.
* @property removeSubnetIds The IDs of one or more subnets to remove.
* @property subnetIds The IDs of the subnets.
* @property tags The tags for the VPC attachment.
* @property transitGatewayId The ID of the transit gateway.
* @property vpcId The ID of the VPC.
*/
public data class TransitGatewayVpcAttachmentArgs(
public val addSubnetIds: Output>? = null,
public val options: Output? = null,
public val removeSubnetIds: Output>? = null,
public val subnetIds: Output>? = null,
public val tags: Output>? = null,
public val transitGatewayId: Output? = null,
public val vpcId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.TransitGatewayVpcAttachmentArgs =
com.pulumi.awsnative.ec2.TransitGatewayVpcAttachmentArgs.builder()
.addSubnetIds(addSubnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.options(options?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.removeSubnetIds(removeSubnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
.transitGatewayId(transitGatewayId?.applyValue({ args0 -> args0 }))
.vpcId(vpcId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TransitGatewayVpcAttachmentArgs].
*/
@PulumiTagMarker
public class TransitGatewayVpcAttachmentArgsBuilder internal constructor() {
private var addSubnetIds: Output>? = null
private var options: Output? = null
private var removeSubnetIds: Output>? = null
private var subnetIds: Output>? = null
private var tags: Output>? = null
private var transitGatewayId: Output? = null
private var vpcId: Output? = null
/**
* @param value The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.
*/
@JvmName("twcrgtqgsccyuoys")
public suspend fun addSubnetIds(`value`: Output>) {
this.addSubnetIds = value
}
@JvmName("ggssmlbahneewtpl")
public suspend fun addSubnetIds(vararg values: Output) {
this.addSubnetIds = Output.all(values.asList())
}
/**
* @param values The IDs of one or more subnets to add. You can specify at most one subnet per Availability Zone.
*/
@JvmName("wunstxtmwxvtdfby")
public suspend fun addSubnetIds(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy