import * as core from "@terrascript/core";

export interface RouteTableAssociationArgs extends core.ResourceArgs {
  gatewayId?: string | core.StringOut;

  routeTableId: string | core.StringOut;

  subnetId?: string | core.StringOut;
}

export class RouteTableAssociation extends core.Resource<RouteTableAssociationArgs> {
  @core.attr(String)
  public gatewayId?: string | core.StringOut;

  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public routeTableId!: string | core.StringOut;

  @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";
  }
}
