{ "author": { "name": "Amazon Web Services", "organization": true, "roles": [ "author" ], "url": "https://aws.amazon.com" }, "dependencies": { "@aws-cdk/core": "1.204.0", "constructs": "^3.3.69" }, "dependencyClosure": { "@aws-cdk/cloud-assembly-schema": { "targets": { "dotnet": { "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png", "namespace": "Amazon.CDK.CloudAssembly.Schema", "packageId": "Amazon.CDK.CloudAssembly.Schema" }, "java": { "maven": { "artifactId": "cdk-cloud-assembly-schema", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cloudassembly.schema" }, "js": { "npm": "@aws-cdk/cloud-assembly-schema" }, "python": { "classifiers": [ "Framework :: AWS CDK", "Framework :: AWS CDK :: 1" ], "distName": "aws-cdk.cloud-assembly-schema", "module": "aws_cdk.cloud_assembly_schema" } } }, "@aws-cdk/core": { "targets": { "dotnet": { "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png", "namespace": "Amazon.CDK", "packageId": "Amazon.CDK" }, "java": { "maven": { "artifactId": "core", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.core" }, "js": { "npm": "@aws-cdk/core" }, "python": { "classifiers": [ "Framework :: AWS CDK", "Framework :: AWS CDK :: 1" ], "distName": "aws-cdk.core", "module": "aws_cdk.core" } } }, "@aws-cdk/cx-api": { "targets": { "dotnet": { "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png", "namespace": "Amazon.CDK.CXAPI", "packageId": "Amazon.CDK.CXAPI" }, "java": { "maven": { "artifactId": "cdk-cx-api", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.cxapi" }, "js": { "npm": "@aws-cdk/cx-api" }, "python": { "classifiers": [ "Framework :: AWS CDK", "Framework :: AWS CDK :: 1" ], "distName": "aws-cdk.cx-api", "module": "aws_cdk.cx_api" } } }, "@aws-cdk/region-info": { "targets": { "dotnet": { "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png", "namespace": "Amazon.CDK.RegionInfo", "packageId": "Amazon.CDK.RegionInfo" }, "java": { "maven": { "artifactId": "cdk-region-info", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.regioninfo" }, "js": { "npm": "@aws-cdk/region-info" }, "python": { "classifiers": [ "Framework :: AWS CDK", "Framework :: AWS CDK :: 1" ], "distName": "aws-cdk.region-info", "module": "aws_cdk.region_info" } } }, "constructs": { "targets": { "dotnet": { "namespace": "Constructs", "packageId": "Constructs" }, "go": { "moduleName": "github.com/aws/constructs-go" }, "java": { "maven": { "artifactId": "constructs", "groupId": "software.constructs" }, "package": "software.constructs" }, "js": { "npm": "constructs" }, "python": { "distName": "constructs", "module": "constructs" } } } }, "description": "The CDK Construct Library for AWS::WAFv2", "docs": { "deprecated": "AWS CDK v1 has reached End-of-Support on 2023-06-01.\nThis package is no longer being updated, and users should migrate to AWS CDK v2.\n\nFor more information on how to migrate, see https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html", "stability": "experimental" }, "homepage": "https://github.com/aws/aws-cdk", "jsiiVersion": "1.84.0 (build 5404dcf)", "keywords": [ "aws", "cdk", "constructs", "AWS::WAFv2", "aws-wafv2" ], "license": "Apache-2.0", "metadata": { "jsii": { "compiledWithDeprecationWarnings": true, "pacmak": { "hasDefaultInterfaces": true }, "rosetta": { "strict": true } } }, "name": "@aws-cdk/aws-wafv2", "readme": { "markdown": "# AWS::WAFv2 Construct Library\n\n\n---\n\n![End-of-Support](https://img.shields.io/badge/End--of--Support-critical.svg?style=for-the-badge)\n\n> AWS CDK v1 has reached End-of-Support on 2023-06-01.\n> This package is no longer being updated, and users should migrate to AWS CDK v2.\n>\n> For more information on how to migrate, see the [_Migrating to AWS CDK v2_ guide][doc].\n>\n> [doc]: https://docs.aws.amazon.com/cdk/v2/guide/migrating-v2.html\n\n---\n\n\n\nThis module is part of the [AWS Cloud Development Kit](https://github.com/aws/aws-cdk) project.\n\n```ts nofixture\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n```\n\n\n\nThere are no official hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet. Here are some suggestions on how to proceed:\n\n- Search [Construct Hub for WAFv2 construct libraries](https://constructs.dev/search?q=wafv2)\n- Use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, in the same way you would use [the CloudFormation AWS::WAFv2 resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_WAFv2.html) directly.\n\n\n\n\nThere are no hand-written ([L2](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_lib)) constructs for this service yet.\nHowever, you can still use the automatically generated [L1](https://docs.aws.amazon.com/cdk/latest/guide/constructs.html#constructs_l1_using) constructs, and use this service exactly as you would using CloudFormation directly.\n\nFor more information on the resources and properties available for this service, see the [CloudFormation documentation for AWS::WAFv2](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/AWS_WAFv2.html).\n\n(Read the [CDK Contributing Guide](https://github.com/aws/aws-cdk/blob/master/CONTRIBUTING.md) and submit an RFC if you are interested in contributing to this construct library.)\n\n\n" }, "repository": { "directory": "packages/@aws-cdk/aws-wafv2", "type": "git", "url": "https://github.com/aws/aws-cdk.git" }, "schema": "jsii/0.10.0", "targets": { "dotnet": { "iconUrl": "https://raw.githubusercontent.com/aws/aws-cdk/master/logo/default-256-dark.png", "namespace": "Amazon.CDK.AWS.WAFv2", "packageId": "Amazon.CDK.AWS.WAFv2" }, "java": { "maven": { "artifactId": "wafv2", "groupId": "software.amazon.awscdk" }, "package": "software.amazon.awscdk.services.wafv2" }, "js": { "npm": "@aws-cdk/aws-wafv2" }, "python": { "classifiers": [ "Framework :: AWS CDK", "Framework :: AWS CDK :: 1" ], "distName": "aws-cdk.aws-wafv2", "module": "aws_cdk.aws_wafv2" } }, "types": { "@aws-cdk/aws-wafv2.CfnIPSet": { "assembly": "@aws-cdk/aws-wafv2", "base": "@aws-cdk/core.CfnResource", "docs": { "custom": { "cloudformationResource": "AWS::WAFv2::IPSet", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> This is the latest version of *AWS WAF* , named AWS WAF V2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .\n\nUse an `IPSet` to identify web requests that originate from specific IP addresses or ranges of IP addresses. For example, if you're receiving a lot of requests from a ranges of IP addresses, you can configure AWS WAF to block them using an IP set that lists those IP addresses.\n\nYou use an IP set by providing its Amazon Resource Name (ARN) to the rule statement `IPSetReferenceStatement` , when you add a rule to a rule group or web ACL.", "stability": "external", "summary": "A CloudFormation `AWS::WAFv2::IPSet`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst cfnIPSet = new wafv2.CfnIPSet(this, 'MyCfnIPSet', {\n addresses: ['addresses'],\n ipAddressVersion: 'ipAddressVersion',\n scope: 'scope',\n\n // the properties below are optional\n description: 'description',\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});" }, "fqn": "@aws-cdk/aws-wafv2.CfnIPSet", "initializer": { "docs": { "stability": "external", "summary": "Create a new `AWS::WAFv2::IPSet`." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 267 }, "parameters": [ { "docs": { "summary": "- scope in which this resource is defined." }, "name": "scope", "type": { "fqn": "@aws-cdk/core.Construct" } }, { "docs": { "summary": "- scoped id of the resource." }, "name": "id", "type": { "primitive": "string" } }, { "docs": { "summary": "- resource properties." }, "name": "props", "type": { "fqn": "@aws-cdk/aws-wafv2.CfnIPSetProps" } } ] }, "interfaces": [ "@aws-cdk/core.IInspectable" ], "kind": "class", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 161 }, "methods": [ { "docs": { "stability": "external", "summary": "Examines the CloudFormation resource and discloses attributes." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 289 }, "name": "inspect", "overrides": "@aws-cdk/core.IInspectable", "parameters": [ { "docs": { "summary": "- tree inspector to collect and process attributes." }, "name": "inspector", "type": { "fqn": "@aws-cdk/core.TreeInspector" } } ] }, { "docs": { "stability": "external" }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 305 }, "name": "renderProperties", "overrides": "@aws-cdk/core.CfnResource", "parameters": [ { "name": "props", "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "protected": true, "returns": { "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } } ], "name": "CfnIPSet", "properties": [ { "const": true, "docs": { "stability": "external", "summary": "The CloudFormation resource type name for this resource class." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 165 }, "name": "CFN_RESOURCE_TYPE_NAME", "static": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "Arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the IP set." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 190 }, "name": "attrArn", "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "Id" }, "stability": "external", "summary": "The ID of the IP set." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 196 }, "name": "attrId", "type": { "primitive": "string" } }, { "docs": { "stability": "external" }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 294 }, "name": "cfnProperties", "overrides": "@aws-cdk/core.CfnResource", "protected": true, "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-tags" }, "remarks": "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.\n\n> 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.", "stability": "external", "summary": "Key:value pairs associated with an AWS resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 258 }, "name": "tags", "type": { "fqn": "@aws-cdk/core.TagManager" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-addresses" }, "remarks": "All addresses must be specified using Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all IPv4 and IPv6 CIDR ranges except for `/0` .\n\nExample address strings:\n\n- To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify `192.0.2.44/32` .\n- To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify `192.0.2.0/24` .\n- To configure AWS WAF to allow, block, or count requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify `1111:0000:0000:0000:0000:0000:0000:0111/128` .\n- To configure AWS WAF to allow, block, or count requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify `1111:0000:0000:0000:0000:0000:0000:0000/64` .\n\nFor more information about CIDR notation, see the Wikipedia entry [Classless Inter-Domain Routing](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) .\n\nExample JSON `Addresses` specifications:\n\n- Empty array: `\"Addresses\": []`\n- Array with one address: `\"Addresses\": [\"192.0.2.44/32\"]`\n- Array with three addresses: `\"Addresses\": [\"192.0.2.44/32\", \"192.0.2.0/24\", \"192.0.0.0/16\"]`\n- INVALID specification: `\"Addresses\": [\"\"]` INVALID", "stability": "external", "summary": "Contains an array of strings that specifies zero or more IP addresses or blocks of IP addresses." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 219 }, "name": "addresses", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-ipaddressversion" }, "stability": "external", "summary": "The version of the IP addresses, either `IPV4` or `IPV6` ." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 226 }, "name": "ipAddressVersion", "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-scope" }, "remarks": "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` .\n\n> For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .", "stability": "external", "summary": "Specifies whether this is for an Amazon CloudFront distribution or for a regional application." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 235 }, "name": "scope", "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-description" }, "stability": "external", "summary": "A description of the IP set that helps with identification." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 242 }, "name": "description", "optional": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-name" }, "remarks": "You cannot change the name of an `IPSet` after you create it.", "stability": "external", "summary": "The name of the IP set." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 249 }, "name": "name", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnIPSet" }, "@aws-cdk/aws-wafv2.CfnIPSetProps": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Properties for defining a `CfnIPSet`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst cfnIPSetProps: wafv2.CfnIPSetProps = {\n addresses: ['addresses'],\n ipAddressVersion: 'ipAddressVersion',\n scope: 'scope',\n\n // the properties below are optional\n description: 'description',\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnIPSetProps", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 19 }, "name": "CfnIPSetProps", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-addresses" }, "remarks": "All addresses must be specified using Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all IPv4 and IPv6 CIDR ranges except for `/0` .\n\nExample address strings:\n\n- To configure AWS WAF to allow, block, or count requests that originated from the IP address 192.0.2.44, specify `192.0.2.44/32` .\n- To configure AWS WAF to allow, block, or count requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify `192.0.2.0/24` .\n- To configure AWS WAF to allow, block, or count requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify `1111:0000:0000:0000:0000:0000:0000:0111/128` .\n- To configure AWS WAF to allow, block, or count requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify `1111:0000:0000:0000:0000:0000:0000:0000/64` .\n\nFor more information about CIDR notation, see the Wikipedia entry [Classless Inter-Domain Routing](https://docs.aws.amazon.com/https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) .\n\nExample JSON `Addresses` specifications:\n\n- Empty array: `\"Addresses\": []`\n- Array with one address: `\"Addresses\": [\"192.0.2.44/32\"]`\n- Array with three addresses: `\"Addresses\": [\"192.0.2.44/32\", \"192.0.2.0/24\", \"192.0.0.0/16\"]`\n- INVALID specification: `\"Addresses\": [\"\"]` INVALID", "stability": "external", "summary": "Contains an array of strings that specifies zero or more IP addresses or blocks of IP addresses." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 42 }, "name": "addresses", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-ipaddressversion" }, "stability": "external", "summary": "The version of the IP addresses, either `IPV4` or `IPV6` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 49 }, "name": "ipAddressVersion", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-scope" }, "remarks": "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` .\n\n> For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .", "stability": "external", "summary": "Specifies whether this is for an Amazon CloudFront distribution or for a regional application." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 58 }, "name": "scope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-description" }, "stability": "external", "summary": "A description of the IP set that helps with identification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 65 }, "name": "description", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-name" }, "remarks": "You cannot change the name of an `IPSet` after you create it.", "stability": "external", "summary": "The name of the IP set." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 72 }, "name": "name", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-tags" }, "remarks": "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.\n\n> 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.", "stability": "external", "summary": "Key:value pairs associated with an AWS resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 81 }, "name": "tags", "optional": true, "type": { "collection": { "elementtype": { "fqn": "@aws-cdk/core.CfnTag" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnIPSetProps" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration": { "assembly": "@aws-cdk/aws-wafv2", "base": "@aws-cdk/core.CfnResource", "docs": { "custom": { "cloudformationResource": "AWS::WAFv2::LoggingConfiguration", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Defines an association between logging destinations and a web ACL resource, for logging from AWS WAF . As part of the association, you can specify parts of the standard logging fields to keep out of the logs and you can specify filters so that you log only a subset of the logging records.\n\n> You can define one logging destination per web ACL.\n\nYou can access information about the traffic that AWS WAF inspects using the following steps:\n\n- Create your logging destination. You can use an Amazon CloudWatch Logs log group, an Amazon Simple Storage Service (Amazon S3) bucket, or an Amazon Kinesis Data Firehose.\n\nThe name that you give the destination must start with `aws-waf-logs-` . Depending on the type of destination, you might need to configure additional settings or permissions.\n\nFor configuration requirements and pricing information for each destination type, see [Logging web ACL traffic](https://docs.aws.amazon.com/waf/latest/developerguide/logging.html) in the *AWS WAF Developer Guide* .\n- Associate your logging destination to your web ACL using a `PutLoggingConfiguration` request.\n\nWhen you successfully enable logging using a `PutLoggingConfiguration` request, AWS WAF creates an additional role or policy that is required to write logs to the logging destination. For an Amazon CloudWatch Logs log group, AWS WAF creates a resource policy on the log group. For an Amazon S3 bucket, AWS WAF creates a bucket policy. For an Amazon Kinesis Data Firehose, AWS WAF creates a service-linked role.\n\nFor additional information about web ACL logging, see [Logging web ACL traffic information](https://docs.aws.amazon.com/waf/latest/developerguide/logging.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "A CloudFormation `AWS::WAFv2::LoggingConfiguration`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const jsonBody: any;\ndeclare const loggingFilter: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const uriPath: any;\nconst cfnLoggingConfiguration = new wafv2.CfnLoggingConfiguration(this, 'MyCfnLoggingConfiguration', {\n logDestinationConfigs: ['logDestinationConfigs'],\n resourceArn: 'resourceArn',\n\n // the properties below are optional\n loggingFilter: loggingFilter,\n redactedFields: [{\n jsonBody: jsonBody,\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n uriPath: uriPath,\n }],\n});" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration", "initializer": { "docs": { "stability": "external", "summary": "Create a new `AWS::WAFv2::LoggingConfiguration`." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 512 }, "parameters": [ { "docs": { "summary": "- scope in which this resource is defined." }, "name": "scope", "type": { "fqn": "@aws-cdk/core.Construct" } }, { "docs": { "summary": "- scoped id of the resource." }, "name": "id", "type": { "primitive": "string" } }, { "docs": { "summary": "- resource properties." }, "name": "props", "type": { "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfigurationProps" } } ] }, "interfaces": [ "@aws-cdk/core.IInspectable" ], "kind": "class", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 438 }, "methods": [ { "docs": { "stability": "external", "summary": "Examines the CloudFormation resource and discloses attributes." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 530 }, "name": "inspect", "overrides": "@aws-cdk/core.IInspectable", "parameters": [ { "docs": { "summary": "- tree inspector to collect and process attributes." }, "name": "inspector", "type": { "fqn": "@aws-cdk/core.TreeInspector" } } ] }, { "docs": { "stability": "external" }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 544 }, "name": "renderProperties", "overrides": "@aws-cdk/core.CfnResource", "parameters": [ { "name": "props", "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "protected": true, "returns": { "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } } ], "name": "CfnLoggingConfiguration", "properties": [ { "const": true, "docs": { "stability": "external", "summary": "The CloudFormation resource type name for this resource class." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 442 }, "name": "CFN_RESOURCE_TYPE_NAME", "static": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "ManagedByFirewallManager" }, "remarks": "If true, only Firewall Manager can modify or delete the configuration.", "stability": "external", "summary": "Indicates whether the logging configuration was created by AWS Firewall Manager , as part of an AWS WAF policy configuration." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 467 }, "name": "attrManagedByFirewallManager", "type": { "fqn": "@aws-cdk/core.IResolvable" } }, { "docs": { "stability": "external" }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 535 }, "name": "cfnProperties", "overrides": "@aws-cdk/core.CfnResource", "protected": true, "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-logdestinationconfigs" }, "remarks": "> You can associate one logging destination to a web ACL.", "stability": "external", "summary": "The logging destination configuration that you want to associate with the web ACL." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 476 }, "name": "logDestinationConfigs", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-loggingfilter" }, "remarks": "You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.", "stability": "external", "summary": "Filtering that specifies which web requests are kept in the logs and which are dropped." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 490 }, "name": "loggingFilter", "type": { "primitive": "any" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-resourcearn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the web ACL that you want to associate with `LogDestinationConfigs` ." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 483 }, "name": "resourceArn", "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-redactedfields" }, "remarks": "For example, if you redact the `SingleHeader` field, the `HEADER` field in the logs will be `REDACTED` for all rules that use the `SingleHeader` `FieldToMatch` setting.\n\nRedaction applies only to the component that's specified in the rule's `FieldToMatch` setting, so the `SingleHeader` redaction doesn't apply to rules that use the `Headers` `FieldToMatch` .\n\n> You can specify only the following fields for redaction: `UriPath` , `QueryString` , `SingleHeader` , and `Method` .", "stability": "external", "summary": "The parts of the request that you want to keep out of the logs." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 503 }, "name": "redactedFields", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.FieldToMatchProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.ActionConditionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-actioncondition.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "A single action condition for a condition in a logging filter.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst actionConditionProperty: wafv2.CfnLoggingConfiguration.ActionConditionProperty = {\n action: 'action',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.ActionConditionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 558 }, "name": "ActionConditionProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-actioncondition.html#cfn-wafv2-loggingconfiguration-actioncondition-action" }, "remarks": "This is the action that AWS WAF applied to the web request.\n\nFor rule groups, this is either the configured rule action setting, or if you've applied a rule action override to the rule, it's the override action. The value `EXCLUDED_AS_COUNT` matches on excluded rules and also on rules that have a rule action override of Count.", "stability": "external", "summary": "The action setting that a log record must contain in order to meet the condition." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 566 }, "name": "action", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.ActionConditionProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.ConditionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-condition.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "A single match condition for a log filter.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst conditionProperty: wafv2.CfnLoggingConfiguration.ConditionProperty = {\n actionCondition: {\n action: 'action',\n },\n labelNameCondition: {\n labelName: 'labelName',\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.ConditionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 628 }, "name": "ConditionProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-condition.html#cfn-wafv2-loggingconfiguration-condition-actioncondition" }, "remarks": "This is the action setting that a log record must contain in order to meet the condition.", "stability": "external", "summary": "A single action condition." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 634 }, "name": "actionCondition", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.ActionConditionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-condition.html#cfn-wafv2-loggingconfiguration-condition-labelnamecondition" }, "remarks": "This is the fully qualified label name that a log record must contain in order to meet the condition. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.", "stability": "external", "summary": "A single label name condition." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 640 }, "name": "labelNameCondition", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.LabelNameConditionProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.ConditionProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.FieldToMatchProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used in the logging configuration `RedactedFields` specification.\n\nExample JSON for a `QueryString` field to match:\n\n`\"FieldToMatch\": { \"QueryString\": {} }`\n\nExample JSON for a `Method` field to match specification:\n\n`\"FieldToMatch\": { \"Method\": { \"Name\": \"DELETE\" } }`", "stability": "external", "summary": "The parts of the request that you want to keep out of the logs.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const jsonBody: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const uriPath: any;\nconst fieldToMatchProperty: wafv2.CfnLoggingConfiguration.FieldToMatchProperty = {\n jsonBody: jsonBody,\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n uriPath: uriPath,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.FieldToMatchProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 712 }, "name": "FieldToMatchProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-jsonbody" }, "stability": "external", "summary": "Redact the request body JSON." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 718 }, "name": "jsonBody", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-method" }, "remarks": "The method indicates the type of operation that the request is asking the origin to perform.", "stability": "external", "summary": "Redact the indicated HTTP method." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 724 }, "name": "method", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-querystring" }, "remarks": "This is the part of a URL that appears after a `?` character, if any.", "stability": "external", "summary": "Redact the query string." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 730 }, "name": "queryString", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-singleheader" }, "remarks": "Provide the name of the header to inspect, for example, `User-Agent` or `Referer` . This setting isn't case sensitive.\n\nExample JSON: `\"SingleHeader\": { \"Name\": \"haystack\" }`", "stability": "external", "summary": "Redact a single header." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 738 }, "name": "singleHeader", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-uripath" }, "remarks": "This is the part of the web request that identifies a resource, for example, `/images/daily-ad.jpg` .", "stability": "external", "summary": "Redact the request URI path." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 744 }, "name": "uriPath", "optional": true, "type": { "primitive": "any" } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.FieldToMatchProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.FilterProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-filter.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "A single logging filter, used in `LoggingFilter` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst filterProperty: wafv2.CfnLoggingConfiguration.FilterProperty = {\n behavior: 'behavior',\n conditions: [{\n actionCondition: {\n action: 'action',\n },\n labelNameCondition: {\n labelName: 'labelName',\n },\n }],\n requirement: 'requirement',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.FilterProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 817 }, "name": "FilterProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-filter.html#cfn-wafv2-loggingconfiguration-filter-behavior" }, "stability": "external", "summary": "How to handle logs that satisfy the filter's conditions and requirement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 823 }, "name": "behavior", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-filter.html#cfn-wafv2-loggingconfiguration-filter-conditions" }, "stability": "external", "summary": "Match conditions for the filter." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 829 }, "name": "conditions", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.ConditionProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-filter.html#cfn-wafv2-loggingconfiguration-filter-requirement" }, "remarks": "You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.", "stability": "external", "summary": "Logic to apply to the filtering conditions." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 835 }, "name": "requirement", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.FilterProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.JsonBodyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-jsonbody.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nUse the specifications in this object to indicate which parts of the JSON body to inspect using the rule's inspection criteria. AWS WAF inspects only the parts of the JSON that result from the matches that you indicate.\n\nExample JSON: `\"JsonBody\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"ALL\" }`", "stability": "external", "summary": "Inspect the body of the web request as JSON. The body immediately follows the request headers.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst jsonBodyProperty: wafv2.CfnLoggingConfiguration.JsonBodyProperty = {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.JsonBodyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 911 }, "name": "JsonBodyProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-jsonbody.html#cfn-wafv2-loggingconfiguration-jsonbody-matchpattern" }, "remarks": "AWS WAF inspects the results of these pattern matches against the rule inspection criteria.", "stability": "external", "summary": "The patterns to look for in the JSON body." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 937 }, "name": "matchPattern", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.MatchPatternProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-jsonbody.html#cfn-wafv2-loggingconfiguration-jsonbody-matchscope" }, "remarks": "If you specify `All` , AWS WAF matches against keys and values.", "stability": "external", "summary": "The parts of the JSON to match against using the `MatchPattern` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 943 }, "name": "matchScope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-jsonbody.html#cfn-wafv2-loggingconfiguration-jsonbody-invalidfallbackbehavior" }, "remarks": "- `EVALUATE_AS_STRING` - Inspect the body as plain text. AWS WAF applies the text transformations and inspection criteria that you defined for the JSON inspection to the body text string.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.\n\nIf you don't provide this setting, AWS WAF parses and evaluates the content only up to the first parsing failure that it encounters.\n\nAWS WAF does its best to parse the entire JSON body, but might be forced to stop for reasons such as invalid characters, duplicate keys, truncation, and any content whose root node isn't an object or an array.\n\nAWS WAF parses the JSON in the following examples as two valid key, value pairs:\n\n- Missing comma: `{\"key1\":\"value1\"\"key2\":\"value2\"}`\n- Missing colon: `{\"key1\":\"value1\",\"key2\"\"value2\"}`\n- Extra colons: `{\"key1\"::\"value1\",\"key2\"\"value2\"}`", "stability": "external", "summary": "What AWS WAF should do if it fails to completely parse the JSON body. The options are the following:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 931 }, "name": "invalidFallbackBehavior", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.JsonBodyProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.LabelNameConditionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-labelnamecondition.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "A single label name condition for a condition in a logging filter.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst labelNameConditionProperty: wafv2.CfnLoggingConfiguration.LabelNameConditionProperty = {\n labelName: 'labelName',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.LabelNameConditionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1012 }, "name": "LabelNameConditionProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-labelnamecondition.html#cfn-wafv2-loggingconfiguration-labelnamecondition-labelname" }, "remarks": "This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.", "stability": "external", "summary": "The label name that a log record must contain in order to meet the condition." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1018 }, "name": "labelName", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.LabelNameConditionProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.LoggingFilterProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-loggingfilter.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.", "stability": "external", "summary": "Filtering that specifies which web requests are kept in the logs and which are dropped, defined for a web ACL's `LoggingConfiguration` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst loggingFilterProperty: wafv2.CfnLoggingConfiguration.LoggingFilterProperty = {\n defaultBehavior: 'defaultBehavior',\n filters: [{\n behavior: 'behavior',\n conditions: [{\n actionCondition: {\n action: 'action',\n },\n labelNameCondition: {\n labelName: 'labelName',\n },\n }],\n requirement: 'requirement',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.LoggingFilterProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1082 }, "name": "LoggingFilterProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-loggingfilter.html#cfn-wafv2-loggingconfiguration-loggingfilter-defaultbehavior" }, "stability": "external", "summary": "Default handling for logs that don't match any of the specified filtering conditions." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1088 }, "name": "defaultBehavior", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-loggingfilter.html#cfn-wafv2-loggingconfiguration-loggingfilter-filters" }, "stability": "external", "summary": "The filters that you want to apply to the logs." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1094 }, "name": "filters", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.FilterProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.LoggingFilterProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.MatchPatternProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-matchpattern.html", "exampleMetadata": "fixture=_generated" }, "remarks": "AWS WAF inspects the results of these pattern matches against the rule inspection criteria.", "stability": "external", "summary": "The patterns to look for in the JSON body.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst matchPatternProperty: wafv2.CfnLoggingConfiguration.MatchPatternProperty = {\n all: all,\n includedPaths: ['includedPaths'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.MatchPatternProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1160 }, "name": "MatchPatternProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-matchpattern.html#cfn-wafv2-loggingconfiguration-matchpattern-all" }, "remarks": "You must specify either this setting or the `IncludedPaths` setting, but not both.", "stability": "external", "summary": "Match all of the elements." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1168 }, "name": "all", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-matchpattern.html#cfn-wafv2-loggingconfiguration-matchpattern-includedpaths" }, "remarks": "Provide the include paths using JSON Pointer syntax. For example, `\"IncludedPaths\": [\"/dogs/0/name\", \"/dogs/1/name\"]` . For information about this syntax, see the Internet Engineering Task Force (IETF) documentation [JavaScript Object Notation (JSON) Pointer](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6901) .\n\nYou must specify either this setting or the `All` setting, but not both.\n\n> Don't use this option to include all paths. Instead, use the `All` setting.", "stability": "external", "summary": "Match only the specified include paths." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1180 }, "name": "includedPaths", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.MatchPatternProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.SingleHeaderProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-singleheader.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The name isn't case sensitive.\n\nYou can filter and inspect all headers with the `FieldToMatch` setting `Headers` .\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nExample JSON: `\"SingleHeader\": { \"Name\": \"haystack\" }`", "stability": "external", "summary": "Inspect one of the headers in the web request, identified by name, for example, `User-Agent` or `Referer` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst singleHeaderProperty: wafv2.CfnLoggingConfiguration.SingleHeaderProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.SingleHeaderProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1250 }, "name": "SingleHeaderProperty", "namespace": "CfnLoggingConfiguration", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-singleheader.html#cfn-wafv2-loggingconfiguration-singleheader-name" }, "stability": "external", "summary": "The name of the query header to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1256 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfiguration.SingleHeaderProperty" }, "@aws-cdk/aws-wafv2.CfnLoggingConfigurationProps": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Properties for defining a `CfnLoggingConfiguration`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const jsonBody: any;\ndeclare const loggingFilter: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const uriPath: any;\nconst cfnLoggingConfigurationProps: wafv2.CfnLoggingConfigurationProps = {\n logDestinationConfigs: ['logDestinationConfigs'],\n resourceArn: 'resourceArn',\n\n // the properties below are optional\n loggingFilter: loggingFilter,\n redactedFields: [{\n jsonBody: jsonBody,\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n uriPath: uriPath,\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfigurationProps", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 318 }, "name": "CfnLoggingConfigurationProps", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-logdestinationconfigs" }, "remarks": "> You can associate one logging destination to a web ACL.", "stability": "external", "summary": "The logging destination configuration that you want to associate with the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 327 }, "name": "logDestinationConfigs", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-resourcearn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the web ACL that you want to associate with `LogDestinationConfigs` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 334 }, "name": "resourceArn", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-loggingfilter" }, "remarks": "You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.", "stability": "external", "summary": "Filtering that specifies which web requests are kept in the logs and which are dropped." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 341 }, "name": "loggingFilter", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-redactedfields" }, "remarks": "For example, if you redact the `SingleHeader` field, the `HEADER` field in the logs will be `REDACTED` for all rules that use the `SingleHeader` `FieldToMatch` setting.\n\nRedaction applies only to the component that's specified in the rule's `FieldToMatch` setting, so the `SingleHeader` redaction doesn't apply to rules that use the `Headers` `FieldToMatch` .\n\n> You can specify only the following fields for redaction: `UriPath` , `QueryString` , `SingleHeader` , and `Method` .", "stability": "external", "summary": "The parts of the request that you want to keep out of the logs." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 354 }, "name": "redactedFields", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnLoggingConfiguration.FieldToMatchProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnLoggingConfigurationProps" }, "@aws-cdk/aws-wafv2.CfnRegexPatternSet": { "assembly": "@aws-cdk/aws-wafv2", "base": "@aws-cdk/core.CfnResource", "docs": { "custom": { "cloudformationResource": "AWS::WAFv2::RegexPatternSet", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> This is the latest version of *AWS WAF* , named AWS WAF V2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .\n\nUse an `RegexPatternSet` to have AWS WAF inspect a web request component for a specific set of regular expression patterns.\n\nYou use a regex pattern set by providing its Amazon Resource Name (ARN) to the rule statement `RegexPatternSetReferenceStatement` , when you add a rule to a rule group or web ACL.", "stability": "external", "summary": "A CloudFormation `AWS::WAFv2::RegexPatternSet`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst cfnRegexPatternSet = new wafv2.CfnRegexPatternSet(this, 'MyCfnRegexPatternSet', {\n regularExpressionList: ['regularExpressionList'],\n scope: 'scope',\n\n // the properties below are optional\n description: 'description',\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});" }, "fqn": "@aws-cdk/aws-wafv2.CfnRegexPatternSet", "initializer": { "docs": { "stability": "external", "summary": "Create a new `AWS::WAFv2::RegexPatternSet`." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1515 }, "parameters": [ { "docs": { "summary": "- scope in which this resource is defined." }, "name": "scope", "type": { "fqn": "@aws-cdk/core.Construct" } }, { "docs": { "summary": "- scoped id of the resource." }, "name": "id", "type": { "primitive": "string" } }, { "docs": { "summary": "- resource properties." }, "name": "props", "type": { "fqn": "@aws-cdk/aws-wafv2.CfnRegexPatternSetProps" } } ] }, "interfaces": [ "@aws-cdk/core.IInspectable" ], "kind": "class", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1432 }, "methods": [ { "docs": { "stability": "external", "summary": "Examines the CloudFormation resource and discloses attributes." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1535 }, "name": "inspect", "overrides": "@aws-cdk/core.IInspectable", "parameters": [ { "docs": { "summary": "- tree inspector to collect and process attributes." }, "name": "inspector", "type": { "fqn": "@aws-cdk/core.TreeInspector" } } ] }, { "docs": { "stability": "external" }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1550 }, "name": "renderProperties", "overrides": "@aws-cdk/core.CfnResource", "parameters": [ { "name": "props", "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "protected": true, "returns": { "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } } ], "name": "CfnRegexPatternSet", "properties": [ { "const": true, "docs": { "stability": "external", "summary": "The CloudFormation resource type name for this resource class." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1436 }, "name": "CFN_RESOURCE_TYPE_NAME", "static": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "Arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the regex pattern set." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1461 }, "name": "attrArn", "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "Id" }, "stability": "external", "summary": "The ID of the regex pattern set." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1467 }, "name": "attrId", "type": { "primitive": "string" } }, { "docs": { "stability": "external" }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1540 }, "name": "cfnProperties", "overrides": "@aws-cdk/core.CfnResource", "protected": true, "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-tags" }, "remarks": "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.\n\n> 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.", "stability": "external", "summary": "Key:value pairs associated with an AWS resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1506 }, "name": "tags", "type": { "fqn": "@aws-cdk/core.TagManager" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-regularexpressionlist" }, "stability": "external", "summary": "The regular expression patterns in the set." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1474 }, "name": "regularExpressionList", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-scope" }, "remarks": "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` .\n\n> For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .", "stability": "external", "summary": "Specifies whether this is for an Amazon CloudFront distribution or for a regional application." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1483 }, "name": "scope", "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-description" }, "stability": "external", "summary": "A description of the set that helps with identification." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1490 }, "name": "description", "optional": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-name" }, "remarks": "You cannot change the name after you create the set.", "stability": "external", "summary": "The name of the set." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1497 }, "name": "name", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRegexPatternSet" }, "@aws-cdk/aws-wafv2.CfnRegexPatternSetProps": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Properties for defining a `CfnRegexPatternSet`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst cfnRegexPatternSetProps: wafv2.CfnRegexPatternSetProps = {\n regularExpressionList: ['regularExpressionList'],\n scope: 'scope',\n\n // the properties below are optional\n description: 'description',\n name: 'name',\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRegexPatternSetProps", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1317 }, "name": "CfnRegexPatternSetProps", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-regularexpressionlist" }, "stability": "external", "summary": "The regular expression patterns in the set." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1324 }, "name": "regularExpressionList", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-scope" }, "remarks": "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` .\n\n> For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .", "stability": "external", "summary": "Specifies whether this is for an Amazon CloudFront distribution or for a regional application." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1333 }, "name": "scope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-description" }, "stability": "external", "summary": "A description of the set that helps with identification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1340 }, "name": "description", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-name" }, "remarks": "You cannot change the name after you create the set.", "stability": "external", "summary": "The name of the set." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1347 }, "name": "name", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-tags" }, "remarks": "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.\n\n> 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.", "stability": "external", "summary": "Key:value pairs associated with an AWS resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1356 }, "name": "tags", "optional": true, "type": { "collection": { "elementtype": { "fqn": "@aws-cdk/core.CfnTag" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnRegexPatternSetProps" }, "@aws-cdk/aws-wafv2.CfnRuleGroup": { "assembly": "@aws-cdk/aws-wafv2", "base": "@aws-cdk/core.CfnResource", "docs": { "custom": { "cloudformationResource": "AWS::WAFv2::RuleGroup", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> This is the latest version of *AWS WAF* , named AWS WAF V2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .\n\nUse an `RuleGroup` to define a collection of rules for inspecting and controlling web requests. You use a rule group in an `WebACL` by providing its Amazon Resource Name (ARN) to the rule statement `RuleGroupReferenceStatement` , when you add rules to the web ACL.\n\nWhen you create a rule group, you define an immutable capacity limit. If you update a rule group, you must stay within the capacity. This allows others to reuse the rule group with confidence in its capacity requirements.", "stability": "external", "summary": "A CloudFormation `AWS::WAFv2::RuleGroup`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allow: any;\ndeclare const allQueryArguments: any;\ndeclare const block: any;\ndeclare const captcha: any;\ndeclare const challenge: any;\ndeclare const count: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;\ndeclare const uriPath: any;\nconst cfnRuleGroup = new wafv2.CfnRuleGroup(this, 'MyCfnRuleGroup', {\n capacity: 123,\n scope: 'scope',\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n availableLabels: [{\n name: 'name',\n }],\n consumedLabels: [{\n name: 'name',\n }],\n customResponseBodies: {\n customResponseBodiesKey: {\n content: 'content',\n contentType: 'contentType',\n },\n },\n description: 'description',\n name: 'name',\n rules: [{\n name: 'name',\n priority: 123,\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n action: {\n allow: allow,\n block: block,\n captcha: captcha,\n challenge: challenge,\n count: count,\n },\n captchaConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n challengeConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n ruleLabels: [{\n name: 'name',\n }],\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n});" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup", "initializer": { "docs": { "stability": "external", "summary": "Create a new `AWS::WAFv2::RuleGroup`." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1873 }, "parameters": [ { "docs": { "summary": "- scope in which this resource is defined." }, "name": "scope", "type": { "fqn": "@aws-cdk/core.Construct" } }, { "docs": { "summary": "- scoped id of the resource." }, "name": "id", "type": { "primitive": "string" } }, { "docs": { "summary": "- resource properties." }, "name": "props", "type": { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroupProps" } } ] }, "interfaces": [ "@aws-cdk/core.IInspectable" ], "kind": "class", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1737 }, "methods": [ { "docs": { "stability": "external", "summary": "Examines the CloudFormation resource and discloses attributes." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1900 }, "name": "inspect", "overrides": "@aws-cdk/core.IInspectable", "parameters": [ { "docs": { "summary": "- tree inspector to collect and process attributes." }, "name": "inspector", "type": { "fqn": "@aws-cdk/core.TreeInspector" } } ] }, { "docs": { "stability": "external" }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1920 }, "name": "renderProperties", "overrides": "@aws-cdk/core.CfnResource", "parameters": [ { "name": "props", "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "protected": true, "returns": { "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } } ], "name": "CfnRuleGroup", "properties": [ { "const": true, "docs": { "stability": "external", "summary": "The CloudFormation resource type name for this resource class." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1741 }, "name": "CFN_RESOURCE_TYPE_NAME", "static": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "Arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1766 }, "name": "attrArn", "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "Id" }, "stability": "external", "summary": "The ID of the rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1772 }, "name": "attrId", "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "LabelNamespace" }, "remarks": "All labels added by rules in this rule group have this prefix.\n\nThe syntax for the label namespace prefix for a rule group is the following: `awswaf::rule group::`\n\nWhen a rule with a label matches a web request, AWS WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon.", "stability": "external", "summary": "The label namespace prefix for this rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1782 }, "name": "attrLabelNamespace", "type": { "primitive": "string" } }, { "docs": { "stability": "external" }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1905 }, "name": "cfnProperties", "overrides": "@aws-cdk/core.CfnResource", "protected": true, "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-tags" }, "remarks": "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.\n\n> 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.", "stability": "external", "summary": "Key:value pairs associated with an AWS resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1864 }, "name": "tags", "type": { "fqn": "@aws-cdk/core.TagManager" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-capacity" }, "remarks": "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.\n\nAWS 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.", "stability": "external", "summary": "The web ACL capacity units (WCUs) required for this rule group." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1793 }, "name": "capacity", "type": { "primitive": "number" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-scope" }, "remarks": "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` .\n\n> For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .", "stability": "external", "summary": "Specifies whether this is for an Amazon CloudFront distribution or for a regional application." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1802 }, "name": "scope", "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-visibilityconfig" }, "stability": "external", "summary": "Defines and enables Amazon CloudWatch metrics and web request sample collection." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1809 }, "name": "visibilityConfig", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.VisibilityConfigProperty" } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-availablelabels" }, "remarks": "These labels are defined in the `RuleLabels` for a `Rule` .", "stability": "external", "summary": "The labels that one or more rules in this rule group add to matching web requests." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1816 }, "name": "availableLabels", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelSummaryProperty" } ] } }, "kind": "array" } } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-consumedlabels" }, "remarks": "These labels are defined in a `LabelMatchStatement` specification, in the `Statement` definition of a rule.", "stability": "external", "summary": "The labels that one or more rules in this rule group match against in label match statements." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1823 }, "name": "consumedLabels", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelSummaryProperty" } ] } }, "kind": "array" } } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-customresponsebodies" }, "remarks": "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.\n\nFor information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .\n\nFor information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "A map of custom response keys and content bodies." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1834 }, "name": "customResponseBodies", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomResponseBodyProperty" } ] } }, "kind": "map" } } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-description" }, "stability": "external", "summary": "A description of the rule group that helps with identification." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1841 }, "name": "description", "optional": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-name" }, "remarks": "You cannot change the name of a rule group after you create it.", "stability": "external", "summary": "The name of the rule group." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1848 }, "name": "name", "optional": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-rules" }, "remarks": "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.", "stability": "external", "summary": "The rule statements used to identify the web requests that you want to allow, block, or count." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1855 }, "name": "rules", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RuleProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.AllowProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-allowaction.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst allowProperty: wafv2.CfnRuleGroup.AllowProperty = {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.AllowProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1934 }, "name": "AllowProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-allowaction.html#cfn-wafv2-rulegroup-allowaction-customrequesthandling" }, "stability": "external", "summary": "`CfnRuleGroup.AllowProperty.CustomRequestHandling`." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1940 }, "name": "customRequestHandling", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomRequestHandlingProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.AllowProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.AndStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-andstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You provide more than one `Statement` within the `AndStatement` .", "stability": "external", "summary": "A logical rule statement used to combine other rule statements with AND logic.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;\ndeclare const uriPath: any;\nconst andStatementProperty: wafv2.CfnRuleGroup.AndStatementProperty = {\n statements: [{\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.AndStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2001 }, "name": "AndStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-andstatement.html#cfn-wafv2-rulegroup-andstatement-statements" }, "remarks": "You can use any statements that can be nested.", "stability": "external", "summary": "The statements to combine with AND logic." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2007 }, "name": "statements", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.StatementProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.AndStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.BlockProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-blockaction.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst blockProperty: wafv2.CfnRuleGroup.BlockProperty = {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.BlockProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2069 }, "name": "BlockProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-blockaction.html#cfn-wafv2-rulegroup-blockaction-customresponse" }, "stability": "external", "summary": "`CfnRuleGroup.BlockProperty.CustomResponse`." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2075 }, "name": "customResponse", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomResponseProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.BlockProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.BodyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-body.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.", "stability": "external", "summary": "Inspect the body of the web request. The body immediately follows the request headers.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst bodyProperty: wafv2.CfnRuleGroup.BodyProperty = {\n oversizeHandling: 'oversizeHandling',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.BodyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2138 }, "name": "BodyProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-body.html#cfn-wafv2-rulegroup-body-oversizehandling" }, "remarks": "AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. If the body is larger than the limit, the underlying host service only forwards the contents that are below the limit to AWS WAF for inspection.\n\nThe default limit is 8 KB (8,192 kilobytes) for regional resources and 16 KB (16,384 kilobytes) for CloudFront distributions. For CloudFront distributions, you can increase the limit in the web ACL `AssociationConfig` , for additional processing fees.\n\nThe options for oversize handling are the following:\n\n- `CONTINUE` - Inspect the available body contents normally, according to the rule inspection criteria.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.\n\nYou can combine the `MATCH` or `NO_MATCH` settings for oversize handling with your rule and web ACL action settings, so that you block any request whose body is over the limit.\n\nDefault: `CONTINUE`", "stability": "external", "summary": "What AWS WAF should do if the body is larger than AWS WAF can inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2156 }, "name": "oversizeHandling", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.BodyProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.ByteMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The byte match statement provides the bytes to search for, the location in requests that you want AWS WAF to search, and other settings. The bytes to search for are typically a string that corresponds with ASCII characters. In the AWS WAF console and the developer guide, this is called a string match statement.", "stability": "external", "summary": "A rule statement that defines a string match search for AWS WAF to apply to web requests.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst byteMatchStatementProperty: wafv2.CfnRuleGroup.ByteMatchStatementProperty = {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ByteMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2217 }, "name": "ByteMatchStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2223 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-positionalconstraint" }, "remarks": "Valid values include the following:\n\n*CONTAINS*\n\nThe specified part of the web request must include the value of `SearchString` , but the location doesn't matter.\n\n*CONTAINS_WORD*\n\nThe specified part of the web request must include the value of `SearchString` , and `SearchString` must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, `SearchString` must be a word, which means that both of the following are true:\n\n- `SearchString` is at the beginning of the specified part of the web request or is preceded by a character other than an alphanumeric character or underscore (_). Examples include the value of a header and `;BadBot` .\n- `SearchString` is at the end of the specified part of the web request or is followed by a character other than an alphanumeric character or underscore (_), for example, `BadBot;` and `-BadBot;` .\n\n*EXACTLY*\n\nThe value of the specified part of the web request must exactly match the value of `SearchString` .\n\n*STARTS_WITH*\n\nThe value of `SearchString` must appear at the beginning of the specified part of the web request.\n\n*ENDS_WITH*\n\nThe value of `SearchString` must appear at the end of the specified part of the web request.", "stability": "external", "summary": "The area within the portion of the web request that you want AWS WAF to search for `SearchString` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2252 }, "name": "positionalConstraint", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2278 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-searchstring" }, "remarks": "AWS WAF searches only in the part of web requests that you designate for inspection in `FieldToMatch` . The maximum length of the value is 200 bytes. For alphabetic characters A-Z and a-z, the value is case sensitive.\n\nDon't encode this string. Provide the value that you want AWS WAF to search for. AWS CloudFormation automatically base64 encodes the value for you.\n\nFor example, suppose the value of `Type` is `HEADER` and the value of `Data` is `User-Agent` . If you want to search the `User-Agent` header for the value `BadBot` , you provide the string `BadBot` in the value of `SearchString` .\n\nYou must specify either `SearchString` or `SearchStringBase64` in a `ByteMatchStatement` .", "stability": "external", "summary": "A string value that you want AWS WAF to search for." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2264 }, "name": "searchString", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-searchstringbase64" }, "remarks": "If you don't want to encode the string, specify the unencoded value in `SearchString` instead.\n\nYou must specify either `SearchString` or `SearchStringBase64` in a `ByteMatchStatement` .", "stability": "external", "summary": "String to search for in a web request component, base64-encoded." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2272 }, "name": "searchStringBase64", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.ByteMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CaptchaConfigProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captchaconfig.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is available at the web ACL level and in each rule.", "stability": "external", "summary": "Specifies how AWS WAF should handle `CAPTCHA` evaluations.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst captchaConfigProperty: wafv2.CfnRuleGroup.CaptchaConfigProperty = {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CaptchaConfigProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2421 }, "name": "CaptchaConfigProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captchaconfig.html#cfn-wafv2-rulegroup-captchaconfig-immunitytimeproperty" }, "stability": "external", "summary": "Determines how long a `CAPTCHA` timestamp in the token remains valid after the client successfully solves a `CAPTCHA` puzzle." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2427 }, "name": "immunityTimeProperty", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ImmunityTimePropertyProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CaptchaConfigProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CaptchaProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captchaaction.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst captchaProperty: wafv2.CfnRuleGroup.CaptchaProperty = {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CaptchaProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2354 }, "name": "CaptchaProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captchaaction.html#cfn-wafv2-rulegroup-captchaaction-customrequesthandling" }, "stability": "external", "summary": "`CfnRuleGroup.CaptchaProperty.CustomRequestHandling`." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2360 }, "name": "customRequestHandling", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomRequestHandlingProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CaptchaProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.ChallengeConfigProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challengeconfig.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is available at the web ACL level and in each rule.", "stability": "external", "summary": "Specifies how AWS WAF should handle `Challenge` evaluations.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst challengeConfigProperty: wafv2.CfnRuleGroup.ChallengeConfigProperty = {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ChallengeConfigProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2555 }, "name": "ChallengeConfigProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challengeconfig.html#cfn-wafv2-rulegroup-challengeconfig-immunitytimeproperty" }, "stability": "external", "summary": "Determines how long a challenge timestamp in the token remains valid after the client successfully responds to a challenge." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2561 }, "name": "immunityTimeProperty", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ImmunityTimePropertyProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.ChallengeConfigProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.ChallengeProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challengeaction.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst challengeProperty: wafv2.CfnRuleGroup.ChallengeProperty = {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ChallengeProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2488 }, "name": "ChallengeProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challengeaction.html#cfn-wafv2-rulegroup-challengeaction-customrequesthandling" }, "stability": "external", "summary": "`CfnRuleGroup.ChallengeProperty.CustomRequestHandling`." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2494 }, "name": "customRequestHandling", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomRequestHandlingProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.ChallengeProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CookieMatchPatternProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookiematchpattern.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .\n\nExample JSON: `\"MatchPattern\": { \"IncludedCookies\": {\"KeyToInclude1\", \"KeyToInclude2\", \"KeyToInclude3\"} }`", "stability": "external", "summary": "The filter to use to identify the subset of cookies to inspect in a web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst cookieMatchPatternProperty: wafv2.CfnRuleGroup.CookieMatchPatternProperty = {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CookieMatchPatternProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2626 }, "name": "CookieMatchPatternProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookiematchpattern.html#cfn-wafv2-rulegroup-cookiematchpattern-all" }, "stability": "external", "summary": "Inspect all cookies." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2632 }, "name": "all", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookiematchpattern.html#cfn-wafv2-rulegroup-cookiematchpattern-excludedcookies" }, "stability": "external", "summary": "Inspect only the cookies whose keys don't match any of the strings specified here." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2638 }, "name": "excludedCookies", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookiematchpattern.html#cfn-wafv2-rulegroup-cookiematchpattern-includedcookies" }, "stability": "external", "summary": "Inspect only the cookies that have a key that matches one of the strings specified here." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2644 }, "name": "includedCookies", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CookieMatchPatternProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CookiesProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookies.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can specify the parts of the cookies to inspect and you can narrow the set of cookies to inspect by including or excluding specific keys.\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nExample JSON: `\"Cookies\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"KEY\", \"OversizeHandling\": \"MATCH\" }`", "stability": "external", "summary": "Inspect the cookies in the web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst cookiesProperty: wafv2.CfnRuleGroup.CookiesProperty = {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CookiesProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2715 }, "name": "CookiesProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookies.html#cfn-wafv2-rulegroup-cookies-matchpattern" }, "remarks": "You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .\n\nExample JSON: `\"MatchPattern\": { \"IncludedCookies\": {\"KeyToInclude1\", \"KeyToInclude2\", \"KeyToInclude3\"} }`", "stability": "external", "summary": "The filter to use to identify the subset of cookies to inspect in a web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2725 }, "name": "matchPattern", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CookieMatchPatternProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookies.html#cfn-wafv2-rulegroup-cookies-matchscope" }, "remarks": "If you specify `All` , AWS WAF inspects both keys and values.", "stability": "external", "summary": "The parts of the cookies to inspect with the rule inspection criteria." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2731 }, "name": "matchScope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookies.html#cfn-wafv2-rulegroup-cookies-oversizehandling" }, "remarks": "AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF .\n\nThe options for oversize handling are the following:\n\n- `CONTINUE` - Inspect the available cookies normally, according to the rule inspection criteria.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.", "stability": "external", "summary": "What AWS WAF should do if the cookies of the request are more numerous or larger than AWS WAF can inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2743 }, "name": "oversizeHandling", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CookiesProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CountProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-countaction.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst countProperty: wafv2.CfnRuleGroup.CountProperty = {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CountProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2813 }, "name": "CountProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-countaction.html#cfn-wafv2-rulegroup-countaction-customrequesthandling" }, "stability": "external", "summary": "`CfnRuleGroup.CountProperty.CustomRequestHandling`." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2819 }, "name": "customRequestHandling", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomRequestHandlingProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CountProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomHTTPHeaderProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customhttpheader.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used in `CustomResponse` and `CustomRequestHandling`", "stability": "external", "summary": "A custom header for custom request and response handling.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst customHTTPHeaderProperty: wafv2.CfnRuleGroup.CustomHTTPHeaderProperty = {\n name: 'name',\n value: 'value',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomHTTPHeaderProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2880 }, "name": "CustomHTTPHeaderProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customhttpheader.html#cfn-wafv2-rulegroup-customhttpheader-name" }, "remarks": "For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-` , to avoid confusion with the headers that are already in the request. For example, for the header name `sample` , AWS WAF inserts the header `x-amzn-waf-sample` .", "stability": "external", "summary": "The name of the custom header." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2888 }, "name": "name", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customhttpheader.html#cfn-wafv2-rulegroup-customhttpheader-value" }, "stability": "external", "summary": "The value of the custom header." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2894 }, "name": "value", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CustomHTTPHeaderProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomRequestHandlingProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customrequesthandling.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can add custom request handling for AWS WAF to use when the rule action doesn't block the request. For example, `CaptchaAction` for requests with valid t okens, and `AllowAction` .\n\nFor information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Custom request handling behavior that inserts custom headers into a web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst customRequestHandlingProperty: wafv2.CfnRuleGroup.CustomRequestHandlingProperty = {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomRequestHandlingProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2962 }, "name": "CustomRequestHandlingProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customrequesthandling.html#cfn-wafv2-rulegroup-customrequesthandling-insertheaders" }, "remarks": "For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "The HTTP headers to insert into the request. Duplicate header names are not allowed." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 2970 }, "name": "insertHeaders", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomHTTPHeaderProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CustomRequestHandlingProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomResponseBodyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is referenced by key from `CustomResponse` `CustomResponseBodyKey` .", "stability": "external", "summary": "The response body to use in a custom response to a web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst customResponseBodyProperty: wafv2.CfnRuleGroup.CustomResponseBodyProperty = {\n content: 'content',\n contentType: 'contentType',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomResponseBodyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3124 }, "name": "CustomResponseBodyProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.html#cfn-wafv2-rulegroup-customresponsebody-content" }, "remarks": "You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the `ContentType` setting.\n\nFor information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "The payload of the custom response." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3134 }, "name": "content", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.html#cfn-wafv2-rulegroup-customresponsebody-contenttype" }, "stability": "external", "summary": "The type of content in the payload that you are defining in the `Content` string." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3140 }, "name": "contentType", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CustomResponseBodyProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomResponseProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponse.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can define a custom response for rule actions and default web ACL actions that are set to `Block` .\n\nFor information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .", "stability": "external", "summary": "A custom response to send to the client.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst customResponseProperty: wafv2.CfnRuleGroup.CustomResponseProperty = {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomResponseProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3034 }, "name": "CustomResponseProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponse.html#cfn-wafv2-rulegroup-customresponse-responsecode" }, "remarks": "For a list of status codes that you can use in your custom responses, see [Supported status codes for custom response](https://docs.aws.amazon.com/waf/latest/developerguide/customizing-the-response-status-codes.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "The HTTP status code to return to the client." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3048 }, "name": "responseCode", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponse.html#cfn-wafv2-rulegroup-customresponse-customresponsebodykey" }, "remarks": "You can define a custom response for a rule action or a default web ACL action that is set to block. To do this, you first define the response body key and value in the `CustomResponseBodies` setting for the `WebACL` or `RuleGroup` where you want to use it. Then, in the rule action or web ACL default action `BlockAction` setting, you reference the response body using this key.", "stability": "external", "summary": "References the response body that you want AWS WAF to return to the web request client." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3040 }, "name": "customResponseBodyKey", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponse.html#cfn-wafv2-rulegroup-customresponse-responseheaders" }, "remarks": "For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "The HTTP headers to use in the response. Duplicate header names are not allowed." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3056 }, "name": "responseHeaders", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomHTTPHeaderProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.CustomResponseProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.FieldToMatchProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Include the single `FieldToMatch` type that you want to inspect, with additional specifications as needed, according to the type. You specify a single request component in `FieldToMatch` for each rule statement that requires it. To inspect more than one component of the web request, create a separate rule statement for each component.\n\nExample JSON for a `QueryString` field to match:\n\n`\"FieldToMatch\": { \"QueryString\": {} }`\n\nExample JSON for a `Method` field to match specification:\n\n`\"FieldToMatch\": { \"Method\": { \"Name\": \"DELETE\" } }`", "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst fieldToMatchProperty: wafv2.CfnRuleGroup.FieldToMatchProperty = {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.FieldToMatchProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3214 }, "name": "FieldToMatchProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-allqueryarguments" }, "stability": "external", "summary": "Inspect all query arguments." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3220 }, "name": "allQueryArguments", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-body" }, "remarks": "The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form.\n\nA limited amount of the request body is forwarded to AWS WAF for inspection by the underlying host service. For regional resources, the limit is 8 KB (8,192 kilobytes) and for CloudFront distributions, the limit is 16 KB (16,384 kilobytes). For CloudFront distributions, you can increase the limit in the web ACL's `AssociationConfig` , for additional processing fees.\n\nFor information about how to handle oversized request bodies, see the `Body` object configuration.", "stability": "external", "summary": "Inspect the request body as plain text." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3230 }, "name": "body", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.BodyProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-cookies" }, "remarks": "You must configure scope and pattern matching filters in the `Cookies` object, to define the set of cookies and the parts of the cookies that AWS WAF inspects.\n\nOnly the first 8 KB (8192 bytes) of a request's cookies and only the first 200 cookies are forwarded to AWS WAF for inspection by the underlying host service. You must configure how to handle any oversize cookie content in the `Cookies` object. AWS WAF applies the pattern matching filters to the cookies that it receives from the underlying host service.", "stability": "external", "summary": "Inspect the request cookies." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3238 }, "name": "cookies", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CookiesProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-headers" }, "remarks": "You must configure scope and pattern matching filters in the `Headers` object, to define the set of headers to and the parts of the headers that AWS WAF inspects.\n\nOnly the first 8 KB (8192 bytes) of a request's headers and only the first 200 headers are forwarded to AWS WAF for inspection by the underlying host service. You must configure how to handle any oversize header content in the `Headers` object. AWS WAF applies the pattern matching filters to the headers that it receives from the underlying host service.", "stability": "external", "summary": "Inspect the request headers." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3246 }, "name": "headers", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.HeadersProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-jsonbody" }, "remarks": "The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form.\n\nA limited amount of the request body is forwarded to AWS WAF for inspection by the underlying host service. For regional resources, the limit is 8 KB (8,192 kilobytes) and for CloudFront distributions, the limit is 16 KB (16,384 kilobytes). For CloudFront distributions, you can increase the limit in the web ACL's `AssociationConfig` , for additional processing fees.\n\nFor information about how to handle oversized request bodies, see the `JsonBody` object configuration.", "stability": "external", "summary": "Inspect the request body as JSON." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3256 }, "name": "jsonBody", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.JsonBodyProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-method" }, "remarks": "The method indicates the type of operation that the request is asking the origin to perform.", "stability": "external", "summary": "Inspect the HTTP method." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3262 }, "name": "method", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-querystring" }, "remarks": "This is the part of a URL that appears after a `?` character, if any.", "stability": "external", "summary": "Inspect the query string." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3268 }, "name": "queryString", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-singleheader" }, "remarks": "Provide the name of the header to inspect, for example, `User-Agent` or `Referer` . This setting isn't case sensitive.\n\nExample JSON: `\"SingleHeader\": { \"Name\": \"haystack\" }`\n\nAlternately, you can filter and inspect all headers with the `Headers` `FieldToMatch` setting.", "stability": "external", "summary": "Inspect a single header." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3278 }, "name": "singleHeader", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-singlequeryargument" }, "remarks": "Provide the name of the query argument to inspect, such as *UserName* or *SalesRegion* . The name can be up to 30 characters long and isn't case sensitive.\n\nExample JSON: `\"SingleQueryArgument\": { \"Name\": \"myArgument\" }`", "stability": "external", "summary": "Inspect a single query argument." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3286 }, "name": "singleQueryArgument", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-uripath" }, "remarks": "This is the part of the web request that identifies a resource, for example, `/images/daily-ad.jpg` .", "stability": "external", "summary": "Inspect the request URI path." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3292 }, "name": "uriPath", "optional": true, "type": { "primitive": "any" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.FieldToMatchProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.ForwardedIPConfigurationProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-forwardedipconfiguration.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nThis configuration is used for `GeoMatchStatement` and `RateBasedStatement` . For `IPSetReferenceStatement` , use `IPSetForwardedIPConfig` instead.\n\nAWS WAF only evaluates the first IP address found in the specified HTTP header.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst forwardedIPConfigurationProperty: wafv2.CfnRuleGroup.ForwardedIPConfigurationProperty = {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ForwardedIPConfigurationProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3386 }, "name": "ForwardedIPConfigurationProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-forwardedipconfiguration.html#cfn-wafv2-rulegroup-forwardedipconfiguration-fallbackbehavior" }, "remarks": "> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nYou can specify the following fallback behaviors:\n\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.", "stability": "external", "summary": "The match status to assign to the web request if the request doesn't have a valid IP address in the specified position." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3399 }, "name": "fallbackBehavior", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-forwardedipconfiguration.html#cfn-wafv2-rulegroup-forwardedipconfiguration-headername" }, "remarks": "For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.", "stability": "external", "summary": "The name of the HTTP header to use for the IP address." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3407 }, "name": "headerName", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.ForwardedIPConfigurationProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.GeoMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "A geo match rule labels every request that it inspects regardless of whether it finds a match.\n\n- To manage requests only by country, you can use this statement by itself and specify the countries that you want to match against in the `CountryCodes` array.\n- Otherwise, configure your geo match rule with Count action so that it only labels requests. Then, add one or more label match rules to run after the geo match rule and configure them to match against the geographic labels and handle the requests as needed.\n\nAWS WAF labels requests using the alpha-2 country and region codes from the International Organization for Standardization (ISO) 3166 standard. AWS WAF determines the codes using either the IP address in the web request origin or, if you specify it, the address in the geo match `ForwardedIPConfig` .\n\nIf you use the web request origin, the label formats are `awswaf:clientip:geo:region:-` and `awswaf:clientip:geo:country:` .\n\nIf you use a forwarded IP address, the label formats are `awswaf:forwardedip:geo:region:-` and `awswaf:forwardedip:geo:country:` .\n\nFor additional details, see [Geographic match rule statement](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-geo-match.html) in the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .", "stability": "external", "summary": "A rule statement that labels web requests by country and region and that matches against web requests based on country code.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst geoMatchStatementProperty: wafv2.CfnRuleGroup.GeoMatchStatementProperty = {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.GeoMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3484 }, "name": "GeoMatchStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html#cfn-wafv2-rulegroup-geomatchstatement-countrycodes" }, "remarks": "When you use a geo match statement just for the region and country labels that it adds to requests, you still have to supply a country code for the rule to evaluate. In this case, you configure the rule to only count matching requests, but it will still generate logging and count metrics for any matches. You can reduce the logging and metrics that the rule produces by specifying a country that's unlikely to be a source of traffic to your site.", "stability": "external", "summary": "An array of two-character country codes that you want to match against, for example, `[ \"US\", \"CN\" ]` , from the alpha-2 country ISO codes of the ISO 3166 international standard." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3492 }, "name": "countryCodes", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html#cfn-wafv2-rulegroup-geomatchstatement-forwardedipconfig" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3500 }, "name": "forwardedIpConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ForwardedIPConfigurationProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.GeoMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.HeaderMatchPatternProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headermatchpattern.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You must specify exactly one setting: either `All` , `IncludedHeaders` , or `ExcludedHeaders` .\n\nExample JSON: `\"MatchPattern\": { \"ExcludedHeaders\": {\"KeyToExclude1\", \"KeyToExclude2\"} }`", "stability": "external", "summary": "The filter to use to identify the subset of headers to inspect in a web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst headerMatchPatternProperty: wafv2.CfnRuleGroup.HeaderMatchPatternProperty = {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.HeaderMatchPatternProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3568 }, "name": "HeaderMatchPatternProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headermatchpattern.html#cfn-wafv2-rulegroup-headermatchpattern-all" }, "stability": "external", "summary": "Inspect all headers." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3574 }, "name": "all", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headermatchpattern.html#cfn-wafv2-rulegroup-headermatchpattern-excludedheaders" }, "stability": "external", "summary": "Inspect only the headers whose keys don't match any of the strings specified here." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3580 }, "name": "excludedHeaders", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headermatchpattern.html#cfn-wafv2-rulegroup-headermatchpattern-includedheaders" }, "stability": "external", "summary": "Inspect only the headers that have a key that matches one of the strings specified here." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3586 }, "name": "includedHeaders", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.HeaderMatchPatternProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.HeadersProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headers.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can specify the parts of the headers to inspect and you can narrow the set of headers to inspect by including or excluding specific keys.\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nIf you want to inspect just the value of a single header, use the `SingleHeader` `FieldToMatch` setting instead.\n\nExample JSON: `\"Headers\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"KEY\", \"OversizeHandling\": \"MATCH\" }`", "stability": "external", "summary": "Inspect all headers in the web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst headersProperty: wafv2.CfnRuleGroup.HeadersProperty = {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.HeadersProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3659 }, "name": "HeadersProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headers.html#cfn-wafv2-rulegroup-headers-matchpattern" }, "remarks": "You must specify exactly one setting: either `All` , `IncludedHeaders` , or `ExcludedHeaders` .\n\nExample JSON: `\"MatchPattern\": { \"ExcludedHeaders\": {\"KeyToExclude1\", \"KeyToExclude2\"} }`", "stability": "external", "summary": "The filter to use to identify the subset of headers to inspect in a web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3669 }, "name": "matchPattern", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.HeaderMatchPatternProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headers.html#cfn-wafv2-rulegroup-headers-matchscope" }, "remarks": "If you specify `All` , AWS WAF inspects both keys and values.", "stability": "external", "summary": "The parts of the headers to match with the rule inspection criteria." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3675 }, "name": "matchScope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headers.html#cfn-wafv2-rulegroup-headers-oversizehandling" }, "remarks": "AWS WAF does not support inspecting the entire contents of request headers when they exceed 8 KB (8192 bytes) or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB of header contents to AWS WAF .\n\nThe options for oversize handling are the following:\n\n- `CONTINUE` - Inspect the available headers normally, according to the rule inspection criteria.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.", "stability": "external", "summary": "What AWS WAF should do if the headers of the request are more numerous or larger than AWS WAF can inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3687 }, "name": "oversizeHandling", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.HeadersProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.IPSetForwardedIPConfigurationProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nThis configuration is used only for `IPSetReferenceStatement` . For `GeoMatchStatement` and `RateBasedStatement` , use `ForwardedIPConfig` instead.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst iPSetForwardedIPConfigurationProperty: wafv2.CfnRuleGroup.IPSetForwardedIPConfigurationProperty = {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.IPSetForwardedIPConfigurationProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3761 }, "name": "IPSetForwardedIPConfigurationProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-fallbackbehavior" }, "remarks": "> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nYou can specify the following fallback behaviors:\n\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.", "stability": "external", "summary": "The match status to assign to the web request if the request doesn't have a valid IP address in the specified position." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3774 }, "name": "fallbackBehavior", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-headername" }, "remarks": "For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.", "stability": "external", "summary": "The name of the HTTP header to use for the IP address." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3782 }, "name": "headerName", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-position" }, "remarks": "The header can contain IP addresses of the original client and also of proxies. For example, the header value could be `10.1.1.1, 127.0.0.0, 10.10.10.10` where the first IP address identifies the original client and the rest identify proxies that the request went through.\n\nThe options for this setting are the following:\n\n- FIRST - Inspect the first IP address in the list of IP addresses in the header. This is usually the client's original IP.\n- LAST - Inspect the last IP address in the list of IP addresses in the header.\n- ANY - Inspect all IP addresses in the header for a match. If the header contains more than 10 IP addresses, AWS WAF inspects the last 10.", "stability": "external", "summary": "The position in the header to search for the IP address." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3794 }, "name": "position", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.IPSetForwardedIPConfigurationProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.IPSetReferenceStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "To use this, create an `IPSet` that specifies the addresses you want to detect, then use the ARN of that set in this statement.\n\nEach IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.", "stability": "external", "summary": "A rule statement used to detect web requests coming from particular IP addresses or address ranges.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst iPSetReferenceStatementProperty: wafv2.CfnRuleGroup.IPSetReferenceStatementProperty = {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.IPSetReferenceStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3866 }, "name": "IPSetReferenceStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html#cfn-wafv2-rulegroup-ipsetreferencestatement-arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the `IPSet` that this statement references." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3872 }, "name": "arn", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html#cfn-wafv2-rulegroup-ipsetreferencestatement-ipsetforwardedipconfig" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3880 }, "name": "ipSetForwardedIpConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.IPSetForwardedIPConfigurationProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.IPSetReferenceStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.ImmunityTimePropertyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-immunitytimeproperty.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Determines how long a `CAPTCHA` or challenge timestamp remains valid after AWS WAF updates it for a successful `CAPTCHA` or challenge response.", "stability": "external", "summary": "Used for CAPTCHA and challenge token settings.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst immunityTimePropertyProperty: wafv2.CfnRuleGroup.ImmunityTimePropertyProperty = {\n immunityTime: 123,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ImmunityTimePropertyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3945 }, "name": "ImmunityTimePropertyProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-immunitytimeproperty.html#cfn-wafv2-rulegroup-immunitytimeproperty-immunitytime" }, "remarks": "The default setting is 300.\n\nFor the Challenge action, the minimum setting is 300.", "stability": "external", "summary": "The amount of time, in seconds, that a `CAPTCHA` or challenge timestamp is considered valid by AWS WAF ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 3953 }, "name": "immunityTime", "type": { "primitive": "number" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.ImmunityTimePropertyProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.JsonBodyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nUse the specifications in this object to indicate which parts of the JSON body to inspect using the rule's inspection criteria. AWS WAF inspects only the parts of the JSON that result from the matches that you indicate.\n\nExample JSON: `\"JsonBody\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"ALL\" }`", "stability": "external", "summary": "Inspect the body of the web request as JSON. The body immediately follows the request headers.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst jsonBodyProperty: wafv2.CfnRuleGroup.JsonBodyProperty = {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.JsonBodyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4021 }, "name": "JsonBodyProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-matchpattern" }, "remarks": "AWS WAF inspects the results of these pattern matches against the rule inspection criteria.", "stability": "external", "summary": "The patterns to look for in the JSON body." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4047 }, "name": "matchPattern", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.JsonMatchPatternProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-matchscope" }, "remarks": "If you specify `All` , AWS WAF matches against keys and values.", "stability": "external", "summary": "The parts of the JSON to match against using the `MatchPattern` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4053 }, "name": "matchScope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-invalidfallbackbehavior" }, "remarks": "- `EVALUATE_AS_STRING` - Inspect the body as plain text. AWS WAF applies the text transformations and inspection criteria that you defined for the JSON inspection to the body text string.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.\n\nIf you don't provide this setting, AWS WAF parses and evaluates the content only up to the first parsing failure that it encounters.\n\nAWS WAF does its best to parse the entire JSON body, but might be forced to stop for reasons such as invalid characters, duplicate keys, truncation, and any content whose root node isn't an object or an array.\n\nAWS WAF parses the JSON in the following examples as two valid key, value pairs:\n\n- Missing comma: `{\"key1\":\"value1\"\"key2\":\"value2\"}`\n- Missing colon: `{\"key1\":\"value1\",\"key2\"\"value2\"}`\n- Extra colons: `{\"key1\"::\"value1\",\"key2\"\"value2\"}`", "stability": "external", "summary": "What AWS WAF should do if it fails to completely parse the JSON body. The options are the following:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4041 }, "name": "invalidFallbackBehavior", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-oversizehandling" }, "remarks": "AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. If the body is larger than the limit, the underlying host service only forwards the contents that are below the limit to AWS WAF for inspection.\n\nThe default limit is 8 KB (8,192 kilobytes) for regional resources and 16 KB (16,384 kilobytes) for CloudFront distributions. For CloudFront distributions, you can increase the limit in the web ACL `AssociationConfig` , for additional processing fees.\n\nThe options for oversize handling are the following:\n\n- `CONTINUE` - Inspect the available body contents normally, according to the rule inspection criteria.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.\n\nYou can combine the `MATCH` or `NO_MATCH` settings for oversize handling with your rule and web ACL action settings, so that you block any request whose body is over the limit.\n\nDefault: `CONTINUE`", "stability": "external", "summary": "What AWS WAF should do if the body is larger than AWS WAF can inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4071 }, "name": "oversizeHandling", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.JsonBodyProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.JsonMatchPatternProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonmatchpattern.html", "exampleMetadata": "fixture=_generated" }, "remarks": "AWS WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the `FieldToMatch` option `JsonBody` .", "stability": "external", "summary": "The patterns to look for in the JSON body.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst jsonMatchPatternProperty: wafv2.CfnRuleGroup.JsonMatchPatternProperty = {\n all: all,\n includedPaths: ['includedPaths'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.JsonMatchPatternProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4143 }, "name": "JsonMatchPatternProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonmatchpattern.html#cfn-wafv2-rulegroup-jsonmatchpattern-all" }, "remarks": "You must specify either this setting or the `IncludedPaths` setting, but not both.", "stability": "external", "summary": "Match all of the elements. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4151 }, "name": "all", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonmatchpattern.html#cfn-wafv2-rulegroup-jsonmatchpattern-includedpaths" }, "remarks": "Provide the include paths using JSON Pointer syntax. For example, `\"IncludedPaths\": [\"/dogs/0/name\", \"/dogs/1/name\"]` . For information about this syntax, see the Internet Engineering Task Force (IETF) documentation [JavaScript Object Notation (JSON) Pointer](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6901) .\n\nYou must specify either this setting or the `All` setting, but not both.\n\n> Don't use this option to include all paths. Instead, use the `All` setting.", "stability": "external", "summary": "Match only the specified include paths. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4163 }, "name": "includedPaths", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.JsonMatchPatternProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelmatchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. If you do not provide the fully qualified name in your label match string, AWS WAF performs the search for labels that were added in the same context as the label match statement.", "stability": "external", "summary": "A rule statement to match against labels that have been added to the web request by rules that have already run in the web ACL.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst labelMatchStatementProperty: wafv2.CfnRuleGroup.LabelMatchStatementProperty = {\n key: 'key',\n scope: 'scope',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4297 }, "name": "LabelMatchStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelmatchstatement.html#cfn-wafv2-rulegroup-labelmatchstatement-key" }, "remarks": "- If the `Scope` indicates `LABEL` , then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name.\n- If the `Scope` indicates `NAMESPACE` , then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.\n\nLabels are case sensitive and components of a label must be separated by colon, for example `NS1:NS2:name` .", "stability": "external", "summary": "The string to match against. The setting you provide for this depends on the match statement's `Scope` setting:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4308 }, "name": "key", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelmatchstatement.html#cfn-wafv2-rulegroup-labelmatchstatement-scope" }, "stability": "external", "summary": "Specify whether you want to match using the label name or just the namespace." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4314 }, "name": "scope", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.LabelMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-label.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used as an element of a label array in `RuleLabels` inside a rule.", "stability": "external", "summary": "A single label container.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst labelProperty: wafv2.CfnRuleGroup.LabelProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4227 }, "name": "LabelProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-label.html#cfn-wafv2-rulegroup-label-name" }, "stability": "external", "summary": "The label string." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4233 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.LabelProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelSummaryProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelsummary.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This summary object is used for the following rule group lists:\n\n- `AvailableLabels` - Labels that rules add to matching requests. These labels are defined in the `RuleLabels` for a rule.\n- `ConsumedLabels` - Labels that rules match against. These labels are defined in a `LabelMatchStatement` specification, in the `Statement` definition of a rule.", "stability": "external", "summary": "List of labels used by one or more of the rules of a `RuleGroup` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst labelSummaryProperty: wafv2.CfnRuleGroup.LabelSummaryProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelSummaryProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4383 }, "name": "LabelSummaryProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelsummary.html#cfn-wafv2-rulegroup-labelsummary-name" }, "stability": "external", "summary": "An individual label specification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4389 }, "name": "name", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.LabelSummaryProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.NotStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-notstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You provide one `Statement` within the `NotStatement` .", "stability": "external", "summary": "A logical rule statement used to negate the results of another rule statement.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;\ndeclare const uriPath: any;\nconst notStatementProperty: wafv2.CfnRuleGroup.NotStatementProperty = {\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.NotStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4450 }, "name": "NotStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-notstatement.html#cfn-wafv2-rulegroup-notstatement-statement" }, "remarks": "You can use any statement that can be nested.", "stability": "external", "summary": "The statement to negate." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4456 }, "name": "statement", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.StatementProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.NotStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.OrStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-orstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You provide more than one `Statement` within the `OrStatement` .", "stability": "external", "summary": "A logical rule statement used to combine other rule statements with OR logic.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;\ndeclare const uriPath: any;\nconst orStatementProperty: wafv2.CfnRuleGroup.OrStatementProperty = {\n statements: [{\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.OrStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4518 }, "name": "OrStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-orstatement.html#cfn-wafv2-rulegroup-orstatement-statements" }, "remarks": "You can use any statements that can be nested.", "stability": "external", "summary": "The statements to combine with OR logic." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4524 }, "name": "statements", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.StatementProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.OrStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.RateBasedStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can use this to put a temporary block on requests from an IP address that is sending excessive requests.\n\nAWS WAF tracks and manages web requests separately for each instance of a rate-based rule that you use. For example, if you provide the same rate-based rule settings in two web ACLs, each of the two rule statements represents a separate instance of the rate-based rule and gets its own tracking and management by AWS WAF . If you define a rate-based rule inside a rule group, and then use that rule group in multiple places, each use creates a separate instance of the rate-based rule that gets its own tracking and management by AWS WAF .\n\nWhen the rule action triggers, AWS WAF blocks additional requests from the IP address until the request rate falls below the limit.\n\nYou can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts requests that match the nested statement. For example, based on recent requests that you have seen from an attacker, you might create a rate-based rule with a nested AND rule statement that contains the following nested statements:\n\n- An IP match statement with an IP set that specifies the address 192.0.2.44.\n- A string match statement that searches in the User-Agent header for the string BadBot.\n\nIn this rate-based rule, you also define a rate limit. For this example, the rate limit is 1,000. Requests that meet the criteria of both of the nested statements are counted. If the count exceeds 1,000 requests per five minutes, the rule action triggers. Requests that do not meet the criteria of both of the nested statements are not counted towards the rate limit and are not affected by this rule.\n\nYou cannot nest a `RateBasedStatement` inside another statement, for example inside a `NotStatement` or `OrStatement` . You can define a `RateBasedStatement` inside a web ACL and inside a rule group.", "stability": "external", "summary": "A rate-based rule tracks the rate of requests for each originating IP address, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any 5-minute time span.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;\ndeclare const uriPath: any;\nconst rateBasedStatementProperty: wafv2.CfnRuleGroup.RateBasedStatementProperty = {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RateBasedStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4599 }, "name": "RateBasedStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-aggregatekeytype" }, "remarks": "- `IP` - Aggregate the request counts on the IP address from the web request origin.\n- `FORWARDED_IP` - Aggregate the request counts on the first IP address in an HTTP header. If you use this, configure the `ForwardedIPConfig` , to specify the header to use.\n\n> You can only use the `IP` and `FORWARDED_IP` key types.", "stability": "external", "summary": "Setting that indicates how to aggregate the request counts. The options are the following:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4610 }, "name": "aggregateKeyType", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-limit" }, "remarks": "If the statement includes a `ScopeDownStatement` , this limit is applied only to the requests that match the statement.", "stability": "external", "summary": "The limit on requests per 5-minute period for a single originating IP address." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4626 }, "name": "limit", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-forwardedipconfig" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nThis is required if you specify a forwarded IP in the rule's aggregate key settings.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4620 }, "name": "forwardedIpConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ForwardedIPConfigurationProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-scopedownstatement" }, "remarks": "Requests are only tracked by the rate-based statement if they match the scope-down statement. You can use any nestable statement in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.", "stability": "external", "summary": "An optional nested statement that narrows the scope of the web requests that are evaluated by the rate-based statement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4632 }, "name": "scopeDownStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.StatementProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.RateBasedStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.RegexMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexmatchstatement.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "A rule statement used to search web request components for a match against a single regular expression.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst regexMatchStatementProperty: wafv2.CfnRuleGroup.RegexMatchStatementProperty = {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RegexMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4704 }, "name": "RegexMatchStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexmatchstatement.html#cfn-wafv2-rulegroup-regexmatchstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4710 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexmatchstatement.html#cfn-wafv2-rulegroup-regexmatchstatement-regexstring" }, "stability": "external", "summary": "The string representing the regular expression." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4716 }, "name": "regexString", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexmatchstatement.html#cfn-wafv2-rulegroup-regexmatchstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4722 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.RegexMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.RegexPatternSetReferenceStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "To use this, create a `RegexPatternSet` that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set.\n\nEach regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.", "stability": "external", "summary": "A rule statement used to search web request components for matches with regular expressions.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst regexPatternSetReferenceStatementProperty: wafv2.CfnRuleGroup.RegexPatternSetReferenceStatementProperty = {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RegexPatternSetReferenceStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4794 }, "name": "RegexPatternSetReferenceStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the `RegexPatternSet` that this statement references." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4800 }, "name": "arn", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4806 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4812 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.RegexPatternSetReferenceStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.RuleActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Settings at the web ACL level can override the rule action setting.", "stability": "external", "summary": "The action that AWS WAF should take on a web request when it matches a rule's statement.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const allow: any;\ndeclare const block: any;\ndeclare const captcha: any;\ndeclare const challenge: any;\ndeclare const count: any;\nconst ruleActionProperty: wafv2.CfnRuleGroup.RuleActionProperty = {\n allow: allow,\n block: block,\n captcha: captcha,\n challenge: challenge,\n count: count,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RuleActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5027 }, "name": "RuleActionProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-allow" }, "stability": "external", "summary": "Instructs AWS WAF to allow the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5033 }, "name": "allow", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-block" }, "stability": "external", "summary": "Instructs AWS WAF to block the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5039 }, "name": "block", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-captcha" }, "remarks": "- If the request includes a valid, unexpired `CAPTCHA` token, AWS WAF allows the web request inspection to proceed to the next rule, similar to a `CountAction` .\n- If the request doesn't include a valid, unexpired `CAPTCHA` token, AWS WAF discontinues the web ACL evaluation of the request and blocks it from going to its intended destination.\n\nAWS WAF generates a response that it sends back to the client, which includes the following:\n\n- The header `x-amzn-waf-action` with a value of `captcha` .\n- The HTTP status code `405 Method Not Allowed` .\n- If the request contains an `Accept` header with a value of `text/html` , the response includes a `CAPTCHA` challenge.\n\nYou can configure the expiration time in the `CaptchaConfig` `ImmunityTimeProperty` setting at the rule and web ACL level. The rule setting overrides the web ACL setting.\n\nThis action option is available for rules. It isn't available for web ACL default actions.", "stability": "external", "summary": "Specifies that AWS WAF should run a `CAPTCHA` check against the request:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5058 }, "name": "captcha", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-challenge" }, "stability": "external", "summary": "Instructs AWS WAF to run a `Challenge` check against the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5064 }, "name": "challenge", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-count" }, "stability": "external", "summary": "Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5070 }, "name": "count", "optional": true, "type": { "primitive": "any" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.RuleActionProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.RuleProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html", "exampleMetadata": "fixture=_generated" }, "remarks": "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.", "stability": "external", "summary": "A single rule, which you can use in a `WebACL` or `RuleGroup` to identify web requests that you want to allow, block, or count.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allow: any;\ndeclare const allQueryArguments: any;\ndeclare const block: any;\ndeclare const captcha: any;\ndeclare const challenge: any;\ndeclare const count: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;\ndeclare const uriPath: any;\nconst ruleProperty: wafv2.CfnRuleGroup.RuleProperty = {\n name: 'name',\n priority: 123,\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n action: {\n allow: allow,\n block: block,\n captcha: captcha,\n challenge: challenge,\n count: count,\n },\n captchaConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n challengeConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n ruleLabels: [{\n name: 'name',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RuleProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4882 }, "name": "RuleProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-name" }, "remarks": "You can't change the name of a `Rule` after you create it.", "stability": "external", "summary": "The name of the rule." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4906 }, "name": "name", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-priority" }, "remarks": "AWS WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.", "stability": "external", "summary": "If you define more than one `Rule` in a `WebACL` , AWS WAF evaluates each request against the `Rules` in order based on the value of `Priority` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4912 }, "name": "priority", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-statement" }, "stability": "external", "summary": "The AWS WAF processing statement for the rule, for example `ByteMatchStatement` or `SizeConstraintStatement` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4935 }, "name": "statement", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.StatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-visibilityconfig" }, "stability": "external", "summary": "Defines and enables Amazon CloudWatch metrics and web request sample collection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4941 }, "name": "visibilityConfig", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.VisibilityConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-action" }, "remarks": "Settings at the web ACL level can override the rule action setting.", "stability": "external", "summary": "The action that AWS WAF should take on a web request when it matches the rule statement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4888 }, "name": "action", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RuleActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-captchaconfig" }, "remarks": "If you don't specify this, AWS WAF uses the `CAPTCHA` configuration that's defined for the web ACL.", "stability": "external", "summary": "Specifies how AWS WAF should handle `CAPTCHA` evaluations." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4894 }, "name": "captchaConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CaptchaConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-challengeconfig" }, "remarks": "If you don't specify this, AWS WAF uses the challenge configuration that's defined for the web ACL.", "stability": "external", "summary": "Specifies how AWS WAF should handle `Challenge` evaluations." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4900 }, "name": "challengeConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ChallengeConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-rulelabels" }, "remarks": "AWS WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.\n\nRules that run after this rule in the web ACL can match against these labels using a `LabelMatchStatement` .\n\nFor each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:\n\n- Separate each component of the label with a colon.\n- Each namespace or name can have up to 128 characters.\n- You can specify up to 5 namespaces in a label.\n- Don't use the following reserved words in your label specification: `aws` , `waf` , `managed` , `rulegroup` , `webacl` , `regexpatternset` , or `ipset` .\n\nFor example, `myLabelName` or `nameSpace1:nameSpace2:myLabelName` .", "stability": "external", "summary": "Labels to apply to web requests that match the rule match statement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 4929 }, "name": "ruleLabels", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.RuleProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.SingleHeaderProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singleheader.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The name isn't case sensitive.\n\nYou can filter and inspect all headers with the `FieldToMatch` setting `Headers` .\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nExample JSON: `\"SingleHeader\": { \"Name\": \"haystack\" }`", "stability": "external", "summary": "Inspect one of the headers in the web request, identified by name, for example, `User-Agent` or `Referer` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst singleHeaderProperty: wafv2.CfnRuleGroup.SingleHeaderProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.SingleHeaderProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5149 }, "name": "SingleHeaderProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singleheader.html#cfn-wafv2-rulegroup-singleheader-name" }, "stability": "external", "summary": "The name of the query header to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5155 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.SingleHeaderProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.SingleQueryArgumentProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singlequeryargument.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The name isn't case sensitive.\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nExample JSON: `\"SingleQueryArgument\": { \"Name\": \"myArgument\" }`", "stability": "external", "summary": "Inspect one query argument in the web request, identified by name, for example *UserName* or *SalesRegion* .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst singleQueryArgumentProperty: wafv2.CfnRuleGroup.SingleQueryArgumentProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.SingleQueryArgumentProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5221 }, "name": "SingleQueryArgumentProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singlequeryargument.html#cfn-wafv2-rulegroup-singlequeryargument-name" }, "stability": "external", "summary": "The name of the query argument to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5227 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.SingleQueryArgumentProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.SizeConstraintStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.\n\nIf you configure AWS WAF to inspect the request body, AWS WAF inspects only the number of bytes of the body up to the limit for the web ACL. By default, for regional web ACLs, this limit is 8 KB (8,192 kilobytes) and for CloudFront web ACLs, this limit is 16 KB (16,384 kilobytes). For CloudFront web ACLs, you can increase the limit in the web ACL `AssociationConfig` , for additional fees. If you know that the request body for your web requests should never exceed the inspection limit, you could use a size constraint statement to block requests that have a larger request body size.\n\nIf you choose URI for the value of Part of the request to filter on, the slash (/) in the URI counts as one character. For example, the URI `/logo.jpg` is nine characters long.", "stability": "external", "summary": "A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<).", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst sizeConstraintStatementProperty: wafv2.CfnRuleGroup.SizeConstraintStatementProperty = {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.SizeConstraintStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5293 }, "name": "SizeConstraintStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-comparisonoperator" }, "stability": "external", "summary": "The operator to use to compare the request part to the size setting." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5299 }, "name": "comparisonOperator", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5305 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-size" }, "stability": "external", "summary": "The size, in byte, to compare to the request part, after any transformations." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5311 }, "name": "size", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5317 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.SizeConstraintStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.SqliMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.", "stability": "external", "summary": "A rule statement that inspects for malicious SQL code.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst sqliMatchStatementProperty: wafv2.CfnRuleGroup.SqliMatchStatementProperty = {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.SqliMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5391 }, "name": "SqliMatchStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html#cfn-wafv2-rulegroup-sqlimatchstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5397 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html#cfn-wafv2-rulegroup-sqlimatchstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5415 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html#cfn-wafv2-rulegroup-sqlimatchstatement-sensitivitylevel" }, "remarks": "`HIGH` detects more attacks, but might generate more false positives, especially if your web requests frequently contain unusual strings. For information about identifying and mitigating false positives, see [Testing and tuning](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-testing.html) in the *AWS WAF Developer Guide* .\n\n`LOW` is generally a better choice for resources that already have other protections against SQL injection attacks or that have a low tolerance for false positives.\n\nDefault: `LOW`", "stability": "external", "summary": "The sensitivity that you want AWS WAF to use to inspect for SQL injection attacks." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5409 }, "name": "sensitivityLevel", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.SqliMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.StatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "The processing guidance for a rule, used by AWS WAF to determine whether a web request matches the rule.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const andStatementProperty_: wafv2.CfnRuleGroup.AndStatementProperty;\ndeclare const method: any;\ndeclare const notStatementProperty_: wafv2.CfnRuleGroup.NotStatementProperty;\ndeclare const orStatementProperty_: wafv2.CfnRuleGroup.OrStatementProperty;\ndeclare const queryString: any;\ndeclare const rateBasedStatementProperty_: wafv2.CfnRuleGroup.RateBasedStatementProperty;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;\ndeclare const uriPath: any;\nconst statementProperty: wafv2.CfnRuleGroup.StatementProperty = {\n andStatement: {\n statements: [{\n andStatement: andStatementProperty_,\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n }],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: notStatementProperty_,\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n },\n orStatement: {\n statements: [{\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: orStatementProperty_,\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n }],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: rateBasedStatementProperty_,\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.StatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5484 }, "name": "StatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-andstatement" }, "remarks": "You provide more than one `Statement` within the `AndStatement` .", "stability": "external", "summary": "A logical rule statement used to combine other rule statements with AND logic." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5490 }, "name": "andStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.AndStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-bytematchstatement" }, "remarks": "The byte match statement provides the bytes to search for, the location in requests that you want AWS WAF to search, and other settings. The bytes to search for are typically a string that corresponds with ASCII characters. In the AWS WAF console and the developer guide, this is called a string match statement.", "stability": "external", "summary": "A rule statement that defines a string match search for AWS WAF to apply to web requests." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5496 }, "name": "byteMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.ByteMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-geomatchstatement" }, "remarks": "A geo match rule labels every request that it inspects regardless of whether it finds a match.\n\n- To manage requests only by country, you can use this statement by itself and specify the countries that you want to match against in the `CountryCodes` array.\n- Otherwise, configure your geo match rule with Count action so that it only labels requests. Then, add one or more label match rules to run after the geo match rule and configure them to match against the geographic labels and handle the requests as needed.\n\nAWS WAF labels requests using the alpha-2 country and region codes from the International Organization for Standardization (ISO) 3166 standard. AWS WAF determines the codes using either the IP address in the web request origin or, if you specify it, the address in the geo match `ForwardedIPConfig` .\n\nIf you use the web request origin, the label formats are `awswaf:clientip:geo:region:-` and `awswaf:clientip:geo:country:` .\n\nIf you use a forwarded IP address, the label formats are `awswaf:forwardedip:geo:region:-` and `awswaf:forwardedip:geo:country:` .\n\nFor additional details, see [Geographic match rule statement](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-geo-match.html) in the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .", "stability": "external", "summary": "A rule statement that labels web requests by country and region and that matches against web requests based on country code." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5513 }, "name": "geoMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.GeoMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-ipsetreferencestatement" }, "remarks": "To use this, create an `IPSet` that specifies the addresses you want to detect, then use the ARN of that set in this statement.\n\nEach IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.", "stability": "external", "summary": "A rule statement used to detect web requests coming from particular IP addresses or address ranges." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5521 }, "name": "ipSetReferenceStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.IPSetReferenceStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-labelmatchstatement" }, "remarks": "The label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. If you do not provide the fully qualified name in your label match string, AWS WAF performs the search for labels that were added in the same context as the label match statement.", "stability": "external", "summary": "A rule statement to match against labels that have been added to the web request by rules that have already run in the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5529 }, "name": "labelMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-notstatement" }, "remarks": "You provide one `Statement` within the `NotStatement` .", "stability": "external", "summary": "A logical rule statement used to negate the results of another rule statement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5535 }, "name": "notStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.NotStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-orstatement" }, "remarks": "You provide more than one `Statement` within the `OrStatement` .", "stability": "external", "summary": "A logical rule statement used to combine other rule statements with OR logic." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5541 }, "name": "orStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.OrStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-ratebasedstatement" }, "remarks": "You can use this to put a temporary block on requests from an IP address that is sending excessive requests.\n\nAWS WAF tracks and manages web requests separately for each instance of a rate-based rule that you use. For example, if you provide the same rate-based rule settings in two web ACLs, each of the two rule statements represents a separate instance of the rate-based rule and gets its own tracking and management by AWS WAF . If you define a rate-based rule inside a rule group, and then use that rule group in multiple places, each use creates a separate instance of the rate-based rule that gets its own tracking and management by AWS WAF .\n\nWhen the rule action triggers, AWS WAF blocks additional requests from the IP address until the request rate falls below the limit.\n\nYou can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts requests that match the nested statement. For example, based on recent requests that you have seen from an attacker, you might create a rate-based rule with a nested AND rule statement that contains the following nested statements:\n\n- An IP match statement with an IP set that specifies the address 192.0.2.44.\n- A string match statement that searches in the User-Agent header for the string BadBot.\n\nIn this rate-based rule, you also define a rate limit. For this example, the rate limit is 1,000. Requests that meet the criteria of both of the nested statements are counted. If the count exceeds 1,000 requests per five minutes, the rule action triggers. Requests that do not meet the criteria of both of the nested statements are not counted towards the rate limit and are not affected by this rule.\n\nYou cannot nest a `RateBasedStatement` inside another statement, for example inside a `NotStatement` or `OrStatement` . You can define a `RateBasedStatement` inside a web ACL and inside a rule group.", "stability": "external", "summary": "A rate-based rule tracks the rate of requests for each originating IP address, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any 5-minute time span." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5560 }, "name": "rateBasedStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RateBasedStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-regexmatchstatement" }, "stability": "external", "summary": "A rule statement used to search web request components for a match against a single regular expression." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5566 }, "name": "regexMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RegexMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-regexpatternsetreferencestatement" }, "remarks": "To use this, create a `RegexPatternSet` that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set.\n\nEach regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.", "stability": "external", "summary": "A rule statement used to search web request components for matches with regular expressions." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5574 }, "name": "regexPatternSetReferenceStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RegexPatternSetReferenceStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-sizeconstraintstatement" }, "remarks": "For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.\n\nIf you configure AWS WAF to inspect the request body, AWS WAF inspects only the number of bytes of the body up to the limit for the web ACL. By default, for regional web ACLs, this limit is 8 KB (8,192 kilobytes) and for CloudFront web ACLs, this limit is 16 KB (16,384 kilobytes). For CloudFront web ACLs, you can increase the limit in the web ACL `AssociationConfig` , for additional fees. If you know that the request body for your web requests should never exceed the inspection limit, you could use a size constraint statement to block requests that have a larger request body size.\n\nIf you choose URI for the value of Part of the request to filter on, the slash (/) in the URI counts as one character. For example, the URI `/logo.jpg` is nine characters long.", "stability": "external", "summary": "A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<)." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5584 }, "name": "sizeConstraintStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.SizeConstraintStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-sqlimatchstatement" }, "remarks": "Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.", "stability": "external", "summary": "A rule statement that inspects for malicious SQL code." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5590 }, "name": "sqliMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.SqliMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-xssmatchstatement" }, "remarks": "In XSS attacks, the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious client-site scripts into other legitimate web browsers.", "stability": "external", "summary": "A rule statement that inspects for cross-site scripting (XSS) attacks." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5596 }, "name": "xssMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.XssMatchStatementProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.StatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.TextTransformationProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst textTransformationProperty: wafv2.CfnRuleGroup.TextTransformationProperty = {\n priority: 123,\n type: 'type',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.TextTransformationProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5693 }, "name": "TextTransformationProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html#cfn-wafv2-rulegroup-texttransformation-priority" }, "remarks": "AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. The priorities don't need to be consecutive, but they must all be different.", "stability": "external", "summary": "Sets the relative processing order for multiple transformations." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5699 }, "name": "priority", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html#cfn-wafv2-rulegroup-texttransformation-type" }, "remarks": "*BASE64_DECODE* - Decode a `Base64` -encoded string.\n\n*BASE64_DECODE_EXT* - Decode a `Base64` -encoded string, but use a forgiving implementation that ignores characters that aren't valid.\n\n*CMD_LINE* - Command-line transformations. These are helpful in reducing effectiveness of attackers who inject an operating system command-line command and use unusual formatting to disguise some or all of the command.\n\n- Delete the following characters: `\\ \" ' ^`\n- Delete spaces before the following characters: `/ (`\n- Replace the following characters with a space: `, ;`\n- Replace multiple spaces with one space\n- Convert uppercase letters (A-Z) to lowercase (a-z)\n\n*COMPRESS_WHITE_SPACE* - Replace these characters with a space character (decimal 32):\n\n- `\\f` , formfeed, decimal 12\n- `\\t` , tab, decimal 9\n- `\\n` , newline, decimal 10\n- `\\r` , carriage return, decimal 13\n- `\\v` , vertical tab, decimal 11\n- Non-breaking space, decimal 160\n\n`COMPRESS_WHITE_SPACE` also replaces multiple spaces with one space.\n\n*CSS_DECODE* - Decode characters that were encoded using CSS 2.x escape rules `syndata.html#characters` . This function uses up to two bytes in the decoding process, so it can help to uncover ASCII characters that were encoded using CSS encoding that wouldn’t typically be encoded. It's also useful in countering evasion, which is a combination of a backslash and non-hexadecimal characters. For example, `ja\\vascript` for javascript.\n\n*ESCAPE_SEQ_DECODE* - Decode the following ANSI C escape sequences: `\\a` , `\\b` , `\\f` , `\\n` , `\\r` , `\\t` , `\\v` , `\\\\` , `\\?` , `\\'` , `\\\"` , `\\xHH` (hexadecimal), `\\0OOO` (octal). Encodings that aren't valid remain in the output.\n\n*HEX_DECODE* - Decode a string of hexadecimal characters into a binary.\n\n*HTML_ENTITY_DECODE* - Replace HTML-encoded characters with unencoded characters. `HTML_ENTITY_DECODE` performs these operations:\n\n- Replaces `(ampersand)quot;` with `\"`\n- Replaces `(ampersand)nbsp;` with a non-breaking space, decimal 160\n- Replaces `(ampersand)lt;` with a \"less than\" symbol\n- Replaces `(ampersand)gt;` with `>`\n- Replaces characters that are represented in hexadecimal format, `(ampersand)#xhhhh;` , with the corresponding characters\n- Replaces characters that are represented in decimal format, `(ampersand)#nnnn;` , with the corresponding characters\n\n*JS_DECODE* - Decode JavaScript escape sequences. If a `\\` `u` `HHHH` code is in the full-width ASCII code range of `FF01-FF5E` , then the higher byte is used to detect and adjust the lower byte. If not, only the lower byte is used and the higher byte is zeroed, causing a possible loss of information.\n\n*LOWERCASE* - Convert uppercase letters (A-Z) to lowercase (a-z).\n\n*MD5* - Calculate an MD5 hash from the data in the input. The computed hash is in a raw binary form.\n\n*NONE* - Specify `NONE` if you don't want any text transformations.\n\n*NORMALIZE_PATH* - Remove multiple slashes, directory self-references, and directory back-references that are not at the beginning of the input from an input string.\n\n*NORMALIZE_PATH_WIN* - This is the same as `NORMALIZE_PATH` , but first converts backslash characters to forward slashes.\n\n*REMOVE_NULLS* - Remove all `NULL` bytes from the input.\n\n*REPLACE_COMMENTS* - Replace each occurrence of a C-style comment ( `/* ... * /` ) with a single space. Multiple consecutive occurrences are not compressed. Unterminated comments are also replaced with a space (ASCII 0x20). However, a standalone termination of a comment ( `* /` ) is not acted upon.\n\n*REPLACE_NULLS* - Replace NULL bytes in the input with space characters (ASCII `0x20` ).\n\n*SQL_HEX_DECODE* - Decode SQL hex data. Example ( `0x414243` ) will be decoded to ( `ABC` ).\n\n*URL_DECODE* - Decode a URL-encoded value.\n\n*URL_DECODE_UNI* - Like `URL_DECODE` , but with support for Microsoft-specific `%u` encoding. If the code is in the full-width ASCII code range of `FF01-FF5E` , the higher byte is used to detect and adjust the lower byte. Otherwise, only the lower byte is used and the higher byte is zeroed.\n\n*UTF8_TO_UNICODE* - Convert all UTF-8 character sequences to Unicode. This helps input normalization, and minimizing false-positives and false-negatives for non-English languages.", "stability": "external", "summary": "You can specify the following transformation types:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5769 }, "name": "type", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.TextTransformationProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.VisibilityConfigProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Defines and enables Amazon CloudWatch metrics and web request sample collection.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst visibilityConfigProperty: wafv2.CfnRuleGroup.VisibilityConfigProperty = {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.VisibilityConfigProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5835 }, "name": "VisibilityConfigProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-cloudwatchmetricsenabled" }, "remarks": "For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics) in the *AWS WAF Developer Guide* .\n\nFor web ACLs, the metrics are for web requests that have the web ACL default action applied. AWS WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information,\nsee [The web ACL default action](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-default-action.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Indicates whether the associated resource sends metrics to Amazon CloudWatch." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5844 }, "name": "cloudWatchMetricsEnabled", "type": { "union": { "types": [ { "primitive": "boolean" }, { "fqn": "@aws-cdk/core.IResolvable" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-metricname" }, "remarks": "The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names that are reserved for AWS WAF , for example `All` and `Default_Action` .", "stability": "external", "summary": "A name of the Amazon CloudWatch metric dimension." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5850 }, "name": "metricName", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-sampledrequestsenabled" }, "remarks": "You can view the sampled requests through the AWS WAF console.", "stability": "external", "summary": "Indicates whether AWS WAF should store a sampling of the web requests that match the rules." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5856 }, "name": "sampledRequestsEnabled", "type": { "union": { "types": [ { "primitive": "boolean" }, { "fqn": "@aws-cdk/core.IResolvable" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.VisibilityConfigProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroup.XssMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "In XSS attacks, the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious client-site scripts into other legitimate web browsers.", "stability": "external", "summary": "A rule statement that inspects for cross-site scripting (XSS) attacks.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst xssMatchStatementProperty: wafv2.CfnRuleGroup.XssMatchStatementProperty = {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.XssMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5926 }, "name": "XssMatchStatementProperty", "namespace": "CfnRuleGroup", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html#cfn-wafv2-rulegroup-xssmatchstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5932 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html#cfn-wafv2-rulegroup-xssmatchstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 5938 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroup.XssMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnRuleGroupProps": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Properties for defining a `CfnRuleGroup`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allow: any;\ndeclare const allQueryArguments: any;\ndeclare const block: any;\ndeclare const captcha: any;\ndeclare const challenge: any;\ndeclare const count: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnRuleGroup.StatementProperty;\ndeclare const uriPath: any;\nconst cfnRuleGroupProps: wafv2.CfnRuleGroupProps = {\n capacity: 123,\n scope: 'scope',\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n availableLabels: [{\n name: 'name',\n }],\n consumedLabels: [{\n name: 'name',\n }],\n customResponseBodies: {\n customResponseBodiesKey: {\n content: 'content',\n contentType: 'contentType',\n },\n },\n description: 'description',\n name: 'name',\n rules: [{\n name: 'name',\n priority: 123,\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n action: {\n allow: allow,\n block: block,\n captcha: captcha,\n challenge: challenge,\n count: count,\n },\n captchaConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n challengeConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n ruleLabels: [{\n name: 'name',\n }],\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroupProps", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1563 }, "name": "CfnRuleGroupProps", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-capacity" }, "remarks": "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.\n\nAWS 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.", "stability": "external", "summary": "The web ACL capacity units (WCUs) required for this rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1574 }, "name": "capacity", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-scope" }, "remarks": "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` .\n\n> For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .", "stability": "external", "summary": "Specifies whether this is for an Amazon CloudFront distribution or for a regional application." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1583 }, "name": "scope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-visibilityconfig" }, "stability": "external", "summary": "Defines and enables Amazon CloudWatch metrics and web request sample collection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1590 }, "name": "visibilityConfig", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.VisibilityConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-availablelabels" }, "remarks": "These labels are defined in the `RuleLabels` for a `Rule` .", "stability": "external", "summary": "The labels that one or more rules in this rule group add to matching web requests." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1597 }, "name": "availableLabels", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelSummaryProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-consumedlabels" }, "remarks": "These labels are defined in a `LabelMatchStatement` specification, in the `Statement` definition of a rule.", "stability": "external", "summary": "The labels that one or more rules in this rule group match against in label match statements." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1604 }, "name": "consumedLabels", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.LabelSummaryProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-customresponsebodies" }, "remarks": "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.\n\nFor information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .\n\nFor information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "A map of custom response keys and content bodies." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1615 }, "name": "customResponseBodies", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.CustomResponseBodyProperty" } ] } }, "kind": "map" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-description" }, "stability": "external", "summary": "A description of the rule group that helps with identification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1622 }, "name": "description", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-name" }, "remarks": "You cannot change the name of a rule group after you create it.", "stability": "external", "summary": "The name of the rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1629 }, "name": "name", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-rules" }, "remarks": "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.", "stability": "external", "summary": "The rule statements used to identify the web requests that you want to allow, block, or count." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1636 }, "name": "rules", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnRuleGroup.RuleProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-tags" }, "remarks": "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.\n\n> 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.", "stability": "external", "summary": "Key:value pairs associated with an AWS resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 1645 }, "name": "tags", "optional": true, "type": { "collection": { "elementtype": { "fqn": "@aws-cdk/core.CfnTag" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnRuleGroupProps" }, "@aws-cdk/aws-wafv2.CfnWebACL": { "assembly": "@aws-cdk/aws-wafv2", "base": "@aws-cdk/core.CfnResource", "docs": { "custom": { "cloudformationResource": "AWS::WAFv2::WebACL", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> This is the latest version of *AWS WAF* , named AWS WAF V2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .\n\nUse an `WebACL` to define a collection of rules to use to inspect and control web requests. Each rule has an action defined (allow, block, or count) for requests that match the statement of the rule. In the web ACL, you specify a default action to take (allow, block) for any request that doesn't match any of the rules. The rules in a web ACL can contain rule statements that you define explicitly and rule statements that reference rule groups and managed rule groups. You can associate a web ACL with one or more AWS resources to protect. The resources can be an Amazon CloudFront distribution, an Amazon API Gateway REST API, an Application Load Balancer , an AWS AppSync GraphQL API , an Amazon Cognito user pool, or an AWS App Runner service.", "stability": "external", "summary": "A CloudFormation `AWS::WAFv2::WebACL`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const count: any;\ndeclare const method: any;\ndeclare const none: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst cfnWebACL = new wafv2.CfnWebACL(this, 'MyCfnWebACL', {\n defaultAction: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n scope: 'scope',\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n captchaConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n challengeConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n customResponseBodies: {\n customResponseBodiesKey: {\n content: 'content',\n contentType: 'contentType',\n },\n },\n description: 'description',\n name: 'name',\n rules: [{\n name: 'name',\n priority: 123,\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n action: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n captchaConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n challengeConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n overrideAction: {\n count: count,\n none: none,\n },\n ruleLabels: [{\n name: 'name',\n }],\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n tokenDomains: ['tokenDomains'],\n});" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL", "initializer": { "docs": { "stability": "external", "summary": "Create a new `AWS::WAFv2::WebACL`." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6332 }, "parameters": [ { "docs": { "summary": "- scope in which this resource is defined." }, "name": "scope", "type": { "fqn": "@aws-cdk/core.Construct" } }, { "docs": { "summary": "- scoped id of the resource." }, "name": "id", "type": { "primitive": "string" } }, { "docs": { "summary": "- resource properties." }, "name": "props", "type": { "fqn": "@aws-cdk/aws-wafv2.CfnWebACLProps" } } ] }, "interfaces": [ "@aws-cdk/core.IInspectable" ], "kind": "class", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6183 }, "methods": [ { "docs": { "stability": "external", "summary": "Examines the CloudFormation resource and discloses attributes." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6361 }, "name": "inspect", "overrides": "@aws-cdk/core.IInspectable", "parameters": [ { "docs": { "summary": "- tree inspector to collect and process attributes." }, "name": "inspector", "type": { "fqn": "@aws-cdk/core.TreeInspector" } } ] }, { "docs": { "stability": "external" }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6382 }, "name": "renderProperties", "overrides": "@aws-cdk/core.CfnResource", "parameters": [ { "name": "props", "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "protected": true, "returns": { "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } } ], "name": "CfnWebACL", "properties": [ { "const": true, "docs": { "stability": "external", "summary": "The CloudFormation resource type name for this resource class." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6187 }, "name": "CFN_RESOURCE_TYPE_NAME", "static": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "Arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6212 }, "name": "attrArn", "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "Capacity" }, "remarks": "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.", "stability": "external", "summary": "The web ACL capacity units (WCUs) currently being used by this web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6220 }, "name": "attrCapacity", "type": { "primitive": "number" } }, { "docs": { "custom": { "cloudformationAttribute": "Id" }, "stability": "external", "summary": "The ID of the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6226 }, "name": "attrId", "type": { "primitive": "string" } }, { "docs": { "custom": { "cloudformationAttribute": "LabelNamespace" }, "remarks": "All labels added by rules in this web ACL have this prefix.\n\nThe syntax for the label namespace prefix for a web ACL is the following: `awswaf::webacl::`\n\nWhen a rule with a label matches a web request, AWS WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon.", "stability": "external", "summary": "The label namespace prefix for this web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6236 }, "name": "attrLabelNamespace", "type": { "primitive": "string" } }, { "docs": { "stability": "external" }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6366 }, "name": "cfnProperties", "overrides": "@aws-cdk/core.CfnResource", "protected": true, "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-tags" }, "remarks": "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.\n\n> 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.", "stability": "external", "summary": "Key:value pairs associated with an AWS resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6316 }, "name": "tags", "type": { "fqn": "@aws-cdk/core.TagManager" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-defaultaction" }, "stability": "external", "summary": "The action to perform if none of the `Rules` contained in the `WebACL` match." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6243 }, "name": "defaultAction", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.DefaultActionProperty" } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-scope" }, "remarks": "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` .\n\n> For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .\n\nFor information about how to define the association of the web ACL with your resource, see `WebACLAssociation` .", "stability": "external", "summary": "Specifies whether this is for an Amazon CloudFront distribution or for a regional application." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6254 }, "name": "scope", "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-visibilityconfig" }, "stability": "external", "summary": "Defines and enables Amazon CloudWatch metrics and web request sample collection." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6261 }, "name": "visibilityConfig", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.VisibilityConfigProperty" } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-captchaconfig" }, "remarks": "If you don't specify this, AWS WAF uses its default settings for `CaptchaConfig` .", "stability": "external", "summary": "Specifies how AWS WAF should handle `CAPTCHA` evaluations for rules that don't have their own `CaptchaConfig` settings." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6268 }, "name": "captchaConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CaptchaConfigProperty" } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-challengeconfig" }, "remarks": "If you don't specify this, AWS WAF uses its default settings for `ChallengeConfig` .", "stability": "external", "summary": "Specifies how AWS WAF should handle challenge evaluations for rules that don't have their own `ChallengeConfig` settings." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6275 }, "name": "challengeConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ChallengeConfigProperty" } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-customresponsebodies" }, "remarks": "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.\n\nFor information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .\n\nFor information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "A map of custom response keys and content bodies." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6286 }, "name": "customResponseBodies", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomResponseBodyProperty" } ] } }, "kind": "map" } } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-description" }, "stability": "external", "summary": "A description of the web ACL that helps with identification." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6293 }, "name": "description", "optional": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-name" }, "remarks": "You cannot change the name of a web ACL after you create it.", "stability": "external", "summary": "The name of the web ACL." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6300 }, "name": "name", "optional": true, "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-rules" }, "remarks": "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.", "stability": "external", "summary": "The rule statements used to identify the web requests that you want to allow, block, or count." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6307 }, "name": "rules", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleProperty" } ] } }, "kind": "array" } } ] } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-tokendomains" }, "remarks": "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.", "stability": "external", "summary": "Specifies the domains that AWS WAF should accept in a web request token." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6323 }, "name": "tokenDomains", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL" }, "@aws-cdk/aws-wafv2.CfnWebACL.AWSManagedRulesATPRuleSetProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This configuration is used in `ManagedRuleGroupConfig` .", "stability": "external", "summary": "Details for your use of the account takeover prevention managed rule group, `AWSManagedRulesATPRuleSet` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst aWSManagedRulesATPRuleSetProperty: wafv2.CfnWebACL.AWSManagedRulesATPRuleSetProperty = {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AWSManagedRulesATPRuleSetProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6396 }, "name": "AWSManagedRulesATPRuleSetProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html#cfn-wafv2-webacl-awsmanagedrulesatpruleset-loginpath" }, "remarks": "For example, for the URL `https://example.com/web/login` , you would provide the path `/web/login` .\n\nThe rule group inspects only HTTP `POST` requests to your specified login endpoint.", "stability": "external", "summary": "The path of the login endpoint for your application." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6404 }, "name": "loginPath", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html#cfn-wafv2-webacl-awsmanagedrulesatpruleset-requestinspection" }, "stability": "external", "summary": "The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6410 }, "name": "requestInspection", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RequestInspectionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html#cfn-wafv2-webacl-awsmanagedrulesatpruleset-responseinspection" }, "remarks": "> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.\n\nThe ATP rule group evaluates the responses that your protected resources send back to client login attempts, keeping count of successful and failed attempts for each IP address and client session. Using this information, the rule group labels and mitigates requests from client sessions and IP addresses that have had too many failed login attempts in a short amount of time.", "stability": "external", "summary": "The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6420 }, "name": "responseInspection", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.AWSManagedRulesATPRuleSetProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.AWSManagedRulesBotControlRuleSetProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesbotcontrolruleset.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Details for your use of the Bot Control managed rule group, used in `ManagedRuleGroupConfig` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst aWSManagedRulesBotControlRuleSetProperty: wafv2.CfnWebACL.AWSManagedRulesBotControlRuleSetProperty = {\n inspectionLevel: 'inspectionLevel',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AWSManagedRulesBotControlRuleSetProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6488 }, "name": "AWSManagedRulesBotControlRuleSetProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesbotcontrolruleset.html#cfn-wafv2-webacl-awsmanagedrulesbotcontrolruleset-inspectionlevel" }, "remarks": "The common level is the least expensive. The targeted level includes all common level rules and adds rules with more advanced inspection criteria. For details, see [AWS WAF Bot Control rule group](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html) .", "stability": "external", "summary": "The inspection level to use for the Bot Control rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6494 }, "name": "inspectionLevel", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.AWSManagedRulesBotControlRuleSetProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.AllowActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-allowaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.", "stability": "external", "summary": "Specifies that AWS WAF should allow the request and optionally defines additional custom handling for the request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst allowActionProperty: wafv2.CfnWebACL.AllowActionProperty = {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AllowActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6558 }, "name": "AllowActionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-allowaction.html#cfn-wafv2-webacl-allowaction-customrequesthandling" }, "remarks": "For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Defines custom handling for the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6566 }, "name": "customRequestHandling", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomRequestHandlingProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.AllowActionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.AndStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You provide more than one `Statement` within the `AndStatement` .", "stability": "external", "summary": "A logical rule statement used to combine other rule statements with AND logic.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst andStatementProperty: wafv2.CfnWebACL.AndStatementProperty = {\n statements: [{\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AndStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6627 }, "name": "AndStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatement.html#cfn-wafv2-webacl-andstatement-statements" }, "remarks": "You can use any statements that can be nested.", "stability": "external", "summary": "The statements to combine with AND logic." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6633 }, "name": "statements", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.StatementProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.AndStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.BlockActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-blockaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.", "stability": "external", "summary": "Specifies that AWS WAF should block the request and optionally defines additional custom handling for the response to the web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst blockActionProperty: wafv2.CfnWebACL.BlockActionProperty = {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.BlockActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6697 }, "name": "BlockActionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-blockaction.html#cfn-wafv2-webacl-blockaction-customresponse" }, "remarks": "For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Defines a custom response for the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6705 }, "name": "customResponse", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomResponseProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.BlockActionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.BodyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-body.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.", "stability": "external", "summary": "Inspect the body of the web request. The body immediately follows the request headers.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst bodyProperty: wafv2.CfnWebACL.BodyProperty = {\n oversizeHandling: 'oversizeHandling',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.BodyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6768 }, "name": "BodyProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-body.html#cfn-wafv2-webacl-body-oversizehandling" }, "remarks": "AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. If the body is larger than the limit, the underlying host service only forwards the contents that are below the limit to AWS WAF for inspection.\n\nThe default limit is 8 KB (8,192 kilobytes) for regional resources and 16 KB (16,384 kilobytes) for CloudFront distributions. For CloudFront distributions, you can increase the limit in the web ACL `AssociationConfig` , for additional processing fees.\n\nThe options for oversize handling are the following:\n\n- `CONTINUE` - Inspect the available body contents normally, according to the rule inspection criteria.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.\n\nYou can combine the `MATCH` or `NO_MATCH` settings for oversize handling with your rule and web ACL action settings, so that you block any request whose body is over the limit.\n\nDefault: `CONTINUE`", "stability": "external", "summary": "What AWS WAF should do if the body is larger than AWS WAF can inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6786 }, "name": "oversizeHandling", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.BodyProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ByteMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The byte match statement provides the bytes to search for, the location in requests that you want AWS WAF to search, and other settings. The bytes to search for are typically a string that corresponds with ASCII characters. In the AWS WAF console and the developer guide, this is called a string match statement.", "stability": "external", "summary": "A rule statement that defines a string match search for AWS WAF to apply to web requests.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst byteMatchStatementProperty: wafv2.CfnWebACL.ByteMatchStatementProperty = {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ByteMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6847 }, "name": "ByteMatchStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6853 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-positionalconstraint" }, "remarks": "Valid values include the following:\n\n*CONTAINS*\n\nThe specified part of the web request must include the value of `SearchString` , but the location doesn't matter.\n\n*CONTAINS_WORD*\n\nThe specified part of the web request must include the value of `SearchString` , and `SearchString` must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, `SearchString` must be a word, which means that both of the following are true:\n\n- `SearchString` is at the beginning of the specified part of the web request or is preceded by a character other than an alphanumeric character or underscore (_). Examples include the value of a header and `;BadBot` .\n- `SearchString` is at the end of the specified part of the web request or is followed by a character other than an alphanumeric character or underscore (_), for example, `BadBot;` and `-BadBot;` .\n\n*EXACTLY*\n\nThe value of the specified part of the web request must exactly match the value of `SearchString` .\n\n*STARTS_WITH*\n\nThe value of `SearchString` must appear at the beginning of the specified part of the web request.\n\n*ENDS_WITH*\n\nThe value of `SearchString` must appear at the end of the specified part of the web request.", "stability": "external", "summary": "The area within the portion of the web request that you want AWS WAF to search for `SearchString` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6882 }, "name": "positionalConstraint", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6908 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-searchstring" }, "remarks": "AWS WAF searches only in the part of web requests that you designate for inspection in `FieldToMatch` . The maximum length of the value is 200 bytes. For alphabetic characters A-Z and a-z, the value is case sensitive.\n\nDon't encode this string. Provide the value that you want AWS WAF to search for. AWS CloudFormation automatically base64 encodes the value for you.\n\nFor example, suppose the value of `Type` is `HEADER` and the value of `Data` is `User-Agent` . If you want to search the `User-Agent` header for the value `BadBot` , you provide the string `BadBot` in the value of `SearchString` .\n\nYou must specify either `SearchString` or `SearchStringBase64` in a `ByteMatchStatement` .", "stability": "external", "summary": "A string value that you want AWS WAF to search for." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6894 }, "name": "searchString", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-searchstringbase64" }, "remarks": "If you don't want to encode the string, specify the unencoded value in `SearchString` instead.\n\nYou must specify either `SearchString` or `SearchStringBase64` in a `ByteMatchStatement` .", "stability": "external", "summary": "String to search for in a web request component, base64-encoded." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6902 }, "name": "searchStringBase64", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ByteMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CaptchaActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "- If the request includes a valid, unexpired `CAPTCHA` token, AWS WAF allows the web request inspection to proceed to the next rule, similar to a `CountAction` .\n- If the request doesn't include a valid, unexpired `CAPTCHA` token, AWS WAF discontinues the web ACL evaluation of the request and blocks it from going to its intended destination.\n\nAWS WAF generates a response that it sends back to the client, which includes the following:\n\n- The header `x-amzn-waf-action` with a value of `captcha` .\n- The HTTP status code `405 Method Not Allowed` .\n- If the request contains an `Accept` header with a value of `text/html` , the response includes a `CAPTCHA` challenge.\n\nYou can configure the expiration time in the `CaptchaConfig` `ImmunityTimeProperty` setting at the rule and web ACL level. The rule setting overrides the web ACL setting.\n\nThis action option is available for rules. It isn't available for web ACL default actions.", "stability": "external", "summary": "Specifies that AWS WAF should run a `CAPTCHA` check against the request:.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst captchaActionProperty: wafv2.CfnWebACL.CaptchaActionProperty = {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CaptchaActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6997 }, "name": "CaptchaActionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaaction.html#cfn-wafv2-webacl-captchaaction-customrequesthandling" }, "remarks": "For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Defines custom handling for the web request, used when the `CAPTCHA` inspection determines that the request's token is valid and unexpired." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7005 }, "name": "customRequestHandling", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomRequestHandlingProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CaptchaActionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CaptchaConfigProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaconfig.html", "exampleMetadata": "fixture=_generated" }, "remarks": "If you don't specify this, AWS WAF uses its default settings for `CaptchaConfig` .", "stability": "external", "summary": "Specifies how AWS WAF should handle `CAPTCHA` evaluations for rules that don't have their own `CaptchaConfig` settings.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst captchaConfigProperty: wafv2.CfnWebACL.CaptchaConfigProperty = {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CaptchaConfigProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7066 }, "name": "CaptchaConfigProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaconfig.html#cfn-wafv2-webacl-captchaconfig-immunitytimeproperty" }, "stability": "external", "summary": "Determines how long a `CAPTCHA` timestamp in the token remains valid after the client successfully solves a `CAPTCHA` puzzle." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7072 }, "name": "immunityTimeProperty", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ImmunityTimePropertyProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CaptchaConfigProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ChallengeActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-challengeaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "- If the request doesn't include a valid, unexpired challenge token, AWS WAF discontinues the web ACL evaluation of the request and blocks it from going to its intended destination.\n\nAWS WAF then generates a challenge response that it sends back to the client, which includes the following:\n\n- The header `x-amzn-waf-action` with a value of `challenge` .\n- The HTTP status code `202 Request Accepted` .\n- If the request contains an `Accept` header with a value of `text/html` , the response includes a JavaScript page interstitial with a challenge script.\n\nChallenges run silent browser interrogations in the background, and don't generally affect the end user experience.\n\nA challenge enforces token acquisition using an interstitial JavaScript challenge that inspects the client session for legitimate behavior. The challenge blocks bots or at least increases the cost of operating sophisticated bots.\n\nAfter the client session successfully responds to the challenge, it receives a new token from AWS WAF , which the challenge script uses to resubmit the original request.\n\nYou can configure the expiration time in the `ChallengeConfig` `ImmunityTimeProperty` setting at the rule and web ACL level. The rule setting overrides the web ACL setting.\n\nThis action option is available for rules. It isn't available for web ACL default actions.", "stability": "external", "summary": "Specifies that AWS WAF should run a `Challenge` check against the request to verify that the request is coming from a legitimate client session: - If the request includes a valid, unexpired challenge token, AWS WAF applies any custom request handling and labels that you've configured and then allows the web request inspection to proceed to the next rule, similar to a `CountAction` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst challengeActionProperty: wafv2.CfnWebACL.ChallengeActionProperty = {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ChallengeActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7152 }, "name": "ChallengeActionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-challengeaction.html#cfn-wafv2-webacl-challengeaction-customrequesthandling" }, "remarks": "For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .", "stability": "external", "summary": "Defines custom handling for the web request, used when the challenge inspection determines that the request's token is valid and unexpired." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7160 }, "name": "customRequestHandling", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomRequestHandlingProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ChallengeActionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ChallengeConfigProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-challengeconfig.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is available at the web ACL level and in each rule.", "stability": "external", "summary": "Specifies how AWS WAF should handle `Challenge` evaluations.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst challengeConfigProperty: wafv2.CfnWebACL.ChallengeConfigProperty = {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ChallengeConfigProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7221 }, "name": "ChallengeConfigProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-challengeconfig.html#cfn-wafv2-webacl-challengeconfig-immunitytimeproperty" }, "stability": "external", "summary": "Determines how long a challenge timestamp in the token remains valid after the client successfully responds to a challenge." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7227 }, "name": "immunityTimeProperty", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ImmunityTimePropertyProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ChallengeConfigProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CookieMatchPatternProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookiematchpattern.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .\n\nExample JSON: `\"MatchPattern\": { \"IncludedCookies\": {\"KeyToInclude1\", \"KeyToInclude2\", \"KeyToInclude3\"} }`", "stability": "external", "summary": "The filter to use to identify the subset of cookies to inspect in a web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst cookieMatchPatternProperty: wafv2.CfnWebACL.CookieMatchPatternProperty = {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CookieMatchPatternProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7292 }, "name": "CookieMatchPatternProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookiematchpattern.html#cfn-wafv2-webacl-cookiematchpattern-all" }, "stability": "external", "summary": "Inspect all cookies." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7298 }, "name": "all", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookiematchpattern.html#cfn-wafv2-webacl-cookiematchpattern-excludedcookies" }, "stability": "external", "summary": "Inspect only the cookies whose keys don't match any of the strings specified here." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7304 }, "name": "excludedCookies", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookiematchpattern.html#cfn-wafv2-webacl-cookiematchpattern-includedcookies" }, "stability": "external", "summary": "Inspect only the cookies that have a key that matches one of the strings specified here." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7310 }, "name": "includedCookies", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CookieMatchPatternProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CookiesProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookies.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can specify the parts of the cookies to inspect and you can narrow the set of cookies to inspect by including or excluding specific keys.\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nExample JSON: `\"Cookies\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"KEY\", \"OversizeHandling\": \"MATCH\" }`", "stability": "external", "summary": "Inspect the cookies in the web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst cookiesProperty: wafv2.CfnWebACL.CookiesProperty = {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CookiesProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7381 }, "name": "CookiesProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookies.html#cfn-wafv2-webacl-cookies-matchpattern" }, "remarks": "You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .\n\nExample JSON: `\"MatchPattern\": { \"IncludedCookies\": {\"KeyToInclude1\", \"KeyToInclude2\", \"KeyToInclude3\"} }`", "stability": "external", "summary": "The filter to use to identify the subset of cookies to inspect in a web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7391 }, "name": "matchPattern", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CookieMatchPatternProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookies.html#cfn-wafv2-webacl-cookies-matchscope" }, "remarks": "If you specify `All` , AWS WAF inspects both keys and values.", "stability": "external", "summary": "The parts of the cookies to inspect with the rule inspection criteria." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7397 }, "name": "matchScope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookies.html#cfn-wafv2-webacl-cookies-oversizehandling" }, "remarks": "AWS WAF does not support inspecting the entire contents of request cookies when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to AWS WAF .\n\nThe options for oversize handling are the following:\n\n- `CONTINUE` - Inspect the available cookies normally, according to the rule inspection criteria.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.", "stability": "external", "summary": "What AWS WAF should do if the cookies of the request are more numerous or larger than AWS WAF can inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7409 }, "name": "oversizeHandling", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CookiesProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CountActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-countaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.", "stability": "external", "summary": "Specifies that AWS WAF should count the request. Optionally defines additional custom handling for the request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst countActionProperty: wafv2.CfnWebACL.CountActionProperty = {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CountActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7481 }, "name": "CountActionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-countaction.html#cfn-wafv2-webacl-countaction-customrequesthandling" }, "remarks": "For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Defines custom handling for the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7489 }, "name": "customRequestHandling", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomRequestHandlingProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CountActionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CustomHTTPHeaderProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customhttpheader.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used in `CustomResponse` and `CustomRequestHandling` .", "stability": "external", "summary": "A custom header for custom request and response handling.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst customHTTPHeaderProperty: wafv2.CfnWebACL.CustomHTTPHeaderProperty = {\n name: 'name',\n value: 'value',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomHTTPHeaderProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7550 }, "name": "CustomHTTPHeaderProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customhttpheader.html#cfn-wafv2-webacl-customhttpheader-name" }, "remarks": "For custom request header insertion, when AWS WAF inserts the header into the request, it prefixes this name `x-amzn-waf-` , to avoid confusion with the headers that are already in the request. For example, for the header name `sample` , AWS WAF inserts the header `x-amzn-waf-sample` .", "stability": "external", "summary": "The name of the custom header." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7558 }, "name": "name", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customhttpheader.html#cfn-wafv2-webacl-customhttpheader-value" }, "stability": "external", "summary": "The value of the custom header." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7564 }, "name": "value", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CustomHTTPHeaderProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CustomRequestHandlingProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customrequesthandling.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can add custom request handling for AWS WAF to use when the rule action doesn't block the request. For example, `CaptchaAction` for requests with valid t okens, and `AllowAction` .\n\nFor information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Custom request handling behavior that inserts custom headers into a web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst customRequestHandlingProperty: wafv2.CfnWebACL.CustomRequestHandlingProperty = {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomRequestHandlingProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7632 }, "name": "CustomRequestHandlingProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customrequesthandling.html#cfn-wafv2-webacl-customrequesthandling-insertheaders" }, "remarks": "For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "The HTTP headers to insert into the request. Duplicate header names are not allowed." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7640 }, "name": "insertHeaders", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomHTTPHeaderProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CustomRequestHandlingProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CustomResponseBodyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponsebody.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is referenced by key from `CustomResponse` `CustomResponseBodyKey` .", "stability": "external", "summary": "The response body to use in a custom response to a web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst customResponseBodyProperty: wafv2.CfnWebACL.CustomResponseBodyProperty = {\n content: 'content',\n contentType: 'contentType',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomResponseBodyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7794 }, "name": "CustomResponseBodyProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponsebody.html#cfn-wafv2-webacl-customresponsebody-content" }, "remarks": "You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the `ContentType` setting.\n\nFor information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "The payload of the custom response." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7804 }, "name": "content", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponsebody.html#cfn-wafv2-webacl-customresponsebody-contenttype" }, "stability": "external", "summary": "The type of content in the payload that you are defining in the `Content` string." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7810 }, "name": "contentType", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CustomResponseBodyProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.CustomResponseProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponse.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can define a custom response for rule actions and default web ACL actions that are set to the block action.\n\nFor information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .", "stability": "external", "summary": "A custom response to send to the client.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst customResponseProperty: wafv2.CfnWebACL.CustomResponseProperty = {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomResponseProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7704 }, "name": "CustomResponseProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponse.html#cfn-wafv2-webacl-customresponse-responsecode" }, "remarks": "For a list of status codes that you can use in your custom responses, see [Supported status codes for custom response](https://docs.aws.amazon.com/waf/latest/developerguide/customizing-the-response-status-codes.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "The HTTP status code to return to the client." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7718 }, "name": "responseCode", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponse.html#cfn-wafv2-webacl-customresponse-customresponsebodykey" }, "remarks": "You can define a custom response for a rule action or a default web ACL action that is set to block. To do this, you first define the response body key and value in the `CustomResponseBodies` setting for the `WebACL` or `RuleGroup` where you want to use it. Then, in the rule action or web ACL default action `BlockAction` setting, you reference the response body using this key.", "stability": "external", "summary": "References the response body that you want AWS WAF to return to the web request client." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7710 }, "name": "customResponseBodyKey", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponse.html#cfn-wafv2-webacl-customresponse-responseheaders" }, "remarks": "For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "The HTTP headers to use in the response. Duplicate header names are not allowed." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7726 }, "name": "responseHeaders", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomHTTPHeaderProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.CustomResponseProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.DefaultActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The default action must be a terminating action.", "stability": "external", "summary": "In a `WebACL` , this is the action that you want AWS WAF to perform when a web request doesn't match any of the rules in the `WebACL` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst defaultActionProperty: wafv2.CfnWebACL.DefaultActionProperty = {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.DefaultActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7876 }, "name": "DefaultActionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html#cfn-wafv2-webacl-defaultaction-allow" }, "stability": "external", "summary": "Specifies that AWS WAF should allow requests by default." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7882 }, "name": "allow", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AllowActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html#cfn-wafv2-webacl-defaultaction-block" }, "stability": "external", "summary": "Specifies that AWS WAF should block requests by default." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7888 }, "name": "block", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.BlockActionProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.DefaultActionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ExcludedRuleProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrule.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .", "stability": "external", "summary": "Specifies a single rule in a rule group whose action you want to override to `Count` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst excludedRuleProperty: wafv2.CfnWebACL.ExcludedRuleProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ExcludedRuleProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7954 }, "name": "ExcludedRuleProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrule.html#cfn-wafv2-webacl-excludedrule-name" }, "stability": "external", "summary": "The name of the rule whose action you want to override to `Count` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 7960 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ExcludedRuleProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.FieldIdentifierProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldidentifier.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "The identifier of the username or password field, used in the `ManagedRuleGroupConfig` settings.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst fieldIdentifierProperty: wafv2.CfnWebACL.FieldIdentifierProperty = {\n identifier: 'identifier',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldIdentifierProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8022 }, "name": "FieldIdentifierProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldidentifier.html#cfn-wafv2-webacl-fieldidentifier-identifier" }, "remarks": "When the `PayloadType` is `JSON` , the identifier must be in JSON pointer syntax. For example `/form/username` . For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation [JavaScript Object Notation (JSON) Pointer](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6901) .\n\nWhen the `PayloadType` is `FORM_ENCODED` , use the HTML form names. For example, `username` .", "stability": "external", "summary": "The name of the username or password field, used in the `ManagedRuleGroupConfig` settings." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8032 }, "name": "identifier", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.FieldIdentifierProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.FieldToMatchProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Include the single `FieldToMatch` type that you want to inspect, with additional specifications as needed, according to the type. You specify a single request component in `FieldToMatch` for each rule statement that requires it. To inspect more than one component of the web request, create a separate rule statement for each component.\n\nExample JSON for a `QueryString` field to match:\n\n`\"FieldToMatch\": { \"QueryString\": {} }`\n\nExample JSON for a `Method` field to match specification:\n\n`\"FieldToMatch\": { \"Method\": { \"Name\": \"DELETE\" } }`", "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst fieldToMatchProperty: wafv2.CfnWebACL.FieldToMatchProperty = {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldToMatchProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8102 }, "name": "FieldToMatchProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-allqueryarguments" }, "stability": "external", "summary": "Inspect all query arguments." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8108 }, "name": "allQueryArguments", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-body" }, "remarks": "The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form.\n\nA limited amount of the request body is forwarded to AWS WAF for inspection by the underlying host service. For regional resources, the limit is 8 KB (8,192 kilobytes) and for CloudFront distributions, the limit is 16 KB (16,384 kilobytes). For CloudFront distributions, you can increase the limit in the web ACL's `AssociationConfig` , for additional processing fees.\n\nFor information about how to handle oversized request bodies, see the `Body` object configuration.", "stability": "external", "summary": "Inspect the request body as plain text." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8118 }, "name": "body", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.BodyProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-cookies" }, "remarks": "You must configure scope and pattern matching filters in the `Cookies` object, to define the set of cookies and the parts of the cookies that AWS WAF inspects.\n\nOnly the first 8 KB (8192 bytes) of a request's cookies and only the first 200 cookies are forwarded to AWS WAF for inspection by the underlying host service. You must configure how to handle any oversize cookie content in the `Cookies` object. AWS WAF applies the pattern matching filters to the cookies that it receives from the underlying host service.", "stability": "external", "summary": "Inspect the request cookies." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8126 }, "name": "cookies", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CookiesProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-headers" }, "remarks": "You must configure scope and pattern matching filters in the `Headers` object, to define the set of headers to and the parts of the headers that AWS WAF inspects.\n\nOnly the first 8 KB (8192 bytes) of a request's headers and only the first 200 headers are forwarded to AWS WAF for inspection by the underlying host service. You must configure how to handle any oversize header content in the `Headers` object. AWS WAF applies the pattern matching filters to the headers that it receives from the underlying host service.", "stability": "external", "summary": "Inspect the request headers." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8134 }, "name": "headers", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.HeadersProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-jsonbody" }, "remarks": "The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form.\n\nA limited amount of the request body is forwarded to AWS WAF for inspection by the underlying host service. For regional resources, the limit is 8 KB (8,192 kilobytes) and for CloudFront distributions, the limit is 16 KB (16,384 kilobytes). For CloudFront distributions, you can increase the limit in the web ACL's `AssociationConfig` , for additional processing fees.\n\nFor information about how to handle oversized request bodies, see the `JsonBody` object configuration.", "stability": "external", "summary": "Inspect the request body as JSON." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8144 }, "name": "jsonBody", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.JsonBodyProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-method" }, "remarks": "The method indicates the type of operation that the request is asking the origin to perform.", "stability": "external", "summary": "Inspect the HTTP method." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8150 }, "name": "method", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-querystring" }, "remarks": "This is the part of a URL that appears after a `?` character, if any.", "stability": "external", "summary": "Inspect the query string." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8156 }, "name": "queryString", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-singleheader" }, "remarks": "Provide the name of the header to inspect, for example, `User-Agent` or `Referer` . This setting isn't case sensitive.\n\nExample JSON: `\"SingleHeader\": { \"Name\": \"haystack\" }`\n\nAlternately, you can filter and inspect all headers with the `Headers` `FieldToMatch` setting.", "stability": "external", "summary": "Inspect a single header." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8166 }, "name": "singleHeader", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-singlequeryargument" }, "remarks": "Provide the name of the query argument to inspect, such as *UserName* or *SalesRegion* . The name can be up to 30 characters long and isn't case sensitive.\n\nExample JSON: `\"SingleQueryArgument\": { \"Name\": \"myArgument\" }`", "stability": "external", "summary": "Inspect a single query argument." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8174 }, "name": "singleQueryArgument", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-uripath" }, "remarks": "This is the part of the web request that identifies a resource, for example, `/images/daily-ad.jpg` .", "stability": "external", "summary": "Inspect the request URI path." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8180 }, "name": "uriPath", "optional": true, "type": { "primitive": "any" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.FieldToMatchProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ForwardedIPConfigurationProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nThis configuration is used for `GeoMatchStatement` and `RateBasedStatement` . For `IPSetReferenceStatement` , use `IPSetForwardedIPConfig` instead.\n\nAWS WAF only evaluates the first IP address found in the specified HTTP header.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst forwardedIPConfigurationProperty: wafv2.CfnWebACL.ForwardedIPConfigurationProperty = {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ForwardedIPConfigurationProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8274 }, "name": "ForwardedIPConfigurationProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html#cfn-wafv2-webacl-forwardedipconfiguration-fallbackbehavior" }, "remarks": "> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nYou can specify the following fallback behaviors:\n\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.", "stability": "external", "summary": "The match status to assign to the web request if the request doesn't have a valid IP address in the specified position." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8287 }, "name": "fallbackBehavior", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html#cfn-wafv2-webacl-forwardedipconfiguration-headername" }, "remarks": "For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.", "stability": "external", "summary": "The name of the HTTP header to use for the IP address." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8295 }, "name": "headerName", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ForwardedIPConfigurationProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.GeoMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "A geo match rule labels every request that it inspects regardless of whether it finds a match.\n\n- To manage requests only by country, you can use this statement by itself and specify the countries that you want to match against in the `CountryCodes` array.\n- Otherwise, configure your geo match rule with Count action so that it only labels requests. Then, add one or more label match rules to run after the geo match rule and configure them to match against the geographic labels and handle the requests as needed.\n\nAWS WAF labels requests using the alpha-2 country and region codes from the International Organization for Standardization (ISO) 3166 standard. AWS WAF determines the codes using either the IP address in the web request origin or, if you specify it, the address in the geo match `ForwardedIPConfig` .\n\nIf you use the web request origin, the label formats are `awswaf:clientip:geo:region:-` and `awswaf:clientip:geo:country:` .\n\nIf you use a forwarded IP address, the label formats are `awswaf:forwardedip:geo:region:-` and `awswaf:forwardedip:geo:country:` .\n\nFor additional details, see [Geographic match rule statement](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-geo-match.html) in the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .", "stability": "external", "summary": "A rule statement that labels web requests by country and region and that matches against web requests based on country code.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst geoMatchStatementProperty: wafv2.CfnWebACL.GeoMatchStatementProperty = {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.GeoMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8372 }, "name": "GeoMatchStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html#cfn-wafv2-webacl-geomatchstatement-countrycodes" }, "remarks": "When you use a geo match statement just for the region and country labels that it adds to requests, you still have to supply a country code for the rule to evaluate. In this case, you configure the rule to only count matching requests, but it will still generate logging and count metrics for any matches. You can reduce the logging and metrics that the rule produces by specifying a country that's unlikely to be a source of traffic to your site.", "stability": "external", "summary": "An array of two-character country codes that you want to match against, for example, `[ \"US\", \"CN\" ]` , from the alpha-2 country ISO codes of the ISO 3166 international standard." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8380 }, "name": "countryCodes", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html#cfn-wafv2-webacl-geomatchstatement-forwardedipconfig" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8388 }, "name": "forwardedIpConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ForwardedIPConfigurationProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.GeoMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.HeaderMatchPatternProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You must specify exactly one setting: either `All` , `IncludedHeaders` , or `ExcludedHeaders` .\n\nExample JSON: `\"MatchPattern\": { \"ExcludedHeaders\": {\"KeyToExclude1\", \"KeyToExclude2\"} }`", "stability": "external", "summary": "The filter to use to identify the subset of headers to inspect in a web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst headerMatchPatternProperty: wafv2.CfnWebACL.HeaderMatchPatternProperty = {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.HeaderMatchPatternProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8456 }, "name": "HeaderMatchPatternProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.html#cfn-wafv2-webacl-headermatchpattern-all" }, "stability": "external", "summary": "Inspect all headers." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8462 }, "name": "all", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.html#cfn-wafv2-webacl-headermatchpattern-excludedheaders" }, "stability": "external", "summary": "Inspect only the headers whose keys don't match any of the strings specified here." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8468 }, "name": "excludedHeaders", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.html#cfn-wafv2-webacl-headermatchpattern-includedheaders" }, "stability": "external", "summary": "Inspect only the headers that have a key that matches one of the strings specified here." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8474 }, "name": "includedHeaders", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.HeaderMatchPatternProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.HeadersProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headers.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can specify the parts of the headers to inspect and you can narrow the set of headers to inspect by including or excluding specific keys.\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nIf you want to inspect just the value of a single header, use the `SingleHeader` `FieldToMatch` setting instead.\n\nExample JSON: `\"Headers\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"KEY\", \"OversizeHandling\": \"MATCH\" }`", "stability": "external", "summary": "Inspect all headers in the web request.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst headersProperty: wafv2.CfnWebACL.HeadersProperty = {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.HeadersProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8547 }, "name": "HeadersProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headers.html#cfn-wafv2-webacl-headers-matchpattern" }, "remarks": "You must specify exactly one setting: either `All` , `IncludedHeaders` , or `ExcludedHeaders` .\n\nExample JSON: `\"MatchPattern\": { \"ExcludedHeaders\": {\"KeyToExclude1\", \"KeyToExclude2\"} }`", "stability": "external", "summary": "The filter to use to identify the subset of headers to inspect in a web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8557 }, "name": "matchPattern", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.HeaderMatchPatternProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headers.html#cfn-wafv2-webacl-headers-matchscope" }, "remarks": "If you specify `All` , AWS WAF inspects both keys and values.", "stability": "external", "summary": "The parts of the headers to match with the rule inspection criteria." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8563 }, "name": "matchScope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headers.html#cfn-wafv2-webacl-headers-oversizehandling" }, "remarks": "AWS WAF does not support inspecting the entire contents of request headers when they exceed 8 KB (8192 bytes) or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB of header contents to AWS WAF .\n\nThe options for oversize handling are the following:\n\n- `CONTINUE` - Inspect the available headers normally, according to the rule inspection criteria.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.", "stability": "external", "summary": "What AWS WAF should do if the headers of the request are more numerous or larger than AWS WAF can inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8575 }, "name": "oversizeHandling", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.HeadersProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.IPSetForwardedIPConfigurationProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetforwardedipconfiguration.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nThis configuration is used only for `IPSetReferenceStatement` . For `GeoMatchStatement` and `RateBasedStatement` , use `ForwardedIPConfig` instead.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst iPSetForwardedIPConfigurationProperty: wafv2.CfnWebACL.IPSetForwardedIPConfigurationProperty = {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.IPSetForwardedIPConfigurationProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8649 }, "name": "IPSetForwardedIPConfigurationProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetforwardedipconfiguration.html#cfn-wafv2-webacl-ipsetforwardedipconfiguration-fallbackbehavior" }, "remarks": "> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nYou can specify the following fallback behaviors:\n\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.", "stability": "external", "summary": "The match status to assign to the web request if the request doesn't have a valid IP address in the specified position." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8662 }, "name": "fallbackBehavior", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetforwardedipconfiguration.html#cfn-wafv2-webacl-ipsetforwardedipconfiguration-headername" }, "remarks": "For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.", "stability": "external", "summary": "The name of the HTTP header to use for the IP address." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8670 }, "name": "headerName", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetforwardedipconfiguration.html#cfn-wafv2-webacl-ipsetforwardedipconfiguration-position" }, "remarks": "The header can contain IP addresses of the original client and also of proxies. For example, the header value could be `10.1.1.1, 127.0.0.0, 10.10.10.10` where the first IP address identifies the original client and the rest identify proxies that the request went through.\n\nThe options for this setting are the following:\n\n- FIRST - Inspect the first IP address in the list of IP addresses in the header. This is usually the client's original IP.\n- LAST - Inspect the last IP address in the list of IP addresses in the header.\n- ANY - Inspect all IP addresses in the header for a match. If the header contains more than 10 IP addresses, AWS WAF inspects the last 10.", "stability": "external", "summary": "The position in the header to search for the IP address." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8682 }, "name": "position", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.IPSetForwardedIPConfigurationProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.IPSetReferenceStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "To use this, create an `IPSet` that specifies the addresses you want to detect, then use the ARN of that set in this statement.\n\nEach IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.", "stability": "external", "summary": "A rule statement used to detect web requests coming from particular IP addresses or address ranges.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst iPSetReferenceStatementProperty: wafv2.CfnWebACL.IPSetReferenceStatementProperty = {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.IPSetReferenceStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8754 }, "name": "IPSetReferenceStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html#cfn-wafv2-webacl-ipsetreferencestatement-arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the `IPSet` that this statement references." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8760 }, "name": "arn", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html#cfn-wafv2-webacl-ipsetreferencestatement-ipsetforwardedipconfig" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8768 }, "name": "ipSetForwardedIpConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.IPSetForwardedIPConfigurationProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.IPSetReferenceStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ImmunityTimePropertyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-immunitytimeproperty.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Determines how long a `CAPTCHA` or challenge timestamp remains valid after AWS WAF updates it for a successful `CAPTCHA` or challenge response.", "stability": "external", "summary": "Used for CAPTCHA and challenge token settings.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst immunityTimePropertyProperty: wafv2.CfnWebACL.ImmunityTimePropertyProperty = {\n immunityTime: 123,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ImmunityTimePropertyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8833 }, "name": "ImmunityTimePropertyProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-immunitytimeproperty.html#cfn-wafv2-webacl-immunitytimeproperty-immunitytime" }, "remarks": "The default setting is 300.\n\nFor the Challenge action, the minimum setting is 300.", "stability": "external", "summary": "The amount of time, in seconds, that a `CAPTCHA` or challenge timestamp is considered valid by AWS WAF ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8841 }, "name": "immunityTime", "type": { "primitive": "number" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ImmunityTimePropertyProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.JsonBodyProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nUse the specifications in this object to indicate which parts of the JSON body to inspect using the rule's inspection criteria. AWS WAF inspects only the parts of the JSON that result from the matches that you indicate.\n\nExample JSON: `\"JsonBody\": { \"MatchPattern\": { \"All\": {} }, \"MatchScope\": \"ALL\" }`", "stability": "external", "summary": "Inspect the body of the web request as JSON. The body immediately follows the request headers.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst jsonBodyProperty: wafv2.CfnWebACL.JsonBodyProperty = {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.JsonBodyProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8909 }, "name": "JsonBodyProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-matchpattern" }, "remarks": "AWS WAF inspects the results of these pattern matches against the rule inspection criteria.", "stability": "external", "summary": "The patterns to look for in the JSON body." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8935 }, "name": "matchPattern", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.JsonMatchPatternProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-matchscope" }, "remarks": "If you specify `All` , AWS WAF matches against keys and values.", "stability": "external", "summary": "The parts of the JSON to match against using the `MatchPattern` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8941 }, "name": "matchScope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-invalidfallbackbehavior" }, "remarks": "- `EVALUATE_AS_STRING` - Inspect the body as plain text. AWS WAF applies the text transformations and inspection criteria that you defined for the JSON inspection to the body text string.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.\n\nIf you don't provide this setting, AWS WAF parses and evaluates the content only up to the first parsing failure that it encounters.\n\nAWS WAF does its best to parse the entire JSON body, but might be forced to stop for reasons such as invalid characters, duplicate keys, truncation, and any content whose root node isn't an object or an array.\n\nAWS WAF parses the JSON in the following examples as two valid key, value pairs:\n\n- Missing comma: `{\"key1\":\"value1\"\"key2\":\"value2\"}`\n- Missing colon: `{\"key1\":\"value1\",\"key2\"\"value2\"}`\n- Extra colons: `{\"key1\"::\"value1\",\"key2\"\"value2\"}`", "stability": "external", "summary": "What AWS WAF should do if it fails to completely parse the JSON body. The options are the following:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8929 }, "name": "invalidFallbackBehavior", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-oversizehandling" }, "remarks": "AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. If the body is larger than the limit, the underlying host service only forwards the contents that are below the limit to AWS WAF for inspection.\n\nThe default limit is 8 KB (8,192 kilobytes) for regional resources and 16 KB (16,384 kilobytes) for CloudFront distributions. For CloudFront distributions, you can increase the limit in the web ACL `AssociationConfig` , for additional processing fees.\n\nThe options for oversize handling are the following:\n\n- `CONTINUE` - Inspect the available body contents normally, according to the rule inspection criteria.\n- `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.\n- `NO_MATCH` - Treat the web request as not matching the rule statement.\n\nYou can combine the `MATCH` or `NO_MATCH` settings for oversize handling with your rule and web ACL action settings, so that you block any request whose body is over the limit.\n\nDefault: `CONTINUE`", "stability": "external", "summary": "What AWS WAF should do if the body is larger than AWS WAF can inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 8959 }, "name": "oversizeHandling", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.JsonBodyProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.JsonMatchPatternProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html", "exampleMetadata": "fixture=_generated" }, "remarks": "AWS WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the `FieldToMatch` option `JsonBody` .", "stability": "external", "summary": "The patterns to look for in the JSON body.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\nconst jsonMatchPatternProperty: wafv2.CfnWebACL.JsonMatchPatternProperty = {\n all: all,\n includedPaths: ['includedPaths'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.JsonMatchPatternProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9031 }, "name": "JsonMatchPatternProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html#cfn-wafv2-webacl-jsonmatchpattern-all" }, "remarks": "You must specify either this setting or the `IncludedPaths` setting, but not both.", "stability": "external", "summary": "Match all of the elements. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9039 }, "name": "all", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html#cfn-wafv2-webacl-jsonmatchpattern-includedpaths" }, "remarks": "Provide the include paths using JSON Pointer syntax. For example, `\"IncludedPaths\": [\"/dogs/0/name\", \"/dogs/1/name\"]` . For information about this syntax, see the Internet Engineering Task Force (IETF) documentation [JavaScript Object Notation (JSON) Pointer](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6901) .\n\nYou must specify either this setting or the `All` setting, but not both.\n\n> Don't use this option to include all paths. Instead, use the `All` setting.", "stability": "external", "summary": "Match only the specified include paths. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9051 }, "name": "includedPaths", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.JsonMatchPatternProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.LabelMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. If you do not provide the fully qualified name in your label match string, AWS WAF performs the search for labels that were added in the same context as the label match statement.", "stability": "external", "summary": "A rule statement to match against labels that have been added to the web request by rules that have already run in the web ACL.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst labelMatchStatementProperty: wafv2.CfnWebACL.LabelMatchStatementProperty = {\n key: 'key',\n scope: 'scope',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.LabelMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9185 }, "name": "LabelMatchStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html#cfn-wafv2-webacl-labelmatchstatement-key" }, "remarks": "- If the `Scope` indicates `LABEL` , then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name.\n- If the `Scope` indicates `NAMESPACE` , then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.\n\nLabels are case sensitive and components of a label must be separated by colon, for example `NS1:NS2:name` .", "stability": "external", "summary": "The string to match against. The setting you provide for this depends on the match statement's `Scope` setting:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9196 }, "name": "key", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html#cfn-wafv2-webacl-labelmatchstatement-scope" }, "stability": "external", "summary": "Specify whether you want to match using the label name or just the namespace." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9202 }, "name": "scope", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.LabelMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.LabelProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-label.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is used as an element of a label array in `RuleLabels` inside a rule.", "stability": "external", "summary": "A single label container.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst labelProperty: wafv2.CfnWebACL.LabelProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.LabelProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9115 }, "name": "LabelProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-label.html#cfn-wafv2-webacl-label-name" }, "stability": "external", "summary": "The label string." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9121 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.LabelProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ManagedRuleGroupConfigProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Use the `AWSManagedRulesBotControlRuleSet` configuration object to configure the protection level that you want the Bot Control rule group to use.", "stability": "external", "summary": "Additional information that's used by a managed rule group. Many managed rule groups don't require this.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst managedRuleGroupConfigProperty: wafv2.CfnWebACL.ManagedRuleGroupConfigProperty = {\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ManagedRuleGroupConfigProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9270 }, "name": "ManagedRuleGroupConfigProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-awsmanagedrulesatpruleset" }, "remarks": "Use this to provide login request information to the rule group. For web ACLs that protect CloudFront distributions, use this to also provide the information about how your distribution responds to login requests.\n\nThis configuration replaces the individual configuration fields in `ManagedRuleGroupConfig` and provides additional feature configuration.\n\nFor information about using the ATP managed rule group, see [AWS WAF Fraud Control account takeover prevention (ATP) rule group](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-atp.html) and [AWS WAF Fraud Control account takeover prevention (ATP)](https://docs.aws.amazon.com/waf/latest/developerguide/waf-atp.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Additional configuration for using the account takeover prevention (ATP) managed rule group, `AWSManagedRulesATPRuleSet` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9280 }, "name": "awsManagedRulesAtpRuleSet", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AWSManagedRulesATPRuleSetProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-awsmanagedrulesbotcontrolruleset" }, "remarks": "Use this to specify the inspection level that you want to use. For information about using the Bot Control managed rule group, see [AWS WAF Bot Control rule group](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html) and [AWS WAF Bot Control](https://docs.aws.amazon.com/waf/latest/developerguide/waf-bot-control.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Additional configuration for using the Bot Control managed rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9286 }, "name": "awsManagedRulesBotControlRuleSet", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AWSManagedRulesBotControlRuleSetProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-loginpath" }, "stability": "external", "summary": "> Instead of this setting, provide your configuration under `AWSManagedRulesATPRuleSet` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9292 }, "name": "loginPath", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-passwordfield" }, "stability": "external", "summary": "> Instead of this setting, provide your configuration under the request inspection configuration for `AWSManagedRulesATPRuleSet` or `AWSManagedRulesACFPRuleSet` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9298 }, "name": "passwordField", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldIdentifierProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-payloadtype" }, "stability": "external", "summary": "> Instead of this setting, provide your configuration under the request inspection configuration for `AWSManagedRulesATPRuleSet` or `AWSManagedRulesACFPRuleSet` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9304 }, "name": "payloadType", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-usernamefield" }, "stability": "external", "summary": "> Instead of this setting, provide your configuration under the request inspection configuration for `AWSManagedRulesATPRuleSet` or `AWSManagedRulesACFPRuleSet` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9310 }, "name": "usernameField", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldIdentifierProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ManagedRuleGroupConfigProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ManagedRuleGroupStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "To use this, provide the vendor name and the name of the rule group in this statement.\n\nYou cannot nest a `ManagedRuleGroupStatement` , for example for use inside a `NotStatement` or `OrStatement` . It can only be referenced as a top-level statement within a rule.", "stability": "external", "summary": "A rule statement used to run the rules that are defined in a managed rule group.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst managedRuleGroupStatementProperty: wafv2.CfnWebACL.ManagedRuleGroupStatementProperty = {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n version: 'version',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ManagedRuleGroupStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9388 }, "name": "ManagedRuleGroupStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-name" }, "remarks": "You use this, along with the vendor name, to identify the rule group.", "stability": "external", "summary": "The name of the managed rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9414 }, "name": "name", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-vendorname" }, "remarks": "You use this, along with the rule group name, to identify a rule group.", "stability": "external", "summary": "The name of the managed rule group vendor." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9434 }, "name": "vendorName", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-excludedrules" }, "remarks": "> Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .", "stability": "external", "summary": "Rules in the referenced rule group whose actions are set to `Count` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9396 }, "name": "excludedRules", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ExcludedRuleProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-managedrulegroupconfigs" }, "remarks": "The rule groups used for intelligent threat mitigation require additional configuration:\n\n- Use the `AWSManagedRulesACFPRuleSet` configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields.\n- Use the `AWSManagedRulesATPRuleSet` configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password.\n- Use the `AWSManagedRulesBotControlRuleSet` configuration object to configure the protection level that you want the Bot Control rule group to use.", "stability": "external", "summary": "Additional information that's used by a managed rule group. Many managed rule groups don't require this." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9408 }, "name": "managedRuleGroupConfigs", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ManagedRuleGroupConfigProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-ruleactionoverrides" }, "remarks": "You specify one override for each rule whose action you want to change.\n\nYou can use overrides for testing, for example you can override all of rule actions to `Count` and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.", "stability": "external", "summary": "Action settings to use in the place of the rule actions that are configured inside the rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9422 }, "name": "ruleActionOverrides", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleActionOverrideProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-scopedownstatement" }, "remarks": "Requests are only evaluated by the rule group if they match the scope-down statement. You can use any nestable `Statement` in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.", "stability": "external", "summary": "An optional nested statement that narrows the scope of the web requests that are evaluated by the managed rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9428 }, "name": "scopeDownStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.StatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-version" }, "remarks": "If you specify this, the version setting is fixed until you change it. If you don't specify this, AWS WAF uses the vendor's default version, and then keeps the version at the vendor's default when the vendor updates the managed rule group settings.", "stability": "external", "summary": "The version of the managed rule group to use." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9440 }, "name": "version", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ManagedRuleGroupStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.NotStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You provide one `Statement` within the `NotStatement` .", "stability": "external", "summary": "A logical rule statement used to negate the results of another rule statement.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst notStatementProperty: wafv2.CfnWebACL.NotStatementProperty = {\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.NotStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9521 }, "name": "NotStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatement.html#cfn-wafv2-webacl-notstatement-statement" }, "remarks": "You can use any statement that can be nested.", "stability": "external", "summary": "The statement to negate." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9527 }, "name": "statement", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.StatementProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.NotStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.OrStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You provide more than one `Statement` within the `OrStatement` .", "stability": "external", "summary": "A logical rule statement used to combine other rule statements with OR logic.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst orStatementProperty: wafv2.CfnWebACL.OrStatementProperty = {\n statements: [{\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.OrStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9589 }, "name": "OrStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatement.html#cfn-wafv2-webacl-orstatement-statements" }, "remarks": "You can use any statements that can be nested.", "stability": "external", "summary": "The statements to combine with OR logic." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9595 }, "name": "statements", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.StatementProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.OrStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.OverrideActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.\n\nYou can only use this for rule statements that reference a rule group, like `RuleGroupReferenceStatement` and `ManagedRuleGroupStatement` .\n\n> This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with `Count` action, in your rule group reference statement settings.", "stability": "external", "summary": "The action to use in the place of the action that results from the rule group evaluation.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const count: any;\ndeclare const none: any;\nconst overrideActionProperty: wafv2.CfnWebACL.OverrideActionProperty = {\n count: count,\n none: none,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.OverrideActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9661 }, "name": "OverrideActionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html#cfn-wafv2-webacl-overrideaction-count" }, "remarks": "> This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with `Count` action, in your rule group reference statement settings.", "stability": "external", "summary": "Override the rule group evaluation result to count only." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9669 }, "name": "count", "optional": true, "type": { "primitive": "any" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html#cfn-wafv2-webacl-overrideaction-none" }, "remarks": "This is the most common setting.", "stability": "external", "summary": "Don't override the rule group evaluation result." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9675 }, "name": "none", "optional": true, "type": { "primitive": "any" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.OverrideActionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.RateBasedStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You can use this to put a temporary block on requests from an IP address that is sending excessive requests.\n\nAWS WAF tracks and manages web requests separately for each instance of a rate-based rule that you use. For example, if you provide the same rate-based rule settings in two web ACLs, each of the two rule statements represents a separate instance of the rate-based rule and gets its own tracking and management by AWS WAF . If you define a rate-based rule inside a rule group, and then use that rule group in multiple places, each use creates a separate instance of the rate-based rule that gets its own tracking and management by AWS WAF .\n\nWhen the rule action triggers, AWS WAF blocks additional requests from the IP address until the request rate falls below the limit.\n\nYou can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts requests that match the nested statement. For example, based on recent requests that you have seen from an attacker, you might create a rate-based rule with a nested AND rule statement that contains the following nested statements:\n\n- An IP match statement with an IP set that specifies the address 192.0.2.44.\n- A string match statement that searches in the User-Agent header for the string BadBot.\n\nIn this rate-based rule, you also define a rate limit. For this example, the rate limit is 1,000. Requests that meet the criteria of both of the nested statements are counted. If the count exceeds 1,000 requests per five minutes, the rule action triggers. Requests that do not meet the criteria of both of the nested statements are not counted towards the rate limit and are not affected by this rule.\n\nYou cannot nest a `RateBasedStatement` inside another statement, for example inside a `NotStatement` or `OrStatement` . You can define a `RateBasedStatement` inside a web ACL and inside a rule group.", "stability": "external", "summary": "A rate-based rule tracks the rate of requests for each originating IP address, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any 5-minute time span.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst rateBasedStatementProperty: wafv2.CfnWebACL.RateBasedStatementProperty = {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RateBasedStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9752 }, "name": "RateBasedStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-aggregatekeytype" }, "remarks": "- `IP` - Aggregate the request counts on the IP address from the web request origin.\n- `FORWARDED_IP` - Aggregate the request counts on the first IP address in an HTTP header. If you use this, configure the `ForwardedIPConfig` , to specify the header to use.\n\n> You can only use the `IP` and `FORWARDED_IP` key types.", "stability": "external", "summary": "Setting that indicates how to aggregate the request counts. The options are the following:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9763 }, "name": "aggregateKeyType", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-limit" }, "remarks": "If the statement includes a `ScopeDownStatement` , this limit is applied only to the requests that match the statement.", "stability": "external", "summary": "The limit on requests per 5-minute period for a single originating IP address." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9779 }, "name": "limit", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-forwardedipconfig" }, "remarks": "Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.\n\n> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.\n\nThis is required if you specify a forwarded IP in the rule's aggregate key settings.", "stability": "external", "summary": "The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9773 }, "name": "forwardedIpConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ForwardedIPConfigurationProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-scopedownstatement" }, "remarks": "Requests are only tracked by the rate-based statement if they match the scope-down statement. You can use any nestable `Statement` in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.", "stability": "external", "summary": "An optional nested statement that narrows the scope of the web requests that are evaluated by the rate-based statement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9785 }, "name": "scopeDownStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.StatementProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.RateBasedStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.RegexMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexmatchstatement.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "A rule statement used to search web request components for a match against a single regular expression.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst regexMatchStatementProperty: wafv2.CfnWebACL.RegexMatchStatementProperty = {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RegexMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9857 }, "name": "RegexMatchStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexmatchstatement.html#cfn-wafv2-webacl-regexmatchstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9863 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexmatchstatement.html#cfn-wafv2-webacl-regexmatchstatement-regexstring" }, "stability": "external", "summary": "The string representing the regular expression." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9869 }, "name": "regexString", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexmatchstatement.html#cfn-wafv2-webacl-regexmatchstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9875 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.RegexMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.RegexPatternSetReferenceStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "To use this, create a `RegexPatternSet` that specifies the expressions that you want to detect, then use that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set.\n\nEach regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.", "stability": "external", "summary": "A rule statement used to search web request components for matches with regular expressions.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst regexPatternSetReferenceStatementProperty: wafv2.CfnWebACL.RegexPatternSetReferenceStatementProperty = {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RegexPatternSetReferenceStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9947 }, "name": "RegexPatternSetReferenceStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the `RegexPatternSet` that this statement references." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9953 }, "name": "arn", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9959 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 9965 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.RegexPatternSetReferenceStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.RequestInspectionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspection.html", "exampleMetadata": "fixture=_generated" }, "remarks": "This is part of the `AWSManagedRulesATPRuleSet` configuration in `ManagedRuleGroupConfig` .\n\nIn these settings, you specify how your application accepts login attempts by providing the request payload type and the names of the fields within the request body where the username and password are provided.", "stability": "external", "summary": "The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst requestInspectionProperty: wafv2.CfnWebACL.RequestInspectionProperty = {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RequestInspectionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10039 }, "name": "RequestInspectionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspection.html#cfn-wafv2-webacl-requestinspection-passwordfield" }, "remarks": "How you specify this depends on the request inspection payload type.\n\n- For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation [JavaScript Object Notation (JSON) Pointer](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6901) .\n\nFor example, for the JSON payload `{ \"form\": { \"password\": \"THE_PASSWORD\" } }` , the password field specification is `/form/password` .\n- For form encoded payload types, use the HTML form names.\n\nFor example, for an HTML form with the input element named `password1` , the password field specification is `password1` .", "stability": "external", "summary": "The name of the field in the request payload that contains your customer's password." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10054 }, "name": "passwordField", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldIdentifierProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspection.html#cfn-wafv2-webacl-requestinspection-payloadtype" }, "stability": "external", "summary": "The payload type for your login endpoint, either JSON or form encoded." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10060 }, "name": "payloadType", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspection.html#cfn-wafv2-webacl-requestinspection-usernamefield" }, "remarks": "How you specify this depends on the request inspection payload type.\n\n- For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation [JavaScript Object Notation (JSON) Pointer](https://docs.aws.amazon.com/https://tools.ietf.org/html/rfc6901) .\n\nFor example, for the JSON payload `{ \"form\": { \"username\": \"THE_USERNAME\" } }` , the username field specification is `/form/username` .\n- For form encoded payload types, use the HTML form names.\n\nFor example, for an HTML form with the input element named `username1` , the username field specification is `username1`", "stability": "external", "summary": "The name of the field in the request payload that contains your customer's username." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10075 }, "name": "usernameField", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldIdentifierProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.RequestInspectionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionBodyContainsProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html", "exampleMetadata": "fixture=_generated" }, "remarks": "AWS WAF can inspect the first 65,536 bytes (64 KB) of the response body. This is part of the `ResponseInspection` configuration for `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` .\n\n> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.", "stability": "external", "summary": "Configures inspection of the response body.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst responseInspectionBodyContainsProperty: wafv2.CfnWebACL.ResponseInspectionBodyContainsProperty = {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionBodyContainsProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10249 }, "name": "ResponseInspectionBodyContainsProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html#cfn-wafv2-webacl-responseinspectionbodycontains-failurestrings" }, "remarks": "To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.\n\nJSON example: `\"FailureStrings\": [ \"Request failed\" ]`", "stability": "external", "summary": "Strings in the body of the response that indicate a failed login or account creation attempt." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10257 }, "name": "failureStrings", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html#cfn-wafv2-webacl-responseinspectionbodycontains-successstrings" }, "remarks": "To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.\n\nJSON examples: `\"SuccessStrings\": [ \"Login successful\" ]` and `\"SuccessStrings\": [ \"Account creation successful\", \"Welcome to our site!\" ]`", "stability": "external", "summary": "Strings in the body of the response that indicate a successful login or account creation attempt." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10265 }, "name": "successStrings", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ResponseInspectionBodyContainsProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionHeaderProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionheader.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.", "stability": "external", "summary": "Configures inspection of the response header. This is part of the `ResponseInspection` configuration for `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst responseInspectionHeaderProperty: wafv2.CfnWebACL.ResponseInspectionHeaderProperty = {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionHeaderProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10333 }, "name": "ResponseInspectionHeaderProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionheader.html#cfn-wafv2-webacl-responseinspectionheader-failurevalues" }, "remarks": "To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.\n\nJSON examples: `\"FailureValues\": [ \"LoginFailed\", \"Failed login\" ]` and `\"FailureValues\": [ \"AccountCreationFailed\" ]`", "stability": "external", "summary": "Values in the response header with the specified name that indicate a failed login or account creation attempt." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10341 }, "name": "failureValues", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionheader.html#cfn-wafv2-webacl-responseinspectionheader-name" }, "remarks": "JSON example: `\"Name\": [ \"RequestResult\" ]`", "stability": "external", "summary": "The name of the header to match against. The name must be an exact match, including case." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10349 }, "name": "name", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionheader.html#cfn-wafv2-webacl-responseinspectionheader-successvalues" }, "remarks": "To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.\n\nJSON examples: `\"SuccessValues\": [ \"LoginPassed\", \"Successful login\" ]` and `\"SuccessValues\": [ \"AccountCreated\", \"Successful account creation\" ]`", "stability": "external", "summary": "Values in the response header with the specified name that indicate a successful login or account creation attempt." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10357 }, "name": "successValues", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ResponseInspectionHeaderProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionJsonProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html", "exampleMetadata": "fixture=_generated" }, "remarks": "AWS WAF can inspect the first 65,536 bytes (64 KB) of the response JSON. This is part of the `ResponseInspection` configuration for `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` .\n\n> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.", "stability": "external", "summary": "Configures inspection of the response JSON.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst responseInspectionJsonProperty: wafv2.CfnWebACL.ResponseInspectionJsonProperty = {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionJsonProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10429 }, "name": "ResponseInspectionJsonProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-failurevalues" }, "remarks": "To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.\n\nJSON example: `\"FailureValues\": [ \"False\", \"Failed\" ]`", "stability": "external", "summary": "Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10437 }, "name": "failureValues", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-identifier" }, "remarks": "The identifier must be an exact match, including case.\n\nJSON examples: `\"Identifier\": [ \"/login/success\" ]` and `\"Identifier\": [ \"/sign-up/success\" ]`", "stability": "external", "summary": "The identifier for the value to match against in the JSON." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10445 }, "name": "identifier", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-successvalues" }, "remarks": "To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.\n\nJSON example: `\"SuccessValues\": [ \"True\", \"Succeeded\" ]`", "stability": "external", "summary": "Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10453 }, "name": "successValues", "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ResponseInspectionJsonProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.\n\nThe rule groups evaluates the responses that your protected resources send back to client login and account creation attempts, keeping count of successful and failed attempts from each IP address and client session. Using this information, the rule group labels and mitigates requests from client sessions and IP addresses with too much suspicious activity in a short amount of time.\n\nThis is part of the `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` configurations in `ManagedRuleGroupConfig` .\n\nEnable response inspection by configuring exactly one component of the response to inspect, for example, `Header` or `StatusCode` . You can't configure more than one component for inspection. If you don't configure any of the response inspection options, response inspection is disabled.", "stability": "external", "summary": "The criteria for inspecting responses to login requests and account creation requests, used by the ATP and ACFP rule groups to track login and account creation success and failure rates.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst responseInspectionProperty: wafv2.CfnWebACL.ResponseInspectionProperty = {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10153 }, "name": "ResponseInspectionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html#cfn-wafv2-webacl-responseinspection-bodycontains" }, "remarks": "AWS WAF can inspect the first 65,536 bytes (64 KB) of the response body.", "stability": "external", "summary": "Configures inspection of the response body for success and failure indicators." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10159 }, "name": "bodyContains", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionBodyContainsProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html#cfn-wafv2-webacl-responseinspection-header" }, "stability": "external", "summary": "Configures inspection of the response header for success and failure indicators." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10165 }, "name": "header", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionHeaderProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html#cfn-wafv2-webacl-responseinspection-json" }, "remarks": "AWS WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.", "stability": "external", "summary": "Configures inspection of the response JSON for success and failure indicators." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10171 }, "name": "json", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionJsonProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html#cfn-wafv2-webacl-responseinspection-statuscode" }, "stability": "external", "summary": "Configures inspection of the response status code for success and failure indicators." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10177 }, "name": "statusCode", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ResponseInspectionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionstatuscode.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.", "stability": "external", "summary": "Configures inspection of the response status code. This is part of the `ResponseInspection` configuration for `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst responseInspectionStatusCodeProperty: wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty = {\n failureCodes: [123],\n successCodes: [123],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ResponseInspectionStatusCodeProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10525 }, "name": "ResponseInspectionStatusCodeProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionstatuscode.html#cfn-wafv2-webacl-responseinspectionstatuscode-failurecodes" }, "remarks": "To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.\n\nJSON example: `\"FailureCodes\": [ 400, 404 ]`", "stability": "external", "summary": "Status codes in the response that indicate a failed login or account creation attempt." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10533 }, "name": "failureCodes", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "primitive": "number" }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionstatuscode.html#cfn-wafv2-webacl-responseinspectionstatuscode-successcodes" }, "remarks": "To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.\n\nJSON example: `\"SuccessCodes\": [ 200, 201 ]`", "stability": "external", "summary": "Status codes in the response that indicate a successful login or account creation attempt." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10541 }, "name": "successCodes", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "primitive": "number" }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.ResponseInspectionStatusCodeProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.RuleActionOverrideProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleactionoverride.html", "exampleMetadata": "fixture=_generated" }, "remarks": "You specify one override for each rule whose action you want to change.\n\nYou can use overrides for testing, for example you can override all of rule actions to `Count` and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.", "stability": "external", "summary": "Action setting to use in the place of a rule action that is configured inside the rule group.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst ruleActionOverrideProperty: wafv2.CfnWebACL.RuleActionOverrideProperty = {\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleActionOverrideProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10893 }, "name": "RuleActionOverrideProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleactionoverride.html#cfn-wafv2-webacl-ruleactionoverride-actiontouse" }, "stability": "external", "summary": "The override action to use, in place of the configured action of the rule in the rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10899 }, "name": "actionToUse", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleactionoverride.html#cfn-wafv2-webacl-ruleactionoverride-name" }, "stability": "external", "summary": "The name of the rule to override." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10905 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.RuleActionOverrideProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.RuleActionProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Settings at the web ACL level can override the rule action setting.", "stability": "external", "summary": "The action that AWS WAF should take on a web request when it matches a rule's statement.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst ruleActionProperty: wafv2.CfnWebACL.RuleActionProperty = {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleActionProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10775 }, "name": "RuleActionProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-allow" }, "stability": "external", "summary": "Instructs AWS WAF to allow the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10781 }, "name": "allow", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AllowActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-block" }, "stability": "external", "summary": "Instructs AWS WAF to block the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10787 }, "name": "block", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.BlockActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-captcha" }, "remarks": "- If the request includes a valid, unexpired `CAPTCHA` token, AWS WAF allows the web request inspection to proceed to the next rule, similar to a `CountAction` .\n- If the request doesn't include a valid, unexpired `CAPTCHA` token, AWS WAF discontinues the web ACL evaluation of the request and blocks it from going to its intended destination.\n\nAWS WAF generates a response that it sends back to the client, which includes the following:\n\n- The header `x-amzn-waf-action` with a value of `captcha` .\n- The HTTP status code `405 Method Not Allowed` .\n- If the request contains an `Accept` header with a value of `text/html` , the response includes a `CAPTCHA` challenge.\n\nYou can configure the expiration time in the `CaptchaConfig` `ImmunityTimeProperty` setting at the rule and web ACL level. The rule setting overrides the web ACL setting.\n\nThis action option is available for rules. It isn't available for web ACL default actions.", "stability": "external", "summary": "Specifies that AWS WAF should run a `CAPTCHA` check against the request:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10806 }, "name": "captcha", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CaptchaActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-challenge" }, "stability": "external", "summary": "Instructs AWS WAF to run a `Challenge` check against the web request." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10812 }, "name": "challenge", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ChallengeActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-count" }, "stability": "external", "summary": "Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10818 }, "name": "count", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CountActionProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.RuleActionProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.RuleGroupReferenceStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.\n\nYou cannot nest a `RuleGroupReferenceStatement` , for example for use inside a `NotStatement` or `OrStatement` . You can only use a rule group reference statement at the top level inside a web ACL.", "stability": "external", "summary": "A rule statement used to run the rules that are defined in a `RuleGroup` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst ruleGroupReferenceStatementProperty: wafv2.CfnWebACL.RuleGroupReferenceStatementProperty = {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleGroupReferenceStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10973 }, "name": "RuleGroupReferenceStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-arn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the entity." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10979 }, "name": "arn", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-excludedrules" }, "remarks": "> Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .", "stability": "external", "summary": "Rules in the referenced rule group whose actions are set to `Count` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10987 }, "name": "excludedRules", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ExcludedRuleProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-ruleactionoverrides" }, "remarks": "You specify one override for each rule whose action you want to change.\n\nYou can use overrides for testing, for example you can override all of rule actions to `Count` and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.", "stability": "external", "summary": "Action settings to use in the place of the rule actions that are configured inside the rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10995 }, "name": "ruleActionOverrides", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleActionOverrideProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.RuleGroupReferenceStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.RuleProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html", "exampleMetadata": "fixture=_generated" }, "remarks": "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.", "stability": "external", "summary": "A single rule, which you can use in a `WebACL` or `RuleGroup` to identify web requests that you want to allow, block, or count.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const count: any;\ndeclare const method: any;\ndeclare const none: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst ruleProperty: wafv2.CfnWebACL.RuleProperty = {\n name: 'name',\n priority: 123,\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n action: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n captchaConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n challengeConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n overrideAction: {\n count: count,\n none: none,\n },\n ruleLabels: [{\n name: 'name',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10607 }, "name": "RuleProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-name" }, "remarks": "You can't change the name of a `Rule` after you create it.", "stability": "external", "summary": "The name of the rule." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10638 }, "name": "name", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-priority" }, "remarks": "AWS WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.", "stability": "external", "summary": "If you define more than one `Rule` in a `WebACL` , AWS WAF evaluates each request against the `Rules` in order based on the value of `Priority` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10657 }, "name": "priority", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-statement" }, "stability": "external", "summary": "The AWS WAF processing statement for the rule, for example `ByteMatchStatement` or `SizeConstraintStatement` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10680 }, "name": "statement", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.StatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-visibilityconfig" }, "stability": "external", "summary": "Defines and enables Amazon CloudWatch metrics and web request sample collection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10686 }, "name": "visibilityConfig", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.VisibilityConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-action" }, "remarks": "Settings at the web ACL level can override the rule action setting.\n\nThis is used only for rules whose statements don't reference a rule group. Rule statements that reference a rule group are `RuleGroupReferenceStatement` and `ManagedRuleGroupStatement` .\n\nYou must set either this `Action` setting or the rule's `OverrideAction` , but not both:\n\n- If the rule statement doesn't reference a rule group, you must set this rule action setting and you must not set the rule's override action setting.\n- If the rule statement references a rule group, you must not set this action setting, because the actions are already set on the rules inside the rule group. You must set the rule's override action setting to indicate specifically whether to override the actions that are set on the rules in the rule group.", "stability": "external", "summary": "The action that AWS WAF should take on a web request when it matches the rule's statement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10620 }, "name": "action", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-captchaconfig" }, "remarks": "If you don't specify this, AWS WAF uses the `CAPTCHA` configuration that's defined for the web ACL.", "stability": "external", "summary": "Specifies how AWS WAF should handle `CAPTCHA` evaluations." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10626 }, "name": "captchaConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CaptchaConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-challengeconfig" }, "remarks": "If you don't specify this, AWS WAF uses the challenge configuration that's defined for the web ACL.", "stability": "external", "summary": "Specifies how AWS WAF should handle `Challenge` evaluations." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10632 }, "name": "challengeConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ChallengeConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-overrideaction" }, "remarks": "This is used only for rules whose statements reference a rule group. Rule statements that reference a rule group are `RuleGroupReferenceStatement` and `ManagedRuleGroupStatement` .\n\nSet the override action to none to leave the rule group rule actions in effect. Set it to count to only count matches, regardless of the rule action settings.\n\nYou must set either this `OverrideAction` setting or the `Action` setting, but not both:\n\n- If the rule statement references a rule group, you must set this override action setting and you must not set the rule's action setting.\n- If the rule statement doesn't reference a rule group, you must set the rule action setting and you must not set the rule's override action setting.", "stability": "external", "summary": "The override action to apply to the rules in a rule group, instead of the individual rule action settings." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10651 }, "name": "overrideAction", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.OverrideActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-rulelabels" }, "remarks": "AWS WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.\n\nRules that run after this rule in the web ACL can match against these labels using a `LabelMatchStatement` .\n\nFor each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:\n\n- Separate each component of the label with a colon.\n- Each namespace or name can have up to 128 characters.\n- You can specify up to 5 namespaces in a label.\n- Don't use the following reserved words in your label specification: `aws` , `waf` , `managed` , `rulegroup` , `webacl` , `regexpatternset` , or `ipset` .\n\nFor example, `myLabelName` or `nameSpace1:nameSpace2:myLabelName` .", "stability": "external", "summary": "Labels to apply to web requests that match the rule match statement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 10674 }, "name": "ruleLabels", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.LabelProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.RuleProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.SingleHeaderProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singleheader.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The name isn't case sensitive.\n\nYou can filter and inspect all headers with the `FieldToMatch` setting `Headers` .\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nExample JSON: `\"SingleHeader\": { \"Name\": \"haystack\" }`", "stability": "external", "summary": "Inspect one of the headers in the web request, identified by name, for example, `User-Agent` or `Referer` .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst singleHeaderProperty: wafv2.CfnWebACL.SingleHeaderProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.SingleHeaderProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11069 }, "name": "SingleHeaderProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singleheader.html#cfn-wafv2-webacl-singleheader-name" }, "stability": "external", "summary": "The name of the query header to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11075 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.SingleHeaderProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.SingleQueryArgumentProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singlequeryargument.html", "exampleMetadata": "fixture=_generated" }, "remarks": "The name isn't case sensitive.\n\nThis is used to indicate the web request component to inspect, in the `FieldToMatch` specification.\n\nExample JSON: `\"SingleQueryArgument\": { \"Name\": \"myArgument\" }`", "stability": "external", "summary": "Inspect one query argument in the web request, identified by name, for example *UserName* or *SalesRegion* .", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst singleQueryArgumentProperty: wafv2.CfnWebACL.SingleQueryArgumentProperty = {\n name: 'name',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.SingleQueryArgumentProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11141 }, "name": "SingleQueryArgumentProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singlequeryargument.html#cfn-wafv2-webacl-singlequeryargument-name" }, "stability": "external", "summary": "The name of the query argument to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11147 }, "name": "name", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.SingleQueryArgumentProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.SizeConstraintStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.\n\nIf you configure AWS WAF to inspect the request body, AWS WAF inspects only the number of bytes of the body up to the limit for the web ACL. By default, for regional web ACLs, this limit is 8 KB (8,192 kilobytes) and for CloudFront web ACLs, this limit is 16 KB (16,384 kilobytes). For CloudFront web ACLs, you can increase the limit in the web ACL `AssociationConfig` , for additional fees. If you know that the request body for your web requests should never exceed the inspection limit, you could use a size constraint statement to block requests that have a larger request body size.\n\nIf you choose URI for the value of Part of the request to filter on, the slash (/) in the URI counts as one character. For example, the URI `/logo.jpg` is nine characters long.", "stability": "external", "summary": "A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<).", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst sizeConstraintStatementProperty: wafv2.CfnWebACL.SizeConstraintStatementProperty = {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.SizeConstraintStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11213 }, "name": "SizeConstraintStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-comparisonoperator" }, "stability": "external", "summary": "The operator to use to compare the request part to the size setting." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11219 }, "name": "comparisonOperator", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11225 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-size" }, "stability": "external", "summary": "The size, in byte, to compare to the request part, after any transformations." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11231 }, "name": "size", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11237 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.SizeConstraintStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.SqliMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.", "stability": "external", "summary": "A rule statement that inspects for malicious SQL code.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst sqliMatchStatementProperty: wafv2.CfnWebACL.SqliMatchStatementProperty = {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.SqliMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11311 }, "name": "SqliMatchStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11317 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11335 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-sensitivitylevel" }, "remarks": "`HIGH` detects more attacks, but might generate more false positives, especially if your web requests frequently contain unusual strings. For information about identifying and mitigating false positives, see [Testing and tuning](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-testing.html) in the *AWS WAF Developer Guide* .\n\n`LOW` is generally a better choice for resources that already have other protections against SQL injection attacks or that have a low tolerance for false positives.\n\nDefault: `LOW`", "stability": "external", "summary": "The sensitivity that you want AWS WAF to use to inspect for SQL injection attacks." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11329 }, "name": "sensitivityLevel", "optional": true, "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.SqliMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.StatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "The processing guidance for a rule, used by AWS WAF to determine whether a web request matches the rule.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const andStatementProperty_: wafv2.CfnWebACL.AndStatementProperty;\ndeclare const managedRuleGroupStatementProperty_: wafv2.CfnWebACL.ManagedRuleGroupStatementProperty;\ndeclare const method: any;\ndeclare const notStatementProperty_: wafv2.CfnWebACL.NotStatementProperty;\ndeclare const orStatementProperty_: wafv2.CfnWebACL.OrStatementProperty;\ndeclare const queryString: any;\ndeclare const rateBasedStatementProperty_: wafv2.CfnWebACL.RateBasedStatementProperty;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst statementProperty: wafv2.CfnWebACL.StatementProperty = {\n andStatement: {\n statements: [{\n andStatement: andStatementProperty_,\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n }],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: managedRuleGroupStatementProperty_,\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n version: 'version',\n },\n notStatement: {\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: notStatementProperty_,\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n },\n orStatement: {\n statements: [{\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: orStatementProperty_,\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n }],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: rateBasedStatementProperty_,\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.StatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11404 }, "name": "StatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-andstatement" }, "remarks": "You provide more than one `Statement` within the `AndStatement` .", "stability": "external", "summary": "A logical rule statement used to combine other rule statements with AND logic." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11410 }, "name": "andStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.AndStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-bytematchstatement" }, "remarks": "The byte match statement provides the bytes to search for, the location in requests that you want AWS WAF to search, and other settings. The bytes to search for are typically a string that corresponds with ASCII characters. In the AWS WAF console and the developer guide, this is called a string match statement.", "stability": "external", "summary": "A rule statement that defines a string match search for AWS WAF to apply to web requests." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11416 }, "name": "byteMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ByteMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-geomatchstatement" }, "remarks": "A geo match rule labels every request that it inspects regardless of whether it finds a match.\n\n- To manage requests only by country, you can use this statement by itself and specify the countries that you want to match against in the `CountryCodes` array.\n- Otherwise, configure your geo match rule with Count action so that it only labels requests. Then, add one or more label match rules to run after the geo match rule and configure them to match against the geographic labels and handle the requests as needed.\n\nAWS WAF labels requests using the alpha-2 country and region codes from the International Organization for Standardization (ISO) 3166 standard. AWS WAF determines the codes using either the IP address in the web request origin or, if you specify it, the address in the geo match `ForwardedIPConfig` .\n\nIf you use the web request origin, the label formats are `awswaf:clientip:geo:region:-` and `awswaf:clientip:geo:country:` .\n\nIf you use a forwarded IP address, the label formats are `awswaf:forwardedip:geo:region:-` and `awswaf:forwardedip:geo:country:` .\n\nFor additional details, see [Geographic match rule statement](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-type-geo-match.html) in the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .", "stability": "external", "summary": "A rule statement that labels web requests by country and region and that matches against web requests based on country code." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11433 }, "name": "geoMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.GeoMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-ipsetreferencestatement" }, "remarks": "To use this, create an `IPSet` that specifies the addresses you want to detect, then use the ARN of that set in this statement.\n\nEach IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.", "stability": "external", "summary": "A rule statement used to detect web requests coming from particular IP addresses or address ranges." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11441 }, "name": "ipSetReferenceStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.IPSetReferenceStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-labelmatchstatement" }, "remarks": "The label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label. If you do not provide the fully qualified name in your label match string, AWS WAF performs the search for labels that were added in the same context as the label match statement.", "stability": "external", "summary": "A rule statement to match against labels that have been added to the web request by rules that have already run in the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11449 }, "name": "labelMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.LabelMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-managedrulegroupstatement" }, "remarks": "To use this, provide the vendor name and the name of the rule group in this statement.\n\nYou cannot nest a `ManagedRuleGroupStatement` , for example for use inside a `NotStatement` or `OrStatement` . It can only be referenced as a top-level statement within a rule.", "stability": "external", "summary": "A rule statement used to run the rules that are defined in a managed rule group." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11457 }, "name": "managedRuleGroupStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ManagedRuleGroupStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-notstatement" }, "remarks": "You provide one `Statement` within the `NotStatement` .", "stability": "external", "summary": "A logical rule statement used to negate the results of another rule statement." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11463 }, "name": "notStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.NotStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-orstatement" }, "remarks": "You provide more than one `Statement` within the `OrStatement` .", "stability": "external", "summary": "A logical rule statement used to combine other rule statements with OR logic." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11469 }, "name": "orStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.OrStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-ratebasedstatement" }, "remarks": "You can use this to put a temporary block on requests from an IP address that is sending excessive requests.\n\nAWS WAF tracks and manages web requests separately for each instance of a rate-based rule that you use. For example, if you provide the same rate-based rule settings in two web ACLs, each of the two rule statements represents a separate instance of the rate-based rule and gets its own tracking and management by AWS WAF . If you define a rate-based rule inside a rule group, and then use that rule group in multiple places, each use creates a separate instance of the rate-based rule that gets its own tracking and management by AWS WAF .\n\nWhen the rule action triggers, AWS WAF blocks additional requests from the IP address until the request rate falls below the limit.\n\nYou can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts requests that match the nested statement. For example, based on recent requests that you have seen from an attacker, you might create a rate-based rule with a nested AND rule statement that contains the following nested statements:\n\n- An IP match statement with an IP set that specifies the address 192.0.2.44.\n- A string match statement that searches in the User-Agent header for the string BadBot.\n\nIn this rate-based rule, you also define a rate limit. For this example, the rate limit is 1,000. Requests that meet the criteria of both of the nested statements are counted. If the count exceeds 1,000 requests per five minutes, the rule action triggers. Requests that do not meet the criteria of both of the nested statements are not counted towards the rate limit and are not affected by this rule.\n\nYou cannot nest a `RateBasedStatement` inside another statement, for example inside a `NotStatement` or `OrStatement` . You can define a `RateBasedStatement` inside a web ACL and inside a rule group.", "stability": "external", "summary": "A rate-based rule tracks the rate of requests for each originating IP address, and triggers the rule action when the rate exceeds a limit that you specify on the number of requests in any 5-minute time span." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11488 }, "name": "rateBasedStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RateBasedStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-regexmatchstatement" }, "stability": "external", "summary": "A rule statement used to search web request components for a match against a single regular expression." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11494 }, "name": "regexMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RegexMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-regexpatternsetreferencestatement" }, "remarks": "To use this, create a `RegexPatternSet` that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set.\n\nEach regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, AWS WAF automatically updates all rules that reference it.", "stability": "external", "summary": "A rule statement used to search web request components for matches with regular expressions." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11502 }, "name": "regexPatternSetReferenceStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RegexPatternSetReferenceStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-rulegroupreferencestatement" }, "remarks": "To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.\n\nYou cannot nest a `RuleGroupReferenceStatement` , for example for use inside a `NotStatement` or `OrStatement` . You can only use a rule group reference statement at the top level inside a web ACL.", "stability": "external", "summary": "A rule statement used to run the rules that are defined in a `RuleGroup` ." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11510 }, "name": "ruleGroupReferenceStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleGroupReferenceStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-sizeconstraintstatement" }, "remarks": "For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.\n\nIf you configure AWS WAF to inspect the request body, AWS WAF inspects only the number of bytes of the body up to the limit for the web ACL. By default, for regional web ACLs, this limit is 8 KB (8,192 kilobytes) and for CloudFront web ACLs, this limit is 16 KB (16,384 kilobytes). For CloudFront web ACLs, you can increase the limit in the web ACL `AssociationConfig` , for additional fees. If you know that the request body for your web requests should never exceed the inspection limit, you could use a size constraint statement to block requests that have a larger request body size.\n\nIf you choose URI for the value of Part of the request to filter on, the slash (/) in the URI counts as one character. For example, the URI `/logo.jpg` is nine characters long.", "stability": "external", "summary": "A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than (<)." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11520 }, "name": "sizeConstraintStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.SizeConstraintStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-sqlimatchstatement" }, "remarks": "Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.", "stability": "external", "summary": "A rule statement that inspects for malicious SQL code." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11526 }, "name": "sqliMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.SqliMatchStatementProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-xssmatchstatement" }, "remarks": "In XSS attacks, the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious client-site scripts into other legitimate web browsers.", "stability": "external", "summary": "A rule statement that inspects for cross-site scripting (XSS) attacks." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11532 }, "name": "xssMatchStatement", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.XssMatchStatementProperty" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.StatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.TextTransformationProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst textTransformationProperty: wafv2.CfnWebACL.TextTransformationProperty = {\n priority: 123,\n type: 'type',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.TextTransformationProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11635 }, "name": "TextTransformationProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html#cfn-wafv2-webacl-texttransformation-priority" }, "remarks": "AWS WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. The priorities don't need to be consecutive, but they must all be different.", "stability": "external", "summary": "Sets the relative processing order for multiple transformations." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11641 }, "name": "priority", "type": { "primitive": "number" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html#cfn-wafv2-webacl-texttransformation-type" }, "remarks": "*BASE64_DECODE* - Decode a `Base64` -encoded string.\n\n*BASE64_DECODE_EXT* - Decode a `Base64` -encoded string, but use a forgiving implementation that ignores characters that aren't valid.\n\n*CMD_LINE* - Command-line transformations. These are helpful in reducing effectiveness of attackers who inject an operating system command-line command and use unusual formatting to disguise some or all of the command.\n\n- Delete the following characters: `\\ \" ' ^`\n- Delete spaces before the following characters: `/ (`\n- Replace the following characters with a space: `, ;`\n- Replace multiple spaces with one space\n- Convert uppercase letters (A-Z) to lowercase (a-z)\n\n*COMPRESS_WHITE_SPACE* - Replace these characters with a space character (decimal 32):\n\n- `\\f` , formfeed, decimal 12\n- `\\t` , tab, decimal 9\n- `\\n` , newline, decimal 10\n- `\\r` , carriage return, decimal 13\n- `\\v` , vertical tab, decimal 11\n- Non-breaking space, decimal 160\n\n`COMPRESS_WHITE_SPACE` also replaces multiple spaces with one space.\n\n*CSS_DECODE* - Decode characters that were encoded using CSS 2.x escape rules `syndata.html#characters` . This function uses up to two bytes in the decoding process, so it can help to uncover ASCII characters that were encoded using CSS encoding that wouldn’t typically be encoded. It's also useful in countering evasion, which is a combination of a backslash and non-hexadecimal characters. For example, `ja\\vascript` for javascript.\n\n*ESCAPE_SEQ_DECODE* - Decode the following ANSI C escape sequences: `\\a` , `\\b` , `\\f` , `\\n` , `\\r` , `\\t` , `\\v` , `\\\\` , `\\?` , `\\'` , `\\\"` , `\\xHH` (hexadecimal), `\\0OOO` (octal). Encodings that aren't valid remain in the output.\n\n*HEX_DECODE* - Decode a string of hexadecimal characters into a binary.\n\n*HTML_ENTITY_DECODE* - Replace HTML-encoded characters with unencoded characters. `HTML_ENTITY_DECODE` performs these operations:\n\n- Replaces `(ampersand)quot;` with `\"`\n- Replaces `(ampersand)nbsp;` with a non-breaking space, decimal 160\n- Replaces `(ampersand)lt;` with a \"less than\" symbol\n- Replaces `(ampersand)gt;` with `>`\n- Replaces characters that are represented in hexadecimal format, `(ampersand)#xhhhh;` , with the corresponding characters\n- Replaces characters that are represented in decimal format, `(ampersand)#nnnn;` , with the corresponding characters\n\n*JS_DECODE* - Decode JavaScript escape sequences. If a `\\` `u` `HHHH` code is in the full-width ASCII code range of `FF01-FF5E` , then the higher byte is used to detect and adjust the lower byte. If not, only the lower byte is used and the higher byte is zeroed, causing a possible loss of information.\n\n*LOWERCASE* - Convert uppercase letters (A-Z) to lowercase (a-z).\n\n*MD5* - Calculate an MD5 hash from the data in the input. The computed hash is in a raw binary form.\n\n*NONE* - Specify `NONE` if you don't want any text transformations.\n\n*NORMALIZE_PATH* - Remove multiple slashes, directory self-references, and directory back-references that are not at the beginning of the input from an input string.\n\n*NORMALIZE_PATH_WIN* - This is the same as `NORMALIZE_PATH` , but first converts backslash characters to forward slashes.\n\n*REMOVE_NULLS* - Remove all `NULL` bytes from the input.\n\n*REPLACE_COMMENTS* - Replace each occurrence of a C-style comment ( `/* ... * /` ) with a single space. Multiple consecutive occurrences are not compressed. Unterminated comments are also replaced with a space (ASCII 0x20). However, a standalone termination of a comment ( `* /` ) is not acted upon.\n\n*REPLACE_NULLS* - Replace NULL bytes in the input with space characters (ASCII `0x20` ).\n\n*SQL_HEX_DECODE* - Decode SQL hex data. Example ( `0x414243` ) will be decoded to ( `ABC` ).\n\n*URL_DECODE* - Decode a URL-encoded value.\n\n*URL_DECODE_UNI* - Like `URL_DECODE` , but with support for Microsoft-specific `%u` encoding. If the code is in the full-width ASCII code range of `FF01-FF5E` , the higher byte is used to detect and adjust the lower byte. Otherwise, only the lower byte is used and the higher byte is zeroed.\n\n*UTF8_TO_UNICODE* - Convert all UTF-8 character sequences to Unicode. This helps input normalization, and minimizing false-positives and false-negatives for non-English languages.", "stability": "external", "summary": "You can specify the following transformation types:." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11711 }, "name": "type", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.TextTransformationProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.VisibilityConfigProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Defines and enables Amazon CloudWatch metrics and web request sample collection.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst visibilityConfigProperty: wafv2.CfnWebACL.VisibilityConfigProperty = {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.VisibilityConfigProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11777 }, "name": "VisibilityConfigProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-cloudwatchmetricsenabled" }, "remarks": "For the list of available metrics, see [AWS WAF Metrics](https://docs.aws.amazon.com/waf/latest/developerguide/monitoring-cloudwatch.html#waf-metrics) in the *AWS WAF Developer Guide* .\n\nFor web ACLs, the metrics are for web requests that have the web ACL default action applied. AWS WAF applies the default action to web requests that pass the inspection of all rules in the web ACL without being either allowed or blocked. For more information,\nsee [The web ACL default action](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-default-action.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "Indicates whether the associated resource sends metrics to Amazon CloudWatch." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11786 }, "name": "cloudWatchMetricsEnabled", "type": { "union": { "types": [ { "primitive": "boolean" }, { "fqn": "@aws-cdk/core.IResolvable" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-metricname" }, "remarks": "The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names that are reserved for AWS WAF , for example `All` and `Default_Action` .", "stability": "external", "summary": "A name of the Amazon CloudWatch metric dimension." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11792 }, "name": "metricName", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-sampledrequestsenabled" }, "remarks": "You can view the sampled requests through the AWS WAF console.", "stability": "external", "summary": "Indicates whether AWS WAF should store a sampling of the web requests that match the rules." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11798 }, "name": "sampledRequestsEnabled", "type": { "union": { "types": [ { "primitive": "boolean" }, { "fqn": "@aws-cdk/core.IResolvable" } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.VisibilityConfigProperty" }, "@aws-cdk/aws-wafv2.CfnWebACL.XssMatchStatementProperty": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html", "exampleMetadata": "fixture=_generated" }, "remarks": "In XSS attacks, the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious client-site scripts into other legitimate web browsers.", "stability": "external", "summary": "A rule statement that inspects for cross-site scripting (XSS) attacks.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const method: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const uriPath: any;\nconst xssMatchStatementProperty: wafv2.CfnWebACL.XssMatchStatementProperty = {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.XssMatchStatementProperty", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11868 }, "name": "XssMatchStatementProperty", "namespace": "CfnWebACL", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html#cfn-wafv2-webacl-xssmatchstatement-fieldtomatch" }, "stability": "external", "summary": "The part of the web request that you want AWS WAF to inspect." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11874 }, "name": "fieldToMatch", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.FieldToMatchProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html#cfn-wafv2-webacl-xssmatchstatement-texttransformations" }, "remarks": "If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by `FieldToMatch` , starting from the lowest priority setting, before inspecting the content for a match.", "stability": "external", "summary": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11880 }, "name": "textTransformations", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.TextTransformationProperty" } ] } }, "kind": "array" } } ] } } } ], "symbolId": "lib/wafv2.generated:CfnWebACL.XssMatchStatementProperty" }, "@aws-cdk/aws-wafv2.CfnWebACLAssociation": { "assembly": "@aws-cdk/aws-wafv2", "base": "@aws-cdk/core.CfnResource", "docs": { "custom": { "cloudformationResource": "AWS::WAFv2::WebACLAssociation", "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html", "exampleMetadata": "fixture=_generated" }, "remarks": "> This is the latest version of *AWS WAF* , named AWS WAF V2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the [AWS WAF Developer Guide](https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html) .\n\nUse a web ACL association to define an association between a web ACL and a regional application resource, to protect the resource. 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.\n\nFor Amazon CloudFront , don't use this resource. Instead, use your CloudFront distribution configuration. To associate a web ACL with a distribution, provide the Amazon Resource Name (ARN) of the `WebACL` to your CloudFront distribution configuration. To disassociate a web ACL, provide an empty ARN. For information, see [AWS::CloudFront::Distribution](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudfront-distribution.html) .\n\nWhen you create a web ACL or make changes to a web ACL or web ACL components, like rules and rule groups, AWS WAF propagates the changes everywhere that the web ACL and its components are stored and used. Your changes are applied within seconds, but there might be a brief period of inconsistency when the changes have arrived in some places and not in others. So, for example, if you change a rule action setting, the action might be the old action in one area and the new action in another area. Or if you add an IP address to an IP set used in a blocking rule, the new address might briefly be blocked in one area while still allowed in another. This temporary inconsistency can occur when you first associate a web ACL with an AWS resource and when you change a web ACL that is already associated with a resource. Generally, any inconsistencies of this type last only a few seconds.", "stability": "external", "summary": "A CloudFormation `AWS::WAFv2::WebACLAssociation`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst cfnWebACLAssociation = new wafv2.CfnWebACLAssociation(this, 'MyCfnWebACLAssociation', {\n resourceArn: 'resourceArn',\n webAclArn: 'webAclArn',\n});" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACLAssociation", "initializer": { "docs": { "stability": "external", "summary": "Create a new `AWS::WAFv2::WebACLAssociation`." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 12090 }, "parameters": [ { "docs": { "summary": "- scope in which this resource is defined." }, "name": "scope", "type": { "fqn": "@aws-cdk/core.Construct" } }, { "docs": { "summary": "- scoped id of the resource." }, "name": "id", "type": { "primitive": "string" } }, { "docs": { "summary": "- resource properties." }, "name": "props", "type": { "fqn": "@aws-cdk/aws-wafv2.CfnWebACLAssociationProps" } } ] }, "interfaces": [ "@aws-cdk/core.IInspectable" ], "kind": "class", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 12036 }, "methods": [ { "docs": { "stability": "external", "summary": "Examines the CloudFormation resource and discloses attributes." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 12105 }, "name": "inspect", "overrides": "@aws-cdk/core.IInspectable", "parameters": [ { "docs": { "summary": "- tree inspector to collect and process attributes." }, "name": "inspector", "type": { "fqn": "@aws-cdk/core.TreeInspector" } } ] }, { "docs": { "stability": "external" }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 12117 }, "name": "renderProperties", "overrides": "@aws-cdk/core.CfnResource", "parameters": [ { "name": "props", "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } ], "protected": true, "returns": { "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } } } ], "name": "CfnWebACLAssociation", "properties": [ { "const": true, "docs": { "stability": "external", "summary": "The CloudFormation resource type name for this resource class." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 12040 }, "name": "CFN_RESOURCE_TYPE_NAME", "static": true, "type": { "primitive": "string" } }, { "docs": { "stability": "external" }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 12110 }, "name": "cfnProperties", "overrides": "@aws-cdk/core.CfnResource", "protected": true, "type": { "collection": { "elementtype": { "primitive": "any" }, "kind": "map" } } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html#cfn-wafv2-webaclassociation-resourcearn" }, "remarks": "The ARN must be in one of the following formats:\n\n- For an Application Load Balancer: `arn:aws:elasticloadbalancing: *region* : *account-id* :loadbalancer/app/ *load-balancer-name* / *load-balancer-id*`\n- For an Amazon API Gateway REST API: `arn:aws:apigateway: *region* ::/restapis/ *api-id* /stages/ *stage-name*`\n- For an AWS AppSync GraphQL API: `arn:aws:appsync: *region* : *account-id* :apis/ *GraphQLApiId*`\n- For an Amazon Cognito user pool: `arn:aws:cognito-idp: *region* : *account-id* :userpool/ *user-pool-id*`\n- For an AWS App Runner service: `arn:aws:apprunner: *region* : *account-id* :service/ *apprunner-service-name* / *apprunner-service-id*`", "stability": "external", "summary": "The Amazon Resource Name (ARN) of the resource to associate with the web ACL." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 12074 }, "name": "resourceArn", "type": { "primitive": "string" } }, { "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html#cfn-wafv2-webaclassociation-webaclarn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource." }, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 12081 }, "name": "webAclArn", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACLAssociation" }, "@aws-cdk/aws-wafv2.CfnWebACLAssociationProps": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Properties for defining a `CfnWebACLAssociation`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\nconst cfnWebACLAssociationProps: wafv2.CfnWebACLAssociationProps = {\n resourceArn: 'resourceArn',\n webAclArn: 'webAclArn',\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACLAssociationProps", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11945 }, "name": "CfnWebACLAssociationProps", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html#cfn-wafv2-webaclassociation-resourcearn" }, "remarks": "The ARN must be in one of the following formats:\n\n- For an Application Load Balancer: `arn:aws:elasticloadbalancing: *region* : *account-id* :loadbalancer/app/ *load-balancer-name* / *load-balancer-id*`\n- For an Amazon API Gateway REST API: `arn:aws:apigateway: *region* ::/restapis/ *api-id* /stages/ *stage-name*`\n- For an AWS AppSync GraphQL API: `arn:aws:appsync: *region* : *account-id* :apis/ *GraphQLApiId*`\n- For an Amazon Cognito user pool: `arn:aws:cognito-idp: *region* : *account-id* :userpool/ *user-pool-id*`\n- For an AWS App Runner service: `arn:aws:apprunner: *region* : *account-id* :service/ *apprunner-service-name* / *apprunner-service-id*`", "stability": "external", "summary": "The Amazon Resource Name (ARN) of the resource to associate with the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11960 }, "name": "resourceArn", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html#cfn-wafv2-webaclassociation-webaclarn" }, "stability": "external", "summary": "The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 11967 }, "name": "webAclArn", "type": { "primitive": "string" } } ], "symbolId": "lib/wafv2.generated:CfnWebACLAssociationProps" }, "@aws-cdk/aws-wafv2.CfnWebACLProps": { "assembly": "@aws-cdk/aws-wafv2", "datatype": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html", "exampleMetadata": "fixture=_generated" }, "stability": "external", "summary": "Properties for defining a `CfnWebACL`.", "example": "// The code below shows an example of how to instantiate this type.\n// The values are placeholders you should change.\nimport * as wafv2 from '@aws-cdk/aws-wafv2';\n\ndeclare const all: any;\ndeclare const allQueryArguments: any;\ndeclare const count: any;\ndeclare const method: any;\ndeclare const none: any;\ndeclare const queryString: any;\ndeclare const singleHeader: any;\ndeclare const singleQueryArgument: any;\ndeclare const statementProperty_: wafv2.CfnWebACL.StatementProperty;\ndeclare const uriPath: any;\nconst cfnWebACLProps: wafv2.CfnWebACLProps = {\n defaultAction: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n scope: 'scope',\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n captchaConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n challengeConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n customResponseBodies: {\n customResponseBodiesKey: {\n content: 'content',\n contentType: 'contentType',\n },\n },\n description: 'description',\n name: 'name',\n rules: [{\n name: 'name',\n priority: 123,\n statement: {\n andStatement: {\n statements: [statementProperty_],\n },\n byteMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n positionalConstraint: 'positionalConstraint',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n searchString: 'searchString',\n searchStringBase64: 'searchStringBase64',\n },\n geoMatchStatement: {\n countryCodes: ['countryCodes'],\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n },\n ipSetReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n ipSetForwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n position: 'position',\n },\n },\n labelMatchStatement: {\n key: 'key',\n scope: 'scope',\n },\n managedRuleGroupStatement: {\n name: 'name',\n vendorName: 'vendorName',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n managedRuleGroupConfigs: [{\n awsManagedRulesAtpRuleSet: {\n loginPath: 'loginPath',\n\n // the properties below are optional\n requestInspection: {\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n },\n responseInspection: {\n bodyContains: {\n failureStrings: ['failureStrings'],\n successStrings: ['successStrings'],\n },\n header: {\n failureValues: ['failureValues'],\n name: 'name',\n successValues: ['successValues'],\n },\n json: {\n failureValues: ['failureValues'],\n identifier: 'identifier',\n successValues: ['successValues'],\n },\n statusCode: {\n failureCodes: [123],\n successCodes: [123],\n },\n },\n },\n awsManagedRulesBotControlRuleSet: {\n inspectionLevel: 'inspectionLevel',\n },\n loginPath: 'loginPath',\n passwordField: {\n identifier: 'identifier',\n },\n payloadType: 'payloadType',\n usernameField: {\n identifier: 'identifier',\n },\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n scopeDownStatement: statementProperty_,\n version: 'version',\n },\n notStatement: {\n statement: statementProperty_,\n },\n orStatement: {\n statements: [statementProperty_],\n },\n rateBasedStatement: {\n aggregateKeyType: 'aggregateKeyType',\n limit: 123,\n\n // the properties below are optional\n forwardedIpConfig: {\n fallbackBehavior: 'fallbackBehavior',\n headerName: 'headerName',\n },\n scopeDownStatement: statementProperty_,\n },\n regexMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n regexString: 'regexString',\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n regexPatternSetReferenceStatement: {\n arn: 'arn',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n ruleGroupReferenceStatement: {\n arn: 'arn',\n\n // the properties below are optional\n excludedRules: [{\n name: 'name',\n }],\n ruleActionOverrides: [{\n actionToUse: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n name: 'name',\n }],\n },\n sizeConstraintStatement: {\n comparisonOperator: 'comparisonOperator',\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n size: 123,\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n sqliMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n\n // the properties below are optional\n sensitivityLevel: 'sensitivityLevel',\n },\n xssMatchStatement: {\n fieldToMatch: {\n allQueryArguments: allQueryArguments,\n body: {\n oversizeHandling: 'oversizeHandling',\n },\n cookies: {\n matchPattern: {\n all: all,\n excludedCookies: ['excludedCookies'],\n includedCookies: ['includedCookies'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n headers: {\n matchPattern: {\n all: all,\n excludedHeaders: ['excludedHeaders'],\n includedHeaders: ['includedHeaders'],\n },\n matchScope: 'matchScope',\n oversizeHandling: 'oversizeHandling',\n },\n jsonBody: {\n matchPattern: {\n all: all,\n includedPaths: ['includedPaths'],\n },\n matchScope: 'matchScope',\n\n // the properties below are optional\n invalidFallbackBehavior: 'invalidFallbackBehavior',\n oversizeHandling: 'oversizeHandling',\n },\n method: method,\n queryString: queryString,\n singleHeader: singleHeader,\n singleQueryArgument: singleQueryArgument,\n uriPath: uriPath,\n },\n textTransformations: [{\n priority: 123,\n type: 'type',\n }],\n },\n },\n visibilityConfig: {\n cloudWatchMetricsEnabled: false,\n metricName: 'metricName',\n sampledRequestsEnabled: false,\n },\n\n // the properties below are optional\n action: {\n allow: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n block: {\n customResponse: {\n responseCode: 123,\n\n // the properties below are optional\n customResponseBodyKey: 'customResponseBodyKey',\n responseHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n captcha: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n challenge: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n count: {\n customRequestHandling: {\n insertHeaders: [{\n name: 'name',\n value: 'value',\n }],\n },\n },\n },\n captchaConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n challengeConfig: {\n immunityTimeProperty: {\n immunityTime: 123,\n },\n },\n overrideAction: {\n count: count,\n none: none,\n },\n ruleLabels: [{\n name: 'name',\n }],\n }],\n tags: [{\n key: 'key',\n value: 'value',\n }],\n tokenDomains: ['tokenDomains'],\n};" }, "fqn": "@aws-cdk/aws-wafv2.CfnWebACLProps", "kind": "interface", "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6003 }, "name": "CfnWebACLProps", "properties": [ { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-defaultaction" }, "stability": "external", "summary": "The action to perform if none of the `Rules` contained in the `WebACL` match." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6010 }, "name": "defaultAction", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.DefaultActionProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-scope" }, "remarks": "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` .\n\n> For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .\n\nFor information about how to define the association of the web ACL with your resource, see `WebACLAssociation` .", "stability": "external", "summary": "Specifies whether this is for an Amazon CloudFront distribution or for a regional application." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6021 }, "name": "scope", "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-visibilityconfig" }, "stability": "external", "summary": "Defines and enables Amazon CloudWatch metrics and web request sample collection." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6028 }, "name": "visibilityConfig", "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.VisibilityConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-captchaconfig" }, "remarks": "If you don't specify this, AWS WAF uses its default settings for `CaptchaConfig` .", "stability": "external", "summary": "Specifies how AWS WAF should handle `CAPTCHA` evaluations for rules that don't have their own `CaptchaConfig` settings." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6035 }, "name": "captchaConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CaptchaConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-challengeconfig" }, "remarks": "If you don't specify this, AWS WAF uses its default settings for `ChallengeConfig` .", "stability": "external", "summary": "Specifies how AWS WAF should handle challenge evaluations for rules that don't have their own `ChallengeConfig` settings." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6042 }, "name": "challengeConfig", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.ChallengeConfigProperty" } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-customresponsebodies" }, "remarks": "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.\n\nFor information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .\n\nFor information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .", "stability": "external", "summary": "A map of custom response keys and content bodies." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6053 }, "name": "customResponseBodies", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.CustomResponseBodyProperty" } ] } }, "kind": "map" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-description" }, "stability": "external", "summary": "A description of the web ACL that helps with identification." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6060 }, "name": "description", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-name" }, "remarks": "You cannot change the name of a web ACL after you create it.", "stability": "external", "summary": "The name of the web ACL." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6067 }, "name": "name", "optional": true, "type": { "primitive": "string" } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-rules" }, "remarks": "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.", "stability": "external", "summary": "The rule statements used to identify the web requests that you want to allow, block, or count." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6074 }, "name": "rules", "optional": true, "type": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "collection": { "elementtype": { "union": { "types": [ { "fqn": "@aws-cdk/core.IResolvable" }, { "fqn": "@aws-cdk/aws-wafv2.CfnWebACL.RuleProperty" } ] } }, "kind": "array" } } ] } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-tags" }, "remarks": "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.\n\n> 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.", "stability": "external", "summary": "Key:value pairs associated with an AWS resource." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6083 }, "name": "tags", "optional": true, "type": { "collection": { "elementtype": { "fqn": "@aws-cdk/core.CfnTag" }, "kind": "array" } } }, { "abstract": true, "docs": { "custom": { "link": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-tokendomains" }, "remarks": "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.", "stability": "external", "summary": "Specifies the domains that AWS WAF should accept in a web request token." }, "immutable": true, "locationInModule": { "filename": "lib/wafv2.generated.ts", "line": 6090 }, "name": "tokenDomains", "optional": true, "type": { "collection": { "elementtype": { "primitive": "string" }, "kind": "array" } } } ], "symbolId": "lib/wafv2.generated:CfnWebACLProps" } }, "version": "1.204.0", "fingerprint": "**********" }