ServerSideEncryptionRuleProperty Struct
Specifies the default server-side encryption configuration.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3express as s3express } from 'aws-cdk-lib';
const serverSideEncryptionRuleProperty: s3express.CfnDirectoryBucket.ServerSideEncryptionRuleProperty = {
bucketKeyEnabled: false,
serverSideEncryptionByDefault: {
sseAlgorithm: 'sseAlgorithm',
// the properties below are optional
kmsMasterKeyId: 'kmsMasterKeyId',
},
};
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3express as s3express
server_side_encryption_rule_property = s3express.CfnDirectoryBucket.ServerSideEncryptionRuleProperty(
bucket_key_enabled=False,
server_side_encryption_by_default=s3express.CfnDirectoryBucket.ServerSideEncryptionByDefaultProperty(
sse_algorithm="sseAlgorithm",
# the properties below are optional
kms_master_key_id="kmsMasterKeyId"
)
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3express.*;
ServerSideEncryptionRuleProperty serverSideEncryptionRuleProperty = ServerSideEncryptionRuleProperty.builder()
.bucketKeyEnabled(false)
.serverSideEncryptionByDefault(ServerSideEncryptionByDefaultProperty.builder()
.sseAlgorithm("sseAlgorithm")
// the properties below are optional
.kmsMasterKeyId("kmsMasterKeyId")
.build())
.build();
// 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.S3Express;
var serverSideEncryptionRuleProperty = new ServerSideEncryptionRuleProperty {
BucketKeyEnabled = false,
ServerSideEncryptionByDefault = new ServerSideEncryptionByDefaultProperty {
SseAlgorithm = "sseAlgorithm",
// the properties below are optional
KmsMasterKeyId = "kmsMasterKeyId"
}
};
// 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"
serverSideEncryptionRuleProperty := &ServerSideEncryptionRuleProperty{
BucketKeyEnabled: jsii.Boolean(false),
ServerSideEncryptionByDefault: &ServerSideEncryptionByDefaultProperty{
SseAlgorithm: jsii.String("sseAlgorithm"),
// the properties below are optional
KmsMasterKeyId: jsii.String("kmsMasterKeyId"),
},
}
Properties
bucketKeyEnabledoptionalboolean | IResolvablebucket_key_enabledoptionaltyping.Union[bool, IResolvable]bucketKeyEnabledoptionalBooleanBucketKeyEnabledoptionalboolBucketKeyEnabledoptionalinterface{} #notes
S3 Bucket Keys are always enabled for GET and PUT operations on a directory bucket and can’t be disabled. It's only allowed to set the BucketKeyEnabled element to true .
S3 Bucket Keys aren't supported, when you copy SSE-KMS encrypted objects from general purpose buckets to directory buckets, from directory buckets to general purpose buckets, or between directory buckets, through CopyObject , UploadPartCopy , the Copy operation in Batch Operations , or the import jobs . In this case, Amazon S3 makes a call to AWS KMS every time a copy request is made for a KMS-encrypted object.
For more information, see Amazon S3 Bucket Keys in the Amazon S3 User Guide .
serverSideEncryptionByDefaultoptionalIResolvable | CfnDirectoryBucket.server_side_encryption_by_defaultoptionaltyping.Union[IResolvable, ServerSideEncryptionByDefaultProperty]serverSideEncryptionByDefaultoptionalIResolvableServerSideEncryptionByDefaultoptionalIResolvableServerSideEncryptionByDefaultoptionalinterface{} #If a PUT Object request doesn't specify any server-side encryption, this default encryption will be applied.