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")
.region("region")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDatabase.DatabaseInputPropertystatic final classAn implementation forCfnDatabase.DatabaseInputProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectCreates a set of default permissions on the table for principals.default StringA description of the database.default ObjectAFederatedDatabasestructure that references an entity outside the AWS Glue Data Catalog .default StringThe location of the database (for example, an HDFS path).default StringgetName()The name of the database.default ObjectThese key-value pairs define parameters and properties of the database.default ObjectADatabaseIdentifierstructure that describes a target database for resource linking.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnDatabase.PrincipalPrivilegesProperty>- See Also:
-
getDescription
A description of the database.- See Also:
-
getFederatedDatabase
AFederatedDatabasestructure that references an entity outside the AWS Glue Data Catalog .Returns union: either
IResolvableorCfnDatabase.FederatedDatabaseProperty- See Also:
-
getLocationUri
The location of the database (for example, an HDFS path).- See Also:
-
getName
The name of the database.For Hive compatibility, this is folded to lowercase when it is stored.
- See Also:
-
getParameters
These key-value pairs define parameters and properties of the database.- See Also:
-
getTargetDatabase
ADatabaseIdentifierstructure that describes a target database for resource linking.Returns union: either
IResolvableorCfnDatabase.DatabaseIdentifierProperty- See Also:
-
builder
-