Skip to content

GeoRestrictionCustomization

Source code in docs_src/capo_cloudfront/types/geo_restriction_customization.py
class GeoRestrictionCustomization(TypedDict, closed=True):
    restriction_type: "capo_cloudfront.types.geo_restriction_type.GeoRestrictionType"
    """<p>The method that you want to use to restrict distribution of your content by country:</p> <ul> <li> <p> <code>none</code>: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.</p> </li> <li> <p> <code>blacklist</code>: The <code>Location</code> elements specify the countries in which you don't want CloudFront to distribute your content.</p> </li> <li> <p> <code>whitelist</code>: The <code>Location</code> elements specify the countries in which you want CloudFront to distribute your content.</p> </li> </ul>"""
    locations: NotRequired["capo_cloudfront.types.location_list.LocationList"]
    """<p>The locations for geographic restrictions.</p>"""

locations instance-attribute

locations: NotRequired[LocationList]

The locations for geographic restrictions.

restriction_type instance-attribute

restriction_type: GeoRestrictionType

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.