{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-assistant-response-schema.json",
  "title": "CreateAssistantResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-assistants-api-openapi.yml#/components/schemas/CreateAssistantResponse",
  "type": "object",
  "properties": {
    "assistant": {
      "$ref": "#/$defs/AssistantData"
    }
  },
  "$defs": {
    "AIAgentConfigurationData": {
      "type": "object",
      "properties": {
        "aiAgentId": {
          "type": "string",
          "description": "The ID of the AI Agent to be configured."
        },
        "enabled": {
          "type": "boolean",
          "description": "Indicates whether the AI Agent configured for this AI Agent type is enabled. When this value is omitted or set to true, the configured AI Agent runs; when set to false, the AI Agent ID is retained but no AI Agent runs for the AI Agent type. Setting this value to false is currently supported only for the ANSWER_RECOMMENDATION AI Agent type; other requests to set it to false are rejected with a validation error."
        }
      },
      "required": [
        "aiAgentId"
      ]
    },
    "AssistantCapabilityConfiguration": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of Amazon Q in Connect assistant capability."
        }
      }
    },
    "AssistantData": {
      "type": "object",
      "properties": {
        "assistantId": {
          "type": "string",
          "description": "The identifier of the Amazon Q in Connect assistant."
        },
        "assistantArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant."
        },
        "name": {
          "type": "string",
          "description": "The name."
        },
        "type": {
          "type": "string",
          "description": "The type of assistant."
        },
        "status": {
          "type": "string",
          "description": "The status of the assistant."
        },
        "description": {
          "type": "string",
          "description": "The description."
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "The tags used to organize, track, or control access for this resource."
        },
        "serverSideEncryptionConfiguration": {
          "$ref": "#/$defs/ServerSideEncryptionConfiguration"
        },
        "integrationConfiguration": {
          "$ref": "#/$defs/AssistantIntegrationConfiguration"
        },
        "capabilityConfiguration": {
          "$ref": "#/$defs/AssistantCapabilityConfiguration"
        },
        "aiAgentConfiguration": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/AIAgentConfigurationData"
          },
          "description": "The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that is set on the Amazon Q in Connect Assistant."
        },
        "orchestratorConfigurationList": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/OrchestratorConfigurationEntry"
          },
          "description": "The list of orchestrator configurations for the assistant."
        },
        "lastModifiedTime": {
          "type": "string",
          "description": "The timestamp when the assistant was last modified."
        },
        "lastModifiedRegion": {
          "type": "string",
          "description": "The Amazon Web Services Region where the assistant was last modified."
        },
        "assistantGlobalResiliencyStatus": {
          "type": "string",
          "description": "Whether Amazon Connect Global Resiliency replicates the Connect instance this assistant is associated with, and so whether resources created under this assistant must satisfy the replication group's model parity constraint. Answered from the ACGR side per request rather than stored, so it reflects the customer's replication state now. Absent means \"not applicable or not known\" - never read an absent field as DISABLED. It is absent on the operations that return an assistant which is not yet associated with a Connect instance, because replication cannot be established until it is."
        }
      },
      "required": [
        "assistantId",
        "assistantArn",
        "name",
        "type",
        "status"
      ]
    },
    "AssistantIntegrationConfiguration": {
      "type": "object",
      "properties": {
        "topicIntegrationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the integrated Amazon SNS topic used for streaming chat messages."
        }
      }
    },
    "OrchestratorConfigurationEntry": {
      "type": "object",
      "properties": {
        "aiAgentId": {
          "type": "string",
          "description": "The identifier of the AI Agent in the orchestrator configuration."
        },
        "orchestratorUseCase": {
          "type": "string",
          "description": "The use case for the orchestrator configuration. (for example Connect.SelfService, Connect.AgentAssistance)"
        }
      },
      "required": [
        "orchestratorUseCase"
      ]
    },
    "ReplicaKmsKey": {
      "type": "object",
      "properties": {
        "arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the KMS key in the replica Region."
        }
      },
      "required": [
        "arn"
      ]
    },
    "ServerSideEncryptionConfiguration": {
      "type": "object",
      "properties": {
        "kmsKeyId": {
          "type": "string",
          "description": "The customer managed key used for encryption. For more information about setting up a customer managed key for Amazon Q in Connect, see Enable Amazon Q in Connect for your instance. For information about valid ID values, see Key identifiers (KeyId)."
        },
        "replicaKmsKeys": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ReplicaKmsKey"
          },
          "description": "The list of KMS keys used to encrypt data for this resource's replicas in other Amazon Web Services Regions. Each entry corresponds to a Region where a replica is configured."
        }
      }
    }
  }
}