Class CfnIndexProps.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnIndexProps.Builder
- All Implemented Interfaces:
- software.amazon.jsii.Builder<CfnIndexProps>
- Enclosing interface:
- CfnIndexProps
@Stability(Stable)
public static final class CfnIndexProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndexProps>
A builder for 
CfnIndexProps- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the configured instance.capacityUnits(IResolvable capacityUnits) Sets the value ofCfnIndexProps.getCapacityUnits()capacityUnits(CfnIndex.CapacityUnitsConfigurationProperty capacityUnits) Sets the value ofCfnIndexProps.getCapacityUnits()description(String description) Sets the value ofCfnIndexProps.getDescription()documentMetadataConfigurations(List<? extends Object> documentMetadataConfigurations) Sets the value ofCfnIndexProps.getDocumentMetadataConfigurations()documentMetadataConfigurations(IResolvable documentMetadataConfigurations) Sets the value ofCfnIndexProps.getDocumentMetadataConfigurations()Sets the value ofCfnIndexProps.getEdition()Sets the value ofCfnIndexProps.getName()Sets the value ofCfnIndexProps.getRoleArn()serverSideEncryptionConfiguration(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnIndexProps.getServerSideEncryptionConfiguration()serverSideEncryptionConfiguration(CfnIndex.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnIndexProps.getServerSideEncryptionConfiguration()Sets the value ofCfnIndexProps.getTags()userContextPolicy(String userContextPolicy) Sets the value ofCfnIndexProps.getUserContextPolicy()userTokenConfigurations(List<? extends Object> userTokenConfigurations) Sets the value ofCfnIndexProps.getUserTokenConfigurations()userTokenConfigurations(IResolvable userTokenConfigurations) Sets the value ofCfnIndexProps.getUserTokenConfigurations()
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
editionSets the value ofCfnIndexProps.getEdition()- Parameters:
- edition- Indicates whether the index is a Enterprise Edition index, a Developer Edition index, or a GenAI Enterprise Edition index. This parameter is required.
- Returns:
- this
 
- 
nameSets the value ofCfnIndexProps.getName()- Parameters:
- name- The name of the index. This parameter is required.
- Returns:
- this
 
- 
roleArnSets the value ofCfnIndexProps.getRoleArn()- Parameters:
- roleArn- An IAM role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This parameter is required. This is also the role used when you use the BatchPutDocument operation to index documents from an Amazon S3 bucket.
- Returns:
- this
 
- 
capacityUnitsSets the value ofCfnIndexProps.getCapacityUnits()- Parameters:
- capacityUnits- Specifies additional capacity units configured for your Enterprise Edition index. You can add and remove capacity units to fit your usage requirements.
- Returns:
- this
 
- 
capacityUnits@Stability(Stable) public CfnIndexProps.Builder capacityUnits(CfnIndex.CapacityUnitsConfigurationProperty capacityUnits) Sets the value ofCfnIndexProps.getCapacityUnits()- Parameters:
- capacityUnits- Specifies additional capacity units configured for your Enterprise Edition index. You can add and remove capacity units to fit your usage requirements.
- Returns:
- this
 
- 
descriptionSets the value ofCfnIndexProps.getDescription()- Parameters:
- description- A description for the index.
- Returns:
- this
 
- 
documentMetadataConfigurations@Stability(Stable) public CfnIndexProps.Builder documentMetadataConfigurations(IResolvable documentMetadataConfigurations) Sets the value ofCfnIndexProps.getDocumentMetadataConfigurations()- Parameters:
- documentMetadataConfigurations- Specifies the properties of an index field. You can add either a custom or a built-in field. You can add and remove built-in fields at any time. When a built-in field is removed it's configuration reverts to the default for the field. Custom fields can't be removed from an index after they are added.
- Returns:
- this
 
- 
documentMetadataConfigurations@Stability(Stable) public CfnIndexProps.Builder documentMetadataConfigurations(List<? extends Object> documentMetadataConfigurations) Sets the value ofCfnIndexProps.getDocumentMetadataConfigurations()- Parameters:
- documentMetadataConfigurations- Specifies the properties of an index field. You can add either a custom or a built-in field. You can add and remove built-in fields at any time. When a built-in field is removed it's configuration reverts to the default for the field. Custom fields can't be removed from an index after they are added.
- Returns:
- this
 
- 
serverSideEncryptionConfiguration@Stability(Stable) public CfnIndexProps.Builder serverSideEncryptionConfiguration(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnIndexProps.getServerSideEncryptionConfiguration()- Parameters:
- serverSideEncryptionConfiguration- The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs.
- Returns:
- this
 
- 
serverSideEncryptionConfiguration@Stability(Stable) public CfnIndexProps.Builder serverSideEncryptionConfiguration(CfnIndex.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnIndexProps.getServerSideEncryptionConfiguration()- Parameters:
- serverSideEncryptionConfiguration- The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra. Amazon Kendra doesn't support asymmetric CMKs.
- Returns:
- this
 
- 
tagsSets the value ofCfnIndexProps.getTags()- Parameters:
- tags- An array of key-value pairs to apply to this resource. For more information, see Tag .
- Returns:
- this
 
- 
userContextPolicySets the value ofCfnIndexProps.getUserContextPolicy()- Parameters:
- userContextPolicy- The user context policy. ATTRIBUTE_FILTER- All indexed content is searchable and displayable for all users. If you want to filter search results on user context, you can use the attribute filters of _user_idand_group_idsor you can provide user and group information inUserContext.
 - USER_TOKEN - Enables token-based user access control to filter search results on user context. All documents with no access control and all documents accessible to the user will be searchable and displayable.
 
- All indexed content is searchable and displayable for all users. If you want to filter search results on user context, you can use the attribute filters of 
- Returns:
- this
 
- 
userTokenConfigurations@Stability(Stable) public CfnIndexProps.Builder userTokenConfigurations(IResolvable userTokenConfigurations) Sets the value ofCfnIndexProps.getUserTokenConfigurations()- Parameters:
- userTokenConfigurations- Defines the type of user token used for the index.
- Returns:
- this
 
- 
userTokenConfigurations@Stability(Stable) public CfnIndexProps.Builder userTokenConfigurations(List<? extends Object> userTokenConfigurations) Sets the value ofCfnIndexProps.getUserTokenConfigurations()- Parameters:
- userTokenConfigurations- Defines the type of user token used for the index.
- Returns:
- this
 
- 
buildBuilds the configured instance.- Specified by:
- buildin interface- software.amazon.jsii.Builder<CfnIndexProps>
- Returns:
- a new instance of CfnIndexProps
- Throws:
- NullPointerException- if any required attribute was not provided
 
 
-