Skip to content
v2.273.0

BlockedEncryptionType Class ​

Encryption types that can be blocked on an S3 bucket.

Example ​

ts
const bucket = new s3.Bucket(this, 'MySsecBlockedBucket', {
  blockedEncryptionTypes: [s3.BlockedEncryptionType.SSE_C],
});

Properties ​

namestringnamestrnameStringNamestringName*stringrequired#
The name for this blocked encryption type used in the API.
Special value - all encryption types are allowed.
Server-Side Encryption with customer-provided keys (SSE-C) is blocked.

Methods ​

custom(name: string): BlockedEncryptionType // chainable@staticmethod def custom(name: str) -> BlockedEncryptionTypepublic static BlockedEncryptionType custom(String name)public static BlockedEncryptionType Custom(string name)func Custom(Name *string) BlockedEncryptionTypestatic#
Use this constructor only if S3 releases a new BlockedEncryptionType that is unknown to CDK.

Otherwise, use this class's static constants.