Class RuleGroupState.Builder

  • Enclosing class:
    RuleGroupState

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

      • Builder

        public Builder()
    • Method Detail

      • arn

        public RuleGroupState.Builder arn​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the WAF rule group.
        Returns:
        builder
      • arn

        public RuleGroupState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the WAF rule group.
        Returns:
        builder
      • capacity

        public RuleGroupState.Builder capacity​(@Nullable
                                               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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.Builder description​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Friendly description of the rule group.
        Returns:
        builder
      • description

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

        public RuleGroupState.Builder lockToken​(@Nullable
                                                com.pulumi.core.Output<java.lang.String> lockToken)
      • monetizationConfig

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

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

        public RuleGroupState.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 RuleGroupState.Builder namePrefix​(java.lang.String namePrefix)
        Parameters:
        namePrefix - Creates a unique name beginning with the specified prefix. Conflicts with `name`.
        Returns:
        builder
      • region

        public RuleGroupState.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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.Builder scope​(@Nullable
                                            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 RuleGroupState.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 RuleGroupState.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 RuleGroupState.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
      • tagsAll

        public RuleGroupState.Builder tagsAll​(@Nullable
                                              com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • tagsAll

        public RuleGroupState.Builder tagsAll​(java.util.Map<java.lang.String,​java.lang.String> tagsAll)
        Parameters:
        tagsAll - Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
        Returns:
        builder
      • visibilityConfig

        public RuleGroupState.Builder visibilityConfig​(@Nullable
                                                       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 RuleGroupState.Builder visibilityConfig​(RuleGroupVisibilityConfigArgs visibilityConfig)
        Parameters:
        visibilityConfig - Amazon CloudWatch metrics and web request sample collection configuration. See Visibility Configuration below for details.
        Returns:
        builder