Class RuleGroupArgs.Builder

  • Enclosing class:
    RuleGroupArgs

    public static final class RuleGroupArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • capacity

        public RuleGroupArgs.Builder capacity​(com.pulumi.core.Output<java.lang.Integer> capacity)
        Parameters:
        capacity - Web ACL capacity units (WCUs) required for this rule group. See [here](https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateRuleGroup.html#API_CreateRuleGroup_RequestSyntax) for general information and [here](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statements-list.html) for capacity specific information.
        Returns:
        builder
      • capacity

        public RuleGroupArgs.Builder capacity​(java.lang.Integer capacity)
        Parameters:
        capacity - Web ACL capacity units (WCUs) required for this rule group. See [here](https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateRuleGroup.html#API_CreateRuleGroup_RequestSyntax) for general information and [here](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statements-list.html) for capacity specific information.
        Returns:
        builder
      • customResponseBodies

        public RuleGroupArgs.Builder customResponseBodies​(@Nullable
                                                          com.pulumi.core.Output<java.util.List<RuleGroupCustomResponseBodyArgs>> customResponseBodies)
        Parameters:
        customResponseBodies - Custom response bodies that can be referenced by `customResponse` actions. See Custom Response Body below for details.
        Returns:
        builder
      • customResponseBodies

        public RuleGroupArgs.Builder customResponseBodies​(java.util.List<RuleGroupCustomResponseBodyArgs> customResponseBodies)
        Parameters:
        customResponseBodies - Custom response bodies that can be referenced by `customResponse` actions. See Custom Response Body below for details.
        Returns:
        builder
      • customResponseBodies

        public RuleGroupArgs.Builder customResponseBodies​(RuleGroupCustomResponseBodyArgs... customResponseBodies)
        Parameters:
        customResponseBodies - Custom response bodies that can be referenced by `customResponse` actions. See Custom Response Body below for details.
        Returns:
        builder
      • description

        public RuleGroupArgs.Builder description​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Friendly description of the rule group.
        Returns:
        builder
      • description

        public RuleGroupArgs.Builder description​(java.lang.String description)
        Parameters:
        description - Friendly description of the rule group.
        Returns:
        builder
      • monetizationConfig

        public RuleGroupArgs.Builder monetizationConfig​(@Nullable
                                                        com.pulumi.core.Output<RuleGroupMonetizationConfigArgs> monetizationConfig)
        Parameters:
        monetizationConfig - Monetization configuration for the rule group. Required when any rule uses the `monetize` action. See `monetizationConfig` below for details.
        Returns:
        builder
      • monetizationConfig

        public RuleGroupArgs.Builder monetizationConfig​(RuleGroupMonetizationConfigArgs monetizationConfig)
        Parameters:
        monetizationConfig - Monetization configuration for the rule group. Required when any rule uses the `monetize` action. See `monetizationConfig` below for details.
        Returns:
        builder
      • name

        public RuleGroupArgs.Builder name​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Friendly name of the rule group.
        Returns:
        builder
      • name

        public RuleGroupArgs.Builder name​(java.lang.String name)
        Parameters:
        name - Friendly name of the rule group.
        Returns:
        builder
      • namePrefix

        public RuleGroupArgs.Builder namePrefix​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • namePrefix

        public RuleGroupArgs.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • region

        public RuleGroupArgs.Builder region​(@Nullable
                                            com.pulumi.core.Output<java.lang.String> region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • region

        public RuleGroupArgs.Builder region​(java.lang.String region)
        Parameters:
        region - Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
        Returns:
        builder
      • rules

        public RuleGroupArgs.Builder rules​(@Nullable
                                           com.pulumi.core.Output<java.util.List<RuleGroupRuleArgs>> rules)
        Parameters:
        rules - Rule blocks used to identify the web requests that you want to `allow`, `block`, or `count`. See Rules below for details.
        Returns:
        builder
      • rules

        public RuleGroupArgs.Builder rules​(java.util.List<RuleGroupRuleArgs> rules)
        Parameters:
        rules - Rule blocks used to identify the web requests that you want to `allow`, `block`, or `count`. See Rules below for details.
        Returns:
        builder
      • rules

        public RuleGroupArgs.Builder rules​(RuleGroupRuleArgs... rules)
        Parameters:
        rules - Rule blocks used to identify the web requests that you want to `allow`, `block`, or `count`. See Rules below for details.
        Returns:
        builder
      • rulesJson

        public RuleGroupArgs.Builder rulesJson​(@Nullable
                                               com.pulumi.core.Output<java.lang.String> rulesJson)
        Parameters:
        rulesJson - Raw JSON string to allow more than three nested statements. Conflicts with `rule` attribute. This is for advanced use cases where more than 3 levels of nested statements are required. **There is no drift detection at this time**. If you use this attribute instead of `rule`, you will be foregoing drift detection. Additionally, importing an existing rule group into a configuration with `rulesJson` set will result in a one time in-place update as the remote rule configuration is initially written to the `rule` attribute. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateRuleGroup.html) for the JSON structure.
        Returns:
        builder
      • rulesJson

        public RuleGroupArgs.Builder rulesJson​(java.lang.String rulesJson)
        Parameters:
        rulesJson - Raw JSON string to allow more than three nested statements. Conflicts with `rule` attribute. This is for advanced use cases where more than 3 levels of nested statements are required. **There is no drift detection at this time**. If you use this attribute instead of `rule`, you will be foregoing drift detection. Additionally, importing an existing rule group into a configuration with `rulesJson` set will result in a one time in-place update as the remote rule configuration is initially written to the `rule` attribute. See the AWS [documentation](https://docs.aws.amazon.com/waf/latest/APIReference/API_CreateRuleGroup.html) for the JSON structure.
        Returns:
        builder
      • scope

        public RuleGroupArgs.Builder scope​(com.pulumi.core.Output<java.lang.String> scope)
        Parameters:
        scope - Scope of the rule group, either an AWS CloudFront distribution or a regional application. Valid values are `CLOUDFRONT` or `REGIONAL`. To work with CloudFront, you must also specify the region `us-east-1` (N. Virginia) on the AWS provider.
        Returns:
        builder
      • scope

        public RuleGroupArgs.Builder scope​(java.lang.String scope)
        Parameters:
        scope - Scope of the rule group, either an AWS CloudFront distribution or a regional application. Valid values are `CLOUDFRONT` or `REGIONAL`. To work with CloudFront, you must also specify the region `us-east-1` (N. Virginia) on the AWS provider.
        Returns:
        builder
      • tags

        public RuleGroupArgs.Builder tags​(@Nullable
                                          com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tags)
        Parameters:
        tags - Array of key:value pairs to associate with the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • tags

        public RuleGroupArgs.Builder tags​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Parameters:
        tags - Array of key:value pairs to associate with the resource. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
        Returns:
        builder
      • visibilityConfig

        public RuleGroupArgs.Builder visibilityConfig​(com.pulumi.core.Output<RuleGroupVisibilityConfigArgs> visibilityConfig)
        Parameters:
        visibilityConfig - Amazon CloudWatch metrics and web request sample collection configuration. See Visibility Configuration below for details.
        Returns:
        builder
      • visibilityConfig

        public RuleGroupArgs.Builder visibilityConfig​(RuleGroupVisibilityConfigArgs visibilityConfig)
        Parameters:
        visibilityConfig - Amazon CloudWatch metrics and web request sample collection configuration. See Visibility Configuration below for details.
        Returns:
        builder