Skip to content

Commit fcd50d8

Browse files
committed
feat: expose rds maxAllocatedStorage
1 parent 938c62d commit fcd50d8

2 files changed

Lines changed: 35 additions & 1 deletion

File tree

API.md

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/constructs/database-instance.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ export interface DatabaseInstanceProps {
112112
* @default false
113113
*/
114114
readonly enablePerformanceInsights?: boolean;
115+
116+
/**
117+
* The maximum allocated storage of the database instance.
118+
* @default - No maximum allocated storage is specified.
119+
*/
120+
readonly maxAllocatedStorage?: number;
115121
}
116122

117123
/**
@@ -165,7 +171,6 @@ export class DatabaseInstance extends Construct implements IDatabase {
165171
allowAllOutbound: true,
166172
securityGroupName: props.securityGroupName ?? `${this.node.path.replace(/\//g, '-')}-sg`,
167173
});
168-
169174
this.resource = new rds.DatabaseInstance(this, 'DB', {
170175
instanceIdentifier: props.instanceIdentifier,
171176
vpc: props.networking.vpc,
@@ -186,6 +191,7 @@ export class DatabaseInstance extends Construct implements IDatabase {
186191
cloudwatchLogsRetention: props.cloudwatchLogsRetention,
187192
allowMajorVersionUpgrade: props.allowMajorVersionUpgrade ?? false,
188193
enablePerformanceInsights: props.enablePerformanceInsights ?? false,
194+
maxAllocatedStorage: props.maxAllocatedStorage,
189195
});
190196
if (props.networking.bastionHost) {
191197
this.resource.connections.allowDefaultPortFrom(props.networking.bastionHost);

0 commit comments

Comments
 (0)