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

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

  amazonAddress?: string | core.StringOut;

  bgpAsn: number | core.NumberOut;

  bgpAuthKey?: string | core.StringOut;

  customerAddress?: string | core.StringOut;

  virtualInterfaceId: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: DxBgpPeerArgs) {
    super(name, "aws_dx_bgp_peer", args);
  }

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