{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-memorydb/json-schema/amazon-memorydb-update-user-request-schema.json",
  "title": "UpdateUserRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-memorydb-users-api-openapi.yml#/components/schemas/UpdateUserRequest",
  "type": "object",
  "properties": {
    "UserName": {
      "type": "string",
      "description": "The name of the user"
    },
    "AuthenticationMode": {
      "$ref": "#/$defs/AuthenticationMode"
    },
    "AccessString": {
      "type": "string",
      "description": "Access permissions string used for this user."
    }
  },
  "required": [
    "UserName"
  ],
  "$defs": {
    "AuthenticationMode": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "password",
            "iam"
          ],
          "description": "Indicates whether the user requires a password to authenticate. All newly-created users require a password."
        },
        "Passwords": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The password(s) used for authentication"
        }
      }
    }
  }
}