Class DatabaseProps
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Glue
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DatabaseProps : IDatabaseProps
Syntax (vb)
Public Class DatabaseProps Implements IDatabaseProps
Remarks
ExampleMetadata: infused
Examples
new Database(this, "MyDatabase", new DatabaseProps {
DatabaseName = "my_database",
Description = "my_database_description"
});
Synopsis
Constructors
| DatabaseProps() |
Properties
| Catalog | The catalog in which the database will be placed. |
| DatabaseName | The name of the database. |
| Description | A description of the database. |
| LocationUri | The location of the database (for example, an HDFS path). |
| RemovalPolicy | Policy to apply when the database is removed from the stack. |
Constructors
DatabaseProps()
public DatabaseProps()
Remarks
ExampleMetadata: infused
Examples
new Database(this, "MyDatabase", new DatabaseProps {
DatabaseName = "my_database",
Description = "my_database_description"
});
Properties
Catalog
The catalog in which the database will be placed.
public ICatalog? Catalog { get; set; }
Property Value
Remarks
Default: The default, account-wide catalog.
DatabaseName
The name of the database.
public string? DatabaseName { get; set; }
Property Value
Remarks
Default: - generated by CDK.
Description
A description of the database.
public string? Description { get; set; }
Property Value
Remarks
Default: - no database description
LocationUri
The location of the database (for example, an HDFS path).
public string? LocationUri { get; set; }
Property Value
Remarks
Default: undefined. This field is optional in AWS::Glue::Database DatabaseInput
RemovalPolicy
Policy to apply when the database is removed from the stack.
public RemovalPolicy? RemovalPolicy { get; set; }
Property Value
Remarks
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