Class CfnIndex.Builder
java.lang.Object
software.amazon.awscdk.services.s3vectors.CfnIndex.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIndex>
- Enclosing class:
CfnIndex
@Stability(Stable)
public static final class CfnIndex.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIndex>
A fluent builder for
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.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.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.- 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.- 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.- Parameters:
distanceMetric- The distance metric to be used for similarity search. This parameter is required.- Returns:
this- See Also:
-
indexName
The name of the vector index to create.- 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.- Parameters:
vectorBucketArn- The Amazon Resource Name (ARN) of the vector bucket. 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
-