{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-user-request-schema.json",
  "title": "CreateUserRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-users-api-openapi.yml#/components/schemas/CreateUserRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The identifier of the application for which the user mapping will be created."
    },
    "userId": {
      "type": "string",
      "description": "The user emails attached to a user mapping."
    },
    "userAliases": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserAlias"
      },
      "description": "The list of user aliases in the mapping."
    },
    "clientToken": {
      "type": "string",
      "description": "A token that you provide to identify the request to create your Amazon Q Business user mapping."
    }
  },
  "required": [
    "applicationId",
    "userId"
  ],
  "$defs": {
    "UserAlias": {
      "type": "object",
      "properties": {
        "indexId": {
          "type": "string",
          "description": "The identifier of the index that the user aliases are associated with."
        },
        "dataSourceId": {
          "type": "string",
          "description": "The identifier of the data source that the user aliases are associated with."
        },
        "userId": {
          "type": "string",
          "description": "The identifier of the user id associated with the user aliases."
        }
      },
      "required": [
        "userId"
      ]
    }
  }
}