From 23db46e9990b52e600d08273da460364847be7b5 Mon Sep 17 00:00:00 2001 From: kinchit Date: Sat, 9 Aug 2025 07:08:25 +0530 Subject: [PATCH] fix: added a var for replicaStorageType --- API.md | 11 +++++++++++ src/rds.ts | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/API.md b/API.md index 1910cb9..8726645 100644 --- a/API.md +++ b/API.md @@ -858,6 +858,7 @@ const postgresProps: PostgresProps = { ... } | replicaAlertThresholds | AlertThresholds | *No description.* | | replicaAllocatedStorage | number | *No description.* | | replicaMaxAllocatedStorage | number | *No description.* | +| replicaStorageType | aws-cdk-lib.aws_rds.StorageType | *No description.* | | snapshotIdentifier | string | *No description.* | | snsTopicCreate | boolean | *No description.* | | storageEncrypted | boolean | *No description.* | @@ -1126,6 +1127,16 @@ public readonly replicaMaxAllocatedStorage: number; --- +##### `replicaStorageType`Optional + +```typescript +public readonly replicaStorageType: StorageType; +``` + +- *Type:* aws-cdk-lib.aws_rds.StorageType + +--- + ##### `snapshotIdentifier`Optional ```typescript diff --git a/src/rds.ts b/src/rds.ts index 2843f6b..0630fba 100644 --- a/src/rds.ts +++ b/src/rds.ts @@ -52,6 +52,7 @@ export interface PostgresProps { readonly replicaAllocatedStorage?: number; readonly replicaMaxAllocatedStorage?: number; readonly storageType?: rds.StorageType; + readonly replicaStorageType?: rds.StorageType; readonly backupRetention?: number; readonly deletionProtection?: boolean; readonly readReplicas?: ReadReplica; @@ -203,7 +204,7 @@ export class PostgresRDSCluster extends Construct { sourceDatabaseInstance: rdsInstance, subnetGroup: dbSubnetGroup, deletionProtection: props.deletionProtection ?? true, - storageType: props.storageType, + storageType: props.replicaStorageType, autoMinorVersionUpgrade: props.allowMajorVersionUpgrade ?? false, allocatedStorage: props.replicaAllocatedStorage ?? props.allocatedStorage, maxAllocatedStorage: props.replicaMaxAllocatedStorage ?? props.maxAllocatedStorage,