Show / Hide Table of Contents

Class CfnDistribution.RestrictionsProperty

A complex type that identifies ways in which you want to restrict distribution of your content.

Inheritance
object
CfnDistribution.RestrictionsProperty
Implements
CfnDistribution.IRestrictionsProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html

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

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html

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

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-distribution-restrictions.html#cfn-cloudfront-distribution-restrictions-georestriction

Type union: either IResolvable or CfnDistribution.IGeoRestrictionProperty

Implements

CfnDistribution.IRestrictionsProperty
Back to top Generated by DocFX