GeoRestrictionCustomizationProperty Struct
The customizations that you specified for the distribution tenant for geographic restrictions.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const geoRestrictionCustomizationProperty: cloudfront.CfnDistributionTenant.GeoRestrictionCustomizationProperty = {
locations: ['locations'],
restrictionType: 'restrictionType',
};
Properties
locationsstring[]locationstyping.List[str]locationsList<String>Locationsstring[]Locations*[]*string#The locations for geographic restrictions.
restrictionTypestringrestriction_typestrrestrictionTypeStringRestrictionTypestringRestrictionType*string#The method that you want to use to restrict distribution of your content by country:.
notes
none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.blacklist: TheLocationelements specify the countries in which you don't want CloudFront to distribute your content.whitelist: TheLocationelements specify the countries in which you want CloudFront to distribute your content.