UNPKG

cdk-rds-sql

Version:

A CDK construct that allows creating roles or users and databases an on Aurora Serverless Postgresql or Mysql/MariaDB cluster.

28 lines (27 loc) 678 B
import { CustomResource } from "aws-cdk-lib"; import { Construct } from "constructs"; import { IDatabase } from "./database"; import { Provider } from "./provider"; export interface SqlProps { /** * Provider. */ readonly provider: Provider; /** * 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); }