Skip to content

TypeScript ECR Documentation Update #3273

Closed
@Funkmyster

Description

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 ...

    • 🪲 bug report
    • 🚀 feature request
    • 📚 construct library gap
    • ☎️ security issue or vulnerability => Please see policy
    • ❓ support request => Please see note at the top of this template.
  • 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:

    • CDK CLI Version: 0.39.0 (build c3a3c88)
    • Module Version: @aws-cdk/aws-ecr: 0.39.0
    • OS: [ AmazonLinux ]
    • Language: [ TypeScript ]
  • 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)

Metadata

Assignees

Labels

@aws-cdk/aws-ecrRelated to Amazon Elastic Container Registrydocs/guideRelated to the developer guidefeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.md

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions