AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Glue::Database

CfnDatabase

The `AWS::Glue::Database` resource specifies a logical grouping of tables in AWS Glue . For more information, see [Defining a Database in Your Data Catalog](https://docs.aws.amazon.com/glue/latest/dg/define-database.html) and [Database Structure](https://docs.aws.amazon.com/glue/latest/dg/aws-glue-api-catalog-databases.html#aws-glue-api-catalog-databases-Database) in the *AWS Glue Developer Guide* .

Import

import { CfnDatabase } from 'aws-cdk-lib/aws-glue';

Or use the module namespace:

import * as glue from 'aws-cdk-lib/aws-glue';
// glue.CfnDatabase

Properties

Configuration passed to the constructor as CfnDatabaseProps.

catalogIdRequired
string

The AWS account ID for the account in which to create the catalog object. > To specify the account ID, you can use the `Ref` intrinsic function with the `AWS::AccountId` pseudo parameter. For example: `!Ref AWS::AccountId`

databaseInputRequired
IResolvable | DatabaseInputProperty

The metadata for the database.

databaseNameOptional
string

The name of the catalog database.

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter