interface DatabaseInputProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.Glue.CfnDatabase.DatabaseInputProperty |
Java | software.amazon.awscdk.services.glue.CfnDatabase.DatabaseInputProperty |
Python | aws_cdk.aws_glue.CfnDatabase.DatabaseInputProperty |
TypeScript | @aws-cdk/aws-glue » CfnDatabase » DatabaseInputProperty |
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 * as glue from '@aws-cdk/aws-glue';
declare const parameters: any;
const databaseInputProperty: glue.CfnDatabase.DatabaseInputProperty = {
createTableDefaultPermissions: [{
permissions: ['permissions'],
principal: {
dataLakePrincipalIdentifier: 'dataLakePrincipalIdentifier',
},
}],
description: 'description',
federatedDatabase: {
connectionName: 'connectionName',
identifier: 'identifier',
},
locationUri: 'locationUri',
name: 'name',
parameters: parameters,
targetDatabase: {
catalogId: 'catalogId',
databaseName: 'databaseName',
},
};
Properties
Name | Type | Description |
---|---|---|
create | IResolvable | IResolvable | Principal [] | Creates a set of default permissions on the table for principals. |
description? | string | A description of the database. |
federated | IResolvable | Federated | CfnDatabase.DatabaseInputProperty.FederatedDatabase . |
location | string | The location of the database (for example, an HDFS path). |
name? | string | The name of the database. |
parameters? | any | These key-value pairs define parameters and properties of the database. |
target | IResolvable | Database | A DatabaseIdentifier structure that describes a target database for resource linking. |
createTableDefaultPermissions?
Type:
IResolvable
|
IResolvable
|
Principal
[]
(optional)
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.
description?
Type:
string
(optional)
A description of the database.
federatedDatabase?
Type:
IResolvable
|
Federated
(optional)
CfnDatabase.DatabaseInputProperty.FederatedDatabase
.
locationUri?
Type:
string
(optional)
The location of the database (for example, an HDFS path).
name?
Type:
string
(optional)
The name of the database.
For Hive compatibility, this is folded to lowercase when it is stored.
parameters?
Type:
any
(optional)
These key-value pairs define parameters and properties of the database.
targetDatabase?
Type:
IResolvable
|
Database
(optional)
A DatabaseIdentifier
structure that describes a target database for resource linking.