import { Duration, RemovalPolicy } from "aws-cdk-lib"; import * as ec2 from "aws-cdk-lib/aws-ec2"; import * as rds from "aws-cdk-lib/aws-rds"; import type * as secretsmanager from "aws-cdk-lib/aws-secretsmanager"; import { Construct } from "constructs"; export type DatabaseProps = { vpc: ec2.IVpc; /** Name of the database and of the master user. */ databaseName: string; instanceType?: ec2.InstanceType; multiAz?: boolean; /** Defaults to 20 (GiB). */ allocatedStorage?: number; /** Defaults to 7 days. */ backupRetention?: Duration; deletionProtection?: boolean; removalPolicy?: RemovalPolicy; }; /** * RDS Postgres for an internal service. Not publicly accessible, reachable only from * whatever security group the caller wires up (e.g. an api task's). */ export declare class Database extends Construct { readonly instance: rds.DatabaseInstance; readonly secret: secretsmanager.ISecret; readonly databaseName: string; constructor(scope: Construct, id: string, props: DatabaseProps); }