Amazon Q · Schema

CreateDataSourceRequest

Artificial IntelligenceAssistantAmazon Web ServicesEnterpriseGenerative AI

Properties

Name Type Description
applicationId string The identifier of the Amazon Q Business application the data source will be attached to.
indexId string The identifier of the index that you want to use with the data source connector.
displayName string A name for the data source connector.
configuration object Configuration information to connect your data source repository to Amazon Q Business. Use this parameter to provide a JSON schema with configuration information specific to your data source connector
vpcConfiguration object
description string A description for the data source connector.
tags array A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode l
syncSchedule string Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. If you don't set a schedule, Amazon Q Business won't periodically update the index
roleArn string The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. This field is required for all connector types except custom connectors, where it is opt
clientToken string A token you provide to identify a request to create a data source connector. Multiple calls to the CreateDataSource API with the same client token will create only one data source connector.
documentEnrichmentConfiguration object
mediaExtractionConfiguration object
View JSON Schema on GitHub

JSON Schema

amazon-q-create-data-source-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-q/json-schema/amazon-q-create-data-source-request-schema.json",
  "title": "CreateDataSourceRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-q-data-sources-api-openapi.yml#/components/schemas/CreateDataSourceRequest",
  "type": "object",
  "properties": {
    "applicationId": {
      "type": "string",
      "description": "The identifier of the Amazon Q Business application the data source will be attached to."
    },
    "indexId": {
      "type": "string",
      "description": "The identifier of the index that you want to use with the data source connector."
    },
    "displayName": {
      "type": "string",
      "description": "A name for the data source connector."
    },
    "configuration": {
      "type": "object",
      "description": "Configuration information to connect your data source repository to Amazon Q Business. Use this parameter to provide a JSON schema with configuration information specific to your data source connector. Each data source has a JSON schema provided by Amazon Q Business that you must use. For example, the Amazon S3 and Web Crawler connectors require the following JSON schemas: Amazon S3 JSON schema Web Crawler JSON schema You can find configuration templates for your specific data source using the following steps: Navigate to the Supported connectors page in the Amazon Q Business User Guide, and s"
    },
    "vpcConfiguration": {
      "$ref": "#/$defs/DataSourceVpcConfiguration"
    },
    "description": {
      "type": "string",
      "description": "A description for the data source connector."
    },
    "tags": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "description": "A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @."
    },
    "syncSchedule": {
      "type": "string",
      "description": "Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. If you don't set a schedule, Amazon Q Business won't periodically update the index. Specify a cron- format schedule string or an empty string to indicate that the index is updated on demand. You can't specify the Schedule parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception."
    },
    "roleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. This field is required for all connector types except custom connectors, where it is optional."
    },
    "clientToken": {
      "type": "string",
      "description": "A token you provide to identify a request to create a data source connector. Multiple calls to the CreateDataSource API with the same client token will create only one data source connector."
    },
    "documentEnrichmentConfiguration": {
      "$ref": "#/$defs/DocumentEnrichmentConfiguration"
    },
    "mediaExtractionConfiguration": {
      "$ref": "#/$defs/MediaExtractionConfiguration"
    }
  },
  "required": [
    "applicationId",
    "indexId",
    "displayName",
    "configuration"
  ],
  "$defs": {
    "AudioExtractionConfiguration": {
      "type": "object",
      "properties": {
        "audioExtractionStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The status of audio extraction (ENABLED or DISABLED) for processing audio content from files."
        }
      },
      "required": [
        "audioExtractionStatus"
      ]
    },
    "DataSourceVpcConfiguration": {
      "type": "object",
      "properties": {
        "subnetIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of identifiers for subnets within your Amazon VPC. The subnets should be able to connect to each other in the VPC, and they should have outgoing access to the Internet through a NAT device."
        },
        "securityGroupIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of identifiers of security groups within your Amazon VPC. The security groups should enable Amazon Q Business to connect to the data source."
        }
      },
      "required": [
        "subnetIds",
        "securityGroupIds"
      ]
    },
    "DocumentAttributeCondition": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The identifier of the document attribute used for the condition. For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Q Business currently doesn't support _document_body as an attribute key used for the condition."
        },
        "operator": {
          "type": "string",
          "enum": [
            "GREATER_THAN",
            "GREATER_THAN_OR_EQUALS",
            "LESS_THAN",
            "LESS_THAN_OR_EQUALS",
            "EQUALS",
            "NOT_EQUALS",
            "CONTAINS",
            "NOT_CONTAINS",
            "EXISTS",
            "NOT_EXISTS",
            "BEGINS_WITH"
          ],
          "description": "The identifier of the document attribute used for the condition. For example, 'Source_URI' could be an identifier for the attribute or metadata field that contains source URIs associated with the documents. Amazon Q Business currently does not support _document_body as an attribute key used for the condition."
        },
        "value": {
          "$ref": "#/$defs/DocumentAttributeValue"
        }
      },
      "required": [
        "key",
        "operator"
      ]
    },
    "DocumentAttributeTarget": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The identifier of the target document attribute or metadata field. For example, 'Department' could be an identifier for the target attribute or metadata field that includes the department names associated with the documents."
        },
        "value": {
          "$ref": "#/$defs/DocumentAttributeValue"
        },
        "attributeValueOperator": {
          "type": "string",
          "enum": [
            "DELETE"
          ],
          "description": "TRUE to delete the existing target value for your specified target attribute key. You cannot create a target value and set this to TRUE."
        }
      },
      "required": [
        "key"
      ]
    },
    "DocumentAttributeValue": {
      "type": "object",
      "properties": {
        "stringValue": {
          "type": "string",
          "description": "A string."
        },
        "stringListValue": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "A list of strings."
        },
        "longValue": {
          "type": "integer",
          "description": "A long integer value."
        },
        "dateValue": {
          "type": "string",
          "format": "date-time",
          "description": "A date expressed as an ISO 8601 string. It's important for the time zone to be included in the ISO 8601 date-time format. For example, 2012-03-25T12:30:10+01:00 is the ISO 8601 date-time format for March 25th 2012 at 12:30PM (plus 10 seconds) in Central European Time."
        }
      },
      "description": "Exactly one member is set."
    },
    "DocumentEnrichmentConfiguration": {
      "type": "object",
      "properties": {
        "inlineConfigurations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/InlineDocumentEnrichmentConfiguration"
          },
          "description": "Configuration information to alter document attributes or metadata fields and content when ingesting documents into Amazon Q Business."
        },
        "preExtractionHookConfiguration": {
          "$ref": "#/$defs/HookConfiguration"
        },
        "postExtractionHookConfiguration": {
          "$ref": "#/$defs/HookConfiguration"
        }
      }
    },
    "HookConfiguration": {
      "type": "object",
      "properties": {
        "invocationCondition": {
          "$ref": "#/$defs/DocumentAttributeCondition"
        },
        "lambdaArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the Lambda function during ingestion. For more information, see Using Lambda functions for Amazon Q Business document enrichment."
        },
        "s3BucketName": {
          "type": "string",
          "description": "Stores the original, raw documents or the structured, parsed documents before and after altering them. For more information, see Data contracts for Lambda functions."
        },
        "roleArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of a role with permission to run PreExtractionHookConfiguration and PostExtractionHookConfiguration for altering document metadata and content during the document ingestion process."
        }
      }
    },
    "ImageExtractionConfiguration": {
      "type": "object",
      "properties": {
        "imageExtractionStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "Specify whether to extract semantic meaning from images and visuals from documents."
        }
      },
      "required": [
        "imageExtractionStatus"
      ]
    },
    "InlineDocumentEnrichmentConfiguration": {
      "type": "object",
      "properties": {
        "condition": {
          "$ref": "#/$defs/DocumentAttributeCondition"
        },
        "target": {
          "$ref": "#/$defs/DocumentAttributeTarget"
        },
        "documentContentOperator": {
          "type": "string",
          "enum": [
            "DELETE"
          ],
          "description": "TRUE to delete content if the condition used for the target attribute is met."
        }
      }
    },
    "MediaExtractionConfiguration": {
      "type": "object",
      "properties": {
        "imageExtractionConfiguration": {
          "$ref": "#/$defs/ImageExtractionConfiguration"
        },
        "audioExtractionConfiguration": {
          "$ref": "#/$defs/AudioExtractionConfiguration"
        },
        "videoExtractionConfiguration": {
          "$ref": "#/$defs/VideoExtractionConfiguration"
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The key for the tag. Keys are not case sensitive and must be unique for the Amazon Q Business application or data source."
        },
        "value": {
          "type": "string",
          "description": "The value associated with the tag. The value may be an empty string but it can't be null."
        }
      },
      "required": [
        "key",
        "value"
      ]
    },
    "VideoExtractionConfiguration": {
      "type": "object",
      "properties": {
        "videoExtractionStatus": {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ],
          "description": "The status of video extraction (ENABLED or DISABLED) for processing video content from files."
        }
      },
      "required": [
        "videoExtractionStatus"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-q-create-data-source-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.