BlockedEncryptionType Class
Encryption types that can be blocked on an S3 bucket.
| Source | aws-s3/lib/bucket.ts |
|---|---|
| Type last changed |
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
The name for this blocked encryption type used in the API.
NONEBlockedEncryptionTypeNONEBlockedEncryptionTypeNONEBlockedEncryptionTypeNONEBlockedEncryptionTypeNONEBlockedEncryptionType static #Special value - all encryption types are allowed.
SSE_CBlockedEncryptionTypeSSE_CBlockedEncryptionTypeSSE_CBlockedEncryptionTypeSSE_CBlockedEncryptionTypeSSE_CBlockedEncryptionType static #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.