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

export interface UserGroupAssociationArgs extends core.ResourceArgs {
  userGroupId: string | core.StringOut;

  userId: string | core.StringOut;
}

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

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

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

  constructor(name: string, args?: UserGroupAssociationArgs) {
    super(name, "aws_elasticache_user_group_association", args);
  }

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