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