GeoRestriction class

A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.

Constructors

GeoRestriction({@_s.required int quantity, @_s.required GeoRestrictionType restrictionType, List<String> items})
GeoRestriction.fromXml(XmlElement elem)
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
items List<String>
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). [...]
final
quantity int
When geo restriction is enabled, this is the number of countries in your whitelist or blacklist. Otherwise, when it is not enabled, Quantity is 0, and you can omit Items.
final
restrictionType GeoRestrictionType
The method that you want to use to restrict distribution of your content by country: [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited
toXml(String elemName) XmlElement

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited