# GeoRestrictionCustomizationProperty

The customizations that you specified for the distribution tenant for geographic restrictions.

- Source: Generated at build time
- Type last changed: v2.194.0 · 2 May 2025

## Example

TypeScript:

```ts
// 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',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront

geo_restriction_customization_property = cloudfront.CfnDistributionTenant.GeoRestrictionCustomizationProperty(
    locations=["locations"],
    restriction_type="restrictionType"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;

GeoRestrictionCustomizationProperty geoRestrictionCustomizationProperty = GeoRestrictionCustomizationProperty.builder()
        .locations(List.of("locations"))
        .restrictionType("restrictionType")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;

var geoRestrictionCustomizationProperty = new GeoRestrictionCustomizationProperty {
    Locations = new [] { "locations" },
    RestrictionType = "restrictionType"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

geoRestrictionCustomizationProperty := &GeoRestrictionCustomizationProperty{
	Locations: []*string{
		jsii.String("locations"),
	},
	RestrictionType: jsii.String("restrictionType"),
}
```

## Properties

- `locations`: string[] — The locations for geographic restrictions.

- `restrictionType`: string — 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 `Location` elements specify the countries in which you don't want CloudFront to distribute your content.
  - `whitelist` : The `Location` elements specify the countries in which you want CloudFront to distribute your content.
