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

export interface EventSubscriptionArgs extends core.ResourceArgs {
  enabled?: boolean | core.BooleanOut;

  eventCategories?: core.Array<string> | core.ArrayOut<core.StringOut>;

  name?: string | core.StringOut;

  namePrefix?: string | core.StringOut;

  snsTopicArn: string | core.StringOut;

  sourceIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

  sourceType?: string | core.StringOut;

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

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

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

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

  @core.attr(Boolean)
  public enabled?: boolean | core.BooleanOut;

  @core.attr(String, { kind: "array" })
  public eventCategories?: core.Array<string> | core.ArrayOut<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, { computed: true })
  public namePrefix?: string | core.StringOut;

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

  @core.attr(String, { kind: "array" })
  public sourceIds?: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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