@Generated(value="jsii-pacmak/1.24.0 (build b722f66)", date="2021-03-11T13:46:52.426Z") @Stability(value=Stable) 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)
Blacklist specific countries which you don't want CloudFront to distribute your content.
|
List<String> |
getLocations()
Two-letter, uppercase country code for a country that you want to whitelist/blacklist.
|
String |
getRestrictionType()
Specifies the restriction type to impose (whitelist or blacklist).
|
static GeoRestriction |
whitelist(String... locations)
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=Stable) @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=Stable) @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=Stable) @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=Stable) @NotNull public String getRestrictionType()
Copyright © 2021. All rights reserved.