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

export interface PrometheusAlertManagerDefinitionArgs
  extends core.ResourceArgs {
  definition: string | core.StringOut;

  workspaceId: string | core.StringOut;
}

export class PrometheusAlertManagerDefinition extends core.Resource<PrometheusAlertManagerDefinitionArgs> {
  @core.attr(String)
  public definition!: string | core.StringOut;

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

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

  constructor(name: string, args?: PrometheusAlertManagerDefinitionArgs) {
    super(name, "aws_prometheus_alert_manager_definition", args);
  }

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