Interface CfnDistribution.RestrictionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDistribution.RestrictionsProperty.Jsii$Proxy
- Enclosing class:
CfnDistribution
@Stability(Stable)
public static interface CfnDistribution.RestrictionsProperty
extends software.amazon.jsii.JsiiSerializable
A complex type that identifies ways in which you want to restrict distribution of your content.
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();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnDistribution.RestrictionsProperty
static final class
An implementation forCfnDistribution.RestrictionsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
A complex type that controls the countries in which your content is distributed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getGeoRestriction
A complex type that controls the countries in which your content is distributed.CloudFront determines the location of your users using
MaxMind
GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.- See Also:
-
builder
-