Interface CfnDistributionTenant.GeoRestrictionCustomizationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnDistributionTenant.GeoRestrictionCustomizationProperty.Jsii$Proxy
- Enclosing class:
CfnDistributionTenant
@Stability(Stable)
public static interface CfnDistributionTenant.GeoRestrictionCustomizationProperty
extends software.amazon.jsii.JsiiSerializable
The customizations that you specified for the distribution tenant for geographic restrictions.
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.*; GeoRestrictionCustomizationProperty geoRestrictionCustomizationProperty = GeoRestrictionCustomizationProperty.builder() .locations(List.of("locations")) .restrictionType("restrictionType") .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
static final class
An implementation forCfnDistributionTenant.GeoRestrictionCustomizationProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLocations
The locations for geographic restrictions.- See Also:
-
getRestrictionType
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
: TheLocation
elements specify the countries in which you don't want CloudFront to distribute your content.whitelist
: TheLocation
elements specify the countries in which you want CloudFront to distribute your content.
- See Also:
-
builder
@Stability(Stable) static CfnDistributionTenant.GeoRestrictionCustomizationProperty.Builder builder()
-