Class CfnIndexPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndexPropsMixin>
- Enclosing class:
CfnIndexPropsMixin
CfnIndexPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnIndexPropsMixin.Buildercreate()static CfnIndexPropsMixin.Buildercreate(CfnPropertyMixinOptions options) The 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(CfnIndexPropsMixin.EncryptionConfigurationProperty encryptionConfiguration) The encryption configuration for a vector index.encryptionConfiguration(IResolvable encryptionConfiguration) The encryption configuration for a vector index.The name of the vector index to create.metadataConfiguration(CfnIndexPropsMixin.MetadataConfigurationProperty metadataConfiguration) The metadata configuration for the vector index.metadataConfiguration(IResolvable metadataConfiguration) The metadata configuration for the vector index.User tags (key-value pairs) to associate with the 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
- Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnIndexPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnIndexPropsMixin.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 CfnIndexPropsMixin.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 CfnIndexPropsMixin.Builder encryptionConfiguration(CfnIndexPropsMixin.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
@Stability(Stable) public CfnIndexPropsMixin.Builder metadataConfiguration(IResolvable 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 CfnIndexPropsMixin.Builder metadataConfiguration(CfnIndexPropsMixin.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:
-
tags
User tags (key-value pairs) to associate with the index.- Parameters:
tags- User tags (key-value pairs) to associate with the 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
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnIndexPropsMixin>- Returns:
- a newly built instance of
CfnIndexPropsMixin.
-