interface RestrictionsProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionPropsMixin.RestrictionsProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionPropsMixin_RestrictionsProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.RestrictionsProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionPropsMixin.RestrictionsProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » CfnDistributionPropsMixin » RestrictionsProperty |
A complex type that identifies ways in which you want to restrict distribution of your content.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const restrictionsProperty: cloudfront_mixins.CfnDistributionPropsMixin.RestrictionsProperty = {
geoRestriction: {
locations: ['locations'],
restrictionType: 'restrictionType',
},
};
Properties
| Name | Type | Description |
|---|---|---|
| geo | IResolvable | Geo | A complex type that controls the countries in which your content is distributed. |
geoRestriction?
Type:
IResolvable | Geo
(optional)
A complex type that controls the countries in which your content is distributed.
CloudFront determines the location of your users using MaxMind GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.

.NET
Go
Java
Python
TypeScript