C# Class Amazon.CloudFront.Model.GeoRestriction

A complex type that controls the countries in which your content is distributed. CloudFront determines the location of your users using MaxMind GeoIP databases.
ファイルを表示 Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
GeoRestriction ( ) : System

Empty constructor used to set properties independently even when a simple constructor is available

GeoRestriction ( GeoRestrictionType restrictionType ) : System

Instantiates GeoRestriction with the parameterized properties

Private Methods

Method Description
IsSetItems ( ) : bool
IsSetQuantity ( ) : bool
IsSetRestrictionType ( ) : bool

Method Details

GeoRestriction() public method

Empty constructor used to set properties independently even when a simple constructor is available
public GeoRestriction ( ) : System
return System

GeoRestriction() public method

Instantiates GeoRestriction with the parameterized properties
public GeoRestriction ( GeoRestrictionType restrictionType ) : System
restrictionType GeoRestrictionType The method that you want to use to restrict distribution of your content by country:
  • none: No geo restriction is enabled, meaning access to content is not restricted by client geo location.
  • blacklist: The Location elements specify the countries in which you do not want CloudFront to distribute your content.
  • whitelist: The Location elements specify the countries in which you want CloudFront to distribute your content.
return System