# DatabaseInputDefinitionProperty

Connection information for dataset input files stored in 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_databrew as databrew } from 'aws-cdk-lib';
const databaseInputDefinitionProperty: databrew.CfnDataset.DatabaseInputDefinitionProperty = {
  glueConnectionName: 'glueConnectionName',

  // the properties below are optional
  databaseTableName: 'databaseTableName',
  queryString: 'queryString',
  tempDirectory: {
    bucket: 'bucket',

    // the properties below are optional
    bucketOwner: 'bucketOwner',
    key: 'key',
  },
};
```

## Properties

- `databaseTableName`: string — The table within the target database.

- `glueConnectionName`: string (required) — The AWS Glue Connection that stores the connection information for the target database.

- `queryString`: string — Custom SQL to run against the provided AWS Glue connection.

  This SQL will be used as the input for DataBrew projects and jobs.

- `tempDirectory`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnDataset.S3LocationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_databrew.CfnDataset.S3LocationProperty.html) — An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
