Interface CfnDistributionPropsMixin.RestrictionsProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDistributionPropsMixin.RestrictionsProperty.Jsii$Proxy
- Enclosing class:
CfnDistributionPropsMixin
@Stability(Stable)
public static interface CfnDistributionPropsMixin.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.cfnpropertymixins.services.cloudfront.*;
RestrictionsProperty restrictionsProperty = RestrictionsProperty.builder()
.geoRestriction(GeoRestrictionProperty.builder()
.locations(List.of("locations"))
.restrictionType("restrictionType")
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnDistributionPropsMixin.RestrictionsPropertystatic final classAn implementation forCfnDistributionPropsMixin.RestrictionsProperty -
Method Summary
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
MaxMindGeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.Returns union: either
IResolvableorCfnDistributionPropsMixin.GeoRestrictionProperty- See Also:
-
builder
-