public static final class CfnDistribution.RestrictionsProperty.Builder
extends java.lang.Object
CfnDistribution.RestrictionsProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnDistribution.RestrictionsProperty |
build()
Builds the configured instance.
|
CfnDistribution.RestrictionsProperty.Builder |
geoRestriction(CfnDistribution.GeoRestrictionProperty geoRestriction)
Sets the value of
CfnDistribution.RestrictionsProperty.getGeoRestriction() |
CfnDistribution.RestrictionsProperty.Builder |
geoRestriction(IResolvable geoRestriction)
Sets the value of
CfnDistribution.RestrictionsProperty.getGeoRestriction() |
public CfnDistribution.RestrictionsProperty.Builder geoRestriction(IResolvable geoRestriction)
CfnDistribution.RestrictionsProperty.getGeoRestriction()
geoRestriction
- A complex type that controls the countries in which your content is distributed. This parameter is required.
CloudFront determines the location of your users using MaxMind
GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.this
public CfnDistribution.RestrictionsProperty.Builder geoRestriction(CfnDistribution.GeoRestrictionProperty geoRestriction)
CfnDistribution.RestrictionsProperty.getGeoRestriction()
geoRestriction
- A complex type that controls the countries in which your content is distributed. This parameter is required.
CloudFront determines the location of your users using MaxMind
GeoIP databases. To disable geo restriction, remove the Restrictions property from your stack template.this
public CfnDistribution.RestrictionsProperty build()
CfnDistribution.RestrictionsProperty
java.lang.NullPointerException
- if any required attribute was not provided