UNPKG

cdk-rds-sql

Version:

A CDK construct that allows creating roles or users and databases on Aurora Serverless PostgreSQL or MySQL/MariaDB clusters, as well as AWS DSQL clusters.

28 lines (27 loc) 680 B
import { CustomResource } from "aws-cdk-lib"; import { Construct } from "constructs"; import { IDatabase } from "./database"; import { IProvider } from "./provider"; export interface SqlProps { /** * Provider. */ readonly provider: IProvider; /** * Optional database. * * @default - use default database */ readonly database?: IDatabase; /** * SQL. */ readonly statement?: string; /** * Optional statment to be executed when the resource is deleted */ readonly rollback?: string; } export declare class Sql extends CustomResource { constructor(scope: Construct, id: string, props: SqlProps); }