CapacityUnitsConfigurationProperty Struct
Specifies additional capacity units configured for your Enterprise Edition index.
You can add and remove capacity units to fit your usage requirements.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kendra as kendra } from 'aws-cdk-lib';
const capacityUnitsConfigurationProperty: kendra.CfnIndex.CapacityUnitsConfigurationProperty = {
queryCapacityUnits: 123,
storageCapacityUnits: 123,
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kendra as kendra
capacity_units_configuration_property = kendra.CfnIndex.CapacityUnitsConfigurationProperty(
query_capacity_units=123,
storage_capacity_units=123
)
// 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.*;
CapacityUnitsConfigurationProperty capacityUnitsConfigurationProperty = CapacityUnitsConfigurationProperty.builder()
.queryCapacityUnits(123)
.storageCapacityUnits(123)
.build();
// 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.Kendra;
var capacityUnitsConfigurationProperty = new CapacityUnitsConfigurationProperty {
QueryCapacityUnits = 123,
StorageCapacityUnits = 123
};
// 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"
capacityUnitsConfigurationProperty := &CapacityUnitsConfigurationProperty{
QueryCapacityUnits: jsii.Number(123),
StorageCapacityUnits: jsii.Number(123),
}
Properties
queryCapacityUnitsnumberquery_capacity_unitsint | floatqueryCapacityUnitsNumberQueryCapacityUnitsdoubleQueryCapacityUnits*float64 required #notes
A single extra capacity unit for an index provides 0.1 queries per second or approximately 8,000 queries per day. You can add up to 100 extra capacity units.
GetQuerySuggestions capacity is five times the provisioned query capacity for an index, or the base capacity of 2.5 calls per second, whichever is higher. For example, the base capacity for an index is 0.1 queries per second, and GetQuerySuggestions capacity has a base of 2.5 calls per second. If you add another 0.1 queries per second to total 0.2 queries per second for an index, the GetQuerySuggestions capacity is 2.5 calls per second (higher than five times 0.2 queries per second).
storageCapacityUnitsnumberstorage_capacity_unitsint | floatstorageCapacityUnitsNumberStorageCapacityUnitsdoubleStorageCapacityUnits*float64 required #A single capacity unit provides 30 GB of storage space or 100,000 documents, whichever is reached first. You can add up to 100 extra capacity units.