{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-elasticache/json-schema/amazon-elasticache-modify-user-message-schema.json",
  "title": "ModifyUserMessage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-elasticache-user-api-openapi.yml#/components/schemas/ModifyUserMessage",
  "type": "object",
  "properties": {
    "UserId": {
      "type": "string",
      "description": "The ID of the user."
    },
    "AccessString": {
      "type": "string",
      "description": "Access permissions string used for this user."
    },
    "AppendAccessString": {
      "type": "string",
      "description": "Adds additional user permissions to the access string."
    },
    "Passwords": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The passwords belonging to the user. You are allowed up to two."
    },
    "NoPasswordRequired": {
      "type": "boolean",
      "description": "Indicates no password is required for the user."
    },
    "AuthenticationMode": {
      "$ref": "#/$defs/AuthenticationMode"
    },
    "Engine": {
      "type": "string",
      "description": "Modifies the engine listed for a user. The options are valkey or redis."
    }
  },
  "required": [
    "UserId"
  ],
  "$defs": {
    "AuthenticationMode": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "password",
            "no-password-required",
            "iam"
          ],
          "description": "Specifies the authentication type. Possible options are IAM authentication, password and no password."
        },
        "Passwords": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Specifies the passwords to use for authentication if Type is set to password."
        }
      }
    }
  }
}