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.qbusiness.CfnIndex
- All Implemented Interfaces:
IInspectable,ITaggableV2,IIndexRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:44.809Z")
@Stability(Stable)
public class CfnIndex
extends CfnResource
implements IInspectable, IIndexRef, ITaggableV2
Creates an Amazon Q Business index.
To determine if index creation has completed, check the Status field returned from a call to DescribeIndex . The Status field is set to ACTIVE when the index is ready to use.
Once the index is active, you can index your documents using the BatchPutDocument API or the CreateDataSource API.
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.qbusiness.*;
CfnIndex cfnIndex = CfnIndex.Builder.create(this, "MyCfnIndex")
.applicationId("applicationId")
.displayName("displayName")
// the properties below are optional
.capacityConfiguration(IndexCapacityConfigurationProperty.builder()
.units(123)
.build())
.description("description")
.documentAttributeConfigurations(List.of(DocumentAttributeConfigurationProperty.builder()
.name("name")
.search("search")
.type("type")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnIndex.static interfaceConfiguration information for document attributes.static interfaceProvides information about index capacity configuration.static interfaceProvides information about the number of documents in an index.static interfaceProvides information about text documents in an index.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.qbusiness.IIndexRef
IIndexRef.Jsii$Default, IIndexRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnIndex(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIndex(software.amazon.jsii.JsiiObjectRef objRef) CfnIndex(software.constructs.Construct scope, String id, CfnIndexProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the Amazon Q Business application using the index.The Unix timestamp when the index was created.The Amazon Resource Name (ARN) of an Amazon Q Business index.The identifier for the index.The current status of the index.The Unix timestamp when the index was last updated.The capacity units you want to provision for your index.Tag Manager which manages the tags for this resource.A description for the Amazon Q Business index.The name of the index.Configuration information for document attributes.A reference to a Index resource.getTags()A list of key-value pairs that identify or categorize the index.getType()The index type that's suitable for your needs.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetApplicationId(String value) The identifier of the Amazon Q Business application using the index.voidThe capacity units you want to provision for your index.voidThe capacity units you want to provision for your index.voidsetDescription(String value) A description for the Amazon Q Business index.voidsetDisplayName(String value) The name of the index.voidConfiguration information for document attributes.voidConfiguration information for document attributes.voidA list of key-value pairs that identify or categorize the index.voidThe index type that's suitable for your needs.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, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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.constructs.IConstruct
getNodeMethods 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:
inspectin 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:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrCreatedAt
The Unix timestamp when the index was created. -
getAttrIndexArn
The Amazon Resource Name (ARN) of an Amazon Q Business index. -
getAttrIndexId
The identifier for the index. -
getAttrIndexStatistics
-
getAttrStatus
The current status of the index.When the status is
ACTIVE, the index is ready. -
getAttrUpdatedAt
The Unix timestamp when the index was last updated. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIndexRef
A reference to a Index resource.- Specified by:
getIndexRefin interfaceIIndexRef
-
getApplicationId
The identifier of the Amazon Q Business application using the index. -
setApplicationId
The identifier of the Amazon Q Business application using the index. -
getDisplayName
The name of the index. -
setDisplayName
The name of the index. -
getCapacityConfiguration
The capacity units you want to provision for your index.Returns union: either
IResolvableorCfnIndex.IndexCapacityConfigurationProperty -
setCapacityConfiguration
The capacity units you want to provision for your index. -
setCapacityConfiguration
@Stability(Stable) public void setCapacityConfiguration(@Nullable CfnIndex.IndexCapacityConfigurationProperty value) The capacity units you want to provision for your index. -
getDescription
A description for the Amazon Q Business index. -
setDescription
A description for the Amazon Q Business index. -
getDocumentAttributeConfigurations
Configuration information for document attributes.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnIndex.DocumentAttributeConfigurationProperty> -
setDocumentAttributeConfigurations
Configuration information for document attributes. -
setDocumentAttributeConfigurations
Configuration information for document attributes. -
getTags
A list of key-value pairs that identify or categorize the index. -
setTags
A list of key-value pairs that identify or categorize the index. -
getType
The index type that's suitable for your needs. -
setType
The index type that's suitable for your needs.
-