AWS::Kendra::DataSourceCreates a data source connector that you want to use with an Amazon Kendra index. You specify a name, data source connector type and description for your data source. You also specify configuration information for the data source connector. > `CreateDataSource` does *not* support connectors which [require a `TemplateConfiguration` object](https://docs.aws.amazon.com/kendra/latest/dg/ds-schemas.html) for connecting to Amazon Kendra .
import { CfnDataSource } from 'aws-cdk-lib/aws-kendra';Or use the module namespace:
import * as kendra from 'aws-cdk-lib/aws-kendra';
// kendra.CfnDataSourceConfiguration passed to the constructor as CfnDataSourceProps.
indexIdRequiredstring | IIndexRefThe identifier of the index you want to use with the data source connector.
nameRequiredstringThe name of the data source.
typeRequiredstringThe type of the data source.
customDocumentEnrichmentConfigurationOptionalIResolvable | CustomDocumentEnrichmentConfigurationPropertyConfiguration information for altering document metadata and content during the document ingestion process.
dataSourceConfigurationOptionalIResolvable | DataSourceConfigurationPropertyConfiguration information for an Amazon Kendra data source. The contents of the configuration depend on the type of data source. You can only specify one type of data source in the configuration. You can't specify the `Configuration` parameter when the `Type` parameter is set to `CUSTOM` . The `Configuration` parameter is required for all other data sources.
descriptionOptionalstringA description for the data source connector.
languageCodeOptionalstringThe code for a language. This shows a supported language for all documents in the data source. English is supported by default. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html) .
roleArnOptionalstring | IRoleRefThe Amazon Resource Name (ARN) of a role with permission to access the data source. You can't specify the `RoleArn` parameter when the `Type` parameter is set to `CUSTOM` . The `RoleArn` parameter is required for all other data sources.
scheduleOptionalstringSets the frequency that Amazon Kendra checks the documents in your data source and updates the index. If you don't set a schedule, Amazon Kendra doesn't periodically update the index.
tagsOptionalCfnTag[]An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-kendraAWS::Kendra::DataSource