Class CfnDataSourceProps.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnDataSourceProps.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnDataSourceProps>
- Enclosing interface:
- CfnDataSourceProps
@Stability(Stable)
public static final class CfnDataSourceProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDataSourceProps>
A builder for 
CfnDataSourceProps- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.customDocumentEnrichmentConfiguration(IResolvable customDocumentEnrichmentConfiguration) Sets the value ofCfnDataSourceProps.getCustomDocumentEnrichmentConfiguration()customDocumentEnrichmentConfiguration(CfnDataSource.CustomDocumentEnrichmentConfigurationProperty customDocumentEnrichmentConfiguration) Sets the value ofCfnDataSourceProps.getCustomDocumentEnrichmentConfiguration()dataSourceConfiguration(IResolvable dataSourceConfiguration) Sets the value ofCfnDataSourceProps.getDataSourceConfiguration()dataSourceConfiguration(CfnDataSource.DataSourceConfigurationProperty dataSourceConfiguration) Sets the value ofCfnDataSourceProps.getDataSourceConfiguration()description(String description) Sets the value ofCfnDataSourceProps.getDescription()Sets the value ofCfnDataSourceProps.getIndexId()Sets the value ofCfnDataSourceProps.getName()Sets the value ofCfnDataSourceProps.getRoleArn()Sets the value ofCfnDataSourceProps.getSchedule()Sets the value ofCfnDataSourceProps.getTags()Sets the value ofCfnDataSourceProps.getType()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
indexIdSets the value ofCfnDataSourceProps.getIndexId()- Parameters:
- indexId- The identifier of the index you want to use with the data source connector. This parameter is required.
- Returns:
- this
 
- 
nameSets the value ofCfnDataSourceProps.getName()- Parameters:
- name- The name of the data source. This parameter is required.
- Returns:
- this
 
- 
typeSets the value ofCfnDataSourceProps.getType()- Parameters:
- type- The type of the data source. This parameter is required.
- Returns:
- this
 
- 
customDocumentEnrichmentConfiguration@Stability(Stable) public CfnDataSourceProps.Builder customDocumentEnrichmentConfiguration(CfnDataSource.CustomDocumentEnrichmentConfigurationProperty customDocumentEnrichmentConfiguration) Sets the value ofCfnDataSourceProps.getCustomDocumentEnrichmentConfiguration()- Parameters:
- customDocumentEnrichmentConfiguration- Configuration information for altering document metadata and content during the document ingestion process.
- Returns:
- this
 
- 
customDocumentEnrichmentConfiguration@Stability(Stable) public CfnDataSourceProps.Builder customDocumentEnrichmentConfiguration(IResolvable customDocumentEnrichmentConfiguration) Sets the value ofCfnDataSourceProps.getCustomDocumentEnrichmentConfiguration()- Parameters:
- customDocumentEnrichmentConfiguration- Configuration information for altering document metadata and content during the document ingestion process.
- Returns:
- this
 
- 
dataSourceConfiguration@Stability(Stable) public CfnDataSourceProps.Builder dataSourceConfiguration(IResolvable dataSourceConfiguration) Sets the value ofCfnDataSourceProps.getDataSourceConfiguration()- Parameters:
- dataSourceConfiguration- Configuration 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 - Configurationparameter when the- Typeparameter is set to- CUSTOM.- The - Configurationparameter is required for all other data sources.
- Returns:
- this
 
- 
dataSourceConfiguration@Stability(Stable) public CfnDataSourceProps.Builder dataSourceConfiguration(CfnDataSource.DataSourceConfigurationProperty dataSourceConfiguration) Sets the value ofCfnDataSourceProps.getDataSourceConfiguration()- Parameters:
- dataSourceConfiguration- Configuration 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 - Configurationparameter when the- Typeparameter is set to- CUSTOM.- The - Configurationparameter is required for all other data sources.
- Returns:
- this
 
- 
descriptionSets the value ofCfnDataSourceProps.getDescription()- Parameters:
- description- A description for the data source connector.
- Returns:
- this
 
- 
roleArnSets the value ofCfnDataSourceProps.getRoleArn()- Parameters:
- roleArn- The Amazon Resource Name (ARN) of a role with permission to access the data source. You can't specify the- RoleArnparameter when the- Typeparameter is set to- CUSTOM.- The - RoleArnparameter is required for all other data sources.
- Returns:
- this
 
- 
scheduleSets the value ofCfnDataSourceProps.getSchedule()- Parameters:
- schedule- Sets 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.
- Returns:
- this
 
- 
tagsSets the value ofCfnDataSourceProps.getTags()- Parameters:
- tags- An array of key-value pairs to apply to this resource. For more information, see Tag .
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnDataSourceProps>
- Returns:
- a new instance of CfnDataSourceProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-