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

export interface MemberArgs extends core.ResourceArgs {
  accountId: string | core.StringOut;

  detectorId: string | core.StringOut;

  disableEmailNotification?: boolean | core.BooleanOut;

  email: string | core.StringOut;

  invitationMessage?: string | core.StringOut;

  invite?: boolean | core.BooleanOut;
}

export class Member extends core.Resource<MemberArgs> {
  @core.attr(String)
  public accountId!: string | core.StringOut;

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

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

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

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

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

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

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

  constructor(name: string, args?: MemberArgs) {
    super(name, "aws_guardduty_member", args);
  }

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