Skip to content

Commit c3ff821

Browse files
authored
chore(lambda): fix snapstart warning grammar issue (#32829)
### Issue #32210 Closes #32210 ### Reason for this change Incorrect grammar in a SnapStart warning that appears during cdk deployment. ### Description of changes Corrected the line: `SnapStart only support published Lambda versions. Ignore if function already have published versions` to: `SnapStart only supports published Lambda versions. Ignore if function already has published versions.` ### Describe any new or updated permissions being added No permissions changes. ### Description of how you validated changes No testing needed, only changed text in a warning. ### 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) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 78fba23 commit c3ff821

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ Environment variables can be marked for removal when used in Lambda@Edge by sett
16201620
// so it can't be checked at function set up time
16211621
// SnapStart supports the Java 11 and Java 17 (java11 and java17) managed runtimes.
16221622
// See https://docs.aws.amazon.com/lambda/latest/dg/snapstart.html
1623-
Annotations.of(this).addWarningV2('@aws-cdk/aws-lambda:snapStartRequirePublish', 'SnapStart only support published Lambda versions. Ignore if function already have published versions');
1623+
Annotations.of(this).addWarningV2('@aws-cdk/aws-lambda:snapStartRequirePublish', 'SnapStart only supports published Lambda versions. Ignore if function already has published versions.');
16241624

16251625
if (!props.runtime.supportsSnapStart) {
16261626
throw new ValidationError(`SnapStart currently not supported by runtime ${props.runtime.name}`, this);

0 commit comments

Comments
 (0)