@Generated(value="jsii-pacmak/1.26.0 (build 7d76e02)", date="2021-03-25T11:29:28.833Z") @Stability(value=Experimental) public class GeoRestriction extends software.amazon.jsii.JsiiObject
| Modifier | Constructor and Description |
|---|---|
protected |
GeoRestriction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
GeoRestriction(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static GeoRestriction |
blacklist(String... locations)
(experimental) Blacklist specific countries which you don't want CloudFront to distribute your content.
|
List<String> |
getLocations()
(experimental) Two-letter, uppercase country code for a country that you want to whitelist/blacklist.
|
String |
getRestrictionType()
(experimental) Specifies the restriction type to impose (whitelist or blacklist).
|
static GeoRestriction |
whitelist(String... locations)
(experimental) Whitelist specific countries which you want CloudFront to distribute your content.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected GeoRestriction(software.amazon.jsii.JsiiObjectRef objRef)
protected GeoRestriction(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static GeoRestriction blacklist(@NotNull String... locations)
locations - Two-letter, uppercase country code for a country that you want to blacklist. This parameter is required.@Stability(value=Experimental) @NotNull public static GeoRestriction whitelist(@NotNull String... locations)
locations - Two-letter, uppercase country code for a country that you want to whitelist. This parameter is required.@Stability(value=Experimental) @NotNull public List<String> getLocations()
Include one element for each country. See ISO 3166-1-alpha-2 code on the International Organization for Standardization website
@Stability(value=Experimental) @NotNull public String getRestrictionType()
Copyright © 2021. All rights reserved.