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)
  public downloadSpeed?: number | core.NumberOut;

  @core.attr(Number)
  public uploadSpeed?: number | core.NumberOut;
}

export interface LinkArgs extends core.ResourceArgs {
  bandwidth: Bandwidth;

  description?: string | core.StringOut;

  globalNetworkId: string | core.StringOut;

  providerName?: string | core.StringOut;

  siteId: string | core.StringOut;

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

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

  type?: string | core.StringOut;
}

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

  @core.attr(Bandwidth)
  public bandwidth!: Bandwidth;

  @core.attr(String)
  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 providerName?: string | core.StringOut;

  @core.attr(String)
  public siteId!: string | 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(String)
  public type?: string | core.StringOut;

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

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