interface BlockedEncryptionTypesProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3.CfnBucket.BlockedEncryptionTypesProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#CfnBucket_BlockedEncryptionTypesProperty |
Java | software.amazon.awscdk.services.s3.CfnBucket.BlockedEncryptionTypesProperty |
Python | aws_cdk.aws_s3.CfnBucket.BlockedEncryptionTypesProperty |
TypeScript | aws-cdk-lib » aws_s3 » CfnBucket » BlockedEncryptionTypesProperty |
A bucket-level setting for Amazon S3 general purpose buckets used to prevent the upload of new objects encrypted with the specified server-side encryption type.
For example, blocking an encryption type will block PutObject , CopyObject , PostObject , multipart upload, and replication requests to the bucket for objects with the specified encryption type. However, you can continue to read and list any pre-existing objects already encrypted with the specified encryption type. For more information, see Blocking or unblocking SSE-C for a general purpose bucket .
This data type is used with the following actions:
Permissions - You must have the
s3:PutEncryptionConfigurationpermission to block or unblock an encryption type for a bucket.
You must have the s3:GetEncryptionConfiguration permission to view a bucket's encryption type.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const blockedEncryptionTypesProperty: s3.CfnBucket.BlockedEncryptionTypesProperty = {
encryptionType: ['encryptionType'],
};
Properties
| Name | Type | Description |
|---|---|---|
| encryption | string[] | The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket. |
encryptionType?
Type:
string[]
(optional)
The object encryption type that you want to block or unblock for an Amazon S3 general purpose bucket.
Currently, this parameter only supports blocking or unblocking server side encryption with customer-provided keys (SSE-C). For more information about SSE-C, see Using server-side encryption with customer-provided keys (SSE-C) .

.NET
Go
Java
Python
TypeScript