CloudFront Distribution GeoRestriction
GeoRestriction is a property of the CloudFront Distribution
Restrictions property that
describes the countries in which Amazon CloudFront allows viewers to access your content.
Syntax
JSON
{ "Locations" : [String, ...], "RestrictionType" :String}
YAML
Locations: -StringRestrictionType:String
Properties
Note
For more information about the constraints and valid values of each property, see the GeoRestriction data type in the Amazon CloudFront API Reference.
Locations-
The two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist.
Required: Conditional. Required if you specified
blacklistorwhitelistfor theRestrictionTypeproperty.Type: List of String values
RestrictionType-
The method to restrict distribution of your content:
Required: Yes
Type: String
