import { Value } from '../../cloudformation/Value';
import { LabelSummaryProps } from './rulegroup/LabelSummaryProps';
import { CustomResponseBodyProps } from './rulegroup/CustomResponseBodyProps';
import { RuleProps } from './rulegroup/RuleProps';
import { VisibilityConfigProps } from './rulegroup/VisibilityConfigProps';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type RuleGroupAttributes = {
    Id: Attribute<string>;
    Arn: Attribute<string>;
    LabelNamespace: Attribute<string>;
};
export type RuleGroup = AwsResource<'AWS::WAFv2::RuleGroup', RuleGroupProperties, RuleGroupAttributes>;
/**
  <strong>Note</strong><br />
This is the latest version of <strong>AWS WAF</strong>, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF developer guide</a>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html">the AWS Docs</a>
*/
export declare function ruleGroup(ruleGroupProps: RuleGroupProperties): RuleGroup;
/**
  <strong>Note</strong><br />
This is the latest version of <strong>AWS WAF</strong>, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html">AWS WAF developer guide</a>.
  For full documentation go to <a href="http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html">the AWS Docs</a>
*/
export interface RuleGroupProperties {
    /** <code>Description</code>  <a name="cfn-wafv2-rulegroup-description"></a>
  A description of the rule group that helps with identification.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>256</code><br />
  
  Pattern: <code>^[\w+=:#@/\-,\.][\w+=:#@/\-,\.\s]+[\w+=:#@/\-,\.]$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    description?: Value<string>;
    /** <code>Scope</code>  <a name="cfn-wafv2-rulegroup-scope"></a>
  Specifies whether this is for an Amazon CloudFront distribution or for a regional application. 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, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are <code>CLOUDFRONT</code> and <code>REGIONAL</code>.<br />
  For <code>CLOUDFRONT</code>, you must create your WAFv2 resources in the US East (N. Virginia) Region, <code>us-east-1</code>.
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    scope: Value<string>;
    /** <code>Capacity</code>  <a name="cfn-wafv2-rulegroup-capacity"></a>
  The web ACL capacity units (WCUs) required for this rule group.<br />
  When you create your own rule group, you define this, and you cannot change it after creation. When you add or modify the rules in a rule group, AWS WAF enforces this limit.<br />
  AWS WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. AWS WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule. Simple rules that cost little to run use fewer WCUs than more complex rules that use more processing power. Rule group capacity is fixed at creation, which helps users plan their web ACL WCU usage when they use a rule group. The WCU limit for web ACLs is 1,500.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    capacity: Value<number>;
    /** <code>AvailableLabels</code>  <a name="cfn-wafv2-rulegroup-availablelabels"></a>
  The labels that one or more rules in this rule group add to matching web requests. These labels are defined in the <code>RuleLabels</code> for a <code>Rule</code>.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    availableLabels?: LabelSummaryProps[];
    /** <code>CustomResponseBodies</code>  <a name="cfn-wafv2-rulegroup-customresponsebodies"></a>
  A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.<br />
  For information about customizing web requests and responses, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html">Customizing web requests and responses in AWS WAF</a> in the * AWS WAF Developer Guide*.<br />
  For information about the limits on count and size for custom request and response settings, see <a href="https://docs.aws.amazon.com/waf/latest/developerguide/limits.html">AWS WAF quotas</a> in the * AWS WAF Developer Guide*.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    customResponseBodies?: {
        [key: string]: CustomResponseBodyProps;
    };
    /** <code>ConsumedLabels</code>  <a name="cfn-wafv2-rulegroup-consumedlabels"></a>
  The labels that one or more rules in this rule group match against in label match statements. These labels are defined in a <code>LabelMatchStatement</code> specification, in the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatement.html#cfn-wafv2-webacl-notstatement-statement">Statement</a> definition of a rule.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    consumedLabels?: LabelSummaryProps[];
    /** <code>Rules</code>  <a name="cfn-wafv2-rulegroup-rules"></a>
  The rule statements used to identify the web requests that you want to allow, block, or count. Each rule includes one top-level statement that AWS WAF uses to identify matching web requests, and parameters that govern how AWS WAF handles them.<br />
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    rules?: RuleProps[];
    /** <code>VisibilityConfig</code>  <a name="cfn-wafv2-rulegroup-visibilityconfig"></a>
  Defines and enables Amazon CloudWatch metrics and web request sample collection.<br />
  
  Required: Yes<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    visibilityConfig: VisibilityConfigProps;
    /** <code>Tags</code>  <a name="cfn-wafv2-rulegroup-tags"></a>
  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.<br />
  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.
  
  Required: No<br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt">No interruption</a> */
    tags?: Tag[];
    /** <code>Name</code>  <a name="cfn-wafv2-rulegroup-name"></a>
  The name of the rule group. You cannot change the name of a rule group after you create it.<br />
  
  Required: No<br />
  
  Minimum: <code>1</code><br />
  
  Maximum: <code>128</code><br />
  
  Pattern: <code>^[\w\-]+$</code><br />
  
  Update requires: <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement">Replacement</a> */
    name?: Value<string>;
}
