-
Notifications
You must be signed in to change notification settings - Fork 4.5k
(aws-cloudfront): Invalid GeoRestriction Docs #19022
Copy link
Copy link
Closed
Labels
@aws-cdk/aws-cloudfrontRelated to Amazon CloudFrontRelated to Amazon CloudFrontdocumentationThis is a problem with documentation.This is a problem with documentation.feature-requestA feature should be added or improved.A feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.
Description
link to reference doc page
Describe your issue?
In the docs, the example refers to cloudfront.GeoRestriction.whitelist(), however this method is deprecated in the CDK v2 and should be updated to cloudfront.GeoRestriction.allowlist().
Additionally, the string[] in the example uses US and UK but UK is not officially assigned in the ISO 3166-1-alpha-2 standard and if used, causes an error. This should be updated to be GB.
Reference
ISO 3166-1-alpha-2 - Wikipedia
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-cloudfrontRelated to Amazon CloudFrontRelated to Amazon CloudFrontdocumentationThis is a problem with documentation.This is a problem with documentation.feature-requestA feature should be added or improved.A feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.This issue or PR still needs to be triaged.