com.pulumi.awsnative.ec2.kotlin.GatewayRouteTableAssociationArgs.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
import com.pulumi.awsnative.ec2.GatewayRouteTableAssociationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Associates a gateway with a route table. The gateway and route table must be in the same VPC. This association causes the incoming traffic to the gateway to be routed according to the routes in the route table.
* @property gatewayId The ID of the gateway.
* @property routeTableId The ID of the route table.
*/
public data class GatewayRouteTableAssociationArgs(
public val gatewayId: Output? = null,
public val routeTableId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.GatewayRouteTableAssociationArgs =
com.pulumi.awsnative.ec2.GatewayRouteTableAssociationArgs.builder()
.gatewayId(gatewayId?.applyValue({ args0 -> args0 }))
.routeTableId(routeTableId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GatewayRouteTableAssociationArgs].
*/
@PulumiTagMarker
public class GatewayRouteTableAssociationArgsBuilder internal constructor() {
private var gatewayId: Output? = null
private var routeTableId: Output? = null
/**
* @param value The ID of the gateway.
*/
@JvmName("avtuafrjkweexupd")
public suspend fun gatewayId(`value`: Output) {
this.gatewayId = value
}
/**
* @param value The ID of the route table.
*/
@JvmName("wxapbwpcowbukkfm")
public suspend fun routeTableId(`value`: Output) {
this.routeTableId = value
}
/**
* @param value The ID of the gateway.
*/
@JvmName("pomsdgqninfwkkev")
public suspend fun gatewayId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.gatewayId = mapped
}
/**
* @param value The ID of the route table.
*/
@JvmName("icbogtpkfgaucqux")
public suspend fun routeTableId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.routeTableId = mapped
}
internal fun build(): GatewayRouteTableAssociationArgs = GatewayRouteTableAssociationArgs(
gatewayId = gatewayId,
routeTableId = routeTableId,
)
}