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

export interface DashboardArgs extends core.ResourceArgs {
  dashboardBody: string | core.StringOut;

  dashboardName: string | core.StringOut;
}

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

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

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

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

  constructor(name: string, args?: DashboardArgs) {
    super(name, "aws_cloudwatch_dashboard", args);
  }

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