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

export interface DxTransitVirtualInterfaceArgs extends core.ResourceArgs {
  addressFamily: string | core.StringOut;

  amazonAddress?: string | core.StringOut;

  bgpAsn: number | core.NumberOut;

  bgpAuthKey?: string | core.StringOut;

  connectionId: string | core.StringOut;

  customerAddress?: string | core.StringOut;

  dxGatewayId: string | core.StringOut;

  mtu?: number | core.NumberOut;

  name: string | core.StringOut;

  sitelinkEnabled?: boolean | core.BooleanOut;

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

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

  vlan: number | core.NumberOut;
}

export class DxTransitVirtualInterface extends core.Resource<DxTransitVirtualInterfaceArgs> {
  @core.attr(String)
  public addressFamily!: string | core.StringOut;

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

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

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

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

  @core.attr(Number)
  public bgpAsn!: number | core.NumberOut;

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

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public jumboFrameCapable!: boolean | core.BooleanOut;

  @core.attr(Number)
  public mtu?: number | core.NumberOut;

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

  @core.attr(Boolean)
  public sitelinkEnabled?: boolean | core.BooleanOut;

  @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(Number)
  public vlan!: number | core.NumberOut;

  constructor(name: string, args?: DxTransitVirtualInterfaceArgs) {
    super(name, "aws_dx_transit_virtual_interface", args);
  }

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