Class CfnDataSource.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDataSource>
- Enclosing class:
CfnDataSource
CfnDataSource
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnDataSource.Builder
customDocumentEnrichmentConfiguration
(IResolvable customDocumentEnrichmentConfiguration) Configuration information for altering document metadata and content during the document ingestion process.customDocumentEnrichmentConfiguration
(CfnDataSource.CustomDocumentEnrichmentConfigurationProperty customDocumentEnrichmentConfiguration) Configuration information for altering document metadata and content during the document ingestion process.dataSourceConfiguration
(IResolvable dataSourceConfiguration) Configuration information for an Amazon Kendra data source.dataSourceConfiguration
(CfnDataSource.DataSourceConfigurationProperty dataSourceConfiguration) Configuration information for an Amazon Kendra data source.description
(String description) A description for the data source connector.The identifier of the index you want to use with the data source connector.languageCode
(String languageCode) The code for a language.The name of the data source.The Amazon Resource Name (ARN) of a role with permission to access the data source.Sets the frequency that Amazon Kendra checks the documents in your data source and updates the index.An array of key-value pairs to apply to this resource.The type of the data source.
-
Method Details
-
create
@Stability(Stable) public static CfnDataSource.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDataSource.Builder
.
-
indexId
The identifier of the index you want to use with the data source connector.- Parameters:
indexId
- The identifier of the index you want to use with the data source connector. This parameter is required.- Returns:
this
- See Also:
-
name
The name of the data source.- Parameters:
name
- The name of the data source. This parameter is required.- Returns:
this
- See Also:
-
type
The type of the data source.- Parameters:
type
- The type of the data source. This parameter is required.- Returns:
this
- See Also:
-
customDocumentEnrichmentConfiguration
@Stability(Stable) public CfnDataSource.Builder customDocumentEnrichmentConfiguration(IResolvable customDocumentEnrichmentConfiguration) Configuration information for altering document metadata and content during the document ingestion process.- Parameters:
customDocumentEnrichmentConfiguration
- Configuration information for altering document metadata and content during the document ingestion process. This parameter is required.- Returns:
this
- See Also:
-
customDocumentEnrichmentConfiguration
@Stability(Stable) public CfnDataSource.Builder customDocumentEnrichmentConfiguration(CfnDataSource.CustomDocumentEnrichmentConfigurationProperty customDocumentEnrichmentConfiguration) Configuration information for altering document metadata and content during the document ingestion process.- Parameters:
customDocumentEnrichmentConfiguration
- Configuration information for altering document metadata and content during the document ingestion process. This parameter is required.- Returns:
this
- See Also:
-
dataSourceConfiguration
@Stability(Stable) public CfnDataSource.Builder dataSourceConfiguration(IResolvable 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.- Parameters:
dataSourceConfiguration
- Configuration information for an Amazon Kendra data source. This parameter is required.- Returns:
this
- See Also:
-
dataSourceConfiguration
@Stability(Stable) public CfnDataSource.Builder dataSourceConfiguration(CfnDataSource.DataSourceConfigurationProperty 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.- Parameters:
dataSourceConfiguration
- Configuration information for an Amazon Kendra data source. This parameter is required.- Returns:
this
- See Also:
-
description
A description for the data source connector.- Parameters:
description
- A description for the data source connector. This parameter is required.- Returns:
this
- See Also:
-
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 .
- Parameters:
languageCode
- The code for a language. This parameter is required.- Returns:
this
- See Also:
-
roleArn
The Amazon Resource Name (ARN) of a role with permission to access the data source.You can't specify the
RoleArn
parameter when theType
parameter is set toCUSTOM
.The
RoleArn
parameter is required for all other data sources.- Parameters:
roleArn
- The Amazon Resource Name (ARN) of a role with permission to access the data source. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
schedule
- Sets the frequency that Amazon Kendra checks the documents in your data source and updates the index. This parameter is required.- Returns:
this
- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags
- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDataSource>
- Returns:
- a newly built instance of
CfnDataSource
.
-