Skip to content

Commit f73a3ad

Browse files
committed
README
1 parent 1dddb7d commit f73a3ad

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

packages/@aws-cdk/custom-resources/README.md

+13
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,19 @@ Since a successful resource provisioning might or might not produce outputs, thi
380380

381381
In both the cases, you will get a synth time error if you attempt to use it in conjunction with `ignoreErrorCodesMatching`.
382382

383+
### Customizing the Lambda function implementing the custom resource
384+
Use the `role`, `timeout` and `logRetention` properties to customize the Lambda function implementing the custom
385+
resource:
386+
387+
```ts
388+
new AwsCustomResource(this, 'Customized', {
389+
// other props here
390+
role: myRole, // must be assumable by the `lambda.amazonaws.com` service principal
391+
timeout: cdk.Duration.minutes(10) // defaults to 2 minutes
392+
logRetention: logs.RetentionDays.ONE_WEEK // defaults to never delete logs
393+
})
394+
```
395+
383396
### Examples
384397

385398
#### Verify a domain with SES

0 commit comments

Comments
 (0)