Skip to content

CloudFront  >  Structures  >  GeoRestrictionCustomization

GeoRestrictionCustomization

Structure Class

GeoRestrictionCustomization dataclass

Bases: _SerdeShape

The customizations that you specified for the distribution tenant for geographic restrictions.

Attributes

locations class-attribute instance-attribute
locations: list[str] | None = ...

The locations for geographic restrictions.

restriction_type instance-attribute
restriction_type: str

The method that you want to use to restrict distribution of your content by country:

  • none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.

  • blacklist: The Location elements specify the countries in which you don't want CloudFront to distribute your content.

  • whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.