moto/tests/test_wafv2/test_helper_functions.py

16 lines
400 B
Python
Raw Normal View History

2021-08-04 05:45:41 +00:00
def CREATE_WEB_ACL_BODY(name: str, scope: str) -> dict:
return {
"Scope": scope,
"Name": name,
"DefaultAction": {"Allow": {}},
"VisibilityConfig": {
"SampledRequestsEnabled": False,
"CloudWatchMetricsEnabled": False,
"MetricName": "idk",
},
}
def LIST_WEB_ACL_BODY(scope: str) -> dict:
return {"Scope": scope}