Class CfnIndex
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.kendra.CfnIndex
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:56:00.689Z")
@Stability(Stable)
public class CfnIndex
extends CfnResource
implements IInspectable, ITaggable
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();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnIndex
.static interface
Specifies additional capacity units configured for your Enterprise Edition index.static interface
Specifies the properties, such as relevance tuning and searchability, of an index field.static interface
Provides the configuration information for the JSON token type.static interface
Provides the configuration information for the JWT token type.static interface
Provides information for tuning the relevance of a field in a search.static interface
Provides information about how a custom index field is used during a search.static interface
Provides the identifier of the AWS KMS customer master key (CMK) used to encrypt data indexed by Amazon Kendra.static interface
Provides the configuration information for a token.static interface
Specifies 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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnIndex
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnIndex
(software.amazon.jsii.JsiiObjectRef objRef) CfnIndex
(software.constructs.Construct scope, String id, CfnIndexProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the index.The identifier for the index.Specifies additional capacity units configured for your Enterprise Edition index.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()
Tag Manager which manages the tags for this resource.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.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setCapacityUnits
(IResolvable value) Specifies additional capacity units configured for your Enterprise Edition index.void
Specifies additional capacity units configured for your Enterprise Edition index.void
setDescription
(String value) A description for the index.void
Specifies the properties of an index field.void
Specifies the properties of an index field.void
setEdition
(String value) Indicates whether the index is a Enterprise Edition index or a Developer Edition index.void
The name of the index.void
setRoleArn
(String value) An IAM role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics.void
The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra.void
The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra.void
setTagsRaw
(List<CfnTag> value) An array of key-value pairs to apply to this resource.void
setUserContextPolicy
(String value) The user context policy.void
setUserTokenConfigurations
(List<Object> value) Defines the type of user token used for the index.void
Defines the type of user token used for the index.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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 software.constructs.Construct scope, @NotNull String id, @NotNull CfnIndexProps props) - 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.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in 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:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getEdition
Indicates whether the index is a Enterprise Edition index or a Developer Edition index. -
setEdition
Indicates whether the index is a Enterprise Edition index or a Developer Edition index. -
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. -
setRoleArn
An IAM role that gives Amazon Kendra permissions to access your Amazon CloudWatch logs and metrics. -
getCapacityUnits
Specifies additional capacity units configured for your Enterprise Edition index. -
setCapacityUnits
Specifies additional capacity units configured for your Enterprise Edition index. -
setCapacityUnits
@Stability(Stable) public void setCapacityUnits(@Nullable CfnIndex.CapacityUnitsConfigurationProperty value) Specifies additional capacity units configured for your Enterprise Edition index. -
getDescription
A description for the index. -
setDescription
A description for the index. -
getDocumentMetadataConfigurations
Specifies the properties of an index field. -
setDocumentMetadataConfigurations
Specifies the properties of an index field. -
setDocumentMetadataConfigurations
Specifies the properties of an index field. -
getServerSideEncryptionConfiguration
The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra. -
setServerSideEncryptionConfiguration
The identifier of the AWS KMS customer managed key (CMK) to use to encrypt data indexed by Amazon Kendra. -
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. -
getTagsRaw
An array of key-value pairs to apply to this resource. -
setTagsRaw
An array of key-value pairs to apply to this resource. -
getUserContextPolicy
The user context policy. -
setUserContextPolicy
The user context policy. -
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.
-