We recommend new projects start with resources from the AWS provider.
aws-native.s3vectors.Index
We recommend new projects start with resources from the AWS provider.
Resource Type definition for AWS::S3Vectors::Index
Create Index Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Index(name: string, args: IndexArgs, opts?: CustomResourceOptions);@overload
def Index(resource_name: str,
args: IndexArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Index(resource_name: str,
opts: Optional[ResourceOptions] = None,
data_type: Optional[IndexDataType] = None,
dimension: Optional[int] = None,
distance_metric: Optional[IndexDistanceMetric] = None,
index_name: Optional[str] = None,
metadata_configuration: Optional[IndexMetadataConfigurationArgs] = None,
vector_bucket_arn: Optional[str] = None,
vector_bucket_name: Optional[str] = None)func NewIndex(ctx *Context, name string, args IndexArgs, opts ...ResourceOption) (*Index, error)public Index(string name, IndexArgs args, CustomResourceOptions? opts = null)type: aws-native:s3vectors:Index
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IndexArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Index Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Index resource accepts the following input properties:
- Data
Type Pulumi.Aws Native. S3Vectors. Index Data Type - The data type of the vectors to be inserted into the vector index. Currently, only
float32is supported, which represents 32-bit floating-point numbers. - Dimension int
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.
- Distance
Metric Pulumi.Aws Native. S3Vectors. Index Distance Metric - 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.
- Index
Name string 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.
- Metadata
Configuration Pulumi.Aws Native. S3Vectors. Inputs. Index Metadata Configuration - The metadata configuration for the vector index.
- Vector
Bucket stringArn - The Amazon Resource Name (ARN) of the vector bucket that contains the vector index.
- Vector
Bucket stringName - The name of the vector bucket that contains the vector index.
- Data
Type IndexData Type - The data type of the vectors to be inserted into the vector index. Currently, only
float32is supported, which represents 32-bit floating-point numbers. - Dimension int
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.
- Distance
Metric IndexDistance Metric - 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.
- Index
Name string 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.
- Metadata
Configuration IndexMetadata Configuration Args - The metadata configuration for the vector index.
- Vector
Bucket stringArn - The Amazon Resource Name (ARN) of the vector bucket that contains the vector index.
- Vector
Bucket stringName - The name of the vector bucket that contains the vector index.
- data
Type IndexData Type - The data type of the vectors to be inserted into the vector index. Currently, only
float32is supported, which represents 32-bit floating-point numbers. - dimension Integer
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.
- distance
Metric IndexDistance Metric - 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.
- index
Name String 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.
- metadata
Configuration IndexMetadata Configuration - The metadata configuration for the vector index.
- vector
Bucket StringArn - The Amazon Resource Name (ARN) of the vector bucket that contains the vector index.
- vector
Bucket StringName - The name of the vector bucket that contains the vector index.
- data
Type IndexData Type - The data type of the vectors to be inserted into the vector index. Currently, only
float32is supported, which represents 32-bit floating-point numbers. - dimension number
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.
- distance
Metric IndexDistance Metric - 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.
- index
Name string 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.
- metadata
Configuration IndexMetadata Configuration - The metadata configuration for the vector index.
- vector
Bucket stringArn - The Amazon Resource Name (ARN) of the vector bucket that contains the vector index.
- vector
Bucket stringName - The name of the vector bucket that contains the vector index.
- data_
type IndexData Type - The data type of the vectors to be inserted into the vector index. Currently, only
float32is supported, which represents 32-bit floating-point numbers. - dimension int
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.
- distance_
metric IndexDistance Metric - 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.
- index_
name str 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.
- metadata_
configuration IndexMetadata Configuration Args - The metadata configuration for the vector index.
- vector_
bucket_ strarn - The Amazon Resource Name (ARN) of the vector bucket that contains the vector index.
- vector_
bucket_ strname - The name of the vector bucket that contains the vector index.
- data
Type "float32" - The data type of the vectors to be inserted into the vector index. Currently, only
float32is supported, which represents 32-bit floating-point numbers. - dimension Number
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.
- distance
Metric "cosine" | "euclidean" - 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.
- index
Name String 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.
- metadata
Configuration Property Map - The metadata configuration for the vector index.
- vector
Bucket StringArn - The Amazon Resource Name (ARN) of the vector bucket that contains the vector index.
- vector
Bucket StringName - The name of the vector bucket that contains the vector index.
Outputs
All input properties are implicitly available as output properties. Additionally, the Index resource produces the following output properties:
- Creation
Time string Returns the date and time when the vector index was created.
Example:
2024-12-21T10:30:00Z- Id string
- The provider-assigned unique ID for this managed resource.
- Index
Arn string Returns the Amazon Resource Name (ARN) of the specified index.
Example:
arn:aws:s3vectors:us-east-1:123456789012:bucket/amzn-s3-demo-vector-bucket/index/my-index
- Creation
Time string Returns the date and time when the vector index was created.
Example:
2024-12-21T10:30:00Z- Id string
- The provider-assigned unique ID for this managed resource.
- Index
Arn string Returns the Amazon Resource Name (ARN) of the specified index.
Example:
arn:aws:s3vectors:us-east-1:123456789012:bucket/amzn-s3-demo-vector-bucket/index/my-index
- creation
Time String Returns the date and time when the vector index was created.
Example:
2024-12-21T10:30:00Z- id String
- The provider-assigned unique ID for this managed resource.
- index
Arn String Returns the Amazon Resource Name (ARN) of the specified index.
Example:
arn:aws:s3vectors:us-east-1:123456789012:bucket/amzn-s3-demo-vector-bucket/index/my-index
- creation
Time string Returns the date and time when the vector index was created.
Example:
2024-12-21T10:30:00Z- id string
- The provider-assigned unique ID for this managed resource.
- index
Arn string Returns the Amazon Resource Name (ARN) of the specified index.
Example:
arn:aws:s3vectors:us-east-1:123456789012:bucket/amzn-s3-demo-vector-bucket/index/my-index
- creation_
time str Returns the date and time when the vector index was created.
Example:
2024-12-21T10:30:00Z- id str
- The provider-assigned unique ID for this managed resource.
- index_
arn str Returns the Amazon Resource Name (ARN) of the specified index.
Example:
arn:aws:s3vectors:us-east-1:123456789012:bucket/amzn-s3-demo-vector-bucket/index/my-index
- creation
Time String Returns the date and time when the vector index was created.
Example:
2024-12-21T10:30:00Z- id String
- The provider-assigned unique ID for this managed resource.
- index
Arn String Returns the Amazon Resource Name (ARN) of the specified index.
Example:
arn:aws:s3vectors:us-east-1:123456789012:bucket/amzn-s3-demo-vector-bucket/index/my-index
Supporting Types
IndexDataType, IndexDataTypeArgs
- Float32
- float32
- Index
Data Type Float32 - float32
- Float32
- float32
- Float32
- float32
- FLOAT32
- float32
- "float32"
- float32
IndexDistanceMetric, IndexDistanceMetricArgs
- Cosine
- cosine
- Euclidean
- euclidean
- Index
Distance Metric Cosine - cosine
- Index
Distance Metric Euclidean - euclidean
- Cosine
- cosine
- Euclidean
- euclidean
- Cosine
- cosine
- Euclidean
- euclidean
- COSINE
- cosine
- EUCLIDEAN
- euclidean
- "cosine"
- cosine
- "euclidean"
- euclidean
IndexMetadataConfiguration, IndexMetadataConfigurationArgs
The metadata configuration for the vector index.- Non
Filterable List<string>Metadata Keys - Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys cannot be used as query filters. Non-filterable metadata keys can be retrieved but cannot be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors.
- Non
Filterable []stringMetadata Keys - Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys cannot be used as query filters. Non-filterable metadata keys can be retrieved but cannot be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors.
- non
Filterable List<String>Metadata Keys - Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys cannot be used as query filters. Non-filterable metadata keys can be retrieved but cannot be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors.
- non
Filterable string[]Metadata Keys - Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys cannot be used as query filters. Non-filterable metadata keys can be retrieved but cannot be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors.
- non_
filterable_ Sequence[str]metadata_ keys - Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys cannot be used as query filters. Non-filterable metadata keys can be retrieved but cannot be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors.
- non
Filterable List<String>Metadata Keys - Non-filterable metadata keys allow you to enrich vectors with additional context during storage and retrieval. Unlike default metadata keys, these keys cannot be used as query filters. Non-filterable metadata keys can be retrieved but cannot be searched, queried, or filtered. You can access non-filterable metadata keys of your vectors after finding the vectors.
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
