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-cloudfront): created README for aws-wafwebacl-cloudfront (#389)
* created README for aws-wafwebacl-cloudfront
* fixed cloudfront name
* created aws-wafwebacl-cloudfront construct and tests
* revert README changes in cloudfront constructs
* updated variable name in wafwebacl-cloudfront-mediastore test
* updated construct prop type to cloudfront.Distribution
* updated s3 removal policy to destroy
* delete trailing whitespace
* Updated comment for existing cloudfront web distribution prop
* delete trailing whitespace
Co-authored-by: EC2 Default User <[email protected]>
Co-authored-by: root <[email protected]>
|existingCloudFrontWebDistribution|[`cloudfront.Distribution`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cloudfront.Distribution.html)|The existing CloudFront instance that will be protected with the WAF web ACL. *Note that a WAF web ACL can only be added to a configured CloudFront, so this construct only accepts an existing CloudFrontWebDistribution and does not accept cloudfrontProps.*|
60
+
|existingWebaclObj?|[`waf.CfnWebACL`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-wafv2.CfnWebACL.html)|Existing instance of a WAF web ACL, an error will occur if this and props is set.|
61
+
|webaclProps?|[`waf.CfnWebACLProps`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-wafv2.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-wafv2.CfnWebACL.html)|Returns an instance of the waf.CfnWebACL created by the construct.|
68
+
|cloudFrontWebDistribution|[`cloudfront.Distribution`](https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-cloudfront.Distribution.html)|Returns an instance of cloudfront.Distribution created by the construct.|
69
+
70
+
## Default settings
71
+
72
+
Out of the box implementation of the Construct without any override will set the following defaults:
73
+
74
+
### AWS WAF
75
+
* 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).
76
+
* AWSManagedRulesBotControlRuleSet
77
+
* AWSManagedRulesKnownBadInputsRuleSet
78
+
* AWSManagedRulesCommonRuleSet
79
+
* AWSManagedRulesAnonymousIpList
80
+
* AWSManagedRulesAmazonIpReputationList
81
+
* AWSManagedRulesAdminProtectionRuleSet
82
+
* AWSManagedRulesSQLiRuleSet
83
+
84
+
*Note that the default rules can be replaced by specifying the rules property of CfnWebACLProps*
0 commit comments