Skip to content

Bedrock Agent  >  Operations  >  update_data_source

update_data_source

Operation

update_data_source async

update_data_source(input: UpdateDataSourceInput, plugins: list[Plugin] | None = None) -> UpdateDataSourceOutput

Updates the configurations for a data source connector.

Warning

You can't change the chunkingConfiguration after you create the data source connector. Specify the existing chunkingConfiguration.

Parameters:

Name Type Description Default
input UpdateDataSourceInput

An instance of UpdateDataSourceInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
UpdateDataSourceOutput

An instance of UpdateDataSourceOutput.

Input

UpdateDataSourceInput dataclass

Dataclass for UpdateDataSourceInput structure.

Attributes

data_deletion_policy class-attribute instance-attribute
data_deletion_policy: DataDeletionPolicy | None = None

The data deletion policy for the data source that you want to update.

data_source_configuration class-attribute instance-attribute
data_source_configuration: DataSourceConfiguration | None = None

The connection configuration for the data source that you want to update.

data_source_id class-attribute instance-attribute
data_source_id: str | None = None

The unique identifier of the data source.

description class-attribute instance-attribute
description: str | None = None

Specifies a new description for the data source.

knowledge_base_id class-attribute instance-attribute
knowledge_base_id: str | None = None

The unique identifier of the knowledge base for the data source.

name class-attribute instance-attribute
name: str | None = None

Specifies a new name for the data source.

server_side_encryption_configuration class-attribute instance-attribute
server_side_encryption_configuration: ServerSideEncryptionConfiguration | None = None

Contains details about server-side encryption of the data source.

vector_ingestion_configuration class-attribute instance-attribute
vector_ingestion_configuration: VectorIngestionConfiguration | None = None

Contains details about how to ingest the documents in the data source.

Output

UpdateDataSourceOutput dataclass

Dataclass for UpdateDataSourceOutput structure.

Attributes

data_source instance-attribute
data_source: DataSource

Contains details about the data source.