Fugue.AWS.CloudFront.GeoRestriction

This is the preferred interface for making CloudFront GeoRestrictions with Fugue. If you want to manage a CloudFront GeoRestriction with Fugue, the new function is the right place to start.

Table of Contents

Module Members

new

(Function)

new CloudFront GeoRestriction (Constructor)

Type Signature

 fun { restrictionType: GeoRestrictionType,
       items: List<String> } -> GeoRestriction
Argument: restrictionType

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

  • None: No georestriction is enabled, meaning access to content is not restricted by client geolocation.
  • CF.Blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content.
  • CF.Whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.

Type: GeoRestrictionType

Argument: items

A complex type that contains a Location element for each country in which you want CloudFront either to distribute your content (whitelist) or not distribute your content (blacklist). The Location element is a two-letter, uppercase country code for a country that you want to include in your blacklist or whitelist. Include one Location element for each country. CloudFront and MaxMind both use ISO 3166 country codes. For the current list of countries and the corresponding codes, see ISO 3166-1-alpha-2 code on the International Organization for Standardization website. You can also refer to the country list in the CloudFront console, which includes both country names and codes.

Type: List<String>

Returns:

A Fugue.Core.AWS.CloudFrom.GeoRestriction value.

Type: GeoRestriction