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

export interface Ec2LocalGatewayRouteTableVpcAssociationArgs
  extends core.ResourceArgs {
  localGatewayRouteTableId: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  vpcId: string | core.StringOut;
}

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

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

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

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  constructor(
    name: string,
    args?: Ec2LocalGatewayRouteTableVpcAssociationArgs
  ) {
    super(name, "aws_ec2_local_gateway_route_table_vpc_association", args);
  }

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