import * as core from "@terrascript/core"; export interface RouteTableAssociationArgs extends core.ResourceArgs { /** * (Optional) The gateway ID to create an association. Conflicts with `subnet_id`. */ gatewayId?: string | core.StringOut; /** * (Required) The ID of the routing table to associate with. */ routeTableId: string | core.StringOut; /** * (Optional) The subnet ID to create an association. Conflicts with `gateway_id`. */ subnetId?: string | core.StringOut; } export class RouteTableAssociation extends core.Resource { /** * (Optional) The gateway ID to create an association. Conflicts with `subnet_id`. */ @core.attr(String) public gatewayId?: string | core.StringOut; /** * The ID of the association */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The ID of the routing table to associate with. */ @core.attr(String) public routeTableId!: string | core.StringOut; /** * (Optional) The subnet ID to create an association. Conflicts with `gateway_id`. */ @core.attr(String) public subnetId?: string | core.StringOut; constructor(name: string, args?: RouteTableAssociationArgs) { super(name, "aws_route_table_association", args); } public override getNamespace(): string { return "aws_vpc"; } }