interface GeoRestrictionCustomizationProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.CloudFront.Mixins.CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awscloudfront/mixins#CfnDistributionTenantPropsMixin_GeoRestrictionCustomizationProperty |
Java | software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty |
Python | aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnDistributionTenantPropsMixin.GeoRestrictionCustomizationProperty |
TypeScript | @aws-cdk/mixins-preview » aws_cloudfront » mixins » 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 { mixins as cloudfront_mixins } from '@aws-cdk/mixins-preview/aws-cloudfront';
const geoRestrictionCustomizationProperty: cloudfront_mixins.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