Skip to content

bedrock-agent: DataSourceConfiguration missing customConfiguration member despite CUSTOM type support #3653

@monkut

Description

@monkut

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

Metadata

Metadata

Labels

bedrockbugThis issue is a confirmed bug.closed-for-stalenessp2This is a standard priority issueresponse-requestedWaiting on additional info and feedback.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions