Class WafwebaclToCloudFrontProps.Builder
java.lang.Object
software.amazon.awsconstructs.services.wafwebaclcloudfront.WafwebaclToCloudFrontProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WafwebaclToCloudFrontProps>
- Enclosing interface:
WafwebaclToCloudFrontProps
public static final class WafwebaclToCloudFrontProps.Builder
extends Object
implements software.amazon.jsii.Builder<WafwebaclToCloudFrontProps>
A builder for
WafwebaclToCloudFrontProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.existingCloudFrontWebDistribution(software.amazon.awscdk.services.cloudfront.Distribution existingCloudFrontWebDistribution) Sets the value ofWafwebaclToCloudFrontProps.getExistingCloudFrontWebDistribution()existingWebaclObj(software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) Sets the value ofWafwebaclToCloudFrontProps.getExistingWebaclObj()webaclProps(Object webaclProps) Sets the value ofWafwebaclToCloudFrontProps.getWebaclProps()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
existingCloudFrontWebDistribution
public WafwebaclToCloudFrontProps.Builder existingCloudFrontWebDistribution(software.amazon.awscdk.services.cloudfront.Distribution existingCloudFrontWebDistribution) Sets the value ofWafwebaclToCloudFrontProps.getExistingCloudFrontWebDistribution()- Parameters:
existingCloudFrontWebDistribution- The existing CloudFront instance that will be protected with the WAF web ACL. This parameter is required. This construct changes the CloudFront distribution by directly manipulating the CloudFormation output, so this must be the Construct and cannot be changed to the Interface (IDistribution)- Returns:
this
-
existingWebaclObj
public WafwebaclToCloudFrontProps.Builder existingWebaclObj(software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) Sets the value ofWafwebaclToCloudFrontProps.getExistingWebaclObj()- Parameters:
existingWebaclObj- Existing instance of a WAF web ACL, an error will occur if this and props is set.- Returns:
this
-
webaclProps
Sets the value ofWafwebaclToCloudFrontProps.getWebaclProps()- Parameters:
webaclProps- Optional user-provided props to override the default props for the AWS WAF web ACL.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WafwebaclToCloudFrontProps>- Returns:
- a new instance of
WafwebaclToCloudFrontProps - Throws:
NullPointerException- if any required attribute was not provided
-