SubnetRouteTableAssociationArgs

data class SubnetRouteTableAssociationArgs(val routeTableId: Output<String>? = null, val subnetId: Output<String>? = null) : ConvertibleToJava<SubnetRouteTableAssociationArgs>

Associates a subnet with a route table. The subnet and route table must be in the same VPC. This association causes traffic originating from the subnet to be routed according to the routes in the route table. A route table can be associated with multiple subnets. To create a route table, see AWS::EC2::RouteTable.

Constructors

Link copied to clipboard
constructor(routeTableId: Output<String>? = null, subnetId: Output<String>? = null)

Properties

Link copied to clipboard
val routeTableId: Output<String>? = null

The ID of the route table. The physical ID changes when the route table ID is changed.

Link copied to clipboard
val subnetId: Output<String>? = null

The ID of the subnet.

Functions

Link copied to clipboard
open override fun toJava(): SubnetRouteTableAssociationArgs