Interface CfnDistribution.GeoRestrictionProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnDistribution.GeoRestrictionProperty.Jsii$Proxy
Enclosing class:
CfnDistribution

@Stability(Stable) public static interface CfnDistribution.GeoRestrictionProperty extends software.amazon.jsii.JsiiSerializable
A complex type that controls the countries in which your content is distributed.

CloudFront determines the location of your users using MaxMind GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cloudfront.*;
 GeoRestrictionProperty geoRestrictionProperty = GeoRestrictionProperty.builder()
         .restrictionType("restrictionType")
         // the properties below are optional
         .locations(List.of("locations"))
         .build();
 

See Also: