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

export interface NetworkProfileArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  downlinkBandwidthBits?: number | core.NumberOut;

  downlinkDelayMs?: number | core.NumberOut;

  downlinkJitterMs?: number | core.NumberOut;

  downlinkLossPercent?: number | core.NumberOut;

  name: string | core.StringOut;

  projectArn: 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;

  uplinkBandwidthBits?: number | core.NumberOut;

  uplinkDelayMs?: number | core.NumberOut;

  uplinkJitterMs?: number | core.NumberOut;

  uplinkLossPercent?: number | core.NumberOut;
}

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

  @core.attr(String)
  public description?: string | core.StringOut;

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

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

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

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

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

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

  @core.attr(String)
  public projectArn!: 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;

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

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

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

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

  constructor(name: string, args?: NetworkProfileArgs) {
    super(name, "aws_devicefarm_network_profile", args);
  }

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