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

export interface MainRouteTableAssociationArgs extends core.ResourceArgs {
  routeTableId: string | core.StringOut;

  vpcId: string | core.StringOut;
}

export class MainRouteTableAssociation extends core.Resource<MainRouteTableAssociationArgs> {
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: MainRouteTableAssociationArgs) {
    super(name, "aws_main_route_table_association", args);
  }

  public override getNamespace(): string {
    return "aws_vpc";
  }
}
