Class CfnIndex.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndex>
- Enclosing class:
CfnIndex
CfnIndex.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnIndex.BuilderThe data type of the vectors to be inserted into the vector index.The dimensions of the vectors to be inserted into the vector index.distanceMetric(String distanceMetric) The distance metric to be used for similarity search.encryptionConfiguration(IResolvable encryptionConfiguration) The encryption configuration for a vector index.encryptionConfiguration(CfnIndex.EncryptionConfigurationProperty encryptionConfiguration) The encryption configuration for a vector index.The name of the vector index to create.metadataConfiguration(IResolvable metadataConfiguration) The metadata configuration for the vector index.metadataConfiguration(CfnIndex.MetadataConfigurationProperty metadataConfiguration) The metadata configuration for the vector index.vectorBucketArn(String vectorBucketArn) The Amazon Resource Name (ARN) of the vector bucket that contains the vector index.vectorBucketName(String vectorBucketName) The name of the vector bucket that contains the vector index.
-
Method Details
-
create
@Stability(Stable) public static CfnIndex.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnIndex.Builder.
-
dataType
The data type of the vectors to be inserted into the vector index.Currently, only
float32is supported, which represents 32-bit floating-point numbers.- Parameters:
dataType- The data type of the vectors to be inserted into the vector index. This parameter is required.- Returns:
this- See Also:
-
dimension
The dimensions of the vectors to be inserted into the vector index.This value must be between 1 and 4096, inclusive. All vectors stored in the index must have the same number of dimensions.
The dimension value affects the storage requirements and search performance. Higher dimensions require more storage space and may impact search latency.
- Parameters:
dimension- The dimensions of the vectors to be inserted into the vector index. This parameter is required.- Returns:
this- See Also:
-
distanceMetric
The distance metric to be used for similarity search. Valid values are:.cosine- Measures the cosine of the angle between two vectors.euclidean- Measures the straight-line distance between two points in multi-dimensional space. Lower values indicate greater similarity.
- Parameters:
distanceMetric- The distance metric to be used for similarity search. Valid values are:. This parameter is required.- Returns:
this- See Also:
-
encryptionConfiguration
@Stability(Stable) public CfnIndex.Builder encryptionConfiguration(IResolvable encryptionConfiguration) The encryption configuration for a vector index.By default, if you don't specify, all new vectors in the vector index will use the encryption configuration of the vector bucket.
- Parameters:
encryptionConfiguration- The encryption configuration for a vector index. This parameter is required.- Returns:
this- See Also:
-
encryptionConfiguration
@Stability(Stable) public CfnIndex.Builder encryptionConfiguration(CfnIndex.EncryptionConfigurationProperty encryptionConfiguration) The encryption configuration for a vector index.By default, if you don't specify, all new vectors in the vector index will use the encryption configuration of the vector bucket.
- Parameters:
encryptionConfiguration- The encryption configuration for a vector index. This parameter is required.- Returns:
this- See Also:
-
indexName
The name of the vector index to create.The index name must be between 3 and 63 characters long and can contain only lowercase letters, numbers, hyphens (-), and dots (.). The index name must be unique within the vector bucket.
If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the index name.
If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
- Parameters:
indexName- The name of the vector index to create. This parameter is required.- Returns:
this- See Also:
-
metadataConfiguration
The metadata configuration for the vector index.- Parameters:
metadataConfiguration- The metadata configuration for the vector index. This parameter is required.- Returns:
this- See Also:
-
metadataConfiguration
@Stability(Stable) public CfnIndex.Builder metadataConfiguration(CfnIndex.MetadataConfigurationProperty metadataConfiguration) The metadata configuration for the vector index.- Parameters:
metadataConfiguration- The metadata configuration for the vector index. This parameter is required.- Returns:
this- See Also:
-
vectorBucketArn
The Amazon Resource Name (ARN) of the vector bucket that contains the vector index.- Parameters:
vectorBucketArn- The Amazon Resource Name (ARN) of the vector bucket that contains the vector index. This parameter is required.- Returns:
this- See Also:
-
vectorBucketName
The name of the vector bucket that contains the vector index.- Parameters:
vectorBucketName- The name of the vector bucket that contains the vector index. This parameter is required.- Returns:
this- See Also:
-
build
-