java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.glue.alpha.Database
All Implemented Interfaces:
IEnvironmentAware, IResource, IDatabase, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-08-13T16:20:30.649Z") @Stability(Experimental) public class Database extends Resource implements IDatabase
(experimental) A Glue database.

Example:

 import software.amazon.awscdk.RemovalPolicy;
 Database.Builder.create(this, "MyDatabase")
         .databaseName("my_database")
         .removalPolicy(RemovalPolicy.DESTROY)
         .build();
 
  • Field Details

    • PROPERTY_INJECTION_ID

      @Stability(Experimental) public static final String PROPERTY_INJECTION_ID
      (experimental) Uniquely identifies this class.
  • Constructor Details

    • Database

      protected Database(software.amazon.jsii.JsiiObjectRef objRef)
    • Database

      protected Database(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • Database

      @Stability(Experimental) public Database(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable DatabaseProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props -
    • Database

      @Stability(Experimental) public Database(@NotNull software.constructs.Construct scope, @NotNull String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
  • Method Details

    • fromDatabaseArn

      @Stability(Experimental) @NotNull public static IDatabase fromDatabaseArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String databaseArn)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      databaseArn - This parameter is required.
    • getCatalog

      @Stability(Experimental) @NotNull public ICatalog getCatalog()
      (experimental) The catalog this database belongs to.

      Defaults to the implicit, account-wide catalog, materialized on first access.

      Specified by:
      getCatalog in interface IDatabase
    • getDatabaseArn

      @Stability(Experimental) @NotNull public String getDatabaseArn()
      (experimental) The ARN of the database.
      Specified by:
      getDatabaseArn in interface IDatabase
    • getDatabaseName

      @Stability(Experimental) @NotNull public String getDatabaseName()
      (experimental) The name of the database.
      Specified by:
      getDatabaseName in interface IDatabase
    • getLocationUri

      @Stability(Experimental) @Nullable public String getLocationUri()
      (experimental) Location URI of this database.
    • setLocationUri

      @Stability(Experimental) public void setLocationUri(@Nullable String value)
      (experimental) Location URI of this database.