DatabaseProps

class aws_cdk.aws_glue_alpha.DatabaseProps(*, catalog=None, database_name=None, description=None, location_uri=None, removal_policy=None)

Bases: object

Parameters:
  • catalog (Optional[ICatalog]) – (experimental) The catalog in which the database will be placed. Default: The default, account-wide catalog.

  • database_name (Optional[str]) – (experimental) The name of the database. Default: - generated by CDK.

  • description (Optional[str]) – (experimental) A description of the database. Default: - no database description

  • location_uri (Optional[str]) – (experimental) The location of the database (for example, an HDFS path). Default: undefined. This field is optional in AWS::Glue::Database DatabaseInput

  • removal_policy (Optional[RemovalPolicy]) – (experimental) 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. Default: RemovalPolicy.RETAIN

Stability:

experimental

ExampleMetadata:

infused

Example:

glue.Database(self, "MyDatabase",
    database_name="my_database",
    description="my_database_description"
)

Attributes

catalog

(experimental) The catalog in which the database will be placed.

Default:

The default, account-wide catalog.

Stability:

experimental

database_name

(experimental) The name of the database.

Default:
  • generated by CDK.

Stability:

experimental

description

(experimental) A description of the database.

Default:
  • no database description

Stability:

experimental

location_uri

(experimental) The location of the database (for example, an HDFS path).

Default:

undefined. This field is optional in AWS::Glue::Database DatabaseInput

See:

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html

Stability:

experimental

removal_policy

(experimental) 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.

Default:

RemovalPolicy.RETAIN

Stability:

experimental