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

export interface DxHostedConnectionArgs extends core.ResourceArgs {
  bandwidth: string | core.StringOut;

  connectionId: string | core.StringOut;

  name: string | core.StringOut;

  ownerAccountId: string | core.StringOut;

  vlan: number | core.NumberOut;
}

export class DxHostedConnection extends core.Resource<DxHostedConnectionArgs> {
  @core.attr(String, { computed: true })
  public awsDevice!: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DxHostedConnectionArgs) {
    super(name, "aws_dx_hosted_connection", args);
  }

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