Class CfnRegexPatternSetProps.Builder

java.lang.Object
software.amazon.awscdk.services.wafv2.CfnRegexPatternSetProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRegexPatternSetProps>
Enclosing interface:
CfnRegexPatternSetProps

@Stability(Stable) public static final class CfnRegexPatternSetProps.Builder extends Object implements software.amazon.jsii.Builder<CfnRegexPatternSetProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • regularExpressionList

      @Stability(Stable) public CfnRegexPatternSetProps.Builder regularExpressionList(List<String> regularExpressionList)
      Parameters:
      regularExpressionList - The regular expression patterns in the set. This parameter is required.
      Returns:
      this
    • scope

      @Stability(Stable) public CfnRegexPatternSetProps.Builder scope(String scope)
      Parameters:
      scope - Specifies whether this is for an Amazon CloudFront distribution or for a regional application. This parameter is required. A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, or an AWS App Runner service. Valid Values are CLOUDFRONT and REGIONAL .

      For CLOUDFRONT , you must create your WAFv2 resources in the US East (N. Virginia) Region, us-east-1 .

      Returns:
      this
    • description

      @Stability(Stable) public CfnRegexPatternSetProps.Builder description(String description)
      Parameters:
      description - A description of the set that helps with identification.
      Returns:
      this
    • name

      @Stability(Stable) public CfnRegexPatternSetProps.Builder name(String name)
      Parameters:
      name - The name of the set. You cannot change the name after you create the set.
      Returns:
      this
    • tags

      @Stability(Stable) public CfnRegexPatternSetProps.Builder tags(List<? extends CfnTag> tags)
      Parameters:
      tags - Key:value pairs associated with an AWS resource. The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.

      To modify tags on existing resources, use the AWS WAF APIs or command line interface. With AWS CloudFormation , you can only add tags to AWS WAF resources during resource creation.

      Returns:
      this
    • build

      @Stability(Stable) public CfnRegexPatternSetProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnRegexPatternSetProps>
      Returns:
      a new instance of CfnRegexPatternSetProps
      Throws:
      NullPointerException - if any required attribute was not provided