aws-cdk-lib.aws_cloudfront.CfnDistribution.RestrictionsProperty

interface RestrictionsProperty

LanguageType name
.NETAmazon.CDK.AWS.CloudFront.CfnDistribution.RestrictionsProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnDistribution_RestrictionsProperty
Javasoftware.amazon.awscdk.services.cloudfront.CfnDistribution.RestrictionsProperty
Pythonaws_cdk.aws_cloudfront.CfnDistribution.RestrictionsProperty
TypeScript aws-cdk-lib » aws_cloudfront » CfnDistribution » 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 { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const restrictionsProperty: cloudfront.CfnDistribution.RestrictionsProperty = {
  geoRestriction: {
    restrictionType: 'restrictionType',

    // the properties below are optional
    locations: ['locations'],
  },
};

Properties

NameTypeDescription
geoRestrictionIResolvable | GeoRestrictionPropertyA complex type that controls the countries in which your content is distributed.

geoRestriction

Type: IResolvable | GeoRestrictionProperty

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.