Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Jan 11, 2024
1 parent 64e4e9a commit 8e090c5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/aws-cdk-lib/aws-rds/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,8 @@ const cluster = new rds.DatabaseCluster(this, 'Database', {
// ...
});

// You can get the log group of a cluster
// When 'cloudwatchLogsExports' is set, each export value creates its own log group in DB cluster.
// Specify an export value to access its log group.
const errorLogGroup = cluster.cloudwatchLogGroups['error'];
const auditLogGroup = cluster.cloudwatchLogGroups.audit;

Expand All @@ -974,7 +975,8 @@ const instance = new rds.DatabaseInstance(this, 'Instance', {
// ...
});

// You can get the log group of a cluster
// When 'cloudwatchLogsExports' is set, each export value creates its own log group in DB instance.
// Specify an export value to access its log group.
const errorLogGroup = instance.cloudwatchLogGroups['postgresql'];
```

Expand Down

0 comments on commit 8e090c5

Please sign in to comment.