class S3TableEncryption
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.S3TableEncryption |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#S3TableEncryption |
Java | software.amazon.awscdk.services.glue.alpha.S3TableEncryption |
Python | aws_cdk.aws_glue_alpha.S3TableEncryption |
TypeScript (source) | @aws-cdk/aws-glue-alpha ยป S3TableEncryption |
Server-side encryption for the S3 bucket that a managed S3Table creates.
Applies only when the table manages its own bucket (via
S3TableStorage.managedBucket). An existing bucket keeps whatever encryption
it was created with.
Example
declare const myDatabase: glue.Database;
new glue.S3Table(this, 'MyTable', {
storage: glue.S3TableStorage.managedBucket(glue.S3TableEncryption.s3Managed()),
// ...
database: myDatabase,
columns: [{
name: 'col1',
type: glue.Schema.STRING,
}],
dataFormat: glue.DataFormat.JSON,
});
Methods
| Name | Description |
|---|---|
| static kms(key?) | Server-side encryption (SSE-KMS) with an AWS KMS key managed by the account owner. |
| static kms | Server-side encryption (SSE-KMS) with an AWS KMS key managed by the KMS service. |
| static s3 | Server-side encryption (SSE-S3) with an Amazon S3-managed key. |
static kms(key?)
public static kms(key?: IKey): S3TableEncryption
Parameters
- key
IKeyโ the KMS key used to encrypt the data.
Returns
Server-side encryption (SSE-KMS) with an AWS KMS key managed by the account owner.
static kmsManaged()
public static kmsManaged(): S3TableEncryption
Returns
Server-side encryption (SSE-KMS) with an AWS KMS key managed by the KMS service.
static s3Managed()
public static s3Managed(): S3TableEncryption
Returns
Server-side encryption (SSE-S3) with an Amazon S3-managed key.

.NET
Go
Java
Python
TypeScript (