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

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

  email: string | core.StringOut;

  invitationDisableEmailNotification?: boolean | core.BooleanOut;

  invitationMessage?: string | core.StringOut;

  invite?: boolean | core.BooleanOut;

  status?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public invite?: boolean | core.BooleanOut;

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

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

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

  @core.attr(String, { computed: true })
  public status?: 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>;

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

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

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