Class CfnDistributionPropsMixin.OriginShieldProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnDistributionPropsMixin.OriginShieldProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.OriginShieldProperty>
- Enclosing interface:
CfnDistributionPropsMixin.OriginShieldProperty
@Stability(Stable)
public static final class CfnDistributionPropsMixin.OriginShieldProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin.OriginShieldProperty>
A builder for
CfnDistributionPropsMixin.OriginShieldProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnDistributionPropsMixin.OriginShieldProperty.getEnabled()enabled(IResolvable enabled) Sets the value ofCfnDistributionPropsMixin.OriginShieldProperty.getEnabled()originShieldRegion(String originShieldRegion) Sets the value ofCfnDistributionPropsMixin.OriginShieldProperty.getOriginShieldRegion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
@Stability(Stable) public CfnDistributionPropsMixin.OriginShieldProperty.Builder enabled(Boolean enabled) Sets the value ofCfnDistributionPropsMixin.OriginShieldProperty.getEnabled()- Parameters:
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.- Returns:
this
-
enabled
@Stability(Stable) public CfnDistributionPropsMixin.OriginShieldProperty.Builder enabled(IResolvable enabled) Sets the value ofCfnDistributionPropsMixin.OriginShieldProperty.getEnabled()- Parameters:
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.- Returns:
this
-
originShieldRegion
@Stability(Stable) public CfnDistributionPropsMixin.OriginShieldProperty.Builder originShieldRegion(String originShieldRegion) Sets the value ofCfnDistributionPropsMixin.OriginShieldProperty.getOriginShieldRegion()- Parameters:
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 asus-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 .
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.OriginShieldProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.OriginShieldProperty - Throws:
NullPointerException- if any required attribute was not provided
-