# DatabaseInputProperty

The structure used to create or update a database.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';

declare const parameters: any;
const databaseInputProperty: glue.CfnDatabase.DatabaseInputProperty = {
  createTableDefaultPermissions: [{
    permissions: ['permissions'],
    principal: {
      dataLakePrincipalIdentifier: 'dataLakePrincipalIdentifier',
    },
  }],
  description: 'description',
  federatedDatabase: {
    connectionName: 'connectionName',
    identifier: 'identifier',
  },
  locationUri: 'locationUri',
  name: 'name',
  parameters: parameters,
  targetDatabase: {
    catalogId: 'catalogId',
    databaseName: 'databaseName',
    region: 'region',
  },
};
```

## Properties

- `createTableDefaultPermissions`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDatabase.PrincipalPrivilegesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnDatabase.PrincipalPrivilegesProperty.html)[] — Creates a set of default permissions on the table for principals.

  Used by AWS Lake Formation . Not used in the normal course of AWS Glue operations.

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

- `federatedDatabase`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDatabase.FederatedDatabaseProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnDatabase.FederatedDatabaseProperty.html) — A `FederatedDatabase` structure that references an entity outside the AWS Glue Data Catalog .

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

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

  For Hive compatibility, this is folded to lowercase when it is stored.

- `parameters`: any — These key-value pairs define parameters and properties of the database.

- `targetDatabase`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDatabase.DatabaseIdentifierProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnDatabase.DatabaseIdentifierProperty.html) — A `DatabaseIdentifier` structure that describes a target database for resource linking.
