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

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

  mtu?: number | core.NumberOut;

  name: string | core.StringOut;

  ownerAccountId: string | core.StringOut;

  vlan: number | core.NumberOut;
}

export class DxHostedPrivateVirtualInterface extends core.Resource<DxHostedPrivateVirtualInterfaceArgs> {
  @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(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(String)
  public ownerAccountId!: string | core.StringOut;

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

  constructor(name: string, args?: DxHostedPrivateVirtualInterfaceArgs) {
    super(name, "aws_dx_hosted_private_virtual_interface", args);
  }

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