aws-cdk-lib.aws_glue.CfnDatabase.DatabaseInputProperty

interface DatabaseInputProperty

LanguageType name
.NETAmazon.CDK.AWS.Glue.CfnDatabase.DatabaseInputProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnDatabase_DatabaseInputProperty
Javasoftware.amazon.awscdk.services.glue.CfnDatabase.DatabaseInputProperty
Pythonaws_cdk.aws_glue.CfnDatabase.DatabaseInputProperty
TypeScript aws-cdk-lib » 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 { aws_glue as glue } from 'aws-cdk-lib';

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

NameTypeDescription
createTableDefaultPermissions?IResolvable | IResolvable | PrincipalPrivilegesProperty[]Creates a set of default permissions on the table for principals.
description?stringA description of the database.
federatedDatabase?IResolvable | FederatedDatabasePropertyA FederatedDatabase structure that references an entity outside the AWS Glue Data Catalog .
locationUri?stringThe location of the database (for example, an HDFS path).
name?stringThe name of the database.
parameters?anyThese key-value pairs define parameters and properties of the database.
targetDatabase?IResolvable | DatabaseIdentifierPropertyA DatabaseIdentifier structure that describes a target database for resource linking.

createTableDefaultPermissions?

Type: IResolvable | IResolvable | PrincipalPrivilegesProperty[] (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 | FederatedDatabaseProperty (optional)

A FederatedDatabase structure that references an entity outside the AWS Glue Data Catalog .


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 | DatabaseIdentifierProperty (optional)

A DatabaseIdentifier structure that describes a target database for resource linking.