DatabaseProps
- class aws_cdk.aws_glue.DatabaseProps(*, catalog=None, database_name=None, description=None, location_uri=None, removal_policy=None)
Bases:
object- Parameters:
catalog (
Optional[ICatalog]) – The catalog in which the database will be placed. Default: The default, account-wide catalog.database_name (
Optional[str]) – The name of the database. Default: - generated by CDK.description (
Optional[str]) – A description of the database. Default: - no database descriptionlocation_uri (
Optional[str]) – The location of the database (for example, an HDFS path). Default: undefined. This field is optional in AWS::Glue::Database DatabaseInputremoval_policy (
Optional[RemovalPolicy]) – 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
- ExampleMetadata:
infused
Example:
glue.Database(self, "MyDatabase", database_name="my_database", description="my_database_description" )
Attributes
- catalog
The catalog in which the database will be placed.
- Default:
The default, account-wide catalog.
- database_name
The name of the database.
- Default:
generated by CDK.
- description
A description of the database.
- Default:
no database description
- location_uri
The location of the database (for example, an HDFS path).
- Default:
undefined. This field is optional in AWS::Glue::Database DatabaseInput
- See:
- removal_policy
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