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

export interface AnomalyMonitorArgs extends core.ResourceArgs {
  monitorDimension?: string | core.StringOut;

  monitorSpecification?: string | core.StringOut;

  monitorType: string | core.StringOut;

  name: string | core.StringOut;

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

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

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

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

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

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

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

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

  constructor(name: string, args?: AnomalyMonitorArgs) {
    super(name, "aws_ce_anomaly_monitor", args);
  }

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