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

export interface DsCloudwatchEventSourceArgs {
  namePrefix?: string | core.StringOut;
}

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

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

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

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

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

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

  constructor(name: string, args?: DsCloudwatchEventSourceArgs) {
    super(name, "aws_cloudwatch_event_source", args);
  }

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