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

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 DsSiteArgs {
  globalNetworkId: string | core.StringOut;

  siteId: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: DsSiteArgs) {
    super(name, "aws_networkmanager_site", args);
  }

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