{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-elasticache/json-schema/amazon-elasticache-user-group-schema.json",
  "title": "UserGroup",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-elasticache-user-group-api-openapi.yml#/components/schemas/UserGroup",
  "type": "object",
  "properties": {
    "UserGroupId": {
      "type": "string",
      "description": "The ID of the user group."
    },
    "Status": {
      "type": "string",
      "description": "Indicates user group status. Can be \"creating\", \"active\", \"modifying\", \"deleting\"."
    },
    "Engine": {
      "type": "string",
      "description": "The options are valkey or redis."
    },
    "UserIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The list of user IDs that belong to the user group."
    },
    "MinimumEngineVersion": {
      "type": "string",
      "description": "The minimum engine version required, which is Redis OSS 6.0"
    },
    "PendingChanges": {
      "$ref": "#/$defs/UserGroupPendingChanges"
    },
    "ReplicationGroups": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of replication groups that the user group can access."
    },
    "ServerlessCaches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Indicates which serverless caches the specified user group is associated with. Available for Valkey, Redis OSS and Serverless Memcached only."
    },
    "ARN": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the user group."
    }
  },
  "$defs": {
    "UserGroupPendingChanges": {
      "type": "object",
      "properties": {
        "UserIdsToRemove": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of user IDs to remove."
        },
        "UserIdsToAdd": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The list of user IDs to add."
        }
      }
    }
  }
}