Class CfnThesaurusProps.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnThesaurusProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThesaurusProps>
- Enclosing interface:
CfnThesaurusProps
@Stability(Stable)
public static final class CfnThesaurusProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThesaurusProps>
A builder for
CfnThesaurusProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnThesaurusProps.getDescription()Sets the value ofCfnThesaurusProps.getIndexId()Sets the value ofCfnThesaurusProps.getName()Sets the value ofCfnThesaurusProps.getRoleArn()sourceS3Path(IResolvable sourceS3Path) Sets the value ofCfnThesaurusProps.getSourceS3Path()sourceS3Path(CfnThesaurus.S3PathProperty sourceS3Path) Sets the value ofCfnThesaurusProps.getSourceS3Path()Sets the value ofCfnThesaurusProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indexId
Sets the value ofCfnThesaurusProps.getIndexId()- Parameters:
indexId- The identifier of the index for the thesaurus. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnThesaurusProps.getName()- Parameters:
name- A name for the thesaurus. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnThesaurusProps.getRoleArn()- Parameters:
roleArn- An IAM role that gives Amazon Kendra permissions to access the thesaurus file specified in SourceS3Path. This parameter is required.- Returns:
this
-
sourceS3Path
Sets the value ofCfnThesaurusProps.getSourceS3Path()- Parameters:
sourceS3Path- Information required to find a specific file in an Amazon S3 bucket. This parameter is required.- Returns:
this
-
sourceS3Path
@Stability(Stable) public CfnThesaurusProps.Builder sourceS3Path(CfnThesaurus.S3PathProperty sourceS3Path) Sets the value ofCfnThesaurusProps.getSourceS3Path()- Parameters:
sourceS3Path- Information required to find a specific file in an Amazon S3 bucket. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnThesaurusProps.getDescription()- Parameters:
description- A description for the thesaurus.- Returns:
this
-
tags
Sets the value ofCfnThesaurusProps.getTags()- Parameters:
tags- A list of key-value pairs that identify or categorize the thesaurus.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnThesaurusProps>- Returns:
- a new instance of
CfnThesaurusProps - Throws:
NullPointerException- if any required attribute was not provided
-