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)
  public address?: string | core.StringOut;

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

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

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

  globalNetworkId: string | core.StringOut;

  location?: Location;

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

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

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

  @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(Location)
  public location?: Location;

  @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>;

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

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