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
feat(aws-wafwebacl-apigateway): created new construct (#366)
* created wafwebacl-apigateway construct and tests
* added tests for compatible apigateway constructs
* added webACL property to construct
* updated README for aws-wafwebacl-apigateway
* updated viperlight ignore
* Updated README to webAcl and deleted existingRule prop
* Fixed minor edits of WebAcl to Webacl
* updated defaults with default props and add webaclScope param
* updated defaultwebacl return type
* updated function name to buildWebacl
* Updated aws-wafwebacl-gateway construct by removing certain props and defining helper function better
* updated multiple waf to use different gateway
* updatd viperlightignore
* updated viperlightignore
* fixed conditions in helper function and unit tests
* updated README with wrapManagedRuleSet helper function info
* fixed typo in comment
* fixed typo in comment
* updated tests and fixed README
* updated README
* fixed paste error in original README
* Updated node version in README and add test for existing acl
* delete trailing whitespace
Co-authored-by: root <[email protected]>
|existingApiGatewayInterface|[`api.IRestApi`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apigateway.IRestApi.html)|The existing API Gateway instance that will be protected with the WAF web ACL. *Note that a WAF web ACL can only be added to a configured API Gateway, so this construct only accepts an existing IRestApi and does not accept apiGatewayProps.*|
68
+
|existingWebaclObj?|[`waf.CfnWebACL`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-waf.CfnWebACL.html)|Existing instance of a WAF web ACL, an error will occur if this and props is set.|
69
+
|webaclProps?|[`waf.CfnWebACLProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-waf.CfnWebACLProps.html)|Optional user-provided props to override the default props for the AWS WAF web ACL. To use a different collection of managed rule sets, specify a new rules property. Use our [`wrapManagedRuleSet(managedGroupName: string, vendorName: string, priority: number)`](../core/lib/waf-defaults.ts) function from core to create an array entry from each desired managed rule set.|
|webacl|[`waf.CfnWebACL`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-waf.CfnWebACL.html)|Returns an instance of the waf.CfnWebACL created by the construct.|
76
+
|apiGateway|[`api.IRestApi`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-apigateway.IRestApi.html)|Returns an instance of the API Gateway REST API created by the pattern. |
77
+
78
+
## Default settings
79
+
80
+
Out of the box implementation of the Construct without any override will set the following defaults:
81
+
82
+
### AWS WAF
83
+
* Deploy a WAF web ACL with 7 [AWS managed rule groups](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list.html).
84
+
* AWSManagedRulesBotControlRuleSet
85
+
* AWSManagedRulesKnownBadInputsRuleSet
86
+
* AWSManagedRulesCommonRuleSet
87
+
* AWSManagedRulesAnonymousIpList
88
+
* AWSManagedRulesAmazonIpReputationList
89
+
* AWSManagedRulesAdminProtectionRuleSet
90
+
* AWSManagedRulesSQLiRuleSet
91
+
92
+
*Note that the default rules can be replaced by specifying the rules property of CfnWebACLProps*
0 commit comments