Class CfnIndexMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.kendra.CfnIndexMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndexMixinProps>
- Enclosing interface:
CfnIndexMixinProps
@Stability(Stable)
public static final class CfnIndexMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndexMixinProps>
A builder for
CfnIndexMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnIndexMixinProps.getCapacityUnits()capacityUnits(IResolvable capacityUnits) Sets the value ofCfnIndexMixinProps.getCapacityUnits()description(String description) Sets the value ofCfnIndexMixinProps.getDescription()documentMetadataConfigurations(List<? extends Object> documentMetadataConfigurations) Sets the value ofCfnIndexMixinProps.getDocumentMetadataConfigurations()documentMetadataConfigurations(IResolvable documentMetadataConfigurations) Sets the value ofCfnIndexMixinProps.getDocumentMetadataConfigurations()Sets the value ofCfnIndexMixinProps.getEdition()Sets the value ofCfnIndexMixinProps.getName()Sets the value ofCfnIndexMixinProps.getRoleArn()Sets the value ofCfnIndexMixinProps.getRoleArn()serverSideEncryptionConfiguration(CfnIndexPropsMixin.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnIndexMixinProps.getServerSideEncryptionConfiguration()serverSideEncryptionConfiguration(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnIndexMixinProps.getServerSideEncryptionConfiguration()Sets the value ofCfnIndexMixinProps.getTags()userContextPolicy(String userContextPolicy) Sets the value ofCfnIndexMixinProps.getUserContextPolicy()userTokenConfigurations(List<? extends Object> userTokenConfigurations) Sets the value ofCfnIndexMixinProps.getUserTokenConfigurations()userTokenConfigurations(IResolvable userTokenConfigurations) Sets the value ofCfnIndexMixinProps.getUserTokenConfigurations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
capacityUnits
Sets the value ofCfnIndexMixinProps.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 CfnIndexMixinProps.Builder capacityUnits(CfnIndexPropsMixin.CapacityUnitsConfigurationProperty capacityUnits) Sets the value ofCfnIndexMixinProps.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
-
description
Sets the value ofCfnIndexMixinProps.getDescription()- Parameters:
description- A description for the index.- Returns:
this
-
documentMetadataConfigurations
@Stability(Stable) public CfnIndexMixinProps.Builder documentMetadataConfigurations(IResolvable documentMetadataConfigurations) Sets the value ofCfnIndexMixinProps.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 CfnIndexMixinProps.Builder documentMetadataConfigurations(List<? extends Object> documentMetadataConfigurations) Sets the value ofCfnIndexMixinProps.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
-
edition
Sets the value ofCfnIndexMixinProps.getEdition()- Parameters:
edition- Indicates whether the index is a Enterprise Edition index, a Developer Edition index, or a GenAI Enterprise Edition index.- Returns:
this
-
name
Sets the value ofCfnIndexMixinProps.getName()- Parameters:
name- The name of the index.- Returns:
this
-
roleArn
Sets the value ofCfnIndexMixinProps.getRoleArn()- Parameters:
roleArn- An IAM role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role used when you use the BatchPutDocument operation to index documents from an Amazon S3 bucket.- Returns:
this
-
roleArn
Sets the value ofCfnIndexMixinProps.getRoleArn()- Parameters:
roleArn- An IAM role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. This is also the role used when you use the BatchPutDocument operation to index documents from an Amazon S3 bucket.- Returns:
this
-
serverSideEncryptionConfiguration
@Stability(Stable) public CfnIndexMixinProps.Builder serverSideEncryptionConfiguration(IResolvable serverSideEncryptionConfiguration) Sets the value ofCfnIndexMixinProps.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 CfnIndexMixinProps.Builder serverSideEncryptionConfiguration(CfnIndexPropsMixin.ServerSideEncryptionConfigurationProperty serverSideEncryptionConfiguration) Sets the value ofCfnIndexMixinProps.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
-
tags
Sets the value ofCfnIndexMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
userContextPolicy
Sets the value ofCfnIndexMixinProps.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 CfnIndexMixinProps.Builder userTokenConfigurations(IResolvable userTokenConfigurations) Sets the value ofCfnIndexMixinProps.getUserTokenConfigurations()- Parameters:
userTokenConfigurations- Defines the type of user token used for the index.- Returns:
this
-
userTokenConfigurations
@Stability(Stable) public CfnIndexMixinProps.Builder userTokenConfigurations(List<? extends Object> userTokenConfigurations) Sets the value ofCfnIndexMixinProps.getUserTokenConfigurations()- Parameters:
userTokenConfigurations- Defines the type of user token used for the index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIndexMixinProps>- Returns:
- a new instance of
CfnIndexMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-