Class CfnDistribution.RestrictionsProperty
A complex type that identifies ways in which you want to restrict distribution of your content.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.CloudFront
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnDistribution.RestrictionsProperty : CfnDistribution.IRestrictionsProperty
Syntax (vb)
Public Class CfnDistribution.RestrictionsProperty 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() | A complex type that identifies ways in which you want to restrict distribution of your content. |
Properties
| GeoRestriction | A complex type that controls the countries in which your content is distributed. |
Constructors
RestrictionsProperty()
A complex type that identifies ways in which you want to restrict distribution of your content.
public RestrictionsProperty()
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" }
}
};
Properties
GeoRestriction
A complex type that controls the countries in which your content is distributed.
public object GeoRestriction { get; set; }
Property Value
Remarks
CloudFront determines the location of your users using MaxMind GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.
Type union: either IResolvable or CfnDistribution.IGeoRestrictionProperty