interface GeoRestrictionCustomizationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.CloudFront.CfnDistributionTenant.GeoRestrictionCustomizationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awscloudfront#CfnDistributionTenant_GeoRestrictionCustomizationProperty |
![]() | software.amazon.awscdk.services.cloudfront.CfnDistributionTenant.GeoRestrictionCustomizationProperty |
![]() | aws_cdk.aws_cloudfront.CfnDistributionTenant.GeoRestrictionCustomizationProperty |
![]() | 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
: TheLocation
elements specify the countries in which you don't want CloudFront to distribute your content.whitelist
: TheLocation
elements specify the countries in which you want CloudFront to distribute your content.