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

export interface CloudwatchEventArchiveArgs extends core.ResourceArgs {
  description?: string | core.StringOut;

  eventPattern?: string | core.StringOut;

  eventSourceArn: string | core.StringOut;

  name: string | core.StringOut;

  retentionDays?: number | core.NumberOut;
}

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

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

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

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

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

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

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

  constructor(name: string, args?: CloudwatchEventArchiveArgs) {
    super(name, "aws_cloudwatch_event_archive", args);
  }

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