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

export interface Ec2LocalGatewayRouteArgs extends core.ResourceArgs {
  destinationCidrBlock: string | core.StringOut;

  localGatewayRouteTableId: string | core.StringOut;

  localGatewayVirtualInterfaceGroupId: string | core.StringOut;
}

export class Ec2LocalGatewayRoute extends core.Resource<Ec2LocalGatewayRouteArgs> {
  @core.attr(String)
  public destinationCidrBlock!: string | core.StringOut;

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

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

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

  constructor(name: string, args?: Ec2LocalGatewayRouteArgs) {
    super(name, "aws_ec2_local_gateway_route", args);
  }

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