# DatabaseProps

Extends: DatabaseProps
Used as props by: Database

- Source: [`aws-glue/lib/database.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-glue/lib/database.ts#L33)
- Type last changed: v2.270.0 · 17 Sep 2026

## Example

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

## Properties

- `catalog`: [ICatalog](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.ICatalog.html) — The catalog in which the database will be placed.

  **Default:** The default, account-wide catalog.

- `databaseName`: string — The name of the database.

  **Default:** generated by CDK.

- `description`: string — A description of the database.

  **Default:** no database description

- `locationUri`: string — The location of the database (for example, an HDFS path).

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

- `removalPolicy`: [RemovalPolicy](/cdk/api/v2/docs/aws-cdk-lib.RemovalPolicy.html) = 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.
