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 Details

    • create

      public static WafwebaclToCloudFront.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope -
      • represents the scope for all the resources.
      This parameter is required.
      id -
      • this is a a scope-unique id.
      This parameter is required.
      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

      public WafwebaclToCloudFront.Builder webaclProps(Object 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

      public WafwebaclToCloudFront build()
      Specified by:
      build in interface software.amazon.jsii.Builder<WafwebaclToCloudFront>
      Returns:
      a newly built instance of WafwebaclToCloudFront.