CreateDataSourceRequest
¶
Source code in docs_src/capo_bedrock_agent/types/create_data_source_request.py
client_token
instance-attribute
¶
client_token: NotRequired[ClientToken]
A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
data_deletion_policy
instance-attribute
¶
data_deletion_policy: NotRequired[DataDeletionPolicy]
The data deletion policy for the data source.
You can set the data deletion policy to:
-
DELETE: Deletes all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted, only the data. This flag is ignored if an Amazon Web Services account is deleted.
-
RETAIN: Retains all data from your data source that’s converted into vector embeddings upon deletion of a knowledge base or data source resource. Note that the vector store itself is not deleted if you delete a knowledge base or data source resource.
For managed knowledge bases, the only supported option is DELETE, which is also the default.
data_source_configuration
instance-attribute
¶
data_source_configuration: DataSourceConfiguration
The connection configuration for the data source.
description
instance-attribute
¶
description: NotRequired[Description]
A description of the data source.
knowledge_base_id
instance-attribute
¶
knowledge_base_id: Id
The unique identifier of the knowledge base to which to add the data source.
server_side_encryption_configuration
instance-attribute
¶
server_side_encryption_configuration: NotRequired[ServerSideEncryptionConfiguration]
Contains details about the server-side encryption for the data source.
vector_ingestion_configuration
instance-attribute
¶
vector_ingestion_configuration: NotRequired[VectorIngestionConfiguration]
Contains details about how to ingest the documents in the data source.