import { Value } from '../../cloudformation/Value';
import { AssociationConfigProps } from './webacl/AssociationConfigProps';
import { DefaultActionProps } from './webacl/DefaultActionProps';
import { CustomResponseBodyProps } from './webacl/CustomResponseBodyProps';
import { ChallengeConfigProps } from './webacl/ChallengeConfigProps';
import { RuleProps } from './webacl/RuleProps';
import { VisibilityConfigProps } from './webacl/VisibilityConfigProps';
import { CaptchaConfigProps } from './webacl/CaptchaConfigProps';
import { Tag } from '../Tag';
import { Attribute } from '../../cloudformation/Attribute';
import { AwsResource } from '../../cloudformation/resources/AwsResource';
export type WebACLAttributes = {
    Capacity: Attribute<number>;
    Id: Attribute<string>;
    Arn: Attribute<string>;
    LabelNamespace: Attribute<string>;
};
export type WebACL = AwsResource<'AWS::WAFv2::WebACL', WebACLProperties, WebACLAttributes>;
/**
  <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-webacl.html">the AWS Docs</a>
*/
export declare function webACL(webACLProps: WebACLProperties): WebACL;
/**
  <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-webacl.html">the AWS Docs</a>
*/
export interface WebACLProperties {
    /** <code>TokenDomains</code>  <a name="cfn-wafv2-webacl-tokendomains"></a>
  Specifies the domains that AWS WAF should accept in a web request token. This enables the use of tokens across multiple protected websites. When AWS WAF provides a token, it uses the domain of the AWS resource that the web ACL is protecting. If you don’t specify a list of token domains, AWS WAF accepts tokens only for the domain of the protected resource. With a token domain list, AWS WAF accepts the resource’s host domain plus all domains in the token domain list, including their prefixed subdomains.<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> */
    tokenDomains?: Value<Value<string>[]>;
    /** <code>Description</code>  <a name="cfn-wafv2-webacl-description"></a>
  A description of the web ACL 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>AssociationConfig</code>  <a name="cfn-wafv2-webacl-associationconfig"></a>
  Specifies custom configurations for the associations between the web ACL and protected resources.<br />
  Use this to customize the maximum size of the request body that your protected CloudFront distributions forward to AWS WAF for inspection. The default is 16 KB (16,384 bytes).<br />
  You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see <a href="http://aws.amazon.com/waf/pricing/">AWS WAF Pricing</a>.
  
  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> */
    associationConfig?: AssociationConfigProps;
    /** <code>DefaultAction</code>  <a name="cfn-wafv2-webacl-defaultaction"></a>
  The action to perform if none of the <code>Rules</code> contained in the <code>WebACL</code> match.<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> */
    defaultAction: DefaultActionProps;
    /** <code>Scope</code>  <a name="cfn-wafv2-webacl-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>.
  For information about how to define the association of the web ACL with your resource, see <a href="aws-resource-wafv2-webaclassociation.md">AWS::WAFv2::WebACLAssociation</a>.<br />
  
  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>CustomResponseBodies</code>  <a name="cfn-wafv2-webacl-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 web ACL, and then use them in the rules and default actions that you define in the web ACL.<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>ChallengeConfig</code>  <a name="cfn-wafv2-webacl-challengeconfig"></a>
  Specifies how AWS WAF should handle challenge evaluations for rules that don’t have their own <code>ChallengeConfig</code> settings. If you don’t specify this, AWS WAF uses its default settings for <code>ChallengeConfig</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> */
    challengeConfig?: ChallengeConfigProps;
    /** <code>Rules</code>  <a name="cfn-wafv2-webacl-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-webacl-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>CaptchaConfig</code>  <a name="cfn-wafv2-webacl-captchaconfig"></a>
  Specifies how AWS WAF should handle <code>CAPTCHA</code> evaluations for rules that don’t have their own <code>CaptchaConfig</code> settings. If you don’t specify this, AWS WAF uses its default settings for <code>CaptchaConfig</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> */
    captchaConfig?: CaptchaConfigProps;
    /** <code>Tags</code>  <a name="cfn-wafv2-webacl-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-webacl-name"></a>
  The name of the web ACL. You cannot change the name of a web ACL 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>;
}
