public static final class CfnDistribution.OriginShieldProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnDistribution.OriginShieldProperty
CfnDistribution.OriginShieldProperty
CfnDistribution.OriginShieldProperty.Builder, CfnDistribution.OriginShieldProperty.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getEnabled()
A flag that specifies whether Origin Shield is enabled.
|
java.lang.String |
getOriginShieldRegion()
The AWS Region for Origin Shield.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.public final java.lang.Object getEnabled()
CfnDistribution.OriginShieldProperty
When it's enabled, CloudFront routes all requests through Origin Shield, which can help protect your origin. When it's disabled, CloudFront might send requests directly to your origin from multiple edge locations or regional edge caches.
getEnabled
in interface CfnDistribution.OriginShieldProperty
public final java.lang.String getOriginShieldRegion()
CfnDistribution.OriginShieldProperty
Specify the AWS Region that has the lowest latency to your origin. To specify a region, use the region code, not the region name. For example, specify the US East (Ohio) region as us-east-2
.
When you enable CloudFront Origin Shield, you must specify the AWS Region for Origin Shield. For the list of AWS Regions that you can specify, and for help choosing the best Region for your origin, see Choosing the AWS Region for Origin Shield in the Amazon CloudFront Developer Guide .
getOriginShieldRegion
in interface CfnDistribution.OriginShieldProperty
public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
public final boolean equals(java.lang.Object o)
public final int hashCode()