public static interface CfnDistribution.RestrictionsProperty
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() |
java.lang.Object |
getGeoRestriction()
A complex type that controls the countries in which your content is distributed.
|
java.lang.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.
static CfnDistribution.RestrictionsProperty.Builder builder()