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

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

  name: string | core.StringOut;

  users: core.Array<string> | core.ArrayOut<core.StringOut>;
}

export class GroupMembership extends core.Resource<GroupMembershipArgs> {
  @core.attr(String)
  public group!: string | core.StringOut;

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

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

  @core.attr(String, { kind: "array" })
  public users!: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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