Module Values.CreateDataSourceRequestSource

Connects a knowledge base to a data source. You specify the configuration for the specific data source service in the dataSourceConfiguration field. You can't change the chunkingConfiguration after you create the data source connector.

Sourcetype nonrec t = {
  1. knowledgeBaseId : Id.t;
    (*

    The unique identifier of the knowledge base to which to add the data source.

    *)
  2. clientToken : ClientToken.t option;
    (*

    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.

    *)
  3. name : Name.t;
    (*

    The name of the data source.

    *)
  4. description : Description.t option;
    (*

    A description of the data source.

    *)
  5. dataSourceConfiguration : DataSourceConfiguration.t;
    (*

    The connection configuration for the data source.

    *)
  6. dataDeletionPolicy : DataDeletionPolicy.t option;
    (*

    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.

    *)
  7. serverSideEncryptionConfiguration : ServerSideEncryptionConfiguration.t option;
    (*

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

    *)
  8. vectorIngestionConfiguration : VectorIngestionConfiguration.t option;
    (*

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

    *)
}
Sourceval context_ : string
Sourceval make : ?clientToken:??? -> ?description:??? -> ?dataDeletionPolicy:??? -> ?serverSideEncryptionConfiguration:??? -> ?vectorIngestionConfiguration:??? -> knowledgeBaseId:Id.t -> name:Name.t -> dataSourceConfiguration:DataSourceConfiguration.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of Id.t | `Structure of (string * [> `Enum of string | `String of KmsKeyArn.t | `Structure of (string * [> `Enum of string | `List of [> `String of S3Prefix.t | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Structure of (string * [> `String of LambdaArn.t ]) list ]) list ]) list ] list | `String of S3BucketArn.t | `Structure of (string * [> `Enum of string | `Integer of FixedSizeChunkingConfigurationMaxTokensInteger.t | `List of [> `String of FilterPattern.t | `Structure of (string * [> `Integer of HierarchicalChunkingLevelConfigurationMaxTokensInteger.t ]) list ] list | `String of UserAgent.t | `Structure of (string * [> `Enum of string | `Integer of WebCrawlerLimitsRateLimitInteger.t | `List of [> `Structure of (string * [> `String of Url.t ]) list ] list | `String of S3BucketUri.t | `Structure of (string * [> `List of [> `Structure of (string * [> `List of [> `String of FilterPattern.t ] list | `String of FilteredObjectType.t ]) list ] list ]) list ]) list ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t