generative-ai-cdk-constructs

@cdklabs/generative-ai-cdk-constructs


@cdklabs/generative-ai-cdk-constructs / s3vectors / VectorBucketProps

Interface: VectorBucketProps

Properties for creating a VectorBucket resource

Properties

autoDeleteObjects?

readonly optional autoDeleteObjects: boolean

Whether all objects should be automatically deleted when the bucket is removed from the stack or when the stack is deleted.

Requires the removalPolicy to be set to RemovalPolicy.DESTROY.

Setting autoDeleteObjects to true on a bucket will add s3:PutBucketPolicy to the bucket policy. This is because during bucket deletion, the custom resource provider needs to update the bucket policy by adding a deny policy for s3:PutObject to prevent race conditions with external bucket writers.

Default

false

encryption?

readonly optional encryption: VectorBucketEncryption

The kind of server-side encryption to apply to this bucket.

If you choose KMS, you can specify a KMS key via encryptionKey. If encryption key is not specified, a key will automatically be created.

Default


encryptionKey?

readonly optional encryptionKey: IKey

External KMS key to use for bucket encryption.

The encryption property must be either not specified or set to KMS. An error will be emitted if encryption is set to S3_MANAGED.

Default


removalPolicy?

readonly optional removalPolicy: RemovalPolicy

Policy to apply when the bucket is removed from this stack.

Default

- - The bucket will be orphaned.

vectorBucketName?

readonly optional vectorBucketName: string

Physical name of this bucket.

Default

- Assigned by CloudFormation (recommended).