Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinZZ committed Jun 27, 2024
1 parent e05fd96 commit fd2ae9f
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions packages/aws-cdk-lib/custom-resources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ const handler = new lambda.Function(this , 'my-handler', {
});

// Provision a custom resource provider framework
const provider = new Provider(this , 'my-provider', {
const provider = new cr.Provider(this , 'my-provider', {
onEventHandler: handler,
});

Expand All @@ -254,17 +254,8 @@ new CustomResource(this , 'my-cr', {
```

When `NoEcho` field is set to `true` in the response of custom resource handler,
it will automatically mask all values in the `Data` object in the log statements.

```ts
PhysicalResourceId: '1234',
NoEcho: true,
Data: {
mySecret: '*****',
hello: '*****',
ghToken: '*****',
}
```
it will automatically mask all values in the `Data` object in the log statements
to asterisks (*****).

### When there are errors

Expand Down

0 comments on commit fd2ae9f

Please sign in to comment.