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 Summary
-
Method Summary
Modifier 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
-
Builder
public Builder()
-
-
Method Details
-
indexId
Sets 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
-
name
Sets the value ofCfnDataSourceProps.getName()
- Parameters:
name
- The name of the data source. This parameter is required.- Returns:
this
-
type
Sets 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
Configuration
parameter when theType
parameter is set toCUSTOM
.The
Configuration
parameter 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
Configuration
parameter when theType
parameter is set toCUSTOM
.The
Configuration
parameter is required for all other data sources.- Returns:
this
-
description
Sets the value ofCfnDataSourceProps.getDescription()
- Parameters:
description
- A description for the data source connector.- Returns:
this
-
roleArn
Sets 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 theRoleArn
parameter when theType
parameter is set toCUSTOM
.The
RoleArn
parameter is required for all other data sources.- Returns:
this
-
schedule
Sets 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
-
tags
Sets the value ofCfnDataSourceProps.getTags()
- Parameters:
tags
- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSourceProps>
- Returns:
- a new instance of
CfnDataSourceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-