Class CatalogBase
- All Implemented Interfaces:
ICatalogRef,IEnvironmentAware,IResource,ICatalog,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
- Direct Known Subclasses:
Catalog
ICatalog implementations.
Materializes the single
CfnDataCatalogEncryptionSettings resource (targeting its own catalogId)
from the encryption options supplied at construction. Encryption is fixed at
construction, so a catalog either carries settings or it does not.
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.glue.alpha.ICatalog
ICatalog.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCatalogBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCatalogBase(software.amazon.jsii.JsiiObjectRef objRef) protectedCatalogBase(software.constructs.Construct scope, String id) protectedCatalogBase(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionprotected void(experimental) Emit the catalog's encryption settings from the options fixed at construction.abstract String(experimental) The ARN of the catalog.abstract String(experimental) The id of the catalog (for the account-wide catalog, the AWS account id).(experimental) A reference to a Catalog resource.(experimental) The customer-managed KMS key used to encrypt connection passwords, if one was configured.(experimental) The customer-managed KMS key used for the catalog's encryption at rest, if one was configured.Methods inherited from class software.amazon.awscdk.Resource
applyCrossStackReferenceStrength, applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource, withMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
CatalogBase
protected CatalogBase(software.amazon.jsii.JsiiObjectRef objRef) -
CatalogBase
protected CatalogBase(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CatalogBase
@Stability(Stable) protected CatalogBase(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props-
-
CatalogBase
@Stability(Stable) protected CatalogBase(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope- This parameter is required.id- This parameter is required.
-
-
Method Details
-
configureEncryption
@Stability(Experimental) protected void configureEncryption(@NotNull CatalogEncryptionOptions options) (experimental) Emit the catalog's encryption settings from the options fixed at construction.Subclasses call this once, after
catalogId/catalogArnare assigned. When neither block is configured, no resource is emitted, avoiding an empty settings resource that would reset the catalog on deploy.- Parameters:
options- This parameter is required.
-
getCatalogArn
(experimental) The ARN of the catalog.- Specified by:
getCatalogArnin interfaceICatalog
-
getCatalogId
(experimental) The id of the catalog (for the account-wide catalog, the AWS account id).- Specified by:
getCatalogIdin interfaceICatalog
-
getCatalogRef
(experimental) A reference to a Catalog resource.- Specified by:
getCatalogRefin interfaceICatalogRef
-
getConnectionPasswordKey
(experimental) The customer-managed KMS key used to encrypt connection passwords, if one was configured.Undefined when password encryption uses an AWS-managed key or is not configured. Grant access to it via
KeyGrants, e.g.if (catalog.connectionPasswordKey) { KeyGrants.fromKey(catalog.connectionPasswordKey).encrypt(grantee); }.- Specified by:
getConnectionPasswordKeyin interfaceICatalog
-
getEncryptionKey
(experimental) The customer-managed KMS key used for the catalog's encryption at rest, if one was configured.Undefined when encryption is disabled or an AWS-managed key is used. Grant access to it via
KeyGrants, e.g.if (catalog.encryptionKey) { KeyGrants.fromKey(catalog.encryptionKey).encrypt(grantee); }.- Specified by:
getEncryptionKeyin interfaceICatalog
-