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 367fd3f
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 generates its own log group in the DB instance.
// 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 generates its own log group in the DB instance.
// Specify an export value to access its log group.
const errorLogGroup = instance.cloudwatchLogGroups['postgresql'];
```

Expand Down

0 comments on commit 367fd3f

Please sign in to comment.