From 17466832dc06b7d47285dd8cc0b350659925e0f1 Mon Sep 17 00:00:00 2001 From: Peter Reid Date: Sat, 1 Aug 2020 16:37:25 +0100 Subject: [PATCH] chore(cloudfront): Add expanded description of webAclId parameter, fixes #9393 Add a detailed description of this parameter as per the existing AWS API documentation to save confusion for users Signed-off-by: Peter Reid --- packages/@aws-cdk/aws-cloudfront/lib/web_distribution.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/@aws-cdk/aws-cloudfront/lib/web_distribution.ts b/packages/@aws-cdk/aws-cloudfront/lib/web_distribution.ts index 21392c625aad6..b2fc472adfd46 100644 --- a/packages/@aws-cdk/aws-cloudfront/lib/web_distribution.ts +++ b/packages/@aws-cdk/aws-cloudfront/lib/web_distribution.ts @@ -646,7 +646,14 @@ export interface CloudFrontWebDistributionProps { /** * Unique identifier that specifies the AWS WAF web ACL to associate with this CloudFront distribution. + * + * To specify a web ACL created using the latest version of AWS WAF, use the ACL ARN, for example + * `arn:aws:wafv2:us-east-1:123456789012:global/webacl/ExampleWebACL/473e64fd-f30b-4765-81a0-62ad96dd167a`. + * + * To specify a web ACL created using AWS WAF Classic, use the ACL ID, for example `473e64fd-f30b-4765-81a0-62ad96dd167a`. + * * @see https://docs.aws.amazon.com/waf/latest/developerguide/what-is-aws-waf.html + * @see https://docs.aws.amazon.com/cloudfront/latest/APIReference/API_CreateDistribution.html#API_CreateDistribution_RequestParameters. * * @default - No AWS Web Application Firewall web access control list (web ACL). */