Interface CfnDatabase.DatabaseInputProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDatabase.DatabaseInputProperty.Jsii$Proxy
Enclosing class:
CfnDatabase

@Stability(Stable) public static interface CfnDatabase.DatabaseInputProperty extends software.amazon.jsii.JsiiSerializable
The structure used to create or update a database.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.glue.*;
 Object parameters;
 DatabaseInputProperty databaseInputProperty = DatabaseInputProperty.builder()
         .createTableDefaultPermissions(List.of(PrincipalPrivilegesProperty.builder()
                 .permissions(List.of("permissions"))
                 .principal(DataLakePrincipalProperty.builder()
                         .dataLakePrincipalIdentifier("dataLakePrincipalIdentifier")
                         .build())
                 .build()))
         .description("description")
         .federatedDatabase(FederatedDatabaseProperty.builder()
                 .connectionName("connectionName")
                 .identifier("identifier")
                 .build())
         .locationUri("locationUri")
         .name("name")
         .parameters(parameters)
         .targetDatabase(DatabaseIdentifierProperty.builder()
                 .catalogId("catalogId")
                 .databaseName("databaseName")
                 .build())
         .build();
 
  • Method Details

    • getCreateTableDefaultPermissions

      @Stability(Stable) @Nullable default Object getCreateTableDefaultPermissions()
      Creates a set of default permissions on the table for principals.

      Used by AWS Lake Formation . Not used in the normal course of AWS Glue operations.

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A description of the database.
    • getFederatedDatabase

      @Stability(Stable) @Nullable default Object getFederatedDatabase()
      CfnDatabase.DatabaseInputProperty.FederatedDatabase.
    • getLocationUri

      @Stability(Stable) @Nullable default String getLocationUri()
      The location of the database (for example, an HDFS path).
    • getName

      @Stability(Stable) @Nullable default String getName()
      The name of the database.

      For Hive compatibility, this is folded to lowercase when it is stored.

    • getParameters

      @Stability(Stable) @Nullable default Object getParameters()
      These key-value pairs define parameters and properties of the database.
    • getTargetDatabase

      @Stability(Stable) @Nullable default Object getTargetDatabase()
      A DatabaseIdentifier structure that describes a target database for resource linking.
    • builder

      @Stability(Stable) static CfnDatabase.DatabaseInputProperty.Builder builder()
      Returns:
      a CfnDatabase.DatabaseInputProperty.Builder of CfnDatabase.DatabaseInputProperty