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

export interface LogGroupArgs extends core.ResourceArgs {
  kmsKeyId?: string | core.StringOut;

  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;

  retentionInDays?: number | core.NumberOut;

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

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

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

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

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

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

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

  @core.attr(Number)
  public retentionInDays?: number | core.NumberOut;

  @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?: LogGroupArgs) {
    super(name, "aws_cloudwatch_log_group", args);
  }

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