class BlockedEncryptionType
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.S3.BlockedEncryptionType |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awss3#BlockedEncryptionType |
Java | software.amazon.awscdk.services.s3.BlockedEncryptionType |
Python | aws_cdk.aws_s3.BlockedEncryptionType |
TypeScript (source) | aws-cdk-lib » aws_s3 » BlockedEncryptionType |
Encryption types that can be blocked on an S3 bucket.
Example
const bucket = new s3.Bucket(this, 'MySsecBlockedBucket', {
blockedEncryptionTypes: [s3.BlockedEncryptionType.SSE_C],
});
Properties
| Name | Type | Description |
|---|---|---|
| name | string | The name for this blocked encryption type used in the API. |
| static NONE | Blocked | Special value - all encryption types are allowed. |
| static SSE_C | Blocked | Server-Side Encryption with customer-provided keys (SSE-C) is blocked. |
name
Type:
string
The name for this blocked encryption type used in the API.
static NONE
Type:
Blocked
Special value - all encryption types are allowed.
static SSE_C
Type:
Blocked
Server-Side Encryption with customer-provided keys (SSE-C) is blocked.
Methods
| Name | Description |
|---|---|
| static custom(name) | Use this constructor only if S3 releases a new BlockedEncryptionType that is unknown to CDK. |
static custom(name)
public static custom(name: string): BlockedEncryptionType
Parameters
- name
string
Returns
Use this constructor only if S3 releases a new BlockedEncryptionType that is unknown to CDK.
Otherwise, use this class's static constants.

.NET
Go
Java
Python
TypeScript (