{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-directory-service/json-schema/amazon-directory-service-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-directory-service-users-api-openapi.yml#/components/schemas/UpdateUserRequest",
  "type": "object",
  "properties": {
    "DirectoryId": {
      "type": "string",
      "description": "The identifier (ID) of the directory that's associated with the user."
    },
    "SAMAccountName": {
      "type": "string",
      "description": "The name of the user."
    },
    "EmailAddress": {
      "type": "string",
      "description": "The email address of the user."
    },
    "GivenName": {
      "type": "string",
      "description": "The first name of the user."
    },
    "Surname": {
      "type": "string",
      "description": "The last name of the user."
    },
    "OtherAttributes": {
      "type": "object",
      "additionalProperties": {
        "$ref": "#/$defs/AttributeValue"
      },
      "description": "An expression that defines one or more attribute names with the data type and value of each attribute. A key is an attribute name, and the value is a list of maps. For a list of supported attributes, see Directory Service Data Attributes. Attribute names are case insensitive."
    },
    "UpdateType": {
      "type": "string",
      "enum": [
        "ADD",
        "REPLACE",
        "REMOVE"
      ],
      "description": "The type of update to be performed. If no value exists for the attribute, use ADD. Otherwise, use REPLACE to change an attribute value or REMOVE to clear the attribute value."
    },
    "ClientToken": {
      "type": "string",
      "description": "A unique and case-sensitive identifier that you provide to make sure the idempotency of the request, so multiple identical calls have the same effect as one single call. A client token is valid for 8 hours after the first request that uses it completes. After 8 hours, any request with the same client token is treated as a new request. If the request succeeds, any future uses of that token will be idempotent for another 8 hours. If you submit a request with the same client token but change one of the other parameters within the 8-hour idempotency window, Directory Service Data returns an Confli"
    }
  },
  "required": [
    "DirectoryId",
    "SAMAccountName"
  ],
  "$defs": {
    "AttributeValue": {
      "type": "object",
      "properties": {
        "S": {
          "type": "string",
          "description": "Indicates that the attribute type value is a string. For example: \"S\": \"S Group\""
        },
        "N": {
          "type": "integer",
          "description": "Indicates that the attribute type value is a number. For example: \"N\": \"16\""
        },
        "BOOL": {
          "type": "boolean",
          "description": "Indicates that the attribute type value is a boolean. For example: \"BOOL\": true"
        },
        "SS": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Indicates that the attribute type value is a string set. For example: \"SS\": [\"sample_service_class/host.sample.com:1234/sample_service_name_1\", \"sample_service_class/host.sample.com:1234/sample_service_name_2\"]"
        }
      },
      "description": "Exactly one member is set."
    }
  }
}