Skip to content

Commit

Permalink
fix(lambda): LoggingConfig default error (#28973)
Browse files Browse the repository at this point in the history
### 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*
  • Loading branch information
ConnorRobertson authored and TheRealAmazonKendra committed Feb 9, 2024
1 parent 7584ccd commit 349be7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aws-cdk-lib/aws-lambda/lib/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export interface FunctionOptions extends EventInvokeConfigOptions {

/**
* Sets the loggingFormat for the function.
* @default Text format
* @default LoggingFormat.TEXT
*/
readonly loggingFormat?: LoggingFormat;

Expand Down

0 comments on commit 349be7a

Please sign in to comment.