Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added verbose flag for Lambda to emit shorter version of output #237

Merged
merged 1 commit into from
Apr 8, 2022
Merged

fix: Added verbose flag for Lambda to emit shorter version of output #237

merged 1 commit into from
Apr 8, 2022

Conversation

akshayrane
Copy link
Collaborator

Issue #, if available: #236

Description of changes:
Added an optional flag verbose to the Lambda input set to true by default to support backward compatibility with current behavior. To shorten the output, we must add "verbose": false to the event passed as input.

This reduces the size of output as it emits the short version of the evaluated rules similar to the CLI output.

Sample event:

{
   "data": "<data>", 
   "rules": [
      "<rule1>", 
      "<rule2>", 
      ...],
   "verbose": false
}

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@akshayrane akshayrane self-assigned this Apr 7, 2022
@akshayrane akshayrane changed the title Added verbose flag for Lambda to emit shorter version of output fix: Added verbose flag for Lambda to emit shorter version of output Apr 7, 2022
Copy link
Member

@Brianwithay21 Brianwithay21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@razcloud razcloud added the enhancement New feature or request label Apr 8, 2022
guard/src/lib.rs Outdated Show resolved Hide resolved
@akshayrane akshayrane merged commit 2a41f44 into aws-cloudformation:main Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants