Class CfnDistribution.RestrictionsProperty
A complex type that identifies ways in which you want to restrict distribution of your content.
Inheritance
System.Object
CfnDistribution.RestrictionsProperty
Implements
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class RestrictionsProperty : Object, CfnDistribution.IRestrictionsProperty
Syntax (vb)
Public Class RestrictionsProperty
Inherits Object
Implements CfnDistribution.IRestrictionsProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var restrictionsProperty = new RestrictionsProperty {
GeoRestriction = new GeoRestrictionProperty {
RestrictionType = "restrictionType",
// the properties below are optional
Locations = new [] { "locations" }
}
};
Synopsis
Constructors
RestrictionsProperty() |
Properties
GeoRestriction | A complex type that controls the countries in which your content is distributed. |
Constructors
RestrictionsProperty()
public RestrictionsProperty()
Properties
GeoRestriction
A complex type that controls the countries in which your content is distributed.
public object GeoRestriction { get; set; }
Property Value
System.Object
Remarks
CloudFront determines the location of your users using MaxMind
GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.