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

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

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

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

export interface DeviceArgs extends core.ResourceArgs {
  awsLocation?: AwsLocation;

  description?: string | core.StringOut;

  globalNetworkId: string | core.StringOut;

  location?: Location;

  model?: string | core.StringOut;

  serialNumber?: 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;

  vendor?: string | core.StringOut;
}

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

  @core.attr(AwsLocation)
  public awsLocation?: AwsLocation;

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

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

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

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

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