aws-cdk-lib.aws_glue.CfnDatabaseProps

interface CfnDatabaseProps

LanguageType name
.NETAmazon.CDK.AWS.Glue.CfnDatabaseProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsglue#CfnDatabaseProps
Javasoftware.amazon.awscdk.services.glue.CfnDatabaseProps
Pythonaws_cdk.aws_glue.CfnDatabaseProps
TypeScript aws-cdk-lib » aws_glue » CfnDatabaseProps

Properties for defining a CfnDatabase.

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 cfnDatabaseProps: glue.CfnDatabaseProps = {
  catalogId: 'catalogId',
  databaseInput: {
    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
catalogIdstringThe AWS account ID for the account in which to create the catalog object.
databaseInputIResolvable | DatabaseInputPropertyThe metadata for the database.

catalogId

Type: string

The AWS account ID for the account in which to create the catalog object.

To specify the account ID, you can use the Ref intrinsic function with the AWS::AccountId pseudo parameter. For example: !Ref AWS::AccountId


databaseInput

Type: IResolvable | DatabaseInputProperty

The metadata for the database.