# DatabaseProps

- Source: [`lib/database.ts`](https://github.com/aws/aws-cdk/blob/v2.273.0-alpha.0/packages/@aws-cdk/aws-glue-alpha/lib/database.ts#L33)
- Type last changed: v2.270.0-alpha.0 · 18 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_aws-glue-alpha.ICatalog.html) = The default, account-wide catalog. — The catalog in which the database will be placed.

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

- `databaseName`: string = generated by CDK. — The name of the database.

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

- `locationUri`: string = undefined. This field is optional in AWS::Glue::Database DatabaseInput — 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.

## Used as props by

- [`Database`](/v2/docs/@aws-cdk_aws-glue-alpha.Database)
