@Stability(value=Stable)
public static interface CfnDistribution.RestrictionsProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// 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.*;
RestrictionsProperty restrictionsProperty = RestrictionsProperty.builder()
.geoRestriction(GeoRestrictionProperty.builder()
.restrictionType("restrictionType")
// the properties below are optional
.locations(List.of("locations"))
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDistribution.RestrictionsProperty.Builder
A builder for
CfnDistribution.RestrictionsProperty |
static class |
CfnDistribution.RestrictionsProperty.Jsii$Proxy
An implementation for
CfnDistribution.RestrictionsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDistribution.RestrictionsProperty.Builder |
builder() |
Object |
getGeoRestriction()
A complex type that controls the countries in which your content is distributed.
|
@Stability(value=Stable) @NotNull Object getGeoRestriction()
CloudFront determines the location of your users using MaxMind GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.
@Stability(value=Stable) static CfnDistribution.RestrictionsProperty.Builder builder()
Copyright © 2022. All rights reserved.