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

export interface DsRouteArgs {
  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;

  vpcPeeringConnectionId?: string | core.StringOut;
}

export class DsRoute extends core.Data<DsRouteArgs> {
  @core.attr(String, { computed: true })
  public carrierGatewayId?: string | core.StringOut;

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

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

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

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

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

  @core.attr(String, { computed: true })
  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 localGatewayId?: string | core.StringOut;

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

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

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

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

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

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

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