Skip to content

Commit 78be158

Browse files
authored
fix(custom-resources): custom resource config addLogRetentionLifetime parameter typo (#34090)
### Issue # (if applicable) Closes #34083. ### Reason for this change ### Description of changes fixes typo from `rentention` to `retention` ### Describe any new or updated permissions being added ### Description of how you validated changes ### Checklist - [ ] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 1d4abcd commit 78be158

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: packages/aws-cdk-lib/custom-resources/lib/custom-resource-config/custom-resource-config.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ export class CustomResourceConfig {
3131
*
3232
* This feature is currently experimental.
3333
*/
34-
public addLogRetentionLifetime(rentention: logs.RetentionDays) {
35-
Aspects.of(this.scope).add(new CustomResourceLogRetention(rentention), { priority: AspectPriority.MUTATING });
34+
public addLogRetentionLifetime(retention: logs.RetentionDays) {
35+
Aspects.of(this.scope).add(new CustomResourceLogRetention(retention), {
36+
priority: AspectPriority.MUTATING,
37+
});
3638
}
3739

3840
/**

0 commit comments

Comments
 (0)