interface GeoRestrictionCustomizationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.CloudFront.CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awscloudfront#CfnDistributionTenantPropsMixin_GeoRestrictionCustomizationProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty |
Python | aws_cdk.cfn_property_mixins.aws_cloudfront.CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_cloudfront » CfnDistributionTenantPropsMixin » 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/cfn-property-mixins';
const geoRestrictionCustomizationProperty: cloudfront.CfnDistributionTenantPropsMixin.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: TheLocationelements specify the countries in which you don't want CloudFront to distribute your content.whitelist: TheLocationelements specify the countries in which you want CloudFront to distribute your content.

.NET
Go
Java
Python
TypeScript