CfnVectorBucketProps Struct
Properties for defining a CfnVectorBucket.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3vectors as s3vectors } from 'aws-cdk-lib';
const cfnVectorBucketProps: s3vectors.CfnVectorBucketProps = {
encryptionConfiguration: {
kmsKeyArn: 'kmsKeyArn',
sseType: 'sseType',
},
tags: [{
key: 'key',
value: 'value',
}],
vectorBucketName: 'vectorBucketName',
};
python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3vectors as s3vectors
cfn_vector_bucket_props = s3vectors.CfnVectorBucketProps(
encryption_configuration=s3vectors.CfnVectorBucket.EncryptionConfigurationProperty(
kms_key_arn="kmsKeyArn",
sse_type="sseType"
),
tags=[CfnTag(
key="key",
value="value"
)],
vector_bucket_name="vectorBucketName"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3vectors.*;
CfnVectorBucketProps cfnVectorBucketProps = CfnVectorBucketProps.builder()
.encryptionConfiguration(EncryptionConfigurationProperty.builder()
.kmsKeyArn("kmsKeyArn")
.sseType("sseType")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.vectorBucketName("vectorBucketName")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Vectors;
var cfnVectorBucketProps = new CfnVectorBucketProps {
EncryptionConfiguration = new EncryptionConfigurationProperty {
KmsKeyArn = "kmsKeyArn",
SseType = "sseType"
},
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
VectorBucketName = "vectorBucketName"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnVectorBucketProps := &CfnVectorBucketProps{
EncryptionConfiguration: &EncryptionConfigurationProperty{
KmsKeyArn: jsii.String("kmsKeyArn"),
SseType: jsii.String("sseType"),
},
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
VectorBucketName: jsii.String("vectorBucketName"),
}
Properties
encryptionConfigurationoptionalIResolvable | CfnVectorBucket.encryption_configurationoptionaltyping.Union[IResolvable, EncryptionConfigurationProperty]encryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalIResolvableEncryptionConfigurationoptionalinterface{} #The encryption configuration for the vector bucket.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #User tags (key-value pairs) to associate with the vector bucket.
vectorBucketNameoptionalstringvector_bucket_nameoptionalstrvectorBucketNameoptionalStringVectorBucketNameoptionalstringVectorBucketNameoptional*string #A name for the vector bucket.
notes
The bucket name must contain only lowercase letters, numbers, and hyphens (-). The bucket name must be unique in the same AWS account for each AWS Region. If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name.
The bucket name must be between 3 and 63 characters long and must not contain uppercase characters or underscores.
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.