Skip to content

logRetention: Deprecated or not? #36106

@rowansc1

Description

@rowansc1

Describe the bug

Hi All,

I have looked through various previous GitHub PRs and issues, and I'd like to confirm whether logRetention is going to be deprecated again, or if it is staying.

At the moment, we get:

[WARNING] aws-cdk-lib.aws_lambda.FunctionOptions#logRetention is deprecated.
use `logGroup` instead
This API will be removed in the next major release.

We can move to logGroup, but the reason why I'm asking is I've seen that it got reverted, so I'm just curious if its an old message which can be discarded.

Thanks for your help!

REF: #28783 #28737 #28934 #28783

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Library Version

No response

Expected Behavior

Either this message to be accurate, or discarded.

Current Behavior

Included above

Reproduction Steps

Use logRetention in any capacity.

Possible Solution

No response

Additional Information/Context

No response

AWS CDK Library version (aws-cdk-lib)

2.221.1

AWS CDK CLI version

N/A

Node.js Version

N/A

OS

N/A

Language

TypeScript

Language Version

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-logsRelated to Amazon CloudWatch LogsbugThis issue is a bug.effort/mediumMedium work item – several days of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions