create_vector_bucket
¶
create_vector_bucket(
vector_bucket_name: VectorBucketName,
*,
config_overrides: Optional[S3VectorsClientConfig] = None,
encryption_configuration: Optional[EncryptionConfiguration] = None,
tags: Optional[TagsMap] = None,
) -> CreateVectorBucketOutput
Creates a vector bucket in the Amazon Web Services Region that you want your bucket to be in.
- Permissions
-
You must have the
s3vectors:CreateVectorBucketpermission to use this operation.You must have the
s3vectors:TagResourcepermission in addition tos3vectors:CreateVectorBucketpermission to create a vector bucket with tags.
Parameters:
-
vector_bucket_name(VectorBucketName) –The name of the vector bucket to create.
-
encryption_configuration(Optional[EncryptionConfiguration], default:None) –The encryption configuration for the vector bucket. 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. -
tags(Optional[TagsMap], default:None) –An array of user-defined tags that you would like to apply to the vector bucket that you are creating. A tag is a key-value pair that you apply to your resources. Tags can help you organize and control access to resources. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
You must have the
s3vectors:TagResourcepermission in addition tos3vectors:CreateVectorBucketpermission to create a vector bucket with tags.
Raises:
-
AccessDeniedException–Access denied.
-
InternalServerException–The request failed due to an internal server error.
-
RequestTimeoutException–The request timed out. Retry your request.
-
TooManyRequestsException–The request was denied due to request throttling.
-
ValidationException–The requested action isn't valid.
-
ConflictException–The request failed because a vector bucket name or a vector index name already exists. Vector bucket names must be unique within your Amazon Web Services account for each Amazon Web Services Region. Vector index names must be unique within your vector bucket. Choose a different vector bucket name or vector index name, and try again.
-
ServiceQuotaExceededException–Your request exceeds a service quota.
-
ServiceUnavailableException–The service is unavailable. Wait briefly and retry your request. If it continues to fail, increase your waiting time between retries.
-
UnknownServiceError–The service returned an error code this client does not model.