Skip to main content

vector_buckets

Creates, updates, deletes, gets or lists a vector_buckets resource.

Overview

Namevector_buckets
TypeResource
Idaws.s3vectors.vector_buckets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
creation_timestring (date-time)Date and time when the vector bucket was created.
encryption_configurationobjectThe encryption configuration for a vector bucket or index. By default, if you don't specify, all new vectors in Amazon S3 vector buckets use server-side encryption with Amazon S3 managed keys (SSE-S3), specifically AES256. You can optionally override bucket level encryption settings, and set a specific encryption configuration for a vector index at the time of index creation.
vector_bucket_arnstringThe Amazon Resource Name (ARN) of the vector bucket. (pattern: <code>arn:aws[-a-z0-9]*:s3vectors:[a-z0-9-]+:[0-9]{12}:bucket/[a-z0-9][a-z0-9-.]{1,61}[a-z0-9]</code>)
vector_bucket_namestringThe name of the vector bucket.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_vector_bucketselectregionReturns vector bucket attributes. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN). Permissions You must have the s3vectors:GetVectorBucket permission to use this operation.
list_vector_bucketsselectregionReturns a list of all the vector buckets that are owned by the authenticated sender of the request. Permissions You must have the s3vectors:ListVectorBuckets permission to use this operation.
create_vector_bucketinsertregion, vectorBucketNameCreates a vector bucket in the Amazon Web Services Region that you want your bucket to be in. Permissions You must have the s3vectors:CreateVectorBucket permission to use this operation. You must have the s3vectors:TagResource permission in addition to s3vectors:CreateVectorBucket permission to create a vector bucket with tags.
delete_vector_bucketdeleteregionDeletes a vector bucket. All vector indexes in the vector bucket must be deleted before the vector bucket can be deleted. To perform this operation, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN). Permissions You must have the s3vectors:DeleteVectorBucket permission to use this operation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns vector bucket attributes. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN). Permissions You must have the s3vectors:GetVectorBucket permission to use this operation.

SELECT
creation_time,
encryption_configuration,
vector_bucket_arn,
vector_bucket_name
FROM aws.s3vectors.vector_buckets
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a vector bucket in the Amazon Web Services Region that you want your bucket to be in. Permissions You must have the s3vectors:CreateVectorBucket permission to use this operation. You must have the s3vectors:TagResource permission in addition to s3vectors:CreateVectorBucket permission to create a vector bucket with tags.

INSERT INTO aws.s3vectors.vector_buckets (
vectorBucketName,
encryptionConfiguration,
tags,
region
)
SELECT
'{{ vectorBucketName }}' /* required */,
'{{ encryptionConfiguration }}',
'{{ tags }}',
'{{ region }}'
RETURNING
vector_bucket_arn
;

DELETE examples

Deletes a vector bucket. All vector indexes in the vector bucket must be deleted before the vector bucket can be deleted. To perform this operation, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN). Permissions You must have the s3vectors:DeleteVectorBucket permission to use this operation.

DELETE FROM aws.s3vectors.vector_buckets
WHERE region = '{{ region }}' --required
;