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

export interface RouteArgs extends core.ResourceArgs {
  carrierGatewayId?: string | core.StringOut;

  coreNetworkArn?: string | core.StringOut;

  destinationCidrBlock?: string | core.StringOut;

  destinationIpv6CidrBlock?: string | core.StringOut;

  destinationPrefixListId?: string | core.StringOut;

  egressOnlyGatewayId?: string | core.StringOut;

  gatewayId?: string | core.StringOut;

  instanceId?: string | core.StringOut;

  localGatewayId?: string | core.StringOut;

  natGatewayId?: string | core.StringOut;

  networkInterfaceId?: string | core.StringOut;

  routeTableId: string | core.StringOut;

  transitGatewayId?: string | core.StringOut;

  vpcEndpointId?: string | core.StringOut;

  vpcPeeringConnectionId?: string | core.StringOut;
}

export class Route extends core.Resource<RouteArgs> {
  @core.attr(String)
  public carrierGatewayId?: string | core.StringOut;

  @core.attr(String)
  public coreNetworkArn?: string | core.StringOut;

  @core.attr(String)
  public destinationCidrBlock?: string | core.StringOut;

  @core.attr(String)
  public destinationIpv6CidrBlock?: string | core.StringOut;

  @core.attr(String)
  public destinationPrefixListId?: string | core.StringOut;

  @core.attr(String)
  public egressOnlyGatewayId?: string | core.StringOut;

  @core.attr(String)
  public gatewayId?: string | core.StringOut;

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

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

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

  @core.attr(String)
  public localGatewayId?: string | core.StringOut;

  @core.attr(String)
  public natGatewayId?: string | core.StringOut;

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

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

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

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

  @core.attr(String)
  public transitGatewayId?: string | core.StringOut;

  @core.attr(String)
  public vpcEndpointId?: string | core.StringOut;

  @core.attr(String)
  public vpcPeeringConnectionId?: string | core.StringOut;

  constructor(name: string, args?: RouteArgs) {
    super(name, "aws_route", args);
  }

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