Skip to content
v2.278.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],
});
python
bucket = s3.Bucket(self, "MySsecBlockedBucket",
    blocked_encryption_types=[s3.BlockedEncryptionType.SSE_C]
)
java
Bucket bucket = Bucket.Builder.create(this, "MySsecBlockedBucket")
        .blockedEncryptionTypes(List.of(BlockedEncryptionType.SSE_C))
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
var bucket = new Bucket(this, "MySsecBlockedBucket", new BucketProps {
    BlockedEncryptionTypes = new [] { BlockedEncryptionType.SSE_C }
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
bucket := s3.NewBucket(this, jsii.String("MySsecBlockedBucket"), &BucketProps{
	BlockedEncryptionTypes: []BlockedEncryptionType{
		s3.BlockedEncryptionType_SSE_C(),
	},
})

Properties ​

namestringnamestrnameStringNamestringName*string #
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) BlockedEncryptionType static #
Use this constructor only if S3 releases a new BlockedEncryptionType that is unknown to CDK.

Otherwise, use this class's static constants.