TypeScript ECR Documentation Update #3273
Labels
@aws-cdk/aws-ecr
Related to Amazon Elastic Container Registry
docs/guide
Related to the developer guide
feature-request
A feature should be added or improved.
good first issue
Related to contributions. See CONTRIBUTING.md
Note: for support questions, please first reference our documentation, then use Stackoverflow. This repository's issues are intended for feature requests and bug reports.
I'm submitting a ...
What is the current behavior?
If the current behavior is a 🪲bug🪲: Please provide the steps to reproduce
https://docs.aws.amazon.com/cdk/api/latest/docs/aws-ecr-readme.html has
repository.addLifecycleRule({ maxImageAgeDays: 30 });
but using maxImageAgeDays returns an error.
Argument of type '{ maxImageAgeDays: number; }' is not assignable to parameter of type 'LifecycleRule'. Object literal may only specify known properties, and 'maxImageAgeDays' does not exist in type 'LifecycleRule'.
What is the expected behavior (or behavior of feature suggested)?
repository.addLifecycleRule({ maxImageAge: cdk.Duration.days(30) });
What is the motivation / use case for changing the behavior or adding this feature?
Please tell us about your environment:
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. associated pull-request, stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered: