Class Database.Builder
java.lang.Object
software.amazon.awscdk.services.glue.alpha.Database.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<Database>
- Enclosing class:
Database
@Stability(Experimental)
public static final class Database.Builder
extends Object
implements software.amazon.jsii.Builder<Database>
(experimental) A fluent builder for
Database.-
Method Summary
Modifier and TypeMethodDescriptionbuild()(experimental) The catalog in which the database will be placed.static Database.BuilderdatabaseName(String databaseName) (experimental) The name of the database.description(String description) (experimental) A description of the database.locationUri(String locationUri) (experimental) The location of the database (for example, an HDFS path).removalPolicy(RemovalPolicy removalPolicy) (experimental) Policy to apply when the database is removed from the stack.
-
Method Details
-
create
@Stability(Experimental) public static Database.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- This parameter is required.id- This parameter is required.- Returns:
- a new instance of
Database.Builder.
-
catalog
(experimental) The catalog in which the database will be placed.Default: The default, account-wide catalog.
- Parameters:
catalog- The catalog in which the database will be placed. This parameter is required.- Returns:
this
-
databaseName
(experimental) The name of the database.Default: - generated by CDK.
- Parameters:
databaseName- The name of the database. This parameter is required.- Returns:
this
-
description
(experimental) A description of the database.Default: - no database description
- Parameters:
description- A description of the database. This parameter is required.- Returns:
this
-
locationUri
(experimental) The location of the database (for example, an HDFS path).Default: undefined. This field is optional in AWS::Glue::Database DatabaseInput
- Parameters:
locationUri- The location of the database (for example, an HDFS path). This parameter is required.- Returns:
this- See Also:
-
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
- Parameters:
removalPolicy- Policy to apply when the database is removed from the stack. This parameter is required.- Returns:
this
-
build
-