interface GeoRestrictionCustomizationProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.CloudFront.CfnDistributionTenant.GeoRestrictionCustomizationProperty | 
|  Go | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnDistributionTenant_GeoRestrictionCustomizationProperty | 
|  Java | software.amazon.awscdk.services.cloudfront.CfnDistributionTenant.GeoRestrictionCustomizationProperty | 
|  Python | aws_cdk.aws_cloudfront.CfnDistributionTenant.GeoRestrictionCustomizationProperty | 
|  TypeScript | aws-cdk-lib»aws_cloudfront»CfnDistributionTenant»GeoRestrictionCustomizationProperty | 
The customizations that you specified for the distribution tenant for geographic restrictions.
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 geoRestrictionCustomizationProperty: cloudfront.CfnDistributionTenant.GeoRestrictionCustomizationProperty = {
  locations: ['locations'],
  restrictionType: 'restrictionType',
};
Properties
| Name | Type | Description | 
|---|---|---|
| locations? | string[] | The locations for geographic restrictions. | 
| restriction | string | The method that you want to use to restrict distribution of your content by country:. | 
locations?
Type:
string[]
(optional)
The locations for geographic restrictions.
restrictionType?
Type:
string
(optional)
The method that you want to use to restrict distribution of your content by country:.
- none: No geographic restriction is enabled, meaning access to content is not restricted by client geo location.
- blacklist: The- Locationelements specify the countries in which you don't want CloudFront to distribute your content.
- whitelist: The- Locationelements specify the countries in which you want CloudFront to distribute your content.
