DistributionRestrictionsGeoRestriction constructor

const DistributionRestrictionsGeoRestriction({
  1. Input<List<String>?>? locations,
  2. required Input<String> restrictionType,
})

Creates a new DistributionRestrictionsGeoRestriction. locations ISO 3166-1-alpha-2 codes for which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). If the type is specified as none an empty array can be used. restrictionType Method that you want to use to restrict distribution of your content by country: none, whitelist, or blacklist.

Implementation

const DistributionRestrictionsGeoRestriction({
  this.locations,
  required this.restrictionType,
});