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

export interface InviteAccepterArgs extends core.ResourceArgs {
  /**
   * (Required) The account ID of the master Security Hub account whose invitation you're accepting.
   */
  masterId: string | core.StringOut;
}

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

  /**
   * The ID of the invitation.
   */
  @core.attr(String, { computed: true })
  public invitationId!: string | core.StringOut;

  /**
   * (Required) The account ID of the master Security Hub account whose invitation you're accepting.
   */
  @core.attr(String)
  public masterId!: string | core.StringOut;

  constructor(name: string, args?: InviteAccepterArgs) {
    super(name, "aws_securityhub_invite_accepter", args);
  }

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