Class CfnThesaurus.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnThesaurus.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnThesaurus>
- Enclosing class:
CfnThesaurus
@Stability(Stable)
public static final class CfnThesaurus.Builder
extends Object
implements software.amazon.jsii.Builder<CfnThesaurus>
A fluent builder for
CfnThesaurus.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnThesaurus.Builderdescription(String description) A description for the thesaurus.The identifier of the index for the thesaurus.A name for the thesaurus.An IAM role that gives Amazon Kendra permissions to access the thesaurus file specified in SourceS3Path.sourceS3Path(IResolvable sourceS3Path) Information required to find a specific file in an Amazon S3 bucket.sourceS3Path(CfnThesaurus.S3PathProperty sourceS3Path) Information required to find a specific file in an Amazon S3 bucket.A list of key-value pairs that identify or categorize the thesaurus.
-
Method Details
-
create
@Stability(Stable) public static CfnThesaurus.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
CfnThesaurus.Builder.
-
indexId
The identifier of the index for the thesaurus.- Parameters:
indexId- The identifier of the index for the thesaurus. This parameter is required.- Returns:
this- See Also:
-
name
A name for the thesaurus.- Parameters:
name- A name for the thesaurus. This parameter is required.- Returns:
this- See Also:
-
roleArn
An IAM role that gives Amazon Kendra permissions to access the thesaurus file specified in SourceS3Path.- Parameters:
roleArn- An IAM role that gives Amazon Kendra permissions to access the thesaurus file specified in SourceS3Path. This parameter is required.- Returns:
this- See Also:
-
sourceS3Path
Information required to find a specific file in an Amazon S3 bucket.- Parameters:
sourceS3Path- Information required to find a specific file in an Amazon S3 bucket. This parameter is required.- Returns:
this- See Also:
-
sourceS3Path
@Stability(Stable) public CfnThesaurus.Builder sourceS3Path(CfnThesaurus.S3PathProperty sourceS3Path) Information required to find a specific file in an Amazon S3 bucket.- Parameters:
sourceS3Path- Information required to find a specific file in an Amazon S3 bucket. This parameter is required.- Returns:
this- See Also:
-
description
A description for the thesaurus.- Parameters:
description- A description for the thesaurus. This parameter is required.- Returns:
this- See Also:
-
tags
A list of key-value pairs that identify or categorize the thesaurus.- Parameters:
tags- A list of key-value pairs that identify or categorize the thesaurus. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnThesaurus>- Returns:
- a newly built instance of
CfnThesaurus.
-