Module Values.CreateDataSourceRequestSource

Creates a data source connector for an Amazon Q Business application. CreateDataSource is a synchronous operation. The operation returns 200 if the data source was successfully created. Otherwise, an exception is raised.

Sourcetype nonrec t = {
  1. applicationId : ApplicationId.t;
    (*

    The identifier of the Amazon Q Business application the data source will be attached to.

    *)
  2. indexId : IndexId.t;
    (*

    The identifier of the index that you want to use with the data source connector.

    *)
  3. displayName : DataSourceName.t;
    (*

    A name for the data source connector.

    *)
  4. configuration : DataSourceConfiguration.t;
    (*

    Configuration information to connect your data source repository to Amazon Q Business. Use this parameter to provide a JSON schema with configuration information specific to your data source connector. Each data source has a JSON schema provided by Amazon Q Business that you must use. For example, the Amazon S3 and Web Crawler connectors require the following JSON schemas: Amazon S3 JSON schema Web Crawler JSON schema You can find configuration templates for your specific data source using the following steps: Navigate to the Supported connectors page in the Amazon Q Business User Guide, and select the data source of your choice. Then, from your specific data source connector page, select Using the API. You will find the JSON schema for your data source, including parameter descriptions, in this section.

    *)
  5. vpcConfiguration : DataSourceVpcConfiguration.t option;
    (*

    Configuration information for an Amazon VPC (Virtual Private Cloud) to connect to your data source. For more information, see Using Amazon VPC with Amazon Q Business connectors.

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

    A description for the data source connector.

    *)
  7. tags : Tags.t option;
    (*

    A list of key-value pairs that identify or categorize the data source connector. You can also use tags to help control access to the data source connector. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + - @.

    *)
  8. syncSchedule : SyncSchedule.t option;
    (*

    Sets the frequency for Amazon Q Business to check the documents in your data source repository and update your index. If you don't set a schedule, Amazon Q Business won't periodically update the index. Specify a cron- format schedule string or an empty string to indicate that the index is updated on demand. You can't specify the Schedule parameter when the Type parameter is set to CUSTOM. If you do, you receive a ValidationException exception.

    *)
  9. roleArn : RoleArn.t option;
    (*

    The Amazon Resource Name (ARN) of an IAM role with permission to access the data source and required resources. This field is required for all connector types except custom connectors, where it is optional.

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

    A token you provide to identify a request to create a data source connector. Multiple calls to the CreateDataSource API with the same client token will create only one data source connector.

    *)
  11. documentEnrichmentConfiguration : DocumentEnrichmentConfiguration.t option;
  12. mediaExtractionConfiguration : MediaExtractionConfiguration.t option;
    (*

    The configuration for extracting information from media in documents during ingestion.

    *)
}
Sourceval context_ : string
Sourceval make : ?vpcConfiguration:??? -> ?description:??? -> ?tags:??? -> ?syncSchedule:??? -> ?roleArn:??? -> ?clientToken:??? -> ?documentEnrichmentConfiguration:??? -> ?mediaExtractionConfiguration:??? -> applicationId:ApplicationId.t -> indexId:IndexId.t -> displayName:DataSourceName.t -> configuration:DataSourceConfiguration.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of TagKey.t ]) list ] list | `String of ApplicationId.t | `Structure of (string * [> `List of [> `String of SubnetId.t | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Enum of string | `String of DocumentAttributeKey.t | `Structure of (string * [> `List of [> `String of String_.t ] list | `Long of Long.t | `String of DocumentAttributeValueStringValueString.t | `Timestamp of Timestamp.t ]) list ]) list ]) list ] list | `Structure of (string * [> `Enum of string | `String of LambdaArn.t | `Structure of (string * [> `Enum of string | `String of DocumentAttributeKey.t | `Structure of (string * [> `List of [> `String of String_.t ] list | `Long of Long.t | `String of DocumentAttributeValueStringValueString.t | `Timestamp of Timestamp.t ]) 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