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

export interface DxPublicVirtualInterfaceArgs 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;

  name: string | core.StringOut;

  routeFilterPrefixes: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  vlan: number | core.NumberOut;
}

export class DxPublicVirtualInterface extends core.Resource<DxPublicVirtualInterfaceArgs> {
  @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, { computed: true })
  public id!: string | core.StringOut;

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

  @core.attr(String, { kind: "array" })
  public routeFilterPrefixes!:
    | core.Array<string>
    | core.ArrayOut<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(Number)
  public vlan!: number | core.NumberOut;

  constructor(name: string, args?: DxPublicVirtualInterfaceArgs) {
    super(name, "aws_dx_public_virtual_interface", args);
  }

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