Class CfnIndex.CapacityUnitsConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kendra.CfnIndex.CapacityUnitsConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndex.CapacityUnitsConfigurationProperty>
- Enclosing interface:
CfnIndex.CapacityUnitsConfigurationProperty
@Stability(Stable)
public static final class CfnIndex.CapacityUnitsConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndex.CapacityUnitsConfigurationProperty>
A builder for
CfnIndex.CapacityUnitsConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.queryCapacityUnits
(Number queryCapacityUnits) Sets the value ofCfnIndex.CapacityUnitsConfigurationProperty.getQueryCapacityUnits()
storageCapacityUnits
(Number storageCapacityUnits) Sets the value ofCfnIndex.CapacityUnitsConfigurationProperty.getStorageCapacityUnits()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
queryCapacityUnits
@Stability(Stable) public CfnIndex.CapacityUnitsConfigurationProperty.Builder queryCapacityUnits(Number queryCapacityUnits) Sets the value ofCfnIndex.CapacityUnitsConfigurationProperty.getQueryCapacityUnits()
- Parameters:
queryCapacityUnits
- The amount of extra query capacity for an index and GetQuerySuggestions capacity. This parameter is required. 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, andGetQuerySuggestions
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, theGetQuerySuggestions
capacity is 2.5 calls per second (higher than five times 0.2 queries per second).- Returns:
this
-
storageCapacityUnits
@Stability(Stable) public CfnIndex.CapacityUnitsConfigurationProperty.Builder storageCapacityUnits(Number storageCapacityUnits) Sets the value ofCfnIndex.CapacityUnitsConfigurationProperty.getStorageCapacityUnits()
- Parameters:
storageCapacityUnits
- The amount of extra storage capacity for an index. This parameter is 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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIndex.CapacityUnitsConfigurationProperty>
- Returns:
- a new instance of
CfnIndex.CapacityUnitsConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-