AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
A complex type that controls the countries in which your content is distributed. CloudFront
determines the location of your users using MaxMind
GeoIP databases.
Namespace: Amazon.CloudFront.Model
Assembly: AWSSDK.CloudFront.dll
Version: 3.x.y.z
public class GeoRestriction
The GeoRestriction type exposes the following members
Name | Description | |
---|---|---|
GeoRestriction() |
Empty constructor used to set properties independently even when a simple constructor is available |
|
GeoRestriction(GeoRestrictionType) |
Instantiates GeoRestriction with the parameterized properties |
Name | Type | Description | |
---|---|---|---|
Items | System.Collections.Generic.List<System.String> |
Gets and sets the property Items.
A complex type that contains a
The
CloudFront and |
|
Quantity | System.Int32 |
Gets and sets the property Quantity.
When geo restriction is |
|
RestrictionType | Amazon.CloudFront.GeoRestrictionType |
Gets and sets the property RestrictionType. The method that you want to use to restrict distribution of your content by country:
|
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5