UNPKG

@aws-cdk/aws-glue-alpha

Version:

The CDK Construct Library for AWS::Glue

71 lines (70 loc) 1.99 kB
import type { IResource } from 'aws-cdk-lib/core'; import { Resource } from 'aws-cdk-lib/core'; import type { Construct } from 'constructs'; export interface IDatabase extends IResource { /** * The ARN of the catalog. */ readonly catalogArn: string; /** * The catalog id of the database (usually, the AWS account id) */ readonly catalogId: string; /** * The ARN of the database. * * @attribute */ readonly databaseArn: string; /** * The name of the database. * * @attribute */ readonly databaseName: string; } export interface DatabaseProps { /** * The name of the database. * * @default - generated by CDK. */ readonly databaseName?: string; /** * The location of the database (for example, an HDFS path). * * @default undefined. This field is optional in AWS::Glue::Database DatabaseInput * @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-database-databaseinput.html */ readonly locationUri?: string; /** * A description of the database. * * @default - no database description */ readonly description?: string; } /** * A Glue database. */ export declare class Database extends Resource implements IDatabase { /** Uniquely identifies this class. */ static readonly PROPERTY_INJECTION_ID: string; static fromDatabaseArn(scope: Construct, id: string, databaseArn: string): IDatabase; /** * ARN of the Glue catalog in which this database is stored. */ readonly catalogArn: string; /** * The catalog id of the database (usually, the AWS account id). */ readonly catalogId: string; /** * Location URI of this database. */ locationUri?: string; private resource; constructor(scope: Construct, id: string, props?: DatabaseProps); get databaseName(): string; get databaseArn(): string; }