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

export interface BandwidthArgs extends core.SchemaArgs {
  downloadSpeed: number | core.NumberOut;

  uploadSpeed: number | core.NumberOut;
}

export class Bandwidth extends core.Schema<BandwidthArgs> {
  @core.attr(Number, { computed: true })
  public downloadSpeed!: number | core.NumberOut;

  @core.attr(Number, { computed: true })
  public uploadSpeed!: number | core.NumberOut;
}

export interface DsLinkArgs {
  globalNetworkId: string | core.StringOut;

  linkId: string | core.StringOut;

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

export class DsLink extends core.Data<DsLinkArgs> {
  @core.attr(String, { computed: true })
  public arn!: string | core.StringOut;

  @core.attr(Bandwidth, { computed: true, kind: "array" })
  public bandwidth!: core.Array<Bandwidth> | core.ArrayOut<Bandwidth>;

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

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

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

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

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

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

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

  constructor(name: string, args?: DsLinkArgs) {
    super(name, "aws_networkmanager_link", args);
  }

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