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

export interface AwsLocationArgs extends core.SchemaArgs {
  subnetArn: string | core.StringOut;

  zone: string | core.StringOut;
}

export class AwsLocation extends core.Schema<AwsLocationArgs> {
  @core.attr(String, { computed: true })
  public subnetArn!: string | core.StringOut;

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

export interface LocationArgs extends core.SchemaArgs {
  address: string | core.StringOut;

  latitude: string | core.StringOut;

  longitude: string | core.StringOut;
}

export class Location extends core.Schema<LocationArgs> {
  @core.attr(String, { computed: true })
  public address!: string | core.StringOut;

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

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

export interface DsDeviceArgs {
  deviceId: string | core.StringOut;

  globalNetworkId: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DsDeviceArgs) {
    super(name, "aws_networkmanager_device", args);
  }

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