@Stability(value=Stable) public static final class CfnDistribution.OriginShieldProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnDistribution.OriginShieldProperty>
CfnDistribution.OriginShieldProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnDistribution.OriginShieldProperty |
build()
Builds the configured instance.
|
CfnDistribution.OriginShieldProperty.Builder |
enabled(Boolean enabled)
Sets the value of
CfnDistribution.OriginShieldProperty.getEnabled() |
CfnDistribution.OriginShieldProperty.Builder |
enabled(IResolvable enabled)
Sets the value of
CfnDistribution.OriginShieldProperty.getEnabled() |
CfnDistribution.OriginShieldProperty.Builder |
originShieldRegion(String originShieldRegion)
Sets the value of
CfnDistribution.OriginShieldProperty.getOriginShieldRegion() |
@Stability(value=Stable) public CfnDistribution.OriginShieldProperty.Builder enabled(Boolean enabled)
CfnDistribution.OriginShieldProperty.getEnabled()enabled - A flag that specifies whether Origin Shield is enabled.
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.this@Stability(value=Stable) public CfnDistribution.OriginShieldProperty.Builder enabled(IResolvable enabled)
CfnDistribution.OriginShieldProperty.getEnabled()enabled - A flag that specifies whether Origin Shield is enabled.
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.this@Stability(value=Stable) public CfnDistribution.OriginShieldProperty.Builder originShieldRegion(String originShieldRegion)
CfnDistribution.OriginShieldProperty.getOriginShieldRegion()originShieldRegion - The AWS Region for Origin Shield.
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 .
this@Stability(value=Stable) public CfnDistribution.OriginShieldProperty build()
build in interface software.amazon.jsii.Builder<CfnDistribution.OriginShieldProperty>CfnDistribution.OriginShieldPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.