Skip to content

Commit

Permalink
fix: method signature
Browse files Browse the repository at this point in the history
  • Loading branch information
blimmer committed Jan 6, 2025
1 parent a327f10 commit becf0a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/aws-cdk-lib/aws-rds/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,12 @@ abstract class DatabaseClusterNew extends DatabaseClusterBase {
enableCloudwatchLogsExports: props.cloudwatchLogsExports,
// Encryption
kmsKeyId: props.storageEncryptionKey?.keyArn,
storageEncrypted: getStorageEncryptedProperty(this, props),
storageEncrypted: getStorageEncryptedProperty(
this,
props.storageEncrypted,
props.storageEncryptedLegacyDefaultValue,
props.storageEncryptionKey,
),
// Tags
copyTagsToSnapshot: props.copyTagsToSnapshot ?? true,
domain: this.domainId,
Expand Down
7 changes: 6 additions & 1 deletion packages/aws-cdk-lib/aws-rds/lib/instance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,12 @@ export class DatabaseInstance extends DatabaseInstanceSource implements IDatabas
kmsKeyId: props.storageEncryptionKey && props.storageEncryptionKey.keyArn,
masterUsername: credentials.username,
masterUserPassword: credentials.password?.unsafeUnwrap(),
storageEncrypted: getStorageEncryptedProperty(this, props),
storageEncrypted: getStorageEncryptedProperty(
this,
props.storageEncrypted,
props.storageEncryptedLegacyDefaultValue,
props.storageEncryptionKey,
),
});

this.instanceIdentifier = this.getResourceNameAttribute(instance.ref);
Expand Down

0 comments on commit becf0a7

Please sign in to comment.