public static final class CfnDataSource.Builder
extends java.lang.Object
CfnDataSource
.Modifier and Type | Method and Description |
---|---|
CfnDataSource |
build() |
static CfnDataSource.Builder |
create(Construct scope,
java.lang.String id) |
CfnDataSource.Builder |
customDocumentEnrichmentConfiguration(CfnDataSource.CustomDocumentEnrichmentConfigurationProperty customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process.
|
CfnDataSource.Builder |
customDocumentEnrichmentConfiguration(IResolvable customDocumentEnrichmentConfiguration)
Configuration information for altering document metadata and content during the document ingestion process.
|
CfnDataSource.Builder |
dataSourceConfiguration(CfnDataSource.DataSourceConfigurationProperty dataSourceConfiguration)
Configuration information for an Amazon Kendra data source.
|
CfnDataSource.Builder |
dataSourceConfiguration(IResolvable dataSourceConfiguration)
Configuration information for an Amazon Kendra data source.
|
CfnDataSource.Builder |
description(java.lang.String description)
A description of the data source.
|
CfnDataSource.Builder |
indexId(java.lang.String indexId)
The identifier of the index that should be associated with this data source.
|
CfnDataSource.Builder |
name(java.lang.String name)
The name of the data source.
|
CfnDataSource.Builder |
roleArn(java.lang.String roleArn)
The Amazon Resource Name (ARN) of a role with permission to access the data source.
|
CfnDataSource.Builder |
schedule(java.lang.String schedule)
Sets the frequency that Amazon Kendra checks the documents in your data source and updates the index.
|
CfnDataSource.Builder |
tags(java.util.List<? extends CfnTag> tags)
An array of key-value pairs to apply to this resource.
|
CfnDataSource.Builder |
type(java.lang.String type)
The type of the data source.
|
public static CfnDataSource.Builder create(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.CfnDataSource.AccessControlListConfigurationProperty.Builder
.public CfnDataSource.Builder indexId(java.lang.String indexId)
indexId
- The identifier of the index that should be associated with this data source. This parameter is required.this
public CfnDataSource.Builder name(java.lang.String name)
name
- The name of the data source. This parameter is required.this
public CfnDataSource.Builder type(java.lang.String type)
type
- The type of the data source. This parameter is required.this
public CfnDataSource.Builder customDocumentEnrichmentConfiguration(CfnDataSource.CustomDocumentEnrichmentConfigurationProperty customDocumentEnrichmentConfiguration)
customDocumentEnrichmentConfiguration
- Configuration information for altering document metadata and content during the document ingestion process. This parameter is required.this
public CfnDataSource.Builder customDocumentEnrichmentConfiguration(IResolvable customDocumentEnrichmentConfiguration)
customDocumentEnrichmentConfiguration
- Configuration information for altering document metadata and content during the document ingestion process. This parameter is required.this
public CfnDataSource.Builder dataSourceConfiguration(IResolvable dataSourceConfiguration)
The contents of the configuration depend on the type of data source. You can only specify one type of data source in the configuration. Choose from one of the following data sources.
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.
dataSourceConfiguration
- Configuration information for an Amazon Kendra data source. This parameter is required.this
public CfnDataSource.Builder dataSourceConfiguration(CfnDataSource.DataSourceConfigurationProperty dataSourceConfiguration)
The contents of the configuration depend on the type of data source. You can only specify one type of data source in the configuration. Choose from one of the following data sources.
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.
dataSourceConfiguration
- Configuration information for an Amazon Kendra data source. This parameter is required.this
public CfnDataSource.Builder description(java.lang.String description)
description
- A description of the data source. This parameter is required.this
public CfnDataSource.Builder roleArn(java.lang.String roleArn)
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.
roleArn
- The Amazon Resource Name (ARN) of a role with permission to access the data source. This parameter is required.this
public CfnDataSource.Builder schedule(java.lang.String schedule)
If you don't set a schedule, Amazon Kendra doesn't periodically update the index.
schedule
- Sets the frequency that Amazon Kendra checks the documents in your data source and updates the index. This parameter is required.this
public CfnDataSource.Builder tags(java.util.List<? extends CfnTag> tags)
For more information, see Tag .
tags
- An array of key-value pairs to apply to this resource. This parameter is required.this
public CfnDataSource build()