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

export interface DsLogGroupArgs {
  name: string | core.StringOut;

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

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

  @core.attr(Number, { computed: true })
  public creationTime!: number | core.NumberOut;

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

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

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

  @core.attr(Number, { computed: true })
  public retentionInDays!: number | core.NumberOut;

  @core.attr(String, { computed: true, kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: DsLogGroupArgs) {
    super(name, "aws_cloudwatch_log_group", args);
  }

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