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

export interface NotificationArgs extends core.ResourceArgs {
  groupNames: core.Array<string> | core.ArrayOut<core.StringOut>;

  notifications: core.Array<string> | core.ArrayOut<core.StringOut>;

  topicArn: string | core.StringOut;
}

export class Notification extends core.Resource<NotificationArgs> {
  @core.attr(String, { kind: "array" })
  public groupNames!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

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

  constructor(name: string, args?: NotificationArgs) {
    super(name, "aws_autoscaling_notification", args);
  }

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