Class DataCatalogEncryptionAtRest
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.glue.alpha.DataCatalogEncryptionAtRest
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-08-10T14:51:27.966Z")
@Stability(Experimental)
public class DataCatalogEncryptionAtRest
extends software.amazon.jsii.JsiiObject
(experimental) Encryption-at-rest configuration for a Glue Data Catalog.
The Data Catalog encryption at rest and the connection password encryption are independent: enabling one does not require the other, and each may use a different KMS key.
Example:
import software.amazon.awscdk.services.iam.*;
Key key;
IRole role;
Catalog.encryptAccount(this, CatalogEncryptionOptions.builder()
.encryptionAtRest(DataCatalogEncryptionAtRest.kmsWithServiceRole(role, key))
.build());
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDataCatalogEncryptionAtRest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedDataCatalogEncryptionAtRest(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic DataCatalogEncryptionAtRestdisabled()(experimental) Disable encryption at rest for the Data Catalog.(experimental) The customer-managed KMS key used for encryption at rest, if any.getMode()(experimental) The encryption mode.(experimental) The service role that AWS Glue assumes to access the KMS key, if any.static DataCatalogEncryptionAtRestkms()(experimental) Encrypt the Data Catalog at rest with an AWS KMS key.static DataCatalogEncryptionAtRest(experimental) Encrypt the Data Catalog at rest with an AWS KMS key.static DataCatalogEncryptionAtRestkmsWithServiceRole(IRole role) (experimental) Encrypt the Data Catalog at rest with an AWS KMS key, accessed through a service role that AWS Glue assumes on your behalf.static DataCatalogEncryptionAtRestkmsWithServiceRole(IRole role, IKey key) (experimental) Encrypt the Data Catalog at rest with an AWS KMS key, accessed through a service role that AWS Glue assumes on your behalf.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
DataCatalogEncryptionAtRest
protected DataCatalogEncryptionAtRest(software.amazon.jsii.JsiiObjectRef objRef) -
DataCatalogEncryptionAtRest
protected DataCatalogEncryptionAtRest(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
disabled
(experimental) Disable encryption at rest for the Data Catalog. -
kms
(experimental) Encrypt the Data Catalog at rest with an AWS KMS key.- Parameters:
key- the KMS key to use.
-
kms
(experimental) Encrypt the Data Catalog at rest with an AWS KMS key. -
kmsWithServiceRole
@Stability(Experimental) @NotNull public static DataCatalogEncryptionAtRest kmsWithServiceRole(@NotNull IRole role, @Nullable IKey key) (experimental) Encrypt the Data Catalog at rest with an AWS KMS key, accessed through a service role that AWS Glue assumes on your behalf.When a customer-managed
keyis provided, theroleis automatically grantedkms:Encrypt/kms:Decrypt/kms:GenerateDataKey*on it.- Parameters:
role- the service role that AWS Glue assumes to access the key. This parameter is required.key- the KMS key to use.
-
kmsWithServiceRole
@Stability(Experimental) @NotNull public static DataCatalogEncryptionAtRest kmsWithServiceRole(@NotNull IRole role) (experimental) Encrypt the Data Catalog at rest with an AWS KMS key, accessed through a service role that AWS Glue assumes on your behalf.When a customer-managed
keyis provided, theroleis automatically grantedkms:Encrypt/kms:Decrypt/kms:GenerateDataKey*on it.- Parameters:
role- the service role that AWS Glue assumes to access the key. This parameter is required.
-
getMode
(experimental) The encryption mode. -
getKmsKey
(experimental) The customer-managed KMS key used for encryption at rest, if any. -
getServiceRole
(experimental) The service role that AWS Glue assumes to access the KMS key, if any.
-