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

export interface GroupMembershipArgs extends core.ResourceArgs {
  awsAccountId?: string | core.StringOut;

  groupName: string | core.StringOut;

  memberName: string | core.StringOut;

  namespace?: string | core.StringOut;
}

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

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

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

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

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

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

  constructor(name: string, args?: GroupMembershipArgs) {
    super(name, "aws_quicksight_group_membership", args);
  }

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