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 SankyRed committed Feb 8, 2024
1 parent b0f2240 commit a14cf17
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 a14cf17

Please sign in to comment.