Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS::Glue::Database

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 and Database Structure in the AWS Glue Developer Guide.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

Copy
{ "Type" : "AWS::Glue::Database", "Properties" : { "DatabaseInput" : DatabaseInput, "CatalogId" : String } }

YAML

Copy
Type: "AWS::Glue::Database" Properties: DatabaseInput: DatabaseInput CatalogId: String

Properties

DatabaseInput

The metadata of the database.

Required: Yes

Type: AWS Glue Database DatabaseInput

Update requires: No interruption

CatalogId

The ID of the data catalog to create the catalog object in. Currently, this should be the AWS account ID.

Note

To specify the account ID, you can use the Ref intrinsic function with the AWS::AccountId pseudo parameter—for example !Ref AWS::AccountId.

Required: Yes

Type: String

Update requires: No interruption

Return Values

Ref

When the logical ID of this resource is provided to the Ref intrinsic function, Ref returns the DatabaseInput name.

For more information about using the Ref function, see Ref.