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

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

  kmsKeyId?: string | core.StringOut;

  positionFiltering?: string | core.StringOut;

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

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

  trackerName: string | core.StringOut;
}

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

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

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

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

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

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

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

  constructor(name: string, args?: TrackerArgs) {
    super(name, "aws_location_tracker", args);
  }

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