Description
The bedrock-agent service model in botocore 1.42.70 includes CUSTOM in the DataSourceType enum but the DataSourceConfiguration shape does not include the corresponding customConfiguration member.
This makes it impossible to create a CUSTOM data source via create_data_source(), which is required for the IngestKnowledgeBaseDocuments API.
Steps to reproduce
import boto3
client = boto3.client('bedrock-agent', region_name='ap-northeast-1')
# This fails with ParamValidationError
client.create_data_source(
knowledgeBaseId='QS564RGT8E',
name='test-custom',
dataSourceConfiguration={
'type': 'CUSTOM',
'customConfiguration': {
'sourceConfiguration': {
'customSourceType': 'IN_LINE'
}
}
}
)
Error
botocore.exceptions.ParamValidationError: Parameter validation failed:
Unknown parameter in dataSourceConfiguration: "customConfiguration",
must be one of: confluenceConfiguration, s3Configuration, salesforceConfiguration,
sharePointConfiguration, type, webConfiguration
Service model inspection
import botocore
loader = botocore.loaders.Loader()
api = loader.load_service_model('bedrock-agent', 'service-2')
# DataSourceType includes CUSTOM
print(api['shapes']['DataSourceType']['enum'])
# ['S3', 'WEB', 'CONFLUENCE', 'SALESFORCE', 'SHAREPOINT', 'CUSTOM', 'REDSHIFT_METADATA']
# But DataSourceConfiguration has no customConfiguration member
print(list(api['shapes']['DataSourceConfiguration']['members'].keys()))
# ['confluenceConfiguration', 's3Configuration', 'salesforceConfiguration',
# 'sharePointConfiguration', 'type', 'webConfiguration']
Expected behavior
DataSourceConfiguration should include a customConfiguration member, consistent with:
Related APIs affected
Without CUSTOM data source support, the following APIs are also unusable:
IngestKnowledgeBaseDocuments
DeleteKnowledgeBaseDocuments
Reference: https://aws.amazon.com/blogs/machine-learning/build-a-just-in-time-knowledge-base-with-amazon-bedrock/
Environment
- botocore 1.42.70 (latest as of 2026-03-18)
- boto3 1.42.70
- Python 3.14.2
- Also verified on Lambda runtime python3.14 (botocore bundled in
/var/lang/lib/python3.14/site-packages/)
- Region: ap-northeast-1
Description
The
bedrock-agentservice model in botocore 1.42.70 includesCUSTOMin theDataSourceTypeenum but theDataSourceConfigurationshape does not include the correspondingcustomConfigurationmember.This makes it impossible to create a CUSTOM data source via
create_data_source(), which is required for theIngestKnowledgeBaseDocumentsAPI.Steps to reproduce
Error
Service model inspection
Expected behavior
DataSourceConfigurationshould include acustomConfigurationmember, consistent with:CUSTOMvalue inDataSourceTypeenumIngestKnowledgeBaseDocumentsAPI which requires a CUSTOM data sourceRelated APIs affected
Without CUSTOM data source support, the following APIs are also unusable:
IngestKnowledgeBaseDocumentsDeleteKnowledgeBaseDocumentsReference: https://aws.amazon.com/blogs/machine-learning/build-a-just-in-time-knowledge-base-with-amazon-bedrock/
Environment
/var/lang/lib/python3.14/site-packages/)