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

export interface UserGroupArgs extends core.ResourceArgs {
  arn?: string | core.StringOut;

  engine: string | core.StringOut;

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

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

  userGroupId: string | core.StringOut;

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

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

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

  @core.attr(String, { computed: true })
  public id!: 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)
  public userGroupId!: string | core.StringOut;

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

  constructor(name: string, args?: UserGroupArgs) {
    super(name, "aws_elasticache_user_group", args);
  }

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