Class CfnIndex
- All Implemented Interfaces:
IConstruct,IDependable,IInspectable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
AWS::Kendra::Index.
Creates an Amazon Kendra index
Once the index is active you can add documents to your index using the BatchPutDocument operation or using one of the supported data sources.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kendra.*;
CfnIndex cfnIndex = CfnIndex.Builder.create(this, "MyCfnIndex")
.edition("edition")
.name("name")
.roleArn("roleArn")
// the properties below are optional
.capacityUnits(CapacityUnitsConfigurationProperty.builder()
.queryCapacityUnits(123)
.storageCapacityUnits(123)
.build())
.description("description")
.documentMetadataConfigurations(List.of(DocumentMetadataConfigurationProperty.builder()
.name("name")
.type("type")
// the properties below are optional
.relevance(RelevanceProperty.builder()
.duration("duration")
.freshness(false)
.importance(123)
.rankOrder("rankOrder")
.valueImportanceItems(List.of(ValueImportanceItemProperty.builder()
.key("key")
.value(123)
.build()))
.build())
.search(SearchProperty.builder()
.displayable(false)
.facetable(false)
.searchable(false)
.sortable(false)
.build())
.build()))
.serverSideEncryptionConfiguration(ServerSideEncryptionConfigurationProperty.builder()
.kmsKeyId("kmsKeyId")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.userContextPolicy("userContextPolicy")
.userTokenConfigurations(List.of(UserTokenConfigurationProperty.builder()
.jsonTokenTypeConfiguration(JsonTokenTypeConfigurationProperty.builder()
.groupAttributeField("groupAttributeField")
.userNameAttributeField("userNameAttributeField")
.build())
.jwtTokenTypeConfiguration(JwtTokenTypeConfigurationProperty.builder()
.keyLocation("keyLocation")
// the properties below are optional
.claimRegex("claimRegex")
.groupAttributeField("groupAttributeField")
.issuer("issuer")
.secretManagerArn("secretManagerArn")
.url("url")
.userNameAttributeField("userNameAttributeField")
.build())
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnIndex.static interfaceSpecifies additional capacity units configured for your Enterprise Edition index.static interfaceSpecifies the properties, such as relevance tuning and searchability, of an index field.static interfaceProvides the configuration information for the JSON token type.static interfaceProvides the configuration information for the JWT token type.static interfaceProvides information for tuning the relevance of a field in a search.static interfaceProvides information about how a custom index field is used during a search.static interfaceProvides the identifier of the AWS KMS customer master key (CMK) used to encrypt data indexed by Amazon Kendra.static interfaceProvides the configuration information for a token.static interfaceSpecifies a key-value pair of the search boost value for a document when the key is part of the metadata of a document.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the index.The identifier for the index.AWS::Kendra::Index.CapacityUnits.A description for the index.Specifies the properties of an index field.Indicates whether the index is a Enterprise Edition index or a Developer Edition index.getName()The name of the index.An IAM role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics.The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra.getTags()An array of key-value pairs to apply to this resource.The user context policy.Defines the type of user token used for the index.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetCapacityUnits(IResolvable value) AWS::Kendra::Index.CapacityUnits.voidAWS::Kendra::Index.CapacityUnits.voidsetDescription(String value) A description for the index.voidSpecifies the properties of an index field.voidSpecifies the properties of an index field.voidsetEdition(String value) Indicates whether the index is a Enterprise Edition index or a Developer Edition index.voidThe name of the index.voidsetRoleArn(String value) An IAM role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics.voidThe identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra.voidThe identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra.voidsetUserContextPolicy(String value) The user context policy.voidsetUserTokenConfigurations(List<Object> value) Defines the type of user token used for the index.voidDefines the type of user token used for the index.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.core.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnIndex
protected CfnIndex(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIndex
protected CfnIndex(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIndex
@Stability(Stable) public CfnIndex(@NotNull Construct scope, @NotNull String id, @NotNull CfnIndexProps props) Create a newAWS::Kendra::Index.- Parameters:
scope-- scope in which this resource is defined.
id-- scoped id of the resource.
props-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the index.For example:
arn:aws:kendra:us-west-2:111122223333:index/0123456789abcdef. -
getAttrId
The identifier for the index.For example:
f4aeaa10-8056-4b2c-a343-522ca0f41234. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag .
-
getEdition
Indicates whether the index is a Enterprise Edition index or a Developer Edition index.Valid values are
DEVELOPER_EDITIONandENTERPRISE_EDITION. -
setEdition
Indicates whether the index is a Enterprise Edition index or a Developer Edition index.Valid values are
DEVELOPER_EDITIONandENTERPRISE_EDITION. -
getName
The name of the index. -
setName
The name of the index. -
getRoleArn
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.
-
setRoleArn
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.
-
getCapacityUnits
AWS::Kendra::Index.CapacityUnits. -
setCapacityUnits
AWS::Kendra::Index.CapacityUnits. -
setCapacityUnits
@Stability(Stable) public void setCapacityUnits(@Nullable CfnIndex.CapacityUnitsConfigurationProperty value) AWS::Kendra::Index.CapacityUnits. -
getDescription
A description for the index. -
setDescription
A description for the index. -
getDocumentMetadataConfigurations
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.
-
setDocumentMetadataConfigurations
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.
-
setDocumentMetadataConfigurations
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.
-
getServerSideEncryptionConfiguration
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.
-
setServerSideEncryptionConfiguration
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.
-
setServerSideEncryptionConfiguration
@Stability(Stable) public void setServerSideEncryptionConfiguration(@Nullable CfnIndex.ServerSideEncryptionConfigurationProperty value) 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.
-
getUserContextPolicy
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
-
setUserContextPolicy
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
-
getUserTokenConfigurations
Defines the type of user token used for the index. -
setUserTokenConfigurations
Defines the type of user token used for the index. -
setUserTokenConfigurations
Defines the type of user token used for the index.
-