You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logging_filter=wafv2.CfnLoggingConfiguration.LoggingFilterProperty(
default_behavior="DROP",
filters=[wafv2.CfnLoggingConfiguration.FilterProperty(
behavior="KEEP",
conditions=[wafv2.CfnLoggingConfiguration.ConditionProperty(
action_condition=wafv2.CfnLoggingConfiguration.ActionConditionProperty(action="BLOCK")
)],
requirement="MEETS_ALL"
)]
)
creates CF stack with incorrect keys (started with a lowercase letter - should be from capital)
LoggingFilter:
defaultBehavior: DROP
filters:
- behavior: KEEP
conditions:
- actionCondition:
action: BLOCK
requirement: MEETS_ALL
Hey, thanks for reporting. Please see this issue, in short you don't want to use the specific property types where the API is not expecting those types.
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
logging_filter=wafv2.CfnLoggingConfiguration.LoggingFilterProperty(
default_behavior="DROP",
filters=[wafv2.CfnLoggingConfiguration.FilterProperty(
behavior="KEEP",
conditions=[wafv2.CfnLoggingConfiguration.ConditionProperty(
action_condition=wafv2.CfnLoggingConfiguration.ActionConditionProperty(action="BLOCK")
)],
requirement="MEETS_ALL"
)]
)
creates CF stack with incorrect keys (started with a lowercase letter - should be from capital)
LoggingFilter:
defaultBehavior: DROP
filters:
- behavior: KEEP
conditions:
- actionCondition:
action: BLOCK
requirement: MEETS_ALL
Expected Behavior
Current Behavior
the keys are incorrect and deploy is broken
Reproduction Steps
code in the "Describe the bug" section
synth - OK
deploy - error - AWS CF return "wrong Key"
Possible Solution
update the wafv2.CfnLoggingConfiguration.LoggingFilterProperty and wafv2.CfnLoggingConfiguration.FilterProperty
Additional Information/Context
No response
CDK CLI Version
2.99.0
Framework Version
No response
Node.js Version
18.18.0
OS
Linux Ubuntu 22.04
Language
Python
Language Version
3.10
Other information
No response
The text was updated successfully, but these errors were encountered: