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

export interface WebhookArgs extends core.ResourceArgs {
  appId: string | core.StringOut;

  branchName: string | core.StringOut;

  description?: string | core.StringOut;
}

export class Webhook extends core.Resource<WebhookArgs> {
  @core.attr(String)
  public appId!: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: WebhookArgs) {
    super(name, "aws_amplify_webhook", args);
  }

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