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

export interface UserGroupMembershipArgs extends core.ResourceArgs {
  groups: core.Array<string> | core.ArrayOut<core.StringOut>;

  user: string | core.StringOut;
}

export class UserGroupMembership extends core.Resource<UserGroupMembershipArgs> {
  @core.attr(String, { kind: "array" })
  public groups!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  constructor(name: string, args?: UserGroupMembershipArgs) {
    super(name, "aws_iam_user_group_membership", args);
  }

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