Class WafwebaclToCloudFront.Builder
java.lang.Object
software.amazon.awsconstructs.services.wafwebaclcloudfront.WafwebaclToCloudFront.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WafwebaclToCloudFront>
- Enclosing class:
WafwebaclToCloudFront
public static final class WafwebaclToCloudFront.Builder
extends Object
implements software.amazon.jsii.Builder<WafwebaclToCloudFront>
A fluent builder for
WafwebaclToCloudFront.-
Method Summary
Modifier and TypeMethodDescriptionbuild()existingCloudFrontWebDistribution(software.amazon.awscdk.services.cloudfront.Distribution existingCloudFrontWebDistribution) The existing CloudFront instance that will be protected with the WAF web ACL.existingWebaclObj(software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) Existing instance of a WAF web ACL, an error will occur if this and props is set.webaclProps(Object webaclProps) Optional user-provided props to override the default props for the AWS WAF web ACL.
-
Method Details
-
create
- Parameters:
scope-- represents the scope for all the resources.
id-- this is a a scope-unique id.
- Returns:
- a new instance of
WafwebaclToCloudFront.Builder.
-
existingCloudFrontWebDistribution
public WafwebaclToCloudFront.Builder existingCloudFrontWebDistribution(software.amazon.awscdk.services.cloudfront.Distribution existingCloudFrontWebDistribution) The existing CloudFront instance that will be protected with the WAF web ACL.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)
- Parameters:
existingCloudFrontWebDistribution- The existing CloudFront instance that will be protected with the WAF web ACL. This parameter is required.- Returns:
this
-
existingWebaclObj
public WafwebaclToCloudFront.Builder existingWebaclObj(software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) Existing instance of a WAF web ACL, an error will occur if this and props is set.- Parameters:
existingWebaclObj- Existing instance of a WAF web ACL, an error will occur if this and props is set. This parameter is required.- Returns:
this
-
webaclProps
Optional user-provided props to override the default props for the AWS WAF web ACL.Default: - Default properties are used.
- Parameters:
webaclProps- Optional user-provided props to override the default props for the AWS WAF web ACL. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WafwebaclToCloudFront>- Returns:
- a newly built instance of
WafwebaclToCloudFront.
-