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

export interface RouteCalculatorArgs extends core.ResourceArgs {
  calculatorName: string | core.StringOut;

  dataSource: string | core.StringOut;

  description?: string | core.StringOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: RouteCalculatorArgs) {
    super(name, "aws_location_route_calculator", args);
  }

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