Skip to content
v2.274.0

DatabaseProps Struct ​

Example ​

ts
new glue.Database(this, 'MyDatabase', {
  databaseName: 'my_database',
  description: 'my_database_description',
});

Properties ​

catalogICatalogcatalogICatalogcatalogICatalogCatalogICatalogCatalogICatalog#
The catalog in which the database will be placed.

Default: The default, account-wide catalog.

databaseNamestringdatabase_namestrdatabaseNameStringDatabaseNamestringDatabaseName*string#
The name of the database.

Default: generated by CDK.

descriptionstringdescriptionstrdescriptionStringDescriptionstringDescription*string#
A description of the database.

Default: no database description

locationUristringlocation_uristrlocationUriStringLocationUristringLocationUri*string#
The location of the database (for example, an HDFS path).

Default: undefined. This field is optional in AWS::Glue::Database DatabaseInput

removalPolicyRemovalPolicyremoval_policyRemovalPolicyremovalPolicyRemovalPolicyRemovalPolicyRemovalPolicyRemovalPolicyRemovalPolicy= RemovalPolicy.RETAIN#
Policy to apply when the database is removed from the stack.

A database is a container for tables and their metadata, so it is retained by default to avoid accidental data loss when it is removed from a stack.