Skip to content

Commit 8c79bdc

Browse files
fix(lambda): LoggingConfig default error (#28973)
### Issue # (if applicable) Fixes bug in LoggingFormat `@default` ### Reason for this change Incorrect #28114 related issue ### Description of changes Not much to describe here. ### Description of how you validated changes Shouldn't need any as there is integ tests from this pr #28942 ### Checklist - [x] 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) BREAKING CHANGE: changing the default type of `lambda.loggingFormat`. Previously it was a string `"Text format"`, not it is an enum `LoggingFormat.TEXT`. *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 5035080 commit 8c79bdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/aws-cdk-lib/aws-lambda/lib/function.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ export interface FunctionOptions extends EventInvokeConfigOptions {
521521

522522
/**
523523
* Sets the loggingFormat for the function.
524-
* @default Text format
524+
* @default LoggingFormat.TEXT
525525
*/
526526
readonly loggingFormat?: LoggingFormat;
527527

0 commit comments

Comments
 (0)