CfnIndexProps Struct
Properties for defining a CfnIndex.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_qbusiness as qbusiness } from 'aws-cdk-lib';
const cfnIndexProps: qbusiness.CfnIndexProps = {
applicationId: 'applicationId',
displayName: 'displayName',
// the properties below are optional
capacityConfiguration: {
units: 123,
},
description: 'description',
documentAttributeConfigurations: [{
name: 'name',
search: 'search',
type: 'type',
}],
tags: [{
key: 'key',
value: 'value',
}],
type: 'type',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_qbusiness as qbusiness
cfn_index_props = qbusiness.CfnIndexProps(
application_id="applicationId",
display_name="displayName",
# the properties below are optional
capacity_configuration=qbusiness.CfnIndex.IndexCapacityConfigurationProperty(
units=123
),
description="description",
document_attribute_configurations=[qbusiness.CfnIndex.DocumentAttributeConfigurationProperty(
name="name",
search="search",
type="type"
)],
tags=[CfnTag(
key="key",
value="value"
)],
type="type"
)
java
// 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.*;
CfnIndexProps cfnIndexProps = CfnIndexProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.QBusiness;
var cfnIndexProps = new CfnIndexProps {
ApplicationId = "applicationId",
DisplayName = "displayName",
// the properties below are optional
CapacityConfiguration = new IndexCapacityConfigurationProperty {
Units = 123
},
Description = "description",
DocumentAttributeConfigurations = new [] { new DocumentAttributeConfigurationProperty {
Name = "name",
Search = "search",
Type = "type"
} },
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
Type = "type"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnIndexProps := &CfnIndexProps{
ApplicationId: jsii.String("applicationId"),
DisplayName: jsii.String("displayName"),
// the properties below are optional
CapacityConfiguration: &IndexCapacityConfigurationProperty{
Units: jsii.Number(123),
},
Description: jsii.String("description"),
DocumentAttributeConfigurations: []interface{}{
&DocumentAttributeConfigurationProperty{
Name: jsii.String("name"),
Search: jsii.String("search"),
Type: jsii.String("type"),
},
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
Type: jsii.String("type"),
}
Properties
applicationIdstringapplication_idstrapplicationIdStringApplicationIdstringApplicationId*string required #The identifier of the Amazon Q Business application using the index.
capacityConfigurationoptionalIResolvable | CfnIndex.capacity_configurationoptionaltyping.Union[IResolvable, IndexCapacityConfigurationProperty]capacityConfigurationoptionalIResolvableCapacityConfigurationoptionalIResolvableCapacityConfigurationoptionalinterface{} #The capacity units you want to provision for your index.
You can add and remove capacity to fit your usage needs.
descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #A description for the Amazon Q Business index.
The name of the index.
documentAttributeConfigurationsoptionalIResolvable | IResolvable | CfnIndex.document_attribute_configurationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, DocumentAttributeConfigurationProperty]]]documentAttributeConfigurationsoptionalIResolvableDocumentAttributeConfigurationsoptionalIResolvableDocumentAttributeConfigurationsoptionalinterface{} #Configuration information for document attributes.
notes
Document attributes are metadata or fields associated with your documents. For example, the company department name associated with each document.
For more information, see Understanding document attributes .
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #A list of key-value pairs that identify or categorize the index.
You can also use tags to help control access to the index. Tag keys and values can consist of Unicode letters, digits, white space, and any of the following symbols: _ . : / = + -
The index type that's suitable for your needs.
For more information on what's included in each type of index, see Amazon Q Business tiers .