awswafv2

package
v2.142.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 6

README

AWS::WAFv2 Construct Library

This module is part of the AWS Cloud Development Kit project.

import wafv2 "github.com/aws/aws-cdk-go/awscdk"

There are no official hand-written (L2) constructs for this service yet. Here are some suggestions on how to proceed:

There are no hand-written (L2) constructs for this service yet. However, you can still use the automatically generated L1 constructs, and use this service exactly as you would using CloudFormation directly.

For more information on the resources and properties available for this service, see the CloudFormation documentation for AWS::WAFv2.

(Read the CDK Contributing Guide and submit an RFC if you are interested in contributing to this construct library.)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CfnIPSet_CFN_RESOURCE_TYPE_NAME

func CfnIPSet_CFN_RESOURCE_TYPE_NAME() *string

func CfnIPSet_IsCfnElement

func CfnIPSet_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnIPSet_IsCfnResource

func CfnIPSet_IsCfnResource(x interface{}) *bool

Check whether the given object is a CfnResource.

func CfnIPSet_IsConstruct

func CfnIPSet_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func CfnLoggingConfiguration_CFN_RESOURCE_TYPE_NAME

func CfnLoggingConfiguration_CFN_RESOURCE_TYPE_NAME() *string

func CfnLoggingConfiguration_IsCfnElement

func CfnLoggingConfiguration_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnLoggingConfiguration_IsCfnResource

func CfnLoggingConfiguration_IsCfnResource(x interface{}) *bool

Check whether the given object is a CfnResource.

func CfnLoggingConfiguration_IsConstruct

func CfnLoggingConfiguration_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func CfnRegexPatternSet_CFN_RESOURCE_TYPE_NAME

func CfnRegexPatternSet_CFN_RESOURCE_TYPE_NAME() *string

func CfnRegexPatternSet_IsCfnElement

func CfnRegexPatternSet_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnRegexPatternSet_IsCfnResource

func CfnRegexPatternSet_IsCfnResource(x interface{}) *bool

Check whether the given object is a CfnResource.

func CfnRegexPatternSet_IsConstruct

func CfnRegexPatternSet_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func CfnRuleGroup_CFN_RESOURCE_TYPE_NAME

func CfnRuleGroup_CFN_RESOURCE_TYPE_NAME() *string

func CfnRuleGroup_IsCfnElement

func CfnRuleGroup_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnRuleGroup_IsCfnResource

func CfnRuleGroup_IsCfnResource(x interface{}) *bool

Check whether the given object is a CfnResource.

func CfnRuleGroup_IsConstruct

func CfnRuleGroup_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func CfnWebACLAssociation_CFN_RESOURCE_TYPE_NAME

func CfnWebACLAssociation_CFN_RESOURCE_TYPE_NAME() *string

func CfnWebACLAssociation_IsCfnElement

func CfnWebACLAssociation_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnWebACLAssociation_IsCfnResource

func CfnWebACLAssociation_IsCfnResource(x interface{}) *bool

Check whether the given object is a CfnResource.

func CfnWebACLAssociation_IsConstruct

func CfnWebACLAssociation_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func CfnWebACL_CFN_RESOURCE_TYPE_NAME

func CfnWebACL_CFN_RESOURCE_TYPE_NAME() *string

func CfnWebACL_IsCfnElement

func CfnWebACL_IsCfnElement(x interface{}) *bool

Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.

Returns: The construct as a stack element or undefined if it is not a stack element.

func CfnWebACL_IsCfnResource

func CfnWebACL_IsCfnResource(x interface{}) *bool

Check whether the given object is a CfnResource.

func CfnWebACL_IsConstruct

func CfnWebACL_IsConstruct(x interface{}) *bool

Checks if `x` is a construct.

Use this method instead of `instanceof` to properly detect `Construct` instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the `constructs` library on disk are seen as independent, completely different libraries. As a consequence, the class `Construct` in each copy of the `constructs` library is seen as a different class, and an instance of one class will not test as `instanceof` the other class. `npm install` will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the `constructs` library can be accidentally installed, and `instanceof` will behave unpredictably. It is safest to avoid using `instanceof`, and using this type-testing method instead.

Returns: true if `x` is an object created from a class which extends `Construct`.

func NewCfnIPSet_Override

func NewCfnIPSet_Override(c CfnIPSet, scope constructs.Construct, id *string, props *CfnIPSetProps)

func NewCfnLoggingConfiguration_Override

func NewCfnLoggingConfiguration_Override(c CfnLoggingConfiguration, scope constructs.Construct, id *string, props *CfnLoggingConfigurationProps)

func NewCfnRegexPatternSet_Override

func NewCfnRegexPatternSet_Override(c CfnRegexPatternSet, scope constructs.Construct, id *string, props *CfnRegexPatternSetProps)

func NewCfnRuleGroup_Override

func NewCfnRuleGroup_Override(c CfnRuleGroup, scope constructs.Construct, id *string, props *CfnRuleGroupProps)

func NewCfnWebACLAssociation_Override

func NewCfnWebACLAssociation_Override(c CfnWebACLAssociation, scope constructs.Construct, id *string, props *CfnWebACLAssociationProps)

func NewCfnWebACL_Override

func NewCfnWebACL_Override(c CfnWebACL, scope constructs.Construct, id *string, props *CfnWebACLProps)

Types

type CfnIPSet

type CfnIPSet interface {
	awscdk.CfnResource
	awscdk.IInspectable
	awscdk.ITaggable
	// Contains an array of strings that specifies zero or more IP addresses or blocks of IP addresses that you want AWS WAF to inspect for in incoming requests.
	Addresses() *[]*string
	SetAddresses(val *[]*string)
	// The Amazon Resource Name (ARN) of the IP set.
	AttrArn() *string
	// The ID of the IP set.
	AttrId() *string
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// A description of the IP set that helps with identification.
	Description() *string
	SetDescription(val *string)
	// The version of the IP addresses, either `IPV4` or `IPV6` .
	IpAddressVersion() *string
	SetIpAddressVersion(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The name of the IP set.
	Name() *string
	SetName(val *string)
	// The tree node.
	Node() constructs.Node
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
	Scope() *string
	SetScope(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// Tag Manager which manages the tags for this resource.
	Tags() awscdk.TagManager
	// Key:value pairs associated with an AWS resource.
	TagsRaw() *[]*awscdk.CfnTag
	SetTagsRaw(val *[]*awscdk.CfnTag)
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

> 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) .

Use 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.

You 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnIPSet := awscdk.Aws_wafv2.NewCfnIPSet(this, jsii.String("MyCfnIPSet"), &CfnIPSetProps{
	Addresses: []*string{
		jsii.String("addresses"),
	},
	IpAddressVersion: jsii.String("ipAddressVersion"),
	Scope: jsii.String("scope"),

	// the properties below are optional
	Description: jsii.String("description"),
	Name: jsii.String("name"),
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
})

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html

func NewCfnIPSet

func NewCfnIPSet(scope constructs.Construct, id *string, props *CfnIPSetProps) CfnIPSet

type CfnIPSetProps

type CfnIPSetProps struct {
	// Contains an array of strings that specifies zero or more IP addresses or blocks of IP addresses that you want AWS WAF to inspect for in incoming requests.
	//
	// All addresses must be specified using Classless Inter-Domain Routing (CIDR) notation. AWS WAF supports all IPv4 and IPv6 CIDR ranges except for `/0` .
	//
	// Example address strings:
	//
	// - For requests that originated from the IP address 192.0.2.44, specify `192.0.2.44/32` .
	// - For requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify `192.0.2.0/24` .
	// - For 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` .
	// - For 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` .
	//
	// For 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) .
	//
	// Example JSON `Addresses` specifications:
	//
	// - Empty array: `"Addresses": []`
	// - Array with one address: `"Addresses": ["192.0.2.44/32"]`
	// - Array with three addresses: `"Addresses": ["192.0.2.44/32", "192.0.2.0/24", "192.0.0.0/16"]`
	// - INVALID specification: `"Addresses": [""]` INVALID.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-addresses
	//
	Addresses *[]*string `field:"required" json:"addresses" yaml:"addresses"`
	// The version of the IP addresses, either `IPV4` or `IPV6` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-ipaddressversion
	//
	IpAddressVersion *string `field:"required" json:"ipAddressVersion" yaml:"ipAddressVersion"`
	// Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
	//
	// A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are `CLOUDFRONT` and `REGIONAL` .
	//
	// > For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-scope
	//
	Scope *string `field:"required" json:"scope" yaml:"scope"`
	// A description of the IP set that helps with identification.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-description
	//
	Description *string `field:"optional" json:"description" yaml:"description"`
	// The name of the IP set.
	//
	// You cannot change the name of an `IPSet` after you create it.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-name
	//
	Name *string `field:"optional" json:"name" yaml:"name"`
	// Key:value pairs associated with an AWS resource.
	//
	// The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
	//
	// > 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html#cfn-wafv2-ipset-tags
	//
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnIPSet`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnIPSetProps := &CfnIPSetProps{
	Addresses: []*string{
		jsii.String("addresses"),
	},
	IpAddressVersion: jsii.String("ipAddressVersion"),
	Scope: jsii.String("scope"),

	// the properties below are optional
	Description: jsii.String("description"),
	Name: jsii.String("name"),
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-ipset.html

type CfnLoggingConfiguration

type CfnLoggingConfiguration interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Indicates whether the logging configuration was created by AWS Firewall Manager , as part of an AWS WAF policy configuration.
	//
	// If true, only Firewall Manager can modify or delete the configuration.
	AttrManagedByFirewallManager() awscdk.IResolvable
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// The logging destination configuration that you want to associate with the web ACL.
	LogDestinationConfigs() *[]*string
	SetLogDestinationConfigs(val *[]*string)
	// Filtering that specifies which web requests are kept in the logs and which are dropped.
	LoggingFilter() interface{}
	SetLoggingFilter(val interface{})
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The tree node.
	Node() constructs.Node
	// The parts of the request that you want to keep out of the logs.
	RedactedFields() interface{}
	SetRedactedFields(val interface{})
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The Amazon Resource Name (ARN) of the web ACL that you want to associate with `LogDestinationConfigs` .
	ResourceArn() *string
	SetResourceArn(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

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.

> You can define one logging destination per web ACL.

You can access information about the traffic that AWS WAF inspects using the following steps:

- 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.

The 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.

For 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* . - Associate your logging destination to your web ACL using a `PutLoggingConfiguration` request.

When 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.

For 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* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var jsonBody interface{}
var loggingFilter interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var uriPath interface{}

cfnLoggingConfiguration := awscdk.Aws_wafv2.NewCfnLoggingConfiguration(this, jsii.String("MyCfnLoggingConfiguration"), &CfnLoggingConfigurationProps{
	LogDestinationConfigs: []*string{
		jsii.String("logDestinationConfigs"),
	},
	ResourceArn: jsii.String("resourceArn"),

	// the properties below are optional
	LoggingFilter: loggingFilter,
	RedactedFields: []interface{}{
		&FieldToMatchProperty{
			JsonBody: jsonBody,
			Method: method,
			QueryString: queryString,
			SingleHeader: singleHeader,
			UriPath: uriPath,
		},
	},
})

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html

func NewCfnLoggingConfiguration

func NewCfnLoggingConfiguration(scope constructs.Construct, id *string, props *CfnLoggingConfigurationProps) CfnLoggingConfiguration

type CfnLoggingConfigurationProps

type CfnLoggingConfigurationProps struct {
	// The logging destination configuration that you want to associate with the web ACL.
	//
	// > You can associate one logging destination to a web ACL.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-logdestinationconfigs
	//
	LogDestinationConfigs *[]*string `field:"required" json:"logDestinationConfigs" yaml:"logDestinationConfigs"`
	// The Amazon Resource Name (ARN) of the web ACL that you want to associate with `LogDestinationConfigs` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-resourcearn
	//
	ResourceArn *string `field:"required" json:"resourceArn" yaml:"resourceArn"`
	// Filtering that specifies which web requests are kept in the logs and which are dropped.
	//
	// You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-loggingfilter
	//
	LoggingFilter interface{} `field:"optional" json:"loggingFilter" yaml:"loggingFilter"`
	// The parts of the request that you want to keep out of the logs.
	//
	// 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.
	//
	// Redaction 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` .
	//
	// > You can specify only the following fields for redaction: `UriPath` , `QueryString` , `SingleHeader` , and `Method` . > This setting has no impact on request sampling. With request sampling, the only way to exclude fields is by disabling sampling in the web ACL visibility configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html#cfn-wafv2-loggingconfiguration-redactedfields
	//
	RedactedFields interface{} `field:"optional" json:"redactedFields" yaml:"redactedFields"`
}

Properties for defining a `CfnLoggingConfiguration`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var jsonBody interface{}
var loggingFilter interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var uriPath interface{}

cfnLoggingConfigurationProps := &CfnLoggingConfigurationProps{
	LogDestinationConfigs: []*string{
		jsii.String("logDestinationConfigs"),
	},
	ResourceArn: jsii.String("resourceArn"),

	// the properties below are optional
	LoggingFilter: loggingFilter,
	RedactedFields: []interface{}{
		&FieldToMatchProperty{
			JsonBody: jsonBody,
			Method: method,
			QueryString: queryString,
			SingleHeader: singleHeader,
			UriPath: uriPath,
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-loggingconfiguration.html

type CfnLoggingConfiguration_ActionConditionProperty added in v2.55.0

type CfnLoggingConfiguration_ActionConditionProperty struct {
	// The action setting that a log record must contain in order to meet the condition.
	//
	// This is the action that AWS WAF applied to the web request.
	//
	// For 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-actioncondition.html#cfn-wafv2-loggingconfiguration-actioncondition-action
	//
	Action *string `field:"required" json:"action" yaml:"action"`
}

A single action condition for a condition in a logging filter.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

actionConditionProperty := &ActionConditionProperty{
	Action: jsii.String("action"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-actioncondition.html

type CfnLoggingConfiguration_ConditionProperty added in v2.55.0

type CfnLoggingConfiguration_ConditionProperty struct {
	// A single action condition.
	//
	// This is the action setting that a log record must contain in order to meet the condition.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-condition.html#cfn-wafv2-loggingconfiguration-condition-actioncondition
	//
	ActionCondition interface{} `field:"optional" json:"actionCondition" yaml:"actionCondition"`
	// A single label name condition.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-condition.html#cfn-wafv2-loggingconfiguration-condition-labelnamecondition
	//
	LabelNameCondition interface{} `field:"optional" json:"labelNameCondition" yaml:"labelNameCondition"`
}

A single match condition for a log filter.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

conditionProperty := &ConditionProperty{
	ActionCondition: &ActionConditionProperty{
		Action: jsii.String("action"),
	},
	LabelNameCondition: &LabelNameConditionProperty{
		LabelName: jsii.String("labelName"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-condition.html

type CfnLoggingConfiguration_FieldToMatchProperty

type CfnLoggingConfiguration_FieldToMatchProperty struct {
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-jsonbody
	//
	JsonBody interface{} `field:"optional" json:"jsonBody" yaml:"jsonBody"`
	// Redact the indicated HTTP method.
	//
	// The method indicates the type of operation that the request is asking the origin to perform.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-method
	//
	Method interface{} `field:"optional" json:"method" yaml:"method"`
	// Redact the query string.
	//
	// This is the part of a URL that appears after a `?` character, if any.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-querystring
	//
	QueryString interface{} `field:"optional" json:"queryString" yaml:"queryString"`
	// Redact a single header.
	//
	// Provide the name of the header to inspect, for example, `User-Agent` or `Referer` . This setting isn't case sensitive.
	//
	// Example JSON: `"SingleHeader": { "Name": "haystack" }`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-singleheader
	//
	SingleHeader interface{} `field:"optional" json:"singleHeader" yaml:"singleHeader"`
	// Redact the request URI path.
	//
	// This is the part of the web request that identifies a resource, for example, `/images/daily-ad.jpg` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html#cfn-wafv2-loggingconfiguration-fieldtomatch-uripath
	//
	UriPath interface{} `field:"optional" json:"uriPath" yaml:"uriPath"`
}

The parts of the request that you want to keep out of the logs.

This is used in the logging configuration `RedactedFields` specification.

Example JSON for a `QueryString` field to match:

`"FieldToMatch": { "QueryString": {} }`

Example JSON for a `Method` field to match specification:

`"FieldToMatch": { "Method": { "Name": "DELETE" } }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var jsonBody interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var uriPath interface{}

fieldToMatchProperty := &FieldToMatchProperty{
	JsonBody: jsonBody,
	Method: method,
	QueryString: queryString,
	SingleHeader: singleHeader,
	UriPath: uriPath,
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-fieldtomatch.html

type CfnLoggingConfiguration_FilterProperty added in v2.55.0

type CfnLoggingConfiguration_FilterProperty struct {
	// How to handle logs that satisfy the filter's conditions and requirement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-filter.html#cfn-wafv2-loggingconfiguration-filter-behavior
	//
	Behavior *string `field:"required" json:"behavior" yaml:"behavior"`
	// Match conditions for the filter.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-filter.html#cfn-wafv2-loggingconfiguration-filter-conditions
	//
	Conditions interface{} `field:"required" json:"conditions" yaml:"conditions"`
	// Logic to apply to the filtering conditions.
	//
	// You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-filter.html#cfn-wafv2-loggingconfiguration-filter-requirement
	//
	Requirement *string `field:"required" json:"requirement" yaml:"requirement"`
}

A single logging filter, used in `LoggingFilter` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

filterProperty := &FilterProperty{
	Behavior: jsii.String("behavior"),
	Conditions: []interface{}{
		&ConditionProperty{
			ActionCondition: &ActionConditionProperty{
				Action: jsii.String("action"),
			},
			LabelNameCondition: &LabelNameConditionProperty{
				LabelName: jsii.String("labelName"),
			},
		},
	},
	Requirement: jsii.String("requirement"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-filter.html

type CfnLoggingConfiguration_JsonBodyProperty added in v2.55.0

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

jsonBodyProperty := &JsonBodyProperty{
	MatchPattern: &MatchPatternProperty{
		All: all,
		IncludedPaths: []*string{
			jsii.String("includedPaths"),
		},
	},
	MatchScope: jsii.String("matchScope"),

	// the properties below are optional
	InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-jsonbody.html

type CfnLoggingConfiguration_LabelNameConditionProperty added in v2.55.0

type CfnLoggingConfiguration_LabelNameConditionProperty struct {
	// The label name that a log record must contain in order to meet the condition.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-labelnamecondition.html#cfn-wafv2-loggingconfiguration-labelnamecondition-labelname
	//
	LabelName *string `field:"required" json:"labelName" yaml:"labelName"`
}

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.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

labelNameConditionProperty := &LabelNameConditionProperty{
	LabelName: jsii.String("labelName"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-labelnamecondition.html

type CfnLoggingConfiguration_LoggingFilterProperty added in v2.55.0

type CfnLoggingConfiguration_LoggingFilterProperty struct {
	// Default handling for logs that don't match any of the specified filtering conditions.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-loggingfilter.html#cfn-wafv2-loggingconfiguration-loggingfilter-defaultbehavior
	//
	DefaultBehavior *string `field:"required" json:"defaultBehavior" yaml:"defaultBehavior"`
	// The filters that you want to apply to the logs.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-loggingfilter.html#cfn-wafv2-loggingconfiguration-loggingfilter-filters
	//
	Filters interface{} `field:"required" json:"filters" yaml:"filters"`
}

Filtering that specifies which web requests are kept in the logs and which are dropped, defined for a web ACL's `LoggingConfiguration` .

You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

loggingFilterProperty := &LoggingFilterProperty{
	DefaultBehavior: jsii.String("defaultBehavior"),
	Filters: []interface{}{
		&FilterProperty{
			Behavior: jsii.String("behavior"),
			Conditions: []interface{}{
				&ConditionProperty{
					ActionCondition: &ActionConditionProperty{
						Action: jsii.String("action"),
					},
					LabelNameCondition: &LabelNameConditionProperty{
						LabelName: jsii.String("labelName"),
					},
				},
			},
			Requirement: jsii.String("requirement"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-loggingfilter.html

type CfnLoggingConfiguration_MatchPatternProperty added in v2.55.0

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

matchPatternProperty := &MatchPatternProperty{
	All: all,
	IncludedPaths: []*string{
		jsii.String("includedPaths"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-matchpattern.html

type CfnLoggingConfiguration_SingleHeaderProperty added in v2.55.0

type CfnLoggingConfiguration_SingleHeaderProperty struct {
	// The name of the query header to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-singleheader.html#cfn-wafv2-loggingconfiguration-singleheader-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

Inspect one of the headers in the web request, identified by name, for example, `User-Agent` or `Referer` .

The name isn't case sensitive.

You can filter and inspect all headers with the `FieldToMatch` setting `Headers` .

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example JSON: `"SingleHeader": { "Name": "haystack" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

singleHeaderProperty := &SingleHeaderProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-loggingconfiguration-singleheader.html

type CfnRegexPatternSet

type CfnRegexPatternSet interface {
	awscdk.CfnResource
	awscdk.IInspectable
	awscdk.ITaggable
	// The Amazon Resource Name (ARN) of the regex pattern set.
	AttrArn() *string
	// The ID of the regex pattern set.
	AttrId() *string
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// A description of the set that helps with identification.
	Description() *string
	SetDescription(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The name of the set.
	Name() *string
	SetName(val *string)
	// The tree node.
	Node() constructs.Node
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The regular expression patterns in the set.
	RegularExpressionList() *[]*string
	SetRegularExpressionList(val *[]*string)
	// Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
	Scope() *string
	SetScope(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// Tag Manager which manages the tags for this resource.
	Tags() awscdk.TagManager
	// Key:value pairs associated with an AWS resource.
	TagsRaw() *[]*awscdk.CfnTag
	SetTagsRaw(val *[]*awscdk.CfnTag)
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

> 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) .

Use an `RegexPatternSet` to have AWS WAF inspect a web request component for a specific set of regular expression patterns.

You 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnRegexPatternSet := awscdk.Aws_wafv2.NewCfnRegexPatternSet(this, jsii.String("MyCfnRegexPatternSet"), &CfnRegexPatternSetProps{
	RegularExpressionList: []*string{
		jsii.String("regularExpressionList"),
	},
	Scope: jsii.String("scope"),

	// the properties below are optional
	Description: jsii.String("description"),
	Name: jsii.String("name"),
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
})

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html

func NewCfnRegexPatternSet

func NewCfnRegexPatternSet(scope constructs.Construct, id *string, props *CfnRegexPatternSetProps) CfnRegexPatternSet

type CfnRegexPatternSetProps

type CfnRegexPatternSetProps struct {
	// The regular expression patterns in the set.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-regularexpressionlist
	//
	RegularExpressionList *[]*string `field:"required" json:"regularExpressionList" yaml:"regularExpressionList"`
	// Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
	//
	// A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are `CLOUDFRONT` and `REGIONAL` .
	//
	// > For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-scope
	//
	Scope *string `field:"required" json:"scope" yaml:"scope"`
	// A description of the set that helps with identification.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-description
	//
	Description *string `field:"optional" json:"description" yaml:"description"`
	// The name of the set.
	//
	// You cannot change the name after you create the set.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-name
	//
	Name *string `field:"optional" json:"name" yaml:"name"`
	// Key:value pairs associated with an AWS resource.
	//
	// The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
	//
	// > 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html#cfn-wafv2-regexpatternset-tags
	//
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnRegexPatternSet`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnRegexPatternSetProps := &CfnRegexPatternSetProps{
	RegularExpressionList: []*string{
		jsii.String("regularExpressionList"),
	},
	Scope: jsii.String("scope"),

	// the properties below are optional
	Description: jsii.String("description"),
	Name: jsii.String("name"),
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-regexpatternset.html

type CfnRuleGroup

type CfnRuleGroup interface {
	awscdk.CfnResource
	awscdk.IInspectable
	awscdk.ITaggable
	// The Amazon Resource Name (ARN) of the rule group.
	AttrArn() *string
	// The ID of the rule group.
	AttrId() *string
	// The label namespace prefix for this rule group.
	//
	// All labels added by rules in this rule group have this prefix.
	//
	// The syntax for the label namespace prefix for a rule group is the following: `awswaf:<account ID>:rule group:<rule group name>:`
	//
	// When 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.
	AttrLabelNamespace() *string
	// The labels that one or more rules in this rule group add to matching web requests.
	AvailableLabels() interface{}
	SetAvailableLabels(val interface{})
	// The web ACL capacity units (WCUs) required for this rule group.
	Capacity() *float64
	SetCapacity(val *float64)
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// The labels that one or more rules in this rule group match against in label match statements.
	ConsumedLabels() interface{}
	SetConsumedLabels(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// A map of custom response keys and content bodies.
	CustomResponseBodies() interface{}
	SetCustomResponseBodies(val interface{})
	// A description of the rule group that helps with identification.
	Description() *string
	SetDescription(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The name of the rule group.
	Name() *string
	SetName(val *string)
	// The tree node.
	Node() constructs.Node
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The rule statements used to identify the web requests that you want to allow, block, or count.
	Rules() interface{}
	SetRules(val interface{})
	// Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
	Scope() *string
	SetScope(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// Tag Manager which manages the tags for this resource.
	Tags() awscdk.TagManager
	// Key:value pairs associated with an AWS resource.
	TagsRaw() *[]*awscdk.CfnTag
	SetTagsRaw(val *[]*awscdk.CfnTag)
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Defines and enables Amazon CloudWatch metrics and web request sample collection.
	VisibilityConfig() interface{}
	SetVisibilityConfig(val interface{})
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

> 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) .

Use 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.

When 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allow interface{}
var allQueryArguments interface{}
var block interface{}
var captcha interface{}
var challenge interface{}
var count interface{}
var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var statementProperty_ statementProperty
var uriPath interface{}

cfnRuleGroup := awscdk.Aws_wafv2.NewCfnRuleGroup(this, jsii.String("MyCfnRuleGroup"), &CfnRuleGroupProps{
	Capacity: jsii.Number(123),
	Scope: jsii.String("scope"),
	VisibilityConfig: &VisibilityConfigProperty{
		CloudWatchMetricsEnabled: jsii.Boolean(false),
		MetricName: jsii.String("metricName"),
		SampledRequestsEnabled: jsii.Boolean(false),
	},

	// the properties below are optional
	AvailableLabels: []interface{}{
		&LabelSummaryProperty{
			Name: jsii.String("name"),
		},
	},
	ConsumedLabels: []interface{}{
		&LabelSummaryProperty{
			Name: jsii.String("name"),
		},
	},
	CustomResponseBodies: map[string]interface{}{
		"customResponseBodiesKey": &CustomResponseBodyProperty{
			"content": jsii.String("content"),
			"contentType": jsii.String("contentType"),
		},
	},
	Description: jsii.String("description"),
	Name: jsii.String("name"),
	Rules: []interface{}{
		&RuleProperty{
			Name: jsii.String("name"),
			Priority: jsii.Number(123),
			Statement: &statementProperty{
				AndStatement: &AndStatementProperty{
					Statements: []interface{}{
						statementProperty_,
					},
				},
				ByteMatchStatement: &ByteMatchStatementProperty{
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					PositionalConstraint: jsii.String("positionalConstraint"),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},

					// the properties below are optional
					SearchString: jsii.String("searchString"),
					SearchStringBase64: jsii.String("searchStringBase64"),
				},
				GeoMatchStatement: &GeoMatchStatementProperty{
					CountryCodes: []*string{
						jsii.String("countryCodes"),
					},
					ForwardedIpConfig: &ForwardedIPConfigurationProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
						HeaderName: jsii.String("headerName"),
					},
				},
				IpSetReferenceStatement: map[string]interface{}{
					"arn": jsii.String("arn"),

					// the properties below are optional
					"ipSetForwardedIpConfig": map[string]*string{
						"fallbackBehavior": jsii.String("fallbackBehavior"),
						"headerName": jsii.String("headerName"),
						"position": jsii.String("position"),
					},
				},
				LabelMatchStatement: &LabelMatchStatementProperty{
					Key: jsii.String("key"),
					Scope: jsii.String("scope"),
				},
				NotStatement: &NotStatementProperty{
					Statement: statementProperty_,
				},
				OrStatement: &OrStatementProperty{
					Statements: []interface{}{
						statementProperty_,
					},
				},
				RateBasedStatement: &RateBasedStatementProperty{
					AggregateKeyType: jsii.String("aggregateKeyType"),
					Limit: jsii.Number(123),

					// the properties below are optional
					CustomKeys: []interface{}{
						&RateBasedStatementCustomKeyProperty{
							Cookie: &RateLimitCookieProperty{
								Name: jsii.String("name"),
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
							ForwardedIp: forwardedIp,
							Header: &RateLimitHeaderProperty{
								Name: jsii.String("name"),
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
							HttpMethod: httpMethod,
							Ip: ip,
							LabelNamespace: &RateLimitLabelNamespaceProperty{
								Namespace: jsii.String("namespace"),
							},
							QueryArgument: &RateLimitQueryArgumentProperty{
								Name: jsii.String("name"),
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
							QueryString: &RateLimitQueryStringProperty{
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
							UriPath: &RateLimitUriPathProperty{
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
						},
					},
					EvaluationWindowSec: jsii.Number(123),
					ForwardedIpConfig: &ForwardedIPConfigurationProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
						HeaderName: jsii.String("headerName"),
					},
					ScopeDownStatement: statementProperty_,
				},
				RegexMatchStatement: &RegexMatchStatementProperty{
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					RegexString: jsii.String("regexString"),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				RegexPatternSetReferenceStatement: &RegexPatternSetReferenceStatementProperty{
					Arn: jsii.String("arn"),
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				SizeConstraintStatement: &SizeConstraintStatementProperty{
					ComparisonOperator: jsii.String("comparisonOperator"),
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					Size: jsii.Number(123),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				SqliMatchStatement: &SqliMatchStatementProperty{
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},

					// the properties below are optional
					SensitivityLevel: jsii.String("sensitivityLevel"),
				},
				XssMatchStatement: &XssMatchStatementProperty{
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
			},
			VisibilityConfig: &VisibilityConfigProperty{
				CloudWatchMetricsEnabled: jsii.Boolean(false),
				MetricName: jsii.String("metricName"),
				SampledRequestsEnabled: jsii.Boolean(false),
			},

			// the properties below are optional
			Action: &RuleActionProperty{
				Allow: allow,
				Block: block,
				Captcha: captcha,
				Challenge: challenge,
				Count: count,
			},
			CaptchaConfig: &CaptchaConfigProperty{
				ImmunityTimeProperty: &ImmunityTimePropertyProperty{
					ImmunityTime: jsii.Number(123),
				},
			},
			ChallengeConfig: &ChallengeConfigProperty{
				ImmunityTimeProperty: &ImmunityTimePropertyProperty{
					ImmunityTime: jsii.Number(123),
				},
			},
			RuleLabels: []interface{}{
				&LabelProperty{
					Name: jsii.String("name"),
				},
			},
		},
	},
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
})

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html

func NewCfnRuleGroup

func NewCfnRuleGroup(scope constructs.Construct, id *string, props *CfnRuleGroupProps) CfnRuleGroup

type CfnRuleGroupProps

type CfnRuleGroupProps struct {
	// The web ACL capacity units (WCUs) required for this rule group.
	//
	// 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.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-capacity
	//
	Capacity *float64 `field:"required" json:"capacity" yaml:"capacity"`
	// Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
	//
	// A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are `CLOUDFRONT` and `REGIONAL` .
	//
	// > For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-scope
	//
	Scope *string `field:"required" json:"scope" yaml:"scope"`
	// Defines and enables Amazon CloudWatch metrics and web request sample collection.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-visibilityconfig
	//
	VisibilityConfig interface{} `field:"required" json:"visibilityConfig" yaml:"visibilityConfig"`
	// The labels that one or more rules in this rule group add to matching web requests.
	//
	// These labels are defined in the `RuleLabels` for a `Rule` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-availablelabels
	//
	AvailableLabels interface{} `field:"optional" json:"availableLabels" yaml:"availableLabels"`
	// The labels that one or more rules in this rule group match against in label match statements.
	//
	// These labels are defined in a `LabelMatchStatement` specification, in the `Statement` definition of a rule.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-consumedlabels
	//
	ConsumedLabels interface{} `field:"optional" json:"consumedLabels" yaml:"consumedLabels"`
	// A map of custom response keys and content bodies.
	//
	// When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.
	//
	// 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* .
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-customresponsebodies
	//
	CustomResponseBodies interface{} `field:"optional" json:"customResponseBodies" yaml:"customResponseBodies"`
	// A description of the rule group that helps with identification.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-description
	//
	Description *string `field:"optional" json:"description" yaml:"description"`
	// The name of the rule group.
	//
	// You cannot change the name of a rule group after you create it.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-name
	//
	Name *string `field:"optional" json:"name" yaml:"name"`
	// The rule statements used to identify the web requests that you want to allow, block, or count.
	//
	// Each rule includes one top-level statement that AWS WAF uses to identify matching web requests, and parameters that govern how AWS WAF handles them.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-rules
	//
	Rules interface{} `field:"optional" json:"rules" yaml:"rules"`
	// Key:value pairs associated with an AWS resource.
	//
	// The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
	//
	// > 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html#cfn-wafv2-rulegroup-tags
	//
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}

Properties for defining a `CfnRuleGroup`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allow interface{}
var allQueryArguments interface{}
var block interface{}
var captcha interface{}
var challenge interface{}
var count interface{}
var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var statementProperty_ statementProperty
var uriPath interface{}

cfnRuleGroupProps := &CfnRuleGroupProps{
	Capacity: jsii.Number(123),
	Scope: jsii.String("scope"),
	VisibilityConfig: &VisibilityConfigProperty{
		CloudWatchMetricsEnabled: jsii.Boolean(false),
		MetricName: jsii.String("metricName"),
		SampledRequestsEnabled: jsii.Boolean(false),
	},

	// the properties below are optional
	AvailableLabels: []interface{}{
		&LabelSummaryProperty{
			Name: jsii.String("name"),
		},
	},
	ConsumedLabels: []interface{}{
		&LabelSummaryProperty{
			Name: jsii.String("name"),
		},
	},
	CustomResponseBodies: map[string]interface{}{
		"customResponseBodiesKey": &CustomResponseBodyProperty{
			"content": jsii.String("content"),
			"contentType": jsii.String("contentType"),
		},
	},
	Description: jsii.String("description"),
	Name: jsii.String("name"),
	Rules: []interface{}{
		&RuleProperty{
			Name: jsii.String("name"),
			Priority: jsii.Number(123),
			Statement: &statementProperty{
				AndStatement: &AndStatementProperty{
					Statements: []interface{}{
						statementProperty_,
					},
				},
				ByteMatchStatement: &ByteMatchStatementProperty{
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					PositionalConstraint: jsii.String("positionalConstraint"),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},

					// the properties below are optional
					SearchString: jsii.String("searchString"),
					SearchStringBase64: jsii.String("searchStringBase64"),
				},
				GeoMatchStatement: &GeoMatchStatementProperty{
					CountryCodes: []*string{
						jsii.String("countryCodes"),
					},
					ForwardedIpConfig: &ForwardedIPConfigurationProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
						HeaderName: jsii.String("headerName"),
					},
				},
				IpSetReferenceStatement: map[string]interface{}{
					"arn": jsii.String("arn"),

					// the properties below are optional
					"ipSetForwardedIpConfig": map[string]*string{
						"fallbackBehavior": jsii.String("fallbackBehavior"),
						"headerName": jsii.String("headerName"),
						"position": jsii.String("position"),
					},
				},
				LabelMatchStatement: &LabelMatchStatementProperty{
					Key: jsii.String("key"),
					Scope: jsii.String("scope"),
				},
				NotStatement: &NotStatementProperty{
					Statement: statementProperty_,
				},
				OrStatement: &OrStatementProperty{
					Statements: []interface{}{
						statementProperty_,
					},
				},
				RateBasedStatement: &RateBasedStatementProperty{
					AggregateKeyType: jsii.String("aggregateKeyType"),
					Limit: jsii.Number(123),

					// the properties below are optional
					CustomKeys: []interface{}{
						&RateBasedStatementCustomKeyProperty{
							Cookie: &RateLimitCookieProperty{
								Name: jsii.String("name"),
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
							ForwardedIp: forwardedIp,
							Header: &RateLimitHeaderProperty{
								Name: jsii.String("name"),
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
							HttpMethod: httpMethod,
							Ip: ip,
							LabelNamespace: &RateLimitLabelNamespaceProperty{
								Namespace: jsii.String("namespace"),
							},
							QueryArgument: &RateLimitQueryArgumentProperty{
								Name: jsii.String("name"),
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
							QueryString: &RateLimitQueryStringProperty{
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
							UriPath: &RateLimitUriPathProperty{
								TextTransformations: []interface{}{
									&TextTransformationProperty{
										Priority: jsii.Number(123),
										Type: jsii.String("type"),
									},
								},
							},
						},
					},
					EvaluationWindowSec: jsii.Number(123),
					ForwardedIpConfig: &ForwardedIPConfigurationProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
						HeaderName: jsii.String("headerName"),
					},
					ScopeDownStatement: statementProperty_,
				},
				RegexMatchStatement: &RegexMatchStatementProperty{
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					RegexString: jsii.String("regexString"),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				RegexPatternSetReferenceStatement: &RegexPatternSetReferenceStatementProperty{
					Arn: jsii.String("arn"),
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				SizeConstraintStatement: &SizeConstraintStatementProperty{
					ComparisonOperator: jsii.String("comparisonOperator"),
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					Size: jsii.Number(123),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				SqliMatchStatement: &SqliMatchStatementProperty{
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},

					// the properties below are optional
					SensitivityLevel: jsii.String("sensitivityLevel"),
				},
				XssMatchStatement: &XssMatchStatementProperty{
					FieldToMatch: &FieldToMatchProperty{
						AllQueryArguments: allQueryArguments,
						Body: &BodyProperty{
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Cookies: &CookiesProperty{
							MatchPattern: &CookieMatchPatternProperty{
								All: all,
								ExcludedCookies: []*string{
									jsii.String("excludedCookies"),
								},
								IncludedCookies: []*string{
									jsii.String("includedCookies"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Headers: &HeadersProperty{
							MatchPattern: &HeaderMatchPatternProperty{
								All: all,
								ExcludedHeaders: []*string{
									jsii.String("excludedHeaders"),
								},
								IncludedHeaders: []*string{
									jsii.String("includedHeaders"),
								},
							},
							MatchScope: jsii.String("matchScope"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Ja3Fingerprint: &JA3FingerprintProperty{
							FallbackBehavior: jsii.String("fallbackBehavior"),
						},
						JsonBody: &JsonBodyProperty{
							MatchPattern: &JsonMatchPatternProperty{
								All: all,
								IncludedPaths: []*string{
									jsii.String("includedPaths"),
								},
							},
							MatchScope: jsii.String("matchScope"),

							// the properties below are optional
							InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
							OversizeHandling: jsii.String("oversizeHandling"),
						},
						Method: method,
						QueryString: queryString,
						SingleHeader: singleHeader,
						SingleQueryArgument: singleQueryArgument,
						UriPath: uriPath,
					},
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
			},
			VisibilityConfig: &VisibilityConfigProperty{
				CloudWatchMetricsEnabled: jsii.Boolean(false),
				MetricName: jsii.String("metricName"),
				SampledRequestsEnabled: jsii.Boolean(false),
			},

			// the properties below are optional
			Action: &RuleActionProperty{
				Allow: allow,
				Block: block,
				Captcha: captcha,
				Challenge: challenge,
				Count: count,
			},
			CaptchaConfig: &CaptchaConfigProperty{
				ImmunityTimeProperty: &ImmunityTimePropertyProperty{
					ImmunityTime: jsii.Number(123),
				},
			},
			ChallengeConfig: &ChallengeConfigProperty{
				ImmunityTimeProperty: &ImmunityTimePropertyProperty{
					ImmunityTime: jsii.Number(123),
				},
			},
			RuleLabels: []interface{}{
				&LabelProperty{
					Name: jsii.String("name"),
				},
			},
		},
	},
	Tags: []cfnTag{
		&cfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-rulegroup.html

type CfnRuleGroup_AllowProperty added in v2.55.0

type CfnRuleGroup_AllowProperty struct {
	// Custom request handling.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-allow.html#cfn-wafv2-rulegroup-allow-customrequesthandling
	//
	CustomRequestHandling interface{} `field:"optional" json:"customRequestHandling" yaml:"customRequestHandling"`
}

Allow traffic towards application.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

allowProperty := &AllowProperty{
	CustomRequestHandling: &CustomRequestHandlingProperty{
		InsertHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-allow.html

type CfnRuleGroup_AndStatementProperty

type CfnRuleGroup_AndStatementProperty struct {
	// The statements to combine with AND logic.
	//
	// You can use any statements that can be nested.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-andstatement.html#cfn-wafv2-rulegroup-andstatement-statements
	//
	Statements interface{} `field:"required" json:"statements" yaml:"statements"`
}

A logical rule statement used to combine other rule statements with AND logic.

You provide more than one `Statement` within the `AndStatement` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var andStatementProperty_ andStatementProperty
var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var statementProperty_ statementProperty
var uriPath interface{}

andStatementProperty := &andStatementProperty{
	Statements: []interface{}{
		&statementProperty{
			AndStatement: andStatementProperty_,
			ByteMatchStatement: &ByteMatchStatementProperty{
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				PositionalConstraint: jsii.String("positionalConstraint"),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},

				// the properties below are optional
				SearchString: jsii.String("searchString"),
				SearchStringBase64: jsii.String("searchStringBase64"),
			},
			GeoMatchStatement: &GeoMatchStatementProperty{
				CountryCodes: []*string{
					jsii.String("countryCodes"),
				},
				ForwardedIpConfig: &ForwardedIPConfigurationProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
					HeaderName: jsii.String("headerName"),
				},
			},
			IpSetReferenceStatement: map[string]interface{}{
				"arn": jsii.String("arn"),

				// the properties below are optional
				"ipSetForwardedIpConfig": map[string]*string{
					"fallbackBehavior": jsii.String("fallbackBehavior"),
					"headerName": jsii.String("headerName"),
					"position": jsii.String("position"),
				},
			},
			LabelMatchStatement: &LabelMatchStatementProperty{
				Key: jsii.String("key"),
				Scope: jsii.String("scope"),
			},
			NotStatement: &NotStatementProperty{
				Statement: statementProperty_,
			},
			OrStatement: &OrStatementProperty{
				Statements: []interface{}{
					statementProperty_,
				},
			},
			RateBasedStatement: &RateBasedStatementProperty{
				AggregateKeyType: jsii.String("aggregateKeyType"),
				Limit: jsii.Number(123),

				// the properties below are optional
				CustomKeys: []interface{}{
					&RateBasedStatementCustomKeyProperty{
						Cookie: &RateLimitCookieProperty{
							Name: jsii.String("name"),
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
						ForwardedIp: forwardedIp,
						Header: &RateLimitHeaderProperty{
							Name: jsii.String("name"),
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
						HttpMethod: httpMethod,
						Ip: ip,
						LabelNamespace: &RateLimitLabelNamespaceProperty{
							Namespace: jsii.String("namespace"),
						},
						QueryArgument: &RateLimitQueryArgumentProperty{
							Name: jsii.String("name"),
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
						QueryString: &RateLimitQueryStringProperty{
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
						UriPath: &RateLimitUriPathProperty{
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
					},
				},
				EvaluationWindowSec: jsii.Number(123),
				ForwardedIpConfig: &ForwardedIPConfigurationProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
					HeaderName: jsii.String("headerName"),
				},
				ScopeDownStatement: statementProperty_,
			},
			RegexMatchStatement: &RegexMatchStatementProperty{
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				RegexString: jsii.String("regexString"),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			RegexPatternSetReferenceStatement: &RegexPatternSetReferenceStatementProperty{
				Arn: jsii.String("arn"),
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			SizeConstraintStatement: &SizeConstraintStatementProperty{
				ComparisonOperator: jsii.String("comparisonOperator"),
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				Size: jsii.Number(123),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			SqliMatchStatement: &SqliMatchStatementProperty{
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},

				// the properties below are optional
				SensitivityLevel: jsii.String("sensitivityLevel"),
			},
			XssMatchStatement: &XssMatchStatementProperty{
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-andstatement.html

type CfnRuleGroup_BlockProperty added in v2.55.0

type CfnRuleGroup_BlockProperty struct {
	// Custom response.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-block.html#cfn-wafv2-rulegroup-block-customresponse
	//
	CustomResponse interface{} `field:"optional" json:"customResponse" yaml:"customResponse"`
}

Block traffic towards application.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

blockProperty := &BlockProperty{
	CustomResponse: &CustomResponseProperty{
		ResponseCode: jsii.Number(123),

		// the properties below are optional
		CustomResponseBodyKey: jsii.String("customResponseBodyKey"),
		ResponseHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-block.html

type CfnRuleGroup_BodyProperty added in v2.25.0

type CfnRuleGroup_BodyProperty struct {
	// What AWS WAF should do if the body is larger than AWS WAF can inspect.
	//
	// AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection.
	//
	// - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL `AssociationConfig` , for additional processing fees.
	//
	// The options for oversize handling are the following:
	//
	// - `CONTINUE` - Inspect the available body contents normally, according to the rule inspection criteria.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	//
	// You 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.
	//
	// Default: `CONTINUE`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-body.html#cfn-wafv2-rulegroup-body-oversizehandling
	//
	OversizeHandling *string `field:"optional" json:"oversizeHandling" yaml:"oversizeHandling"`
}

Inspect the body of the web request. The body immediately follows the request headers.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

bodyProperty := &BodyProperty{
	OversizeHandling: jsii.String("oversizeHandling"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-body.html

type CfnRuleGroup_ByteMatchStatementProperty

type CfnRuleGroup_ByteMatchStatementProperty struct {
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// The area within the portion of the web request that you want AWS WAF to search for `SearchString` .
	//
	// Valid values include the following:
	//
	// *CONTAINS*
	//
	// The specified part of the web request must include the value of `SearchString` , but the location doesn't matter.
	//
	// *CONTAINS_WORD*
	//
	// The 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:
	//
	// - `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` .
	// - `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;` .
	//
	// *EXACTLY*
	//
	// The value of the specified part of the web request must exactly match the value of `SearchString` .
	//
	// *STARTS_WITH*
	//
	// The value of `SearchString` must appear at the beginning of the specified part of the web request.
	//
	// *ENDS_WITH*
	//
	// The value of `SearchString` must appear at the end of the specified part of the web request.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-positionalconstraint
	//
	PositionalConstraint *string `field:"required" json:"positionalConstraint" yaml:"positionalConstraint"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
	// A string value that you want AWS WAF to search for.
	//
	// 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.
	//
	// Don't encode this string. Provide the value that you want AWS WAF to search for. AWS CloudFormation automatically base64 encodes the value for you.
	//
	// For 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` .
	//
	// You must specify either `SearchString` or `SearchStringBase64` in a `ByteMatchStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-searchstring
	//
	SearchString *string `field:"optional" json:"searchString" yaml:"searchString"`
	// String to search for in a web request component, base64-encoded.
	//
	// If you don't want to encode the string, specify the unencoded value in `SearchString` instead.
	//
	// You must specify either `SearchString` or `SearchStringBase64` in a `ByteMatchStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html#cfn-wafv2-rulegroup-bytematchstatement-searchstringbase64
	//
	SearchStringBase64 *string `field:"optional" json:"searchStringBase64" yaml:"searchStringBase64"`
}

A rule statement that defines a string match search for AWS WAF to apply to web requests.

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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

byteMatchStatementProperty := &ByteMatchStatementProperty{
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	PositionalConstraint: jsii.String("positionalConstraint"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},

	// the properties below are optional
	SearchString: jsii.String("searchString"),
	SearchStringBase64: jsii.String("searchStringBase64"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-bytematchstatement.html

type CfnRuleGroup_CaptchaConfigProperty added in v2.2.0

type CfnRuleGroup_CaptchaConfigProperty struct {
	// Determines how long a `CAPTCHA` timestamp in the token remains valid after the client successfully solves a `CAPTCHA` puzzle.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captchaconfig.html#cfn-wafv2-rulegroup-captchaconfig-immunitytimeproperty
	//
	ImmunityTimeProperty interface{} `field:"optional" json:"immunityTimeProperty" yaml:"immunityTimeProperty"`
}

Specifies how AWS WAF should handle `CAPTCHA` evaluations.

This is available at the web ACL level and in each rule.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

captchaConfigProperty := &CaptchaConfigProperty{
	ImmunityTimeProperty: &ImmunityTimePropertyProperty{
		ImmunityTime: jsii.Number(123),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captchaconfig.html

type CfnRuleGroup_CaptchaProperty added in v2.55.0

type CfnRuleGroup_CaptchaProperty struct {
	// Custom request handling.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captcha.html#cfn-wafv2-rulegroup-captcha-customrequesthandling
	//
	CustomRequestHandling interface{} `field:"optional" json:"customRequestHandling" yaml:"customRequestHandling"`
}

Checks valid token exists with request.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

captchaProperty := &CaptchaProperty{
	CustomRequestHandling: &CustomRequestHandlingProperty{
		InsertHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-captcha.html

type CfnRuleGroup_ChallengeConfigProperty added in v2.56.0

type CfnRuleGroup_ChallengeConfigProperty struct {
	// Determines how long a challenge timestamp in the token remains valid after the client successfully responds to a challenge.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challengeconfig.html#cfn-wafv2-rulegroup-challengeconfig-immunitytimeproperty
	//
	ImmunityTimeProperty interface{} `field:"optional" json:"immunityTimeProperty" yaml:"immunityTimeProperty"`
}

Specifies how AWS WAF should handle `Challenge` evaluations.

This is available at the web ACL level and in each rule.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

challengeConfigProperty := &ChallengeConfigProperty{
	ImmunityTimeProperty: &ImmunityTimePropertyProperty{
		ImmunityTime: jsii.Number(123),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challengeconfig.html

type CfnRuleGroup_ChallengeProperty added in v2.56.0

type CfnRuleGroup_ChallengeProperty struct {
	// Custom request handling.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challenge.html#cfn-wafv2-rulegroup-challenge-customrequesthandling
	//
	CustomRequestHandling interface{} `field:"optional" json:"customRequestHandling" yaml:"customRequestHandling"`
}

Checks that the request has a valid token with an unexpired challenge timestamp and, if not, returns a browser challenge to the client.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

challengeProperty := &ChallengeProperty{
	CustomRequestHandling: &CustomRequestHandlingProperty{
		InsertHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-challenge.html

type CfnRuleGroup_CookieMatchPatternProperty added in v2.25.0

type CfnRuleGroup_CookieMatchPatternProperty struct {
	// Inspect all cookies.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookiematchpattern.html#cfn-wafv2-rulegroup-cookiematchpattern-all
	//
	All interface{} `field:"optional" json:"all" yaml:"all"`
	// Inspect only the cookies whose keys don't match any of the strings specified here.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookiematchpattern.html#cfn-wafv2-rulegroup-cookiematchpattern-excludedcookies
	//
	ExcludedCookies *[]*string `field:"optional" json:"excludedCookies" yaml:"excludedCookies"`
	// Inspect only the cookies that have a key that matches one of the strings specified here.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookiematchpattern.html#cfn-wafv2-rulegroup-cookiematchpattern-includedcookies
	//
	IncludedCookies *[]*string `field:"optional" json:"includedCookies" yaml:"includedCookies"`
}

The filter to use to identify the subset of cookies to inspect in a web request.

You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .

Example JSON: `"MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

cookieMatchPatternProperty := &CookieMatchPatternProperty{
	All: all,
	ExcludedCookies: []*string{
		jsii.String("excludedCookies"),
	},
	IncludedCookies: []*string{
		jsii.String("includedCookies"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookiematchpattern.html

type CfnRuleGroup_CookiesProperty added in v2.25.0

type CfnRuleGroup_CookiesProperty struct {
	// The filter to use to identify the subset of cookies to inspect in a web request.
	//
	// You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .
	//
	// Example JSON: `"MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookies.html#cfn-wafv2-rulegroup-cookies-matchpattern
	//
	MatchPattern interface{} `field:"required" json:"matchPattern" yaml:"matchPattern"`
	// The parts of the cookies to inspect with the rule inspection criteria.
	//
	// If you specify `ALL` , AWS WAF inspects both keys and values.
	//
	// `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookies.html#cfn-wafv2-rulegroup-cookies-matchscope
	//
	MatchScope *string `field:"required" json:"matchScope" yaml:"matchScope"`
	// What AWS WAF should do if the cookies of the request are more numerous or larger than AWS WAF can inspect.
	//
	// 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 .
	//
	// The options for oversize handling are the following:
	//
	// - `CONTINUE` - Inspect the available cookies normally, according to the rule inspection criteria.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookies.html#cfn-wafv2-rulegroup-cookies-oversizehandling
	//
	OversizeHandling *string `field:"required" json:"oversizeHandling" yaml:"oversizeHandling"`
}

Inspect the cookies in the web request.

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.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example JSON: `"Cookies": { "MatchPattern": { "All": {} }, "MatchScope": "KEY", "OversizeHandling": "MATCH" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

cookiesProperty := &CookiesProperty{
	MatchPattern: &CookieMatchPatternProperty{
		All: all,
		ExcludedCookies: []*string{
			jsii.String("excludedCookies"),
		},
		IncludedCookies: []*string{
			jsii.String("includedCookies"),
		},
	},
	MatchScope: jsii.String("matchScope"),
	OversizeHandling: jsii.String("oversizeHandling"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-cookies.html

type CfnRuleGroup_CountProperty added in v2.55.0

type CfnRuleGroup_CountProperty struct {
	// Custom request handling.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-count.html#cfn-wafv2-rulegroup-count-customrequesthandling
	//
	CustomRequestHandling interface{} `field:"optional" json:"customRequestHandling" yaml:"customRequestHandling"`
}

Count traffic towards application.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

countProperty := &CountProperty{
	CustomRequestHandling: &CustomRequestHandlingProperty{
		InsertHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-count.html

type CfnRuleGroup_CustomHTTPHeaderProperty added in v2.55.0

type CfnRuleGroup_CustomHTTPHeaderProperty struct {
	// The name of the custom header.
	//
	// 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` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customhttpheader.html#cfn-wafv2-rulegroup-customhttpheader-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// The value of the custom header.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customhttpheader.html#cfn-wafv2-rulegroup-customhttpheader-value
	//
	Value *string `field:"required" json:"value" yaml:"value"`
}

A custom header for custom request and response handling.

This is used in `CustomResponse` and `CustomRequestHandling`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customHTTPHeaderProperty := &CustomHTTPHeaderProperty{
	Name: jsii.String("name"),
	Value: jsii.String("value"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customhttpheader.html

type CfnRuleGroup_CustomRequestHandlingProperty added in v2.55.0

type CfnRuleGroup_CustomRequestHandlingProperty struct {
	// The HTTP headers to insert into the request. Duplicate header names are not allowed.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customrequesthandling.html#cfn-wafv2-rulegroup-customrequesthandling-insertheaders
	//
	InsertHeaders interface{} `field:"required" json:"insertHeaders" yaml:"insertHeaders"`
}

Custom request handling behavior that inserts custom headers into a web request.

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` .

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* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customRequestHandlingProperty := &CustomRequestHandlingProperty{
	InsertHeaders: []interface{}{
		&CustomHTTPHeaderProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customrequesthandling.html

type CfnRuleGroup_CustomResponseBodyProperty

type CfnRuleGroup_CustomResponseBodyProperty struct {
	// The payload of the custom response.
	//
	// You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the `ContentType` setting.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.html#cfn-wafv2-rulegroup-customresponsebody-content
	//
	Content *string `field:"required" json:"content" yaml:"content"`
	// The type of content in the payload that you are defining in the `Content` string.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.html#cfn-wafv2-rulegroup-customresponsebody-contenttype
	//
	ContentType *string `field:"required" json:"contentType" yaml:"contentType"`
}

The response body to use in a custom response to a web request.

This is referenced by key from `CustomResponse` `CustomResponseBodyKey` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customResponseBodyProperty := &CustomResponseBodyProperty{
	Content: jsii.String("content"),
	ContentType: jsii.String("contentType"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponsebody.html

type CfnRuleGroup_CustomResponseProperty added in v2.55.0

type CfnRuleGroup_CustomResponseProperty struct {
	// The HTTP status code to return to the client.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponse.html#cfn-wafv2-rulegroup-customresponse-responsecode
	//
	ResponseCode *float64 `field:"required" json:"responseCode" yaml:"responseCode"`
	// References the response body that you want AWS WAF to return to the web request client.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponse.html#cfn-wafv2-rulegroup-customresponse-customresponsebodykey
	//
	CustomResponseBodyKey *string `field:"optional" json:"customResponseBodyKey" yaml:"customResponseBodyKey"`
	// The HTTP headers to use in the response.
	//
	// You can specify any header name except for `content-type` . Duplicate header names are not allowed.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponse.html#cfn-wafv2-rulegroup-customresponse-responseheaders
	//
	ResponseHeaders interface{} `field:"optional" json:"responseHeaders" yaml:"responseHeaders"`
}

A custom response to send to the client.

You can define a custom response for rule actions and default web ACL actions that are set to `Block` .

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) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customResponseProperty := &CustomResponseProperty{
	ResponseCode: jsii.Number(123),

	// the properties below are optional
	CustomResponseBodyKey: jsii.String("customResponseBodyKey"),
	ResponseHeaders: []interface{}{
		&CustomHTTPHeaderProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-customresponse.html

type CfnRuleGroup_FieldToMatchProperty

type CfnRuleGroup_FieldToMatchProperty struct {
	// Inspect all query arguments.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-allqueryarguments
	//
	AllQueryArguments interface{} `field:"optional" json:"allQueryArguments" yaml:"allQueryArguments"`
	// Inspect the request body as plain text.
	//
	// 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.
	//
	// AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection.
	//
	// - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL `AssociationConfig` , for additional processing fees.
	//
	// For information about how to handle oversized request bodies, see the `Body` object configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-body
	//
	Body interface{} `field:"optional" json:"body" yaml:"body"`
	// Inspect the request cookies.
	//
	// 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.
	//
	// Only 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-cookies
	//
	Cookies interface{} `field:"optional" json:"cookies" yaml:"cookies"`
	// Inspect the request headers.
	//
	// 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.
	//
	// Only 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-headers
	//
	Headers interface{} `field:"optional" json:"headers" yaml:"headers"`
	// Match against the request's JA3 fingerprint.
	//
	// The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello information for the calculation. Almost all web requests include this information.
	//
	// > You can use this choice only with a string match `ByteMatchStatement` with the `PositionalConstraint` set to `EXACTLY` .
	//
	// You can obtain the JA3 fingerprint for client requests from the web ACL logs. If AWS WAF is able to calculate the fingerprint, it includes it in the logs. For information about the logging fields, see [Log fields](https://docs.aws.amazon.com/waf/latest/developerguide/logging-fields.html) in the *AWS WAF Developer Guide* .
	//
	// Provide the JA3 fingerprint string from the logs in your string match statement specification, to match with any future requests that have the same TLS configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-ja3fingerprint
	//
	Ja3Fingerprint interface{} `field:"optional" json:"ja3Fingerprint" yaml:"ja3Fingerprint"`
	// Inspect the request body as JSON.
	//
	// 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.
	//
	// AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection.
	//
	// - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL `AssociationConfig` , for additional processing fees.
	//
	// For information about how to handle oversized request bodies, see the `JsonBody` object configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-jsonbody
	//
	JsonBody interface{} `field:"optional" json:"jsonBody" yaml:"jsonBody"`
	// Inspect the HTTP method.
	//
	// The method indicates the type of operation that the request is asking the origin to perform.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-method
	//
	Method interface{} `field:"optional" json:"method" yaml:"method"`
	// Inspect the query string.
	//
	// This is the part of a URL that appears after a `?` character, if any.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-querystring
	//
	QueryString interface{} `field:"optional" json:"queryString" yaml:"queryString"`
	// Inspect a single header.
	//
	// Provide the name of the header to inspect, for example, `User-Agent` or `Referer` . This setting isn't case sensitive.
	//
	// Example JSON: `"SingleHeader": { "Name": "haystack" }`
	//
	// Alternately, you can filter and inspect all headers with the `Headers` `FieldToMatch` setting.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-singleheader
	//
	SingleHeader interface{} `field:"optional" json:"singleHeader" yaml:"singleHeader"`
	// Inspect a single query argument.
	//
	// 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.
	//
	// Example JSON: `"SingleQueryArgument": { "Name": "myArgument" }`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-singlequeryargument
	//
	SingleQueryArgument interface{} `field:"optional" json:"singleQueryArgument" yaml:"singleQueryArgument"`
	// Inspect the request URI path.
	//
	// This is the part of the web request that identifies a resource, for example, `/images/daily-ad.jpg` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html#cfn-wafv2-rulegroup-fieldtomatch-uripath
	//
	UriPath interface{} `field:"optional" json:"uriPath" yaml:"uriPath"`
}

Specifies a web request component to be used in a rule match statement or in a logging configuration.

- In a rule statement, this is the part of the web request that you want AWS WAF to inspect. 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.

Example JSON for a `QueryString` field to match:

`"FieldToMatch": { "QueryString": {} }`

Example JSON for a `Method` field to match specification:

`"FieldToMatch": { "Method": { "Name": "DELETE" } }` - In a logging configuration, this is used in the `RedactedFields` property to specify a field to redact from the logging records. For this use case, note the following:

- Even though all `FieldToMatch` settings are available, the only valid settings for field redaction are `UriPath` , `QueryString` , `SingleHeader` , and `Method` . - In this documentation, the descriptions of the individual fields talk about specifying the web request component to inspect, but for field redaction, you are specifying the component type to redact from the logs. - If you have request sampling enabled, the redacted fields configuration for logging has no impact on sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

fieldToMatchProperty := &FieldToMatchProperty{
	AllQueryArguments: allQueryArguments,
	Body: &BodyProperty{
		OversizeHandling: jsii.String("oversizeHandling"),
	},
	Cookies: &CookiesProperty{
		MatchPattern: &CookieMatchPatternProperty{
			All: all,
			ExcludedCookies: []*string{
				jsii.String("excludedCookies"),
			},
			IncludedCookies: []*string{
				jsii.String("includedCookies"),
			},
		},
		MatchScope: jsii.String("matchScope"),
		OversizeHandling: jsii.String("oversizeHandling"),
	},
	Headers: &HeadersProperty{
		MatchPattern: &HeaderMatchPatternProperty{
			All: all,
			ExcludedHeaders: []*string{
				jsii.String("excludedHeaders"),
			},
			IncludedHeaders: []*string{
				jsii.String("includedHeaders"),
			},
		},
		MatchScope: jsii.String("matchScope"),
		OversizeHandling: jsii.String("oversizeHandling"),
	},
	Ja3Fingerprint: &JA3FingerprintProperty{
		FallbackBehavior: jsii.String("fallbackBehavior"),
	},
	JsonBody: &JsonBodyProperty{
		MatchPattern: &JsonMatchPatternProperty{
			All: all,
			IncludedPaths: []*string{
				jsii.String("includedPaths"),
			},
		},
		MatchScope: jsii.String("matchScope"),

		// the properties below are optional
		InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
		OversizeHandling: jsii.String("oversizeHandling"),
	},
	Method: method,
	QueryString: queryString,
	SingleHeader: singleHeader,
	SingleQueryArgument: singleQueryArgument,
	UriPath: uriPath,
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-fieldtomatch.html

type CfnRuleGroup_ForwardedIPConfigurationProperty

type CfnRuleGroup_ForwardedIPConfigurationProperty struct {
	// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	//
	// You can specify the following fallback behaviors:
	//
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-forwardedipconfiguration.html#cfn-wafv2-rulegroup-forwardedipconfiguration-fallbackbehavior
	//
	FallbackBehavior *string `field:"required" json:"fallbackBehavior" yaml:"fallbackBehavior"`
	// The name of the HTTP header to use for the IP address.
	//
	// For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-forwardedipconfiguration.html#cfn-wafv2-rulegroup-forwardedipconfiguration-headername
	//
	HeaderName *string `field:"required" json:"headerName" yaml:"headerName"`
}

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.

Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.

This configuration is used for `GeoMatchStatement` and `RateBasedStatement` . For `IPSetReferenceStatement` , use `IPSetForwardedIPConfig` instead.

AWS WAF only evaluates the first IP address found in the specified HTTP header.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

forwardedIPConfigurationProperty := &ForwardedIPConfigurationProperty{
	FallbackBehavior: jsii.String("fallbackBehavior"),
	HeaderName: jsii.String("headerName"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-forwardedipconfiguration.html

type CfnRuleGroup_GeoMatchStatementProperty

type CfnRuleGroup_GeoMatchStatementProperty struct {
	// 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.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html#cfn-wafv2-rulegroup-geomatchstatement-countrycodes
	//
	CountryCodes *[]*string `field:"optional" json:"countryCodes" yaml:"countryCodes"`
	// 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.
	//
	// Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html#cfn-wafv2-rulegroup-geomatchstatement-forwardedipconfig
	//
	ForwardedIpConfig interface{} `field:"optional" json:"forwardedIpConfig" yaml:"forwardedIpConfig"`
}

A rule statement that labels web requests by country and region and that matches against web requests based on country code.

A geo match rule labels every request that it inspects regardless of whether it finds a match.

- 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. - 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.

AWS 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` .

If you use the web request origin, the label formats are `awswaf:clientip:geo:region:<ISO country code>-<ISO region code>` and `awswaf:clientip:geo:country:<ISO country code>` .

If you use a forwarded IP address, the label formats are `awswaf:forwardedip:geo:region:<ISO country code>-<ISO region code>` and `awswaf:forwardedip:geo:country:<ISO country code>` .

For 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) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

geoMatchStatementProperty := &GeoMatchStatementProperty{
	CountryCodes: []*string{
		jsii.String("countryCodes"),
	},
	ForwardedIpConfig: &ForwardedIPConfigurationProperty{
		FallbackBehavior: jsii.String("fallbackBehavior"),
		HeaderName: jsii.String("headerName"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-geomatchstatement.html

type CfnRuleGroup_HeaderMatchPatternProperty added in v2.25.0

type CfnRuleGroup_HeaderMatchPatternProperty struct {
	// Inspect all headers.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headermatchpattern.html#cfn-wafv2-rulegroup-headermatchpattern-all
	//
	All interface{} `field:"optional" json:"all" yaml:"all"`
	// Inspect only the headers whose keys don't match any of the strings specified here.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headermatchpattern.html#cfn-wafv2-rulegroup-headermatchpattern-excludedheaders
	//
	ExcludedHeaders *[]*string `field:"optional" json:"excludedHeaders" yaml:"excludedHeaders"`
	// Inspect only the headers that have a key that matches one of the strings specified here.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headermatchpattern.html#cfn-wafv2-rulegroup-headermatchpattern-includedheaders
	//
	IncludedHeaders *[]*string `field:"optional" json:"includedHeaders" yaml:"includedHeaders"`
}

The filter to use to identify the subset of headers to inspect in a web request.

You must specify exactly one setting: either `All` , `IncludedHeaders` , or `ExcludedHeaders` .

Example JSON: `"MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

headerMatchPatternProperty := &HeaderMatchPatternProperty{
	All: all,
	ExcludedHeaders: []*string{
		jsii.String("excludedHeaders"),
	},
	IncludedHeaders: []*string{
		jsii.String("includedHeaders"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headermatchpattern.html

type CfnRuleGroup_HeadersProperty added in v2.25.0

type CfnRuleGroup_HeadersProperty struct {
	// The filter to use to identify the subset of headers to inspect in a web request.
	//
	// You must specify exactly one setting: either `All` , `IncludedHeaders` , or `ExcludedHeaders` .
	//
	// Example JSON: `"MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headers.html#cfn-wafv2-rulegroup-headers-matchpattern
	//
	MatchPattern interface{} `field:"required" json:"matchPattern" yaml:"matchPattern"`
	// The parts of the headers to match with the rule inspection criteria.
	//
	// If you specify `ALL` , AWS WAF inspects both keys and values.
	//
	// `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headers.html#cfn-wafv2-rulegroup-headers-matchscope
	//
	MatchScope *string `field:"required" json:"matchScope" yaml:"matchScope"`
	// What AWS WAF should do if the headers of the request are more numerous or larger than AWS WAF can inspect.
	//
	// 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 .
	//
	// The options for oversize handling are the following:
	//
	// - `CONTINUE` - Inspect the available headers normally, according to the rule inspection criteria.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headers.html#cfn-wafv2-rulegroup-headers-oversizehandling
	//
	OversizeHandling *string `field:"required" json:"oversizeHandling" yaml:"oversizeHandling"`
}

Inspect all headers in the web request.

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.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

If you want to inspect just the value of a single header, use the `SingleHeader` `FieldToMatch` setting instead.

Example JSON: `"Headers": { "MatchPattern": { "All": {} }, "MatchScope": "KEY", "OversizeHandling": "MATCH" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

headersProperty := &HeadersProperty{
	MatchPattern: &HeaderMatchPatternProperty{
		All: all,
		ExcludedHeaders: []*string{
			jsii.String("excludedHeaders"),
		},
		IncludedHeaders: []*string{
			jsii.String("includedHeaders"),
		},
	},
	MatchScope: jsii.String("matchScope"),
	OversizeHandling: jsii.String("oversizeHandling"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-headers.html

type CfnRuleGroup_IPSetForwardedIPConfigurationProperty

type CfnRuleGroup_IPSetForwardedIPConfigurationProperty struct {
	// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	//
	// You can specify the following fallback behaviors:
	//
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-fallbackbehavior
	//
	FallbackBehavior *string `field:"required" json:"fallbackBehavior" yaml:"fallbackBehavior"`
	// The name of the HTTP header to use for the IP address.
	//
	// For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-headername
	//
	HeaderName *string `field:"required" json:"headerName" yaml:"headerName"`
	// The position in the header to search for the IP address.
	//
	// 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.
	//
	// The options for this setting are the following:
	//
	// - FIRST - Inspect the first IP address in the list of IP addresses in the header. This is usually the client's original IP.
	// - LAST - Inspect the last IP address in the list of IP addresses in the header.
	// - 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html#cfn-wafv2-rulegroup-ipsetforwardedipconfiguration-position
	//
	Position *string `field:"required" json:"position" yaml:"position"`
}

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.

Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.

This configuration is used only for `IPSetReferenceStatement` . For `GeoMatchStatement` and `RateBasedStatement` , use `ForwardedIPConfig` instead.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iPSetForwardedIPConfigurationProperty := map[string]*string{
	"fallbackBehavior": jsii.String("fallbackBehavior"),
	"headerName": jsii.String("headerName"),
	"position": jsii.String("position"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetforwardedipconfiguration.html

type CfnRuleGroup_IPSetReferenceStatementProperty

type CfnRuleGroup_IPSetReferenceStatementProperty struct {
	// The Amazon Resource Name (ARN) of the `IPSet` that this statement references.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html#cfn-wafv2-rulegroup-ipsetreferencestatement-arn
	//
	Arn *string `field:"required" json:"arn" yaml:"arn"`
	// 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.
	//
	// Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html#cfn-wafv2-rulegroup-ipsetreferencestatement-ipsetforwardedipconfig
	//
	IpSetForwardedIpConfig interface{} `field:"optional" json:"ipSetForwardedIpConfig" yaml:"ipSetForwardedIpConfig"`
}

A rule statement used to detect web requests coming from particular IP addresses or address ranges.

To use this, create an `IPSet` that specifies the addresses you want to detect, then use the ARN of that set in this statement.

Each 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iPSetReferenceStatementProperty := map[string]interface{}{
	"arn": jsii.String("arn"),

	// the properties below are optional
	"ipSetForwardedIpConfig": map[string]*string{
		"fallbackBehavior": jsii.String("fallbackBehavior"),
		"headerName": jsii.String("headerName"),
		"position": jsii.String("position"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ipsetreferencestatement.html

type CfnRuleGroup_ImmunityTimePropertyProperty added in v2.2.0

type CfnRuleGroup_ImmunityTimePropertyProperty struct {
	// The amount of time, in seconds, that a `CAPTCHA` or challenge timestamp is considered valid by AWS WAF .
	//
	// The default setting is 300.
	//
	// For the Challenge action, the minimum setting is 300.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-immunitytimeproperty.html#cfn-wafv2-rulegroup-immunitytimeproperty-immunitytime
	//
	ImmunityTime *float64 `field:"required" json:"immunityTime" yaml:"immunityTime"`
}

Used for CAPTCHA and challenge token settings.

Determines how long a `CAPTCHA` or challenge timestamp remains valid after AWS WAF updates it for a successful `CAPTCHA` or challenge response.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

immunityTimePropertyProperty := &ImmunityTimePropertyProperty{
	ImmunityTime: jsii.Number(123),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-immunitytimeproperty.html

type CfnRuleGroup_JA3FingerprintProperty added in v2.133.0

type CfnRuleGroup_JA3FingerprintProperty struct {
	// The match status to assign to the web request if the request doesn't have a JA3 fingerprint.
	//
	// You can specify the following fallback behaviors:
	//
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ja3fingerprint.html#cfn-wafv2-rulegroup-ja3fingerprint-fallbackbehavior
	//
	FallbackBehavior *string `field:"required" json:"fallbackBehavior" yaml:"fallbackBehavior"`
}

Match against the request's JA3 fingerprint.

The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello information for the calculation. Almost all web requests include this information.

> You can use this choice only with a string match `ByteMatchStatement` with the `PositionalConstraint` set to `EXACTLY` .

You can obtain the JA3 fingerprint for client requests from the web ACL logs. If AWS WAF is able to calculate the fingerprint, it includes it in the logs. For information about the logging fields, see [Log fields](https://docs.aws.amazon.com/waf/latest/developerguide/logging-fields.html) in the *AWS WAF Developer Guide* .

Provide the JA3 fingerprint string from the logs in your string match statement specification, to match with any future requests that have the same TLS configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

jA3FingerprintProperty := &JA3FingerprintProperty{
	FallbackBehavior: jsii.String("fallbackBehavior"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ja3fingerprint.html

type CfnRuleGroup_JsonBodyProperty

type CfnRuleGroup_JsonBodyProperty struct {
	// The patterns to look for in the JSON body.
	//
	// AWS WAF inspects the results of these pattern matches against the rule inspection criteria.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-matchpattern
	//
	MatchPattern interface{} `field:"required" json:"matchPattern" yaml:"matchPattern"`
	// The parts of the JSON to match against using the `MatchPattern` .
	//
	// If you specify `ALL` , AWS WAF matches against keys and values.
	//
	// `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-matchscope
	//
	MatchScope *string `field:"required" json:"matchScope" yaml:"matchScope"`
	// What AWS WAF should do if it fails to completely parse the JSON body. The options are the following:.
	//
	// - `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.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	//
	// If you don't provide this setting, AWS WAF parses and evaluates the content only up to the first parsing failure that it encounters.
	//
	// AWS 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.
	//
	// AWS WAF parses the JSON in the following examples as two valid key, value pairs:
	//
	// - Missing comma: `{"key1":"value1""key2":"value2"}`
	// - Missing colon: `{"key1":"value1","key2""value2"}`
	// - Extra colons: `{"key1"::"value1","key2""value2"}`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-invalidfallbackbehavior
	//
	InvalidFallbackBehavior *string `field:"optional" json:"invalidFallbackBehavior" yaml:"invalidFallbackBehavior"`
	// What AWS WAF should do if the body is larger than AWS WAF can inspect.
	//
	// AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection.
	//
	// - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL `AssociationConfig` , for additional processing fees.
	//
	// The options for oversize handling are the following:
	//
	// - `CONTINUE` - Inspect the available body contents normally, according to the rule inspection criteria.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	//
	// You 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.
	//
	// Default: `CONTINUE`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html#cfn-wafv2-rulegroup-jsonbody-oversizehandling
	//
	OversizeHandling *string `field:"optional" json:"oversizeHandling" yaml:"oversizeHandling"`
}

Inspect the body of the web request as JSON. The body immediately follows the request headers.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Use 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.

Example JSON: `"JsonBody": { "MatchPattern": { "All": {} }, "MatchScope": "ALL" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

jsonBodyProperty := &JsonBodyProperty{
	MatchPattern: &JsonMatchPatternProperty{
		All: all,
		IncludedPaths: []*string{
			jsii.String("includedPaths"),
		},
	},
	MatchScope: jsii.String("matchScope"),

	// the properties below are optional
	InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
	OversizeHandling: jsii.String("oversizeHandling"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonbody.html

type CfnRuleGroup_JsonMatchPatternProperty

type CfnRuleGroup_JsonMatchPatternProperty struct {
	// Match all of the elements. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification.
	//
	// You must specify either this setting or the `IncludedPaths` setting, but not both.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonmatchpattern.html#cfn-wafv2-rulegroup-jsonmatchpattern-all
	//
	All interface{} `field:"optional" json:"all" yaml:"all"`
	// Match only the specified include paths. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification.
	//
	// 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) .
	//
	// You must specify either this setting or the `All` setting, but not both.
	//
	// > Don't use this option to include all paths. Instead, use the `All` setting.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonmatchpattern.html#cfn-wafv2-rulegroup-jsonmatchpattern-includedpaths
	//
	IncludedPaths *[]*string `field:"optional" json:"includedPaths" yaml:"includedPaths"`
}

The patterns to look for in the JSON body.

AWS WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the `FieldToMatch` option `JsonBody` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

jsonMatchPatternProperty := &JsonMatchPatternProperty{
	All: all,
	IncludedPaths: []*string{
		jsii.String("includedPaths"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-jsonmatchpattern.html

type CfnRuleGroup_LabelMatchStatementProperty

type CfnRuleGroup_LabelMatchStatementProperty struct {
	// The string to match against. The setting you provide for this depends on the match statement's `Scope` setting:.
	//
	// - 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.
	// - 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.
	//
	// Labels are case sensitive and components of a label must be separated by colon, for example `NS1:NS2:name` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelmatchstatement.html#cfn-wafv2-rulegroup-labelmatchstatement-key
	//
	Key *string `field:"required" json:"key" yaml:"key"`
	// Specify whether you want to match using the label name or just the namespace.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelmatchstatement.html#cfn-wafv2-rulegroup-labelmatchstatement-scope
	//
	Scope *string `field:"required" json:"scope" yaml:"scope"`
}

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.

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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

labelMatchStatementProperty := &LabelMatchStatementProperty{
	Key: jsii.String("key"),
	Scope: jsii.String("scope"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelmatchstatement.html

type CfnRuleGroup_LabelProperty

type CfnRuleGroup_LabelProperty struct {
	// The label string.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-label.html#cfn-wafv2-rulegroup-label-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

A single label container.

This is used as an element of a label array in `RuleLabels` inside a rule.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

labelProperty := &LabelProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-label.html

type CfnRuleGroup_LabelSummaryProperty

type CfnRuleGroup_LabelSummaryProperty struct {
	// An individual label specification.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelsummary.html#cfn-wafv2-rulegroup-labelsummary-name
	//
	Name *string `field:"optional" json:"name" yaml:"name"`
}

List of labels used by one or more of the rules of a `RuleGroup` .

This summary object is used for the following rule group lists:

- `AvailableLabels` - Labels that rules add to matching requests. These labels are defined in the `RuleLabels` for a rule. - `ConsumedLabels` - Labels that rules match against. These labels are defined in a `LabelMatchStatement` specification, in the `Statement` definition of a rule.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

labelSummaryProperty := &LabelSummaryProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-labelsummary.html

type CfnRuleGroup_NotStatementProperty

type CfnRuleGroup_NotStatementProperty struct {
	// The statement to negate.
	//
	// You can use any statement that can be nested.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-notstatement.html#cfn-wafv2-rulegroup-notstatement-statement
	//
	Statement interface{} `field:"required" json:"statement" yaml:"statement"`
}

A logical rule statement used to negate the results of another rule statement.

You provide one `Statement` within the `NotStatement` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}
var method interface{}
var notStatementProperty_ notStatementProperty
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var statementProperty_ statementProperty
var uriPath interface{}

notStatementProperty := &notStatementProperty{
	Statement: &statementProperty{
		AndStatement: &AndStatementProperty{
			Statements: []interface{}{
				statementProperty_,
			},
		},
		ByteMatchStatement: &ByteMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			PositionalConstraint: jsii.String("positionalConstraint"),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},

			// the properties below are optional
			SearchString: jsii.String("searchString"),
			SearchStringBase64: jsii.String("searchStringBase64"),
		},
		GeoMatchStatement: &GeoMatchStatementProperty{
			CountryCodes: []*string{
				jsii.String("countryCodes"),
			},
			ForwardedIpConfig: &ForwardedIPConfigurationProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
				HeaderName: jsii.String("headerName"),
			},
		},
		IpSetReferenceStatement: map[string]interface{}{
			"arn": jsii.String("arn"),

			// the properties below are optional
			"ipSetForwardedIpConfig": map[string]*string{
				"fallbackBehavior": jsii.String("fallbackBehavior"),
				"headerName": jsii.String("headerName"),
				"position": jsii.String("position"),
			},
		},
		LabelMatchStatement: &LabelMatchStatementProperty{
			Key: jsii.String("key"),
			Scope: jsii.String("scope"),
		},
		NotStatement: notStatementProperty_,
		OrStatement: &OrStatementProperty{
			Statements: []interface{}{
				statementProperty_,
			},
		},
		RateBasedStatement: &RateBasedStatementProperty{
			AggregateKeyType: jsii.String("aggregateKeyType"),
			Limit: jsii.Number(123),

			// the properties below are optional
			CustomKeys: []interface{}{
				&RateBasedStatementCustomKeyProperty{
					Cookie: &RateLimitCookieProperty{
						Name: jsii.String("name"),
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
					ForwardedIp: forwardedIp,
					Header: &RateLimitHeaderProperty{
						Name: jsii.String("name"),
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
					HttpMethod: httpMethod,
					Ip: ip,
					LabelNamespace: &RateLimitLabelNamespaceProperty{
						Namespace: jsii.String("namespace"),
					},
					QueryArgument: &RateLimitQueryArgumentProperty{
						Name: jsii.String("name"),
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
					QueryString: &RateLimitQueryStringProperty{
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
					UriPath: &RateLimitUriPathProperty{
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
				},
			},
			EvaluationWindowSec: jsii.Number(123),
			ForwardedIpConfig: &ForwardedIPConfigurationProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
				HeaderName: jsii.String("headerName"),
			},
			ScopeDownStatement: statementProperty_,
		},
		RegexMatchStatement: &RegexMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			RegexString: jsii.String("regexString"),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		RegexPatternSetReferenceStatement: &RegexPatternSetReferenceStatementProperty{
			Arn: jsii.String("arn"),
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		SizeConstraintStatement: &SizeConstraintStatementProperty{
			ComparisonOperator: jsii.String("comparisonOperator"),
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			Size: jsii.Number(123),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		SqliMatchStatement: &SqliMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},

			// the properties below are optional
			SensitivityLevel: jsii.String("sensitivityLevel"),
		},
		XssMatchStatement: &XssMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-notstatement.html

type CfnRuleGroup_OrStatementProperty

type CfnRuleGroup_OrStatementProperty struct {
	// The statements to combine with OR logic.
	//
	// You can use any statements that can be nested.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-orstatement.html#cfn-wafv2-rulegroup-orstatement-statements
	//
	Statements interface{} `field:"required" json:"statements" yaml:"statements"`
}

A logical rule statement used to combine other rule statements with OR logic.

You provide more than one `Statement` within the `OrStatement` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}
var method interface{}
var orStatementProperty_ orStatementProperty
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var statementProperty_ statementProperty
var uriPath interface{}

orStatementProperty := &orStatementProperty{
	Statements: []interface{}{
		&statementProperty{
			AndStatement: &AndStatementProperty{
				Statements: []interface{}{
					statementProperty_,
				},
			},
			ByteMatchStatement: &ByteMatchStatementProperty{
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				PositionalConstraint: jsii.String("positionalConstraint"),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},

				// the properties below are optional
				SearchString: jsii.String("searchString"),
				SearchStringBase64: jsii.String("searchStringBase64"),
			},
			GeoMatchStatement: &GeoMatchStatementProperty{
				CountryCodes: []*string{
					jsii.String("countryCodes"),
				},
				ForwardedIpConfig: &ForwardedIPConfigurationProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
					HeaderName: jsii.String("headerName"),
				},
			},
			IpSetReferenceStatement: map[string]interface{}{
				"arn": jsii.String("arn"),

				// the properties below are optional
				"ipSetForwardedIpConfig": map[string]*string{
					"fallbackBehavior": jsii.String("fallbackBehavior"),
					"headerName": jsii.String("headerName"),
					"position": jsii.String("position"),
				},
			},
			LabelMatchStatement: &LabelMatchStatementProperty{
				Key: jsii.String("key"),
				Scope: jsii.String("scope"),
			},
			NotStatement: &NotStatementProperty{
				Statement: statementProperty_,
			},
			OrStatement: orStatementProperty_,
			RateBasedStatement: &RateBasedStatementProperty{
				AggregateKeyType: jsii.String("aggregateKeyType"),
				Limit: jsii.Number(123),

				// the properties below are optional
				CustomKeys: []interface{}{
					&RateBasedStatementCustomKeyProperty{
						Cookie: &RateLimitCookieProperty{
							Name: jsii.String("name"),
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
						ForwardedIp: forwardedIp,
						Header: &RateLimitHeaderProperty{
							Name: jsii.String("name"),
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
						HttpMethod: httpMethod,
						Ip: ip,
						LabelNamespace: &RateLimitLabelNamespaceProperty{
							Namespace: jsii.String("namespace"),
						},
						QueryArgument: &RateLimitQueryArgumentProperty{
							Name: jsii.String("name"),
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
						QueryString: &RateLimitQueryStringProperty{
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
						UriPath: &RateLimitUriPathProperty{
							TextTransformations: []interface{}{
								&TextTransformationProperty{
									Priority: jsii.Number(123),
									Type: jsii.String("type"),
								},
							},
						},
					},
				},
				EvaluationWindowSec: jsii.Number(123),
				ForwardedIpConfig: &ForwardedIPConfigurationProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
					HeaderName: jsii.String("headerName"),
				},
				ScopeDownStatement: statementProperty_,
			},
			RegexMatchStatement: &RegexMatchStatementProperty{
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				RegexString: jsii.String("regexString"),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			RegexPatternSetReferenceStatement: &RegexPatternSetReferenceStatementProperty{
				Arn: jsii.String("arn"),
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			SizeConstraintStatement: &SizeConstraintStatementProperty{
				ComparisonOperator: jsii.String("comparisonOperator"),
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				Size: jsii.Number(123),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			SqliMatchStatement: &SqliMatchStatementProperty{
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},

				// the properties below are optional
				SensitivityLevel: jsii.String("sensitivityLevel"),
			},
			XssMatchStatement: &XssMatchStatementProperty{
				FieldToMatch: &FieldToMatchProperty{
					AllQueryArguments: allQueryArguments,
					Body: &BodyProperty{
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Cookies: &CookiesProperty{
						MatchPattern: &CookieMatchPatternProperty{
							All: all,
							ExcludedCookies: []*string{
								jsii.String("excludedCookies"),
							},
							IncludedCookies: []*string{
								jsii.String("includedCookies"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Headers: &HeadersProperty{
						MatchPattern: &HeaderMatchPatternProperty{
							All: all,
							ExcludedHeaders: []*string{
								jsii.String("excludedHeaders"),
							},
							IncludedHeaders: []*string{
								jsii.String("includedHeaders"),
							},
						},
						MatchScope: jsii.String("matchScope"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Ja3Fingerprint: &JA3FingerprintProperty{
						FallbackBehavior: jsii.String("fallbackBehavior"),
					},
					JsonBody: &JsonBodyProperty{
						MatchPattern: &JsonMatchPatternProperty{
							All: all,
							IncludedPaths: []*string{
								jsii.String("includedPaths"),
							},
						},
						MatchScope: jsii.String("matchScope"),

						// the properties below are optional
						InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
						OversizeHandling: jsii.String("oversizeHandling"),
					},
					Method: method,
					QueryString: queryString,
					SingleHeader: singleHeader,
					SingleQueryArgument: singleQueryArgument,
					UriPath: uriPath,
				},
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-orstatement.html

type CfnRuleGroup_RateBasedStatementCustomKeyProperty added in v2.91.0

type CfnRuleGroup_RateBasedStatementCustomKeyProperty struct {
	// Use the value of a cookie in the request as an aggregate key.
	//
	// Each distinct value in the cookie contributes to the aggregation instance. If you use a single cookie as your custom key, then each value fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-cookie
	//
	Cookie interface{} `field:"optional" json:"cookie" yaml:"cookie"`
	// Use the first IP address in an HTTP header as an aggregate key.
	//
	// Each distinct forwarded IP address contributes to the aggregation instance.
	//
	// When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use. You can aggregate on only the forwarded IP address by specifying `FORWARDED_IP` in your rate-based statement's `AggregateKeyType` .
	//
	// With this option, you must specify the header to use in the rate-based rule's `ForwardedIPConfig` property.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-forwardedip
	//
	ForwardedIp interface{} `field:"optional" json:"forwardedIp" yaml:"forwardedIp"`
	// Use the value of a header in the request as an aggregate key.
	//
	// Each distinct value in the header contributes to the aggregation instance. If you use a single header as your custom key, then each value fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-header
	//
	Header interface{} `field:"optional" json:"header" yaml:"header"`
	// Use the request's HTTP method as an aggregate key.
	//
	// Each distinct HTTP method contributes to the aggregation instance. If you use just the HTTP method as your custom key, then each method fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-httpmethod
	//
	HttpMethod interface{} `field:"optional" json:"httpMethod" yaml:"httpMethod"`
	// Use the request's originating IP address as an aggregate key. Each distinct IP address contributes to the aggregation instance.
	//
	// When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use. You can aggregate on only the IP address by specifying `IP` in your rate-based statement's `AggregateKeyType` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-ip
	//
	Ip interface{} `field:"optional" json:"ip" yaml:"ip"`
	// Use the specified label namespace as an aggregate key.
	//
	// Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance.
	//
	// This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL.
	//
	// For information about label namespaces and names, see [Label syntax and naming requirements](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-requirements.html) in the *AWS WAF Developer Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-labelnamespace
	//
	LabelNamespace interface{} `field:"optional" json:"labelNamespace" yaml:"labelNamespace"`
	// Use the specified query argument as an aggregate key.
	//
	// Each distinct value for the named query argument contributes to the aggregation instance. If you use a single query argument as your custom key, then each value fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-queryargument
	//
	QueryArgument interface{} `field:"optional" json:"queryArgument" yaml:"queryArgument"`
	// Use the request's query string as an aggregate key.
	//
	// Each distinct string contributes to the aggregation instance. If you use just the query string as your custom key, then each string fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-querystring
	//
	QueryString interface{} `field:"optional" json:"queryString" yaml:"queryString"`
	// Use the request's URI path as an aggregate key.
	//
	// Each distinct URI path contributes to the aggregation instance. If you use just the URI path as your custom key, then each URI path fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html#cfn-wafv2-rulegroup-ratebasedstatementcustomkey-uripath
	//
	UriPath interface{} `field:"optional" json:"uriPath" yaml:"uriPath"`
}

Specifies a single custom aggregate key for a rate-base rule.

> Web requests that are missing any of the components specified in the aggregation keys are omitted from the rate-based rule evaluation and handling.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}

rateBasedStatementCustomKeyProperty := &RateBasedStatementCustomKeyProperty{
	Cookie: &RateLimitCookieProperty{
		Name: jsii.String("name"),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	ForwardedIp: forwardedIp,
	Header: &RateLimitHeaderProperty{
		Name: jsii.String("name"),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	HttpMethod: httpMethod,
	Ip: ip,
	LabelNamespace: &RateLimitLabelNamespaceProperty{
		Namespace: jsii.String("namespace"),
	},
	QueryArgument: &RateLimitQueryArgumentProperty{
		Name: jsii.String("name"),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	QueryString: &RateLimitQueryStringProperty{
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	UriPath: &RateLimitUriPathProperty{
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatementcustomkey.html

type CfnRuleGroup_RateBasedStatementProperty

type CfnRuleGroup_RateBasedStatementProperty struct {
	// Setting that indicates how to aggregate the request counts.
	//
	// > Web requests that are missing any of the components specified in the aggregation keys are omitted from the rate-based rule evaluation and handling.
	//
	// - `CONSTANT` - Count and limit the requests that match the rate-based rule's scope-down statement. With this option, the counted requests aren't further aggregated. The scope-down statement is the only specification used. When the count of all requests that satisfy the scope-down statement goes over the limit, AWS WAF applies the rule action to all requests that satisfy the scope-down statement.
	//
	// With this option, you must configure the `ScopeDownStatement` property.
	// - `CUSTOM_KEYS` - Aggregate the request counts using one or more web request components as the aggregate keys.
	//
	// With this option, you must specify the aggregate keys in the `CustomKeys` property.
	//
	// To aggregate on only the IP address or only the forwarded IP address, don't use custom keys. Instead, set the aggregate key type to `IP` or `FORWARDED_IP` .
	// - `FORWARDED_IP` - Aggregate the request counts on the first IP address in an HTTP header.
	//
	// With this option, you must specify the header to use in the `ForwardedIPConfig` property.
	//
	// To aggregate on a combination of the forwarded IP address with other aggregate keys, use `CUSTOM_KEYS` .
	// - `IP` - Aggregate the request counts on the IP address from the web request origin.
	//
	// To aggregate on a combination of the IP address with other aggregate keys, use `CUSTOM_KEYS` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-aggregatekeytype
	//
	AggregateKeyType *string `field:"required" json:"aggregateKeyType" yaml:"aggregateKeyType"`
	// The limit on requests per 5-minute period for a single aggregation instance for the rate-based rule.
	//
	// If the rate-based statement includes a `ScopeDownStatement` , this limit is applied only to the requests that match the statement.
	//
	// Examples:
	//
	// - If you aggregate on just the IP address, this is the limit on requests from any single IP address.
	// - If you aggregate on the HTTP method and the query argument name "city", then this is the limit on requests for any single method, city pair.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-limit
	//
	Limit *float64 `field:"required" json:"limit" yaml:"limit"`
	// Specifies the aggregate keys to use in a rate-base rule.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-customkeys
	//
	CustomKeys interface{} `field:"optional" json:"customKeys" yaml:"customKeys"`
	// The amount of time, in seconds, that AWS WAF should include in its request counts, looking back from the current time.
	//
	// For example, for a setting of 120, when AWS WAF checks the rate, it counts the requests for the 2 minutes immediately preceding the current time. Valid settings are 60, 120, 300, and 600.
	//
	// This setting doesn't determine how often AWS WAF checks the rate, but how far back it looks each time it checks. AWS WAF checks the rate about every 10 seconds.
	//
	// Default: `300` (5 minutes).
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-evaluationwindowsec
	//
	EvaluationWindowSec *float64 `field:"optional" json:"evaluationWindowSec" yaml:"evaluationWindowSec"`
	// 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.
	//
	// Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	//
	// This is required if you specify a forwarded IP in the rule's aggregate key settings.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-forwardedipconfig
	//
	ForwardedIpConfig interface{} `field:"optional" json:"forwardedIpConfig" yaml:"forwardedIpConfig"`
	// An optional nested statement that narrows the scope of the web requests that are evaluated and managed by the rate-based statement.
	//
	// When you use a scope-down statement, the rate-based rule only tracks and rate limits requests that 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html#cfn-wafv2-rulegroup-ratebasedstatement-scopedownstatement
	//
	ScopeDownStatement interface{} `field:"optional" json:"scopeDownStatement" yaml:"scopeDownStatement"`
}

A rate-based rule counts incoming requests and rate limits requests when they are coming at too fast a rate.

The rule categorizes requests according to your aggregation criteria, collects them into aggregation instances, and counts and rate limits the requests for each instance.

> If you change any of these settings in a rule that's currently in use, the change resets the rule's rate limiting counts. This can pause the rule's rate limiting activities for up to a minute.

You can specify individual aggregation keys, like IP address or HTTP method. You can also specify aggregation key combinations, like IP address and HTTP method, or HTTP method, query argument, and cookie.

Each unique set of values for the aggregation keys that you specify is a separate aggregation instance, with the value from each key contributing to the aggregation instance definition.

For example, assume the rule evaluates web requests with the following IP address and HTTP method values:

- IP address 10.1.1.1, HTTP method POST - IP address 10.1.1.1, HTTP method GET - IP address 127.0.0.0, HTTP method POST - IP address 10.1.1.1, HTTP method GET

The rule would create different aggregation instances according to your aggregation criteria, for example:

- If the aggregation criteria is just the IP address, then each individual address is an aggregation instance, and AWS WAF counts requests separately for each. The aggregation instances and request counts for our example would be the following:

- IP address 10.1.1.1: count 3 - IP address 127.0.0.0: count 1 - If the aggregation criteria is HTTP method, then each individual HTTP method is an aggregation instance. The aggregation instances and request counts for our example would be the following:

- HTTP method POST: count 2 - HTTP method GET: count 2 - If the aggregation criteria is IP address and HTTP method, then each IP address and each HTTP method would contribute to the combined aggregation instance. The aggregation instances and request counts for our example would be the following:

- IP address 10.1.1.1, HTTP method POST: count 1 - IP address 10.1.1.1, HTTP method GET: count 2 - IP address 127.0.0.0, HTTP method POST: count 1

For any n-tuple of aggregation keys, each unique combination of values for the keys defines a separate aggregation instance, which AWS WAF counts and rate-limits individually.

You can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts and rate limits requests that match the nested statement. You can use this nested scope-down statement in conjunction with your aggregation key specifications or you can just count and rate limit all requests that match the scope-down statement, without additional aggregation. When you choose to just manage all requests that match a scope-down statement, the aggregation instance is singular for the rule.

You 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.

For additional information about the options, see [Rate limiting web requests using rate-based rules](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rate-based-rules.html) in the *AWS WAF Developer Guide* .

If you only aggregate on the individual IP address or forwarded IP address, you can retrieve the list of IP addresses that AWS WAF is currently rate limiting for a rule through the API call `GetRateBasedStatementManagedKeys` . This option is not available for other aggregation configurations.

AWS 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 .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}
var method interface{}
var queryString interface{}
var rateBasedStatementProperty_ rateBasedStatementProperty
var singleHeader interface{}
var singleQueryArgument interface{}
var statementProperty_ statementProperty
var uriPath interface{}

rateBasedStatementProperty := &rateBasedStatementProperty{
	AggregateKeyType: jsii.String("aggregateKeyType"),
	Limit: jsii.Number(123),

	// the properties below are optional
	CustomKeys: []interface{}{
		&RateBasedStatementCustomKeyProperty{
			Cookie: &RateLimitCookieProperty{
				Name: jsii.String("name"),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			ForwardedIp: forwardedIp,
			Header: &RateLimitHeaderProperty{
				Name: jsii.String("name"),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			HttpMethod: httpMethod,
			Ip: ip,
			LabelNamespace: &RateLimitLabelNamespaceProperty{
				Namespace: jsii.String("namespace"),
			},
			QueryArgument: &RateLimitQueryArgumentProperty{
				Name: jsii.String("name"),
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			QueryString: &RateLimitQueryStringProperty{
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
			UriPath: &RateLimitUriPathProperty{
				TextTransformations: []interface{}{
					&TextTransformationProperty{
						Priority: jsii.Number(123),
						Type: jsii.String("type"),
					},
				},
			},
		},
	},
	EvaluationWindowSec: jsii.Number(123),
	ForwardedIpConfig: &ForwardedIPConfigurationProperty{
		FallbackBehavior: jsii.String("fallbackBehavior"),
		HeaderName: jsii.String("headerName"),
	},
	ScopeDownStatement: &statementProperty{
		AndStatement: &AndStatementProperty{
			Statements: []interface{}{
				statementProperty_,
			},
		},
		ByteMatchStatement: &ByteMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			PositionalConstraint: jsii.String("positionalConstraint"),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},

			// the properties below are optional
			SearchString: jsii.String("searchString"),
			SearchStringBase64: jsii.String("searchStringBase64"),
		},
		GeoMatchStatement: &GeoMatchStatementProperty{
			CountryCodes: []*string{
				jsii.String("countryCodes"),
			},
			ForwardedIpConfig: &ForwardedIPConfigurationProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
				HeaderName: jsii.String("headerName"),
			},
		},
		IpSetReferenceStatement: map[string]interface{}{
			"arn": jsii.String("arn"),

			// the properties below are optional
			"ipSetForwardedIpConfig": map[string]*string{
				"fallbackBehavior": jsii.String("fallbackBehavior"),
				"headerName": jsii.String("headerName"),
				"position": jsii.String("position"),
			},
		},
		LabelMatchStatement: &LabelMatchStatementProperty{
			Key: jsii.String("key"),
			Scope: jsii.String("scope"),
		},
		NotStatement: &NotStatementProperty{
			Statement: statementProperty_,
		},
		OrStatement: &OrStatementProperty{
			Statements: []interface{}{
				statementProperty_,
			},
		},
		RateBasedStatement: rateBasedStatementProperty_,
		RegexMatchStatement: &RegexMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			RegexString: jsii.String("regexString"),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		RegexPatternSetReferenceStatement: &RegexPatternSetReferenceStatementProperty{
			Arn: jsii.String("arn"),
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		SizeConstraintStatement: &SizeConstraintStatementProperty{
			ComparisonOperator: jsii.String("comparisonOperator"),
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			Size: jsii.Number(123),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		SqliMatchStatement: &SqliMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},

			// the properties below are optional
			SensitivityLevel: jsii.String("sensitivityLevel"),
		},
		XssMatchStatement: &XssMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratebasedstatement.html

type CfnRuleGroup_RateLimitCookieProperty added in v2.91.0

type CfnRuleGroup_RateLimitCookieProperty struct {
	// The name of the cookie to use.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitcookie.html#cfn-wafv2-rulegroup-ratelimitcookie-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitcookie.html#cfn-wafv2-rulegroup-ratelimitcookie-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies a cookie as an aggregate key for a rate-based rule.

Each distinct value in the cookie contributes to the aggregation instance. If you use a single cookie as your custom key, then each value fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitCookieProperty := &RateLimitCookieProperty{
	Name: jsii.String("name"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitcookie.html

type CfnRuleGroup_RateLimitHeaderProperty added in v2.91.0

type CfnRuleGroup_RateLimitHeaderProperty struct {
	// The name of the header to use.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitheader.html#cfn-wafv2-rulegroup-ratelimitheader-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitheader.html#cfn-wafv2-rulegroup-ratelimitheader-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies a header as an aggregate key for a rate-based rule.

Each distinct value in the header contributes to the aggregation instance. If you use a single header as your custom key, then each value fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitHeaderProperty := &RateLimitHeaderProperty{
	Name: jsii.String("name"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitheader.html

type CfnRuleGroup_RateLimitLabelNamespaceProperty added in v2.91.0

type CfnRuleGroup_RateLimitLabelNamespaceProperty struct {
	// The namespace to use for aggregation.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitlabelnamespace.html#cfn-wafv2-rulegroup-ratelimitlabelnamespace-namespace
	//
	Namespace *string `field:"required" json:"namespace" yaml:"namespace"`
}

Specifies a label namespace to use as an aggregate key for a rate-based rule.

Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance.

This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL.

For information about label namespaces and names, see [Label syntax and naming requirements](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-requirements.html) in the *AWS WAF Developer Guide* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitLabelNamespaceProperty := &RateLimitLabelNamespaceProperty{
	Namespace: jsii.String("namespace"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitlabelnamespace.html

type CfnRuleGroup_RateLimitQueryArgumentProperty added in v2.91.0

type CfnRuleGroup_RateLimitQueryArgumentProperty struct {
	// The name of the query argument to use.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitqueryargument.html#cfn-wafv2-rulegroup-ratelimitqueryargument-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitqueryargument.html#cfn-wafv2-rulegroup-ratelimitqueryargument-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies a query argument in the request as an aggregate key for a rate-based rule.

Each distinct value for the named query argument contributes to the aggregation instance. If you use a single query argument as your custom key, then each value fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitQueryArgumentProperty := &RateLimitQueryArgumentProperty{
	Name: jsii.String("name"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitqueryargument.html

type CfnRuleGroup_RateLimitQueryStringProperty added in v2.91.0

type CfnRuleGroup_RateLimitQueryStringProperty struct {
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitquerystring.html#cfn-wafv2-rulegroup-ratelimitquerystring-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies the request's query string as an aggregate key for a rate-based rule.

Each distinct string contributes to the aggregation instance. If you use just the query string as your custom key, then each string fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitQueryStringProperty := &RateLimitQueryStringProperty{
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimitquerystring.html

type CfnRuleGroup_RateLimitUriPathProperty added in v2.91.0

type CfnRuleGroup_RateLimitUriPathProperty struct {
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimituripath.html#cfn-wafv2-rulegroup-ratelimituripath-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies the request's URI path as an aggregate key for a rate-based rule.

Each distinct URI path contributes to the aggregation instance. If you use just the URI path as your custom key, then each URI path fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitUriPathProperty := &RateLimitUriPathProperty{
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ratelimituripath.html

type CfnRuleGroup_RegexMatchStatementProperty added in v2.2.0

type CfnRuleGroup_RegexMatchStatementProperty struct {
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexmatchstatement.html#cfn-wafv2-rulegroup-regexmatchstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// The string representing the regular expression.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexmatchstatement.html#cfn-wafv2-rulegroup-regexmatchstatement-regexstring
	//
	RegexString *string `field:"required" json:"regexString" yaml:"regexString"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexmatchstatement.html#cfn-wafv2-rulegroup-regexmatchstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

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.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

regexMatchStatementProperty := &RegexMatchStatementProperty{
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	RegexString: jsii.String("regexString"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexmatchstatement.html

type CfnRuleGroup_RegexPatternSetReferenceStatementProperty

type CfnRuleGroup_RegexPatternSetReferenceStatementProperty struct {
	// The Amazon Resource Name (ARN) of the `RegexPatternSet` that this statement references.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-arn
	//
	Arn *string `field:"required" json:"arn" yaml:"arn"`
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html#cfn-wafv2-rulegroup-regexpatternsetreferencestatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

A rule statement used to search web request components for matches with regular expressions.

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.

Each 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

regexPatternSetReferenceStatementProperty := &RegexPatternSetReferenceStatementProperty{
	Arn: jsii.String("arn"),
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-regexpatternsetreferencestatement.html

type CfnRuleGroup_RuleActionProperty

type CfnRuleGroup_RuleActionProperty struct {
	// Instructs AWS WAF to allow the web request.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-allow
	//
	Allow interface{} `field:"optional" json:"allow" yaml:"allow"`
	// Instructs AWS WAF to block the web request.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-block
	//
	Block interface{} `field:"optional" json:"block" yaml:"block"`
	// Specifies that AWS WAF should run a `CAPTCHA` check against the request:.
	//
	// - 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` .
	// - 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.
	//
	// AWS WAF generates a response that it sends back to the client, which includes the following:
	//
	// - The header `x-amzn-waf-action` with a value of `captcha` .
	// - The HTTP status code `405 Method Not Allowed` .
	// - If the request contains an `Accept` header with a value of `text/html` , the response includes a `CAPTCHA` challenge.
	//
	// You 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.
	//
	// This action option is available for rules. It isn't available for web ACL default actions.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-captcha
	//
	Captcha interface{} `field:"optional" json:"captcha" yaml:"captcha"`
	// Instructs AWS WAF to run a `Challenge` check against the web request.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-challenge
	//
	Challenge interface{} `field:"optional" json:"challenge" yaml:"challenge"`
	// Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html#cfn-wafv2-rulegroup-ruleaction-count
	//
	Count interface{} `field:"optional" json:"count" yaml:"count"`
}

The action that AWS WAF should take on a web request when it matches a rule's statement.

Settings at the web ACL level can override the rule action setting.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var allow interface{}
var block interface{}
var captcha interface{}
var challenge interface{}
var count interface{}

ruleActionProperty := &RuleActionProperty{
	Allow: allow,
	Block: block,
	Captcha: captcha,
	Challenge: challenge,
	Count: count,
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-ruleaction.html

type CfnRuleGroup_RuleProperty

type CfnRuleGroup_RuleProperty struct {
	// The name of the rule.
	//
	// If you change the name of a `Rule` after you create it and you want the rule's metric name to reflect the change, update the metric name in the rule's `VisibilityConfig` settings. AWS WAF doesn't automatically update the metric name when you update the rule name.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// 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` .
	//
	// AWS WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-priority
	//
	Priority *float64 `field:"required" json:"priority" yaml:"priority"`
	// The AWS WAF processing statement for the rule, for example `ByteMatchStatement` or `SizeConstraintStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-statement
	//
	Statement interface{} `field:"required" json:"statement" yaml:"statement"`
	// Defines and enables Amazon CloudWatch metrics and web request sample collection.
	//
	// If you change the name of a `Rule` after you create it and you want the rule's metric name to reflect the change, update the metric name as well. AWS WAF doesn't automatically update the metric name.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-visibilityconfig
	//
	VisibilityConfig interface{} `field:"required" json:"visibilityConfig" yaml:"visibilityConfig"`
	// The action that AWS WAF should take on a web request when it matches the rule statement.
	//
	// Settings at the web ACL level can override the rule action setting.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-action
	//
	Action interface{} `field:"optional" json:"action" yaml:"action"`
	// Specifies how AWS WAF should handle `CAPTCHA` evaluations.
	//
	// If you don't specify this, AWS WAF uses the `CAPTCHA` configuration that's defined for the web ACL.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-captchaconfig
	//
	CaptchaConfig interface{} `field:"optional" json:"captchaConfig" yaml:"captchaConfig"`
	// Specifies how AWS WAF should handle `Challenge` evaluations.
	//
	// If you don't specify this, AWS WAF uses the challenge configuration that's defined for the web ACL.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-challengeconfig
	//
	ChallengeConfig interface{} `field:"optional" json:"challengeConfig" yaml:"challengeConfig"`
	// Labels to apply to web requests that match the rule match statement.
	//
	// 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.
	//
	// Rules that run after this rule in the web ACL can match against these labels using a `LabelMatchStatement` .
	//
	// For each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:
	//
	// - Separate each component of the label with a colon.
	// - Each namespace or name can have up to 128 characters.
	// - You can specify up to 5 namespaces in a label.
	// - Don't use the following reserved words in your label specification: `aws` , `waf` , `managed` , `rulegroup` , `webacl` , `regexpatternset` , or `ipset` .
	//
	// For example, `myLabelName` or `nameSpace1:nameSpace2:myLabelName` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html#cfn-wafv2-rulegroup-rule-rulelabels
	//
	RuleLabels interface{} `field:"optional" json:"ruleLabels" yaml:"ruleLabels"`
}

A single rule, which you can use in a `WebACL` or `RuleGroup` to identify web requests that you want to manage in some way.

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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allow interface{}
var allQueryArguments interface{}
var block interface{}
var captcha interface{}
var challenge interface{}
var count interface{}
var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var statementProperty_ statementProperty
var uriPath interface{}

ruleProperty := &RuleProperty{
	Name: jsii.String("name"),
	Priority: jsii.Number(123),
	Statement: &statementProperty{
		AndStatement: &AndStatementProperty{
			Statements: []interface{}{
				statementProperty_,
			},
		},
		ByteMatchStatement: &ByteMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			PositionalConstraint: jsii.String("positionalConstraint"),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},

			// the properties below are optional
			SearchString: jsii.String("searchString"),
			SearchStringBase64: jsii.String("searchStringBase64"),
		},
		GeoMatchStatement: &GeoMatchStatementProperty{
			CountryCodes: []*string{
				jsii.String("countryCodes"),
			},
			ForwardedIpConfig: &ForwardedIPConfigurationProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
				HeaderName: jsii.String("headerName"),
			},
		},
		IpSetReferenceStatement: map[string]interface{}{
			"arn": jsii.String("arn"),

			// the properties below are optional
			"ipSetForwardedIpConfig": map[string]*string{
				"fallbackBehavior": jsii.String("fallbackBehavior"),
				"headerName": jsii.String("headerName"),
				"position": jsii.String("position"),
			},
		},
		LabelMatchStatement: &LabelMatchStatementProperty{
			Key: jsii.String("key"),
			Scope: jsii.String("scope"),
		},
		NotStatement: &NotStatementProperty{
			Statement: statementProperty_,
		},
		OrStatement: &OrStatementProperty{
			Statements: []interface{}{
				statementProperty_,
			},
		},
		RateBasedStatement: &RateBasedStatementProperty{
			AggregateKeyType: jsii.String("aggregateKeyType"),
			Limit: jsii.Number(123),

			// the properties below are optional
			CustomKeys: []interface{}{
				&RateBasedStatementCustomKeyProperty{
					Cookie: &RateLimitCookieProperty{
						Name: jsii.String("name"),
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
					ForwardedIp: forwardedIp,
					Header: &RateLimitHeaderProperty{
						Name: jsii.String("name"),
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
					HttpMethod: httpMethod,
					Ip: ip,
					LabelNamespace: &RateLimitLabelNamespaceProperty{
						Namespace: jsii.String("namespace"),
					},
					QueryArgument: &RateLimitQueryArgumentProperty{
						Name: jsii.String("name"),
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
					QueryString: &RateLimitQueryStringProperty{
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
					UriPath: &RateLimitUriPathProperty{
						TextTransformations: []interface{}{
							&TextTransformationProperty{
								Priority: jsii.Number(123),
								Type: jsii.String("type"),
							},
						},
					},
				},
			},
			EvaluationWindowSec: jsii.Number(123),
			ForwardedIpConfig: &ForwardedIPConfigurationProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
				HeaderName: jsii.String("headerName"),
			},
			ScopeDownStatement: statementProperty_,
		},
		RegexMatchStatement: &RegexMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			RegexString: jsii.String("regexString"),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		RegexPatternSetReferenceStatement: &RegexPatternSetReferenceStatementProperty{
			Arn: jsii.String("arn"),
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		SizeConstraintStatement: &SizeConstraintStatementProperty{
			ComparisonOperator: jsii.String("comparisonOperator"),
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			Size: jsii.Number(123),
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
		SqliMatchStatement: &SqliMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},

			// the properties below are optional
			SensitivityLevel: jsii.String("sensitivityLevel"),
		},
		XssMatchStatement: &XssMatchStatementProperty{
			FieldToMatch: &FieldToMatchProperty{
				AllQueryArguments: allQueryArguments,
				Body: &BodyProperty{
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Cookies: &CookiesProperty{
					MatchPattern: &CookieMatchPatternProperty{
						All: all,
						ExcludedCookies: []*string{
							jsii.String("excludedCookies"),
						},
						IncludedCookies: []*string{
							jsii.String("includedCookies"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Headers: &HeadersProperty{
					MatchPattern: &HeaderMatchPatternProperty{
						All: all,
						ExcludedHeaders: []*string{
							jsii.String("excludedHeaders"),
						},
						IncludedHeaders: []*string{
							jsii.String("includedHeaders"),
						},
					},
					MatchScope: jsii.String("matchScope"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Ja3Fingerprint: &JA3FingerprintProperty{
					FallbackBehavior: jsii.String("fallbackBehavior"),
				},
				JsonBody: &JsonBodyProperty{
					MatchPattern: &JsonMatchPatternProperty{
						All: all,
						IncludedPaths: []*string{
							jsii.String("includedPaths"),
						},
					},
					MatchScope: jsii.String("matchScope"),

					// the properties below are optional
					InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
					OversizeHandling: jsii.String("oversizeHandling"),
				},
				Method: method,
				QueryString: queryString,
				SingleHeader: singleHeader,
				SingleQueryArgument: singleQueryArgument,
				UriPath: uriPath,
			},
			TextTransformations: []interface{}{
				&TextTransformationProperty{
					Priority: jsii.Number(123),
					Type: jsii.String("type"),
				},
			},
		},
	},
	VisibilityConfig: &VisibilityConfigProperty{
		CloudWatchMetricsEnabled: jsii.Boolean(false),
		MetricName: jsii.String("metricName"),
		SampledRequestsEnabled: jsii.Boolean(false),
	},

	// the properties below are optional
	Action: &RuleActionProperty{
		Allow: allow,
		Block: block,
		Captcha: captcha,
		Challenge: challenge,
		Count: count,
	},
	CaptchaConfig: &CaptchaConfigProperty{
		ImmunityTimeProperty: &ImmunityTimePropertyProperty{
			ImmunityTime: jsii.Number(123),
		},
	},
	ChallengeConfig: &ChallengeConfigProperty{
		ImmunityTimeProperty: &ImmunityTimePropertyProperty{
			ImmunityTime: jsii.Number(123),
		},
	},
	RuleLabels: []interface{}{
		&LabelProperty{
			Name: jsii.String("name"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-rule.html

type CfnRuleGroup_SingleHeaderProperty added in v2.55.0

type CfnRuleGroup_SingleHeaderProperty struct {
	// The name of the query header to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singleheader.html#cfn-wafv2-rulegroup-singleheader-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

Inspect one of the headers in the web request, identified by name, for example, `User-Agent` or `Referer` .

The name isn't case sensitive.

You can filter and inspect all headers with the `FieldToMatch` setting `Headers` .

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example JSON: `"SingleHeader": { "Name": "haystack" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

singleHeaderProperty := &SingleHeaderProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singleheader.html

type CfnRuleGroup_SingleQueryArgumentProperty added in v2.55.0

type CfnRuleGroup_SingleQueryArgumentProperty struct {
	// The name of the query argument to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singlequeryargument.html#cfn-wafv2-rulegroup-singlequeryargument-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

Inspect one query argument in the web request, identified by name, for example *UserName* or *SalesRegion* .

The name isn't case sensitive.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example JSON: `"SingleQueryArgument": { "Name": "myArgument" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

singleQueryArgumentProperty := &SingleQueryArgumentProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-singlequeryargument.html

type CfnRuleGroup_SizeConstraintStatementProperty

type CfnRuleGroup_SizeConstraintStatementProperty struct {
	// The operator to use to compare the request part to the size setting.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-comparisonoperator
	//
	ComparisonOperator *string `field:"required" json:"comparisonOperator" yaml:"comparisonOperator"`
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// The size, in byte, to compare to the request part, after any transformations.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-size
	//
	Size *float64 `field:"required" json:"size" yaml:"size"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html#cfn-wafv2-rulegroup-sizeconstraintstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

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 (<).

For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.

If you configure AWS WAF to inspect the request body, AWS WAF inspects only the number of bytes in the body up to the limit for the web ACL and protected resource type. If you know that the request body for your web requests should never exceed the inspection limit, you can use a size constraint statement to block requests that have a larger request body size. For more information about the inspection limits, see `Body` and `JsonBody` settings for the `FieldToMatch` data type.

If 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

sizeConstraintStatementProperty := &SizeConstraintStatementProperty{
	ComparisonOperator: jsii.String("comparisonOperator"),
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	Size: jsii.Number(123),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sizeconstraintstatement.html

type CfnRuleGroup_SqliMatchStatementProperty

type CfnRuleGroup_SqliMatchStatementProperty struct {
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html#cfn-wafv2-rulegroup-sqlimatchstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html#cfn-wafv2-rulegroup-sqlimatchstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
	// The sensitivity that you want AWS WAF to use to inspect for SQL injection attacks.
	//
	// `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* .
	//
	// `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.
	//
	// Default: `LOW`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html#cfn-wafv2-rulegroup-sqlimatchstatement-sensitivitylevel
	//
	SensitivityLevel *string `field:"optional" json:"sensitivityLevel" yaml:"sensitivityLevel"`
}

A rule statement that inspects for malicious SQL code.

Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

sqliMatchStatementProperty := &SqliMatchStatementProperty{
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},

	// the properties below are optional
	SensitivityLevel: jsii.String("sensitivityLevel"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-sqlimatchstatement.html

type CfnRuleGroup_StatementProperty

type CfnRuleGroup_StatementProperty struct {
	// A logical rule statement used to combine other rule statements with AND logic.
	//
	// You provide more than one `Statement` within the `AndStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-andstatement
	//
	AndStatement interface{} `field:"optional" json:"andStatement" yaml:"andStatement"`
	// A rule statement that defines a string match search for AWS WAF to apply to web requests.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-bytematchstatement
	//
	ByteMatchStatement interface{} `field:"optional" json:"byteMatchStatement" yaml:"byteMatchStatement"`
	// A rule statement that labels web requests by country and region and that matches against web requests based on country code.
	//
	// A geo match rule labels every request that it inspects regardless of whether it finds a match.
	//
	// - 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.
	// - 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.
	//
	// AWS 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` .
	//
	// If you use the web request origin, the label formats are `awswaf:clientip:geo:region:<ISO country code>-<ISO region code>` and `awswaf:clientip:geo:country:<ISO country code>` .
	//
	// If you use a forwarded IP address, the label formats are `awswaf:forwardedip:geo:region:<ISO country code>-<ISO region code>` and `awswaf:forwardedip:geo:country:<ISO country code>` .
	//
	// For 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) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-geomatchstatement
	//
	GeoMatchStatement interface{} `field:"optional" json:"geoMatchStatement" yaml:"geoMatchStatement"`
	// A rule statement used to detect web requests coming from particular IP addresses or address ranges.
	//
	// To use this, create an `IPSet` that specifies the addresses you want to detect, then use the ARN of that set in this statement.
	//
	// Each 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-ipsetreferencestatement
	//
	IpSetReferenceStatement interface{} `field:"optional" json:"ipSetReferenceStatement" yaml:"ipSetReferenceStatement"`
	// 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.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-labelmatchstatement
	//
	LabelMatchStatement interface{} `field:"optional" json:"labelMatchStatement" yaml:"labelMatchStatement"`
	// A logical rule statement used to negate the results of another rule statement.
	//
	// You provide one `Statement` within the `NotStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-notstatement
	//
	NotStatement interface{} `field:"optional" json:"notStatement" yaml:"notStatement"`
	// A logical rule statement used to combine other rule statements with OR logic.
	//
	// You provide more than one `Statement` within the `OrStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-orstatement
	//
	OrStatement interface{} `field:"optional" json:"orStatement" yaml:"orStatement"`
	// A rate-based rule counts incoming requests and rate limits requests when they are coming at too fast a rate.
	//
	// The rule categorizes requests according to your aggregation criteria, collects them into aggregation instances, and counts and rate limits the requests for each instance.
	//
	// > If you change any of these settings in a rule that's currently in use, the change resets the rule's rate limiting counts. This can pause the rule's rate limiting activities for up to a minute.
	//
	// You can specify individual aggregation keys, like IP address or HTTP method. You can also specify aggregation key combinations, like IP address and HTTP method, or HTTP method, query argument, and cookie.
	//
	// Each unique set of values for the aggregation keys that you specify is a separate aggregation instance, with the value from each key contributing to the aggregation instance definition.
	//
	// For example, assume the rule evaluates web requests with the following IP address and HTTP method values:
	//
	// - IP address 10.1.1.1, HTTP method POST
	// - IP address 10.1.1.1, HTTP method GET
	// - IP address 127.0.0.0, HTTP method POST
	// - IP address 10.1.1.1, HTTP method GET
	//
	// The rule would create different aggregation instances according to your aggregation criteria, for example:
	//
	// - If the aggregation criteria is just the IP address, then each individual address is an aggregation instance, and AWS WAF counts requests separately for each. The aggregation instances and request counts for our example would be the following:
	//
	// - IP address 10.1.1.1: count 3
	// - IP address 127.0.0.0: count 1
	// - If the aggregation criteria is HTTP method, then each individual HTTP method is an aggregation instance. The aggregation instances and request counts for our example would be the following:
	//
	// - HTTP method POST: count 2
	// - HTTP method GET: count 2
	// - If the aggregation criteria is IP address and HTTP method, then each IP address and each HTTP method would contribute to the combined aggregation instance. The aggregation instances and request counts for our example would be the following:
	//
	// - IP address 10.1.1.1, HTTP method POST: count 1
	// - IP address 10.1.1.1, HTTP method GET: count 2
	// - IP address 127.0.0.0, HTTP method POST: count 1
	//
	// For any n-tuple of aggregation keys, each unique combination of values for the keys defines a separate aggregation instance, which AWS WAF counts and rate-limits individually.
	//
	// You can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts and rate limits requests that match the nested statement. You can use this nested scope-down statement in conjunction with your aggregation key specifications or you can just count and rate limit all requests that match the scope-down statement, without additional aggregation. When you choose to just manage all requests that match a scope-down statement, the aggregation instance is singular for the rule.
	//
	// You 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.
	//
	// For additional information about the options, see [Rate limiting web requests using rate-based rules](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rate-based-rules.html) in the *AWS WAF Developer Guide* .
	//
	// If you only aggregate on the individual IP address or forwarded IP address, you can retrieve the list of IP addresses that AWS WAF is currently rate limiting for a rule through the API call `GetRateBasedStatementManagedKeys` . This option is not available for other aggregation configurations.
	//
	// AWS 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 .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-ratebasedstatement
	//
	RateBasedStatement interface{} `field:"optional" json:"rateBasedStatement" yaml:"rateBasedStatement"`
	// A rule statement used to search web request components for a match against a single regular expression.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-regexmatchstatement
	//
	RegexMatchStatement interface{} `field:"optional" json:"regexMatchStatement" yaml:"regexMatchStatement"`
	// A rule statement used to search web request components for matches with regular expressions.
	//
	// 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.
	//
	// Each 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-regexpatternsetreferencestatement
	//
	RegexPatternSetReferenceStatement interface{} `field:"optional" json:"regexPatternSetReferenceStatement" yaml:"regexPatternSetReferenceStatement"`
	// 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 (<).
	//
	// For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.
	//
	// If you configure AWS WAF to inspect the request body, AWS WAF inspects only the number of bytes in the body up to the limit for the web ACL and protected resource type. If you know that the request body for your web requests should never exceed the inspection limit, you can use a size constraint statement to block requests that have a larger request body size. For more information about the inspection limits, see `Body` and `JsonBody` settings for the `FieldToMatch` data type.
	//
	// If 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-sizeconstraintstatement
	//
	SizeConstraintStatement interface{} `field:"optional" json:"sizeConstraintStatement" yaml:"sizeConstraintStatement"`
	// A rule statement that inspects for malicious SQL code.
	//
	// Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-sqlimatchstatement
	//
	SqliMatchStatement interface{} `field:"optional" json:"sqliMatchStatement" yaml:"sqliMatchStatement"`
	// A rule statement that inspects for cross-site scripting (XSS) attacks.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html#cfn-wafv2-rulegroup-statement-xssmatchstatement
	//
	XssMatchStatement interface{} `field:"optional" json:"xssMatchStatement" yaml:"xssMatchStatement"`
}

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.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var statementProperty_ statementProperty
var uriPath interface{}

statementProperty := &statementProperty{
	AndStatement: &AndStatementProperty{
		Statements: []interface{}{
			statementProperty_,
		},
	},
	ByteMatchStatement: &ByteMatchStatementProperty{
		FieldToMatch: &FieldToMatchProperty{
			AllQueryArguments: allQueryArguments,
			Body: &BodyProperty{
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Cookies: &CookiesProperty{
				MatchPattern: &CookieMatchPatternProperty{
					All: all,
					ExcludedCookies: []*string{
						jsii.String("excludedCookies"),
					},
					IncludedCookies: []*string{
						jsii.String("includedCookies"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Headers: &HeadersProperty{
				MatchPattern: &HeaderMatchPatternProperty{
					All: all,
					ExcludedHeaders: []*string{
						jsii.String("excludedHeaders"),
					},
					IncludedHeaders: []*string{
						jsii.String("includedHeaders"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Ja3Fingerprint: &JA3FingerprintProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
			},
			JsonBody: &JsonBodyProperty{
				MatchPattern: &JsonMatchPatternProperty{
					All: all,
					IncludedPaths: []*string{
						jsii.String("includedPaths"),
					},
				},
				MatchScope: jsii.String("matchScope"),

				// the properties below are optional
				InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Method: method,
			QueryString: queryString,
			SingleHeader: singleHeader,
			SingleQueryArgument: singleQueryArgument,
			UriPath: uriPath,
		},
		PositionalConstraint: jsii.String("positionalConstraint"),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},

		// the properties below are optional
		SearchString: jsii.String("searchString"),
		SearchStringBase64: jsii.String("searchStringBase64"),
	},
	GeoMatchStatement: &GeoMatchStatementProperty{
		CountryCodes: []*string{
			jsii.String("countryCodes"),
		},
		ForwardedIpConfig: &ForwardedIPConfigurationProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
			HeaderName: jsii.String("headerName"),
		},
	},
	IpSetReferenceStatement: map[string]interface{}{
		"arn": jsii.String("arn"),

		// the properties below are optional
		"ipSetForwardedIpConfig": map[string]*string{
			"fallbackBehavior": jsii.String("fallbackBehavior"),
			"headerName": jsii.String("headerName"),
			"position": jsii.String("position"),
		},
	},
	LabelMatchStatement: &LabelMatchStatementProperty{
		Key: jsii.String("key"),
		Scope: jsii.String("scope"),
	},
	NotStatement: &NotStatementProperty{
		Statement: statementProperty_,
	},
	OrStatement: &OrStatementProperty{
		Statements: []interface{}{
			statementProperty_,
		},
	},
	RateBasedStatement: &RateBasedStatementProperty{
		AggregateKeyType: jsii.String("aggregateKeyType"),
		Limit: jsii.Number(123),

		// the properties below are optional
		CustomKeys: []interface{}{
			&RateBasedStatementCustomKeyProperty{
				Cookie: &RateLimitCookieProperty{
					Name: jsii.String("name"),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				ForwardedIp: forwardedIp,
				Header: &RateLimitHeaderProperty{
					Name: jsii.String("name"),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				HttpMethod: httpMethod,
				Ip: ip,
				LabelNamespace: &RateLimitLabelNamespaceProperty{
					Namespace: jsii.String("namespace"),
				},
				QueryArgument: &RateLimitQueryArgumentProperty{
					Name: jsii.String("name"),
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				QueryString: &RateLimitQueryStringProperty{
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
				UriPath: &RateLimitUriPathProperty{
					TextTransformations: []interface{}{
						&TextTransformationProperty{
							Priority: jsii.Number(123),
							Type: jsii.String("type"),
						},
					},
				},
			},
		},
		EvaluationWindowSec: jsii.Number(123),
		ForwardedIpConfig: &ForwardedIPConfigurationProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
			HeaderName: jsii.String("headerName"),
		},
		ScopeDownStatement: statementProperty_,
	},
	RegexMatchStatement: &RegexMatchStatementProperty{
		FieldToMatch: &FieldToMatchProperty{
			AllQueryArguments: allQueryArguments,
			Body: &BodyProperty{
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Cookies: &CookiesProperty{
				MatchPattern: &CookieMatchPatternProperty{
					All: all,
					ExcludedCookies: []*string{
						jsii.String("excludedCookies"),
					},
					IncludedCookies: []*string{
						jsii.String("includedCookies"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Headers: &HeadersProperty{
				MatchPattern: &HeaderMatchPatternProperty{
					All: all,
					ExcludedHeaders: []*string{
						jsii.String("excludedHeaders"),
					},
					IncludedHeaders: []*string{
						jsii.String("includedHeaders"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Ja3Fingerprint: &JA3FingerprintProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
			},
			JsonBody: &JsonBodyProperty{
				MatchPattern: &JsonMatchPatternProperty{
					All: all,
					IncludedPaths: []*string{
						jsii.String("includedPaths"),
					},
				},
				MatchScope: jsii.String("matchScope"),

				// the properties below are optional
				InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Method: method,
			QueryString: queryString,
			SingleHeader: singleHeader,
			SingleQueryArgument: singleQueryArgument,
			UriPath: uriPath,
		},
		RegexString: jsii.String("regexString"),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	RegexPatternSetReferenceStatement: &RegexPatternSetReferenceStatementProperty{
		Arn: jsii.String("arn"),
		FieldToMatch: &FieldToMatchProperty{
			AllQueryArguments: allQueryArguments,
			Body: &BodyProperty{
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Cookies: &CookiesProperty{
				MatchPattern: &CookieMatchPatternProperty{
					All: all,
					ExcludedCookies: []*string{
						jsii.String("excludedCookies"),
					},
					IncludedCookies: []*string{
						jsii.String("includedCookies"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Headers: &HeadersProperty{
				MatchPattern: &HeaderMatchPatternProperty{
					All: all,
					ExcludedHeaders: []*string{
						jsii.String("excludedHeaders"),
					},
					IncludedHeaders: []*string{
						jsii.String("includedHeaders"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Ja3Fingerprint: &JA3FingerprintProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
			},
			JsonBody: &JsonBodyProperty{
				MatchPattern: &JsonMatchPatternProperty{
					All: all,
					IncludedPaths: []*string{
						jsii.String("includedPaths"),
					},
				},
				MatchScope: jsii.String("matchScope"),

				// the properties below are optional
				InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Method: method,
			QueryString: queryString,
			SingleHeader: singleHeader,
			SingleQueryArgument: singleQueryArgument,
			UriPath: uriPath,
		},
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	SizeConstraintStatement: &SizeConstraintStatementProperty{
		ComparisonOperator: jsii.String("comparisonOperator"),
		FieldToMatch: &FieldToMatchProperty{
			AllQueryArguments: allQueryArguments,
			Body: &BodyProperty{
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Cookies: &CookiesProperty{
				MatchPattern: &CookieMatchPatternProperty{
					All: all,
					ExcludedCookies: []*string{
						jsii.String("excludedCookies"),
					},
					IncludedCookies: []*string{
						jsii.String("includedCookies"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Headers: &HeadersProperty{
				MatchPattern: &HeaderMatchPatternProperty{
					All: all,
					ExcludedHeaders: []*string{
						jsii.String("excludedHeaders"),
					},
					IncludedHeaders: []*string{
						jsii.String("includedHeaders"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Ja3Fingerprint: &JA3FingerprintProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
			},
			JsonBody: &JsonBodyProperty{
				MatchPattern: &JsonMatchPatternProperty{
					All: all,
					IncludedPaths: []*string{
						jsii.String("includedPaths"),
					},
				},
				MatchScope: jsii.String("matchScope"),

				// the properties below are optional
				InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Method: method,
			QueryString: queryString,
			SingleHeader: singleHeader,
			SingleQueryArgument: singleQueryArgument,
			UriPath: uriPath,
		},
		Size: jsii.Number(123),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	SqliMatchStatement: &SqliMatchStatementProperty{
		FieldToMatch: &FieldToMatchProperty{
			AllQueryArguments: allQueryArguments,
			Body: &BodyProperty{
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Cookies: &CookiesProperty{
				MatchPattern: &CookieMatchPatternProperty{
					All: all,
					ExcludedCookies: []*string{
						jsii.String("excludedCookies"),
					},
					IncludedCookies: []*string{
						jsii.String("includedCookies"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Headers: &HeadersProperty{
				MatchPattern: &HeaderMatchPatternProperty{
					All: all,
					ExcludedHeaders: []*string{
						jsii.String("excludedHeaders"),
					},
					IncludedHeaders: []*string{
						jsii.String("includedHeaders"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Ja3Fingerprint: &JA3FingerprintProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
			},
			JsonBody: &JsonBodyProperty{
				MatchPattern: &JsonMatchPatternProperty{
					All: all,
					IncludedPaths: []*string{
						jsii.String("includedPaths"),
					},
				},
				MatchScope: jsii.String("matchScope"),

				// the properties below are optional
				InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Method: method,
			QueryString: queryString,
			SingleHeader: singleHeader,
			SingleQueryArgument: singleQueryArgument,
			UriPath: uriPath,
		},
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},

		// the properties below are optional
		SensitivityLevel: jsii.String("sensitivityLevel"),
	},
	XssMatchStatement: &XssMatchStatementProperty{
		FieldToMatch: &FieldToMatchProperty{
			AllQueryArguments: allQueryArguments,
			Body: &BodyProperty{
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Cookies: &CookiesProperty{
				MatchPattern: &CookieMatchPatternProperty{
					All: all,
					ExcludedCookies: []*string{
						jsii.String("excludedCookies"),
					},
					IncludedCookies: []*string{
						jsii.String("includedCookies"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Headers: &HeadersProperty{
				MatchPattern: &HeaderMatchPatternProperty{
					All: all,
					ExcludedHeaders: []*string{
						jsii.String("excludedHeaders"),
					},
					IncludedHeaders: []*string{
						jsii.String("includedHeaders"),
					},
				},
				MatchScope: jsii.String("matchScope"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Ja3Fingerprint: &JA3FingerprintProperty{
				FallbackBehavior: jsii.String("fallbackBehavior"),
			},
			JsonBody: &JsonBodyProperty{
				MatchPattern: &JsonMatchPatternProperty{
					All: all,
					IncludedPaths: []*string{
						jsii.String("includedPaths"),
					},
				},
				MatchScope: jsii.String("matchScope"),

				// the properties below are optional
				InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
				OversizeHandling: jsii.String("oversizeHandling"),
			},
			Method: method,
			QueryString: queryString,
			SingleHeader: singleHeader,
			SingleQueryArgument: singleQueryArgument,
			UriPath: uriPath,
		},
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-statement.html

type CfnRuleGroup_TextTransformationProperty

type CfnRuleGroup_TextTransformationProperty struct {
	// Sets the relative processing order for multiple transformations.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html#cfn-wafv2-rulegroup-texttransformation-priority
	//
	Priority *float64 `field:"required" json:"priority" yaml:"priority"`
	// For detailed descriptions of each of the transformation types, see [Text transformations](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-transformation.html) in the *AWS WAF Developer Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html#cfn-wafv2-rulegroup-texttransformation-type
	//
	Type *string `field:"required" json:"type" yaml:"type"`
}

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.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

textTransformationProperty := &TextTransformationProperty{
	Priority: jsii.Number(123),
	Type: jsii.String("type"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-texttransformation.html

type CfnRuleGroup_VisibilityConfigProperty

type CfnRuleGroup_VisibilityConfigProperty struct {
	// Indicates whether the associated resource sends metrics to Amazon CloudWatch.
	//
	// 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* .
	//
	// For 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,
	// see [The web ACL default action](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-default-action.html) in the *AWS WAF Developer Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-cloudwatchmetricsenabled
	//
	CloudWatchMetricsEnabled interface{} `field:"required" json:"cloudWatchMetricsEnabled" yaml:"cloudWatchMetricsEnabled"`
	// A name of the Amazon CloudWatch metric dimension.
	//
	// 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` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-metricname
	//
	MetricName *string `field:"required" json:"metricName" yaml:"metricName"`
	// Indicates whether AWS WAF should store a sampling of the web requests that match the rules.
	//
	// You can view the sampled requests through the AWS WAF console.
	//
	// > Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html#cfn-wafv2-rulegroup-visibilityconfig-sampledrequestsenabled
	//
	SampledRequestsEnabled interface{} `field:"required" json:"sampledRequestsEnabled" yaml:"sampledRequestsEnabled"`
}

Defines and enables Amazon CloudWatch metrics and web request sample collection.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

visibilityConfigProperty := &VisibilityConfigProperty{
	CloudWatchMetricsEnabled: jsii.Boolean(false),
	MetricName: jsii.String("metricName"),
	SampledRequestsEnabled: jsii.Boolean(false),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-visibilityconfig.html

type CfnRuleGroup_XssMatchStatementProperty

type CfnRuleGroup_XssMatchStatementProperty struct {
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html#cfn-wafv2-rulegroup-xssmatchstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html#cfn-wafv2-rulegroup-xssmatchstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

A rule statement that inspects for cross-site scripting (XSS) attacks.

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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

xssMatchStatementProperty := &XssMatchStatementProperty{
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-xssmatchstatement.html

type CfnWebACL

type CfnWebACL interface {
	awscdk.CfnResource
	awscdk.IInspectable
	awscdk.ITaggable
	// Specifies custom configurations for the associations between the web ACL and protected resources.
	AssociationConfig() interface{}
	SetAssociationConfig(val interface{})
	// The Amazon Resource Name (ARN) of the web ACL.
	AttrArn() *string
	// The web ACL capacity units (WCUs) currently being used by this web ACL.
	//
	// 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.
	AttrCapacity() *float64
	// The ID of the web ACL.
	AttrId() *string
	// The label namespace prefix for this web ACL.
	//
	// All labels added by rules in this web ACL have this prefix.
	//
	// The syntax for the label namespace prefix for a web ACL is the following: `awswaf:<account ID>:webacl:<web ACL name>:`
	//
	// When 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.
	AttrLabelNamespace() *string
	// Specifies how AWS WAF should handle `CAPTCHA` evaluations for rules that don't have their own `CaptchaConfig` settings.
	CaptchaConfig() interface{}
	SetCaptchaConfig(val interface{})
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// Specifies how AWS WAF should handle challenge evaluations for rules that don't have their own `ChallengeConfig` settings.
	ChallengeConfig() interface{}
	SetChallengeConfig(val interface{})
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// A map of custom response keys and content bodies.
	CustomResponseBodies() interface{}
	SetCustomResponseBodies(val interface{})
	// The action to perform if none of the `Rules` contained in the `WebACL` match.
	DefaultAction() interface{}
	SetDefaultAction(val interface{})
	// A description of the web ACL that helps with identification.
	Description() *string
	SetDescription(val *string)
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The name of the web ACL.
	Name() *string
	SetName(val *string)
	// The tree node.
	Node() constructs.Node
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The rule statements used to identify the web requests that you want to manage.
	Rules() interface{}
	SetRules(val interface{})
	// Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
	Scope() *string
	SetScope(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// Tag Manager which manages the tags for this resource.
	Tags() awscdk.TagManager
	// Key:value pairs associated with an AWS resource.
	TagsRaw() *[]*awscdk.CfnTag
	SetTagsRaw(val *[]*awscdk.CfnTag)
	// Specifies the domains that AWS WAF should accept in a web request token.
	TokenDomains() *[]*string
	SetTokenDomains(val *[]*string)
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// Defines and enables Amazon CloudWatch metrics and web request sample collection.
	VisibilityConfig() interface{}
	SetVisibilityConfig(val interface{})
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

> 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) .

Use an `WebACL` to define a collection of rules to use to inspect and control web requests. Each rule in a web ACL has a statement that defines what to look for in web requests and an action that AWS WAF applies to requests that match the statement. In the web ACL, you assign 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 be a combination of explicitly defined rules and rule groups that you reference from the web ACL. The rule groups can be rule groups that you manage or rule groups that are managed by others.

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, an AWS App Runner service, or an AWS Verified Access instance.

For more information, see [Web access control lists (web ACLs)](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl.html) in the *AWS WAF developer guide* .

*Web ACLs used in AWS Shield Advanced automatic application layer DDoS mitigation*

If you use Shield Advanced automatic application layer DDoS mitigation, the web ACLs that you use with automatic mitigation have a rule group rule whose name starts with `ShieldMitigationRuleGroup` . This rule is used for automatic mitigations and it's managed for you in the web ACL by Shield Advanced and AWS WAF . You'll see the rule listed among the web ACL rules when you view the web ACL through the AWS WAF interfaces.

When you manage the web ACL through AWS CloudFormation interfaces, you won't see the Shield Advanced rule. AWS CloudFormation doesn't include this type of rule in the stack drift status between the actual configuration of the web ACL and your web ACL template.

Don't add the Shield Advanced rule group rule to your web ACL template. The rule shouldn't be in your template. When you update the web ACL template in a stack, the Shield Advanced rule is maintained for you by AWS WAF in the resulting web ACL.

For more information, see [Shield Advanced automatic application layer DDoS mitigation](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response.html) in the *AWS Shield Advanced developer guide* .

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html

func NewCfnWebACL

func NewCfnWebACL(scope constructs.Construct, id *string, props *CfnWebACLProps) CfnWebACL

type CfnWebACLAssociation

type CfnWebACLAssociation interface {
	awscdk.CfnResource
	awscdk.IInspectable
	// Options for this resource, such as condition, update policy etc.
	CfnOptions() awscdk.ICfnResourceOptions
	CfnProperties() *map[string]interface{}
	// AWS resource type.
	CfnResourceType() *string
	// Returns: the stack trace of the point where this Resource was created from, sourced
	// from the +metadata+ entry typed +aws:cdk:logicalId+, and with the bottom-most
	// node +internal+ entries filtered.
	CreationStack() *[]*string
	// The logical ID for this CloudFormation stack element.
	//
	// The logical ID of the element
	// is calculated from the path of the resource node in the construct tree.
	//
	// To override this value, use `overrideLogicalId(newLogicalId)`.
	//
	// Returns: the logical ID as a stringified token. This value will only get
	// resolved during synthesis.
	LogicalId() *string
	// The tree node.
	Node() constructs.Node
	// Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.
	//
	// If, by any chance, the intrinsic reference of a resource is not a string, you could
	// coerce it to an IResolvable through `Lazy.any({ produce: resource.ref })`.
	Ref() *string
	// The Amazon Resource Name (ARN) of the resource to associate with the web ACL.
	ResourceArn() *string
	SetResourceArn(val *string)
	// The stack in which this element is defined.
	//
	// CfnElements must be defined within a stack scope (directly or indirectly).
	Stack() awscdk.Stack
	// Deprecated.
	// Deprecated: use `updatedProperties`
	//
	// Return properties modified after initiation
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperites() *map[string]interface{}
	// Return properties modified after initiation.
	//
	// Resources that expose mutable properties should override this function to
	// collect and return the properties object for this resource.
	UpdatedProperties() *map[string]interface{}
	// The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
	WebAclArn() *string
	SetWebAclArn(val *string)
	// Syntactic sugar for `addOverride(path, undefined)`.
	AddDeletionOverride(path *string)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	//
	// This can be used for resources across stacks (or nested stack) boundaries
	// and the dependency will automatically be transferred to the relevant scope.
	AddDependency(target awscdk.CfnResource)
	// Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
	// Deprecated: use addDependency.
	AddDependsOn(target awscdk.CfnResource)
	// Add a value to the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	AddMetadata(key *string, value interface{})
	// Adds an override to the synthesized CloudFormation resource.
	//
	// To add a
	// property override, either use `addPropertyOverride` or prefix `path` with
	// "Properties." (i.e. `Properties.TopicName`).
	//
	// If the override is nested, separate each nested level using a dot (.) in the path parameter.
	// If there is an array as part of the nesting, specify the index in the path.
	//
	// To include a literal `.` in the property name, prefix with a `\`. In most
	// programming languages you will need to write this as `"\\."` because the
	// `\` itself will need to be escaped.
	//
	// For example,
	// “`typescript
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
	// cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');
	// “`
	// would add the overrides
	// “`json
	// "Properties": {
	//   "GlobalSecondaryIndexes": [
	//     {
	//       "Projection": {
	//         "NonKeyAttributes": [ "myattribute" ]
	//         ...
	//       }
	//       ...
	//     },
	//     {
	//       "ProjectionType": "INCLUDE"
	//       ...
	//     },
	//   ]
	//   ...
	// }
	// “`
	//
	// The `value` argument to `addOverride` will not be processed or translated
	// in any way. Pass raw JSON values in here with the correct capitalization
	// for CloudFormation. If you pass CDK classes or structs, they will be
	// rendered with lowercased key names, and CloudFormation will reject the
	// template.
	AddOverride(path *string, value interface{})
	// Adds an override that deletes the value of a property from the resource definition.
	AddPropertyDeletionOverride(propertyPath *string)
	// Adds an override to a resource property.
	//
	// Syntactic sugar for `addOverride("Properties.<...>", value)`.
	AddPropertyOverride(propertyPath *string, value interface{})
	// Sets the deletion policy of the resource based on the removal policy specified.
	//
	// The Removal Policy controls what happens to this resource when it stops
	// being managed by CloudFormation, either because you've removed it from the
	// CDK application or because you've made a change that requires the resource
	// to be replaced.
	//
	// The resource can be deleted (`RemovalPolicy.DESTROY`), or left in your AWS
	// account for data recovery and cleanup later (`RemovalPolicy.RETAIN`). In some
	// cases, a snapshot can be taken of the resource prior to deletion
	// (`RemovalPolicy.SNAPSHOT`). A list of resources that support this policy
	// can be found in the following link:.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-attribute-deletionpolicy.html#aws-attribute-deletionpolicy-options
	//
	ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions)
	// Returns a token for an runtime attribute of this resource.
	//
	// Ideally, use generated attribute accessors (e.g. `resource.arn`), but this can be used for future compatibility
	// in case there is no generated attribute.
	GetAtt(attributeName *string, typeHint awscdk.ResolutionTypeHint) awscdk.Reference
	// Retrieve a value value from the CloudFormation Resource Metadata.
	// See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/metadata-section-structure.html
	//
	// Note that this is a different set of metadata from CDK node metadata; this
	// metadata ends up in the stack template under the resource, whereas CDK
	// node metadata ends up in the Cloud Assembly.
	//
	GetMetadata(key *string) interface{}
	// Examines the CloudFormation resource and discloses attributes.
	Inspect(inspector awscdk.TreeInspector)
	// Retrieves an array of resources this resource depends on.
	//
	// This assembles dependencies on resources across stacks (including nested stacks)
	// automatically.
	ObtainDependencies() *[]interface{}
	// Get a shallow copy of dependencies between this resource and other resources in the same stack.
	ObtainResourceDependencies() *[]awscdk.CfnResource
	// Overrides the auto-generated logical ID with a specific ID.
	OverrideLogicalId(newLogicalId *string)
	// Indicates that this resource no longer depends on another resource.
	//
	// This can be used for resources across stacks (including nested stacks)
	// and the dependency will automatically be removed from the relevant scope.
	RemoveDependency(target awscdk.CfnResource)
	RenderProperties(props *map[string]interface{}) *map[string]interface{}
	// Replaces one dependency with another.
	ReplaceDependency(target awscdk.CfnResource, newTarget awscdk.CfnResource)
	// Can be overridden by subclasses to determine if this resource will be rendered into the cloudformation template.
	//
	// Returns: `true` if the resource should be included or `false` is the resource
	// should be omitted.
	ShouldSynthesize() *bool
	// Returns a string representation of this construct.
	//
	// Returns: a string representation of this resource.
	ToString() *string
	ValidateProperties(_properties interface{})
}

> 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) .

Use 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, an AWS App Runner service, or an AWS Verified Access instance.

For 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) .

*Required permissions for customer-managed IAM policies*

This call requires permissions that are specific to the protected resource type. For details, see [Permissions for AssociateWebACL](https://docs.aws.amazon.com/waf/latest/developerguide/security_iam_service-with-iam.html#security_iam_action-AssociateWebACL) in the *AWS WAF Developer Guide* .

*Temporary inconsistencies during updates*

When you create or change a web ACL or other AWS WAF resources, the changes take a small amount of time to propagate to all areas where the resources are stored. The propagation time can be from a few seconds to a number of minutes.

The following are examples of the temporary inconsistencies that you might notice during change propagation:

- After you create a web ACL, if you try to associate it with a resource, you might get an exception indicating that the web ACL is unavailable. - After you add a rule group to a web ACL, the new rule group rules might be in effect in one area where the web ACL is used and not in another. - After you change a rule action setting, you might see the old action in some places and the new action in others. - After you add an IP address to an IP set that is in use in a blocking rule, the new address might be blocked in one area while still allowed in another.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnWebACLAssociation := awscdk.Aws_wafv2.NewCfnWebACLAssociation(this, jsii.String("MyCfnWebACLAssociation"), &CfnWebACLAssociationProps{
	ResourceArn: jsii.String("resourceArn"),
	WebAclArn: jsii.String("webAclArn"),
})

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html

func NewCfnWebACLAssociation

func NewCfnWebACLAssociation(scope constructs.Construct, id *string, props *CfnWebACLAssociationProps) CfnWebACLAssociation

type CfnWebACLAssociationProps

type CfnWebACLAssociationProps struct {
	// The Amazon Resource Name (ARN) of the resource to associate with the web ACL.
	//
	// The ARN must be in one of the following formats:
	//
	// - For an Application Load Balancer: `arn: *partition* :elasticloadbalancing: *region* : *account-id* :loadbalancer/app/ *load-balancer-name* / *load-balancer-id*`
	// - For an Amazon API Gateway REST API: `arn: *partition* :apigateway: *region* ::/restapis/ *api-id* /stages/ *stage-name*`
	// - For an AWS AppSync GraphQL API: `arn: *partition* :appsync: *region* : *account-id* :apis/ *GraphQLApiId*`
	// - For an Amazon Cognito user pool: `arn: *partition* :cognito-idp: *region* : *account-id* :userpool/ *user-pool-id*`
	// - For an AWS App Runner service: `arn: *partition* :apprunner: *region* : *account-id* :service/ *apprunner-service-name* / *apprunner-service-id*`
	// - For an AWS Verified Access instance: `arn: *partition* :ec2: *region* : *account-id* :verified-access-instance/ *instance-id*`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html#cfn-wafv2-webaclassociation-resourcearn
	//
	ResourceArn *string `field:"required" json:"resourceArn" yaml:"resourceArn"`
	// The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html#cfn-wafv2-webaclassociation-webaclarn
	//
	WebAclArn *string `field:"required" json:"webAclArn" yaml:"webAclArn"`
}

Properties for defining a `CfnWebACLAssociation`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnWebACLAssociationProps := &CfnWebACLAssociationProps{
	ResourceArn: jsii.String("resourceArn"),
	WebAclArn: jsii.String("webAclArn"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webaclassociation.html

type CfnWebACLProps

type CfnWebACLProps struct {
	// The action to perform if none of the `Rules` contained in the `WebACL` match.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-defaultaction
	//
	DefaultAction interface{} `field:"required" json:"defaultAction" yaml:"defaultAction"`
	// Specifies whether this is for an Amazon CloudFront distribution or for a regional application.
	//
	// A regional application can be an Application Load Balancer (ALB), an Amazon API Gateway REST API, an AWS AppSync GraphQL API, an Amazon Cognito user pool, an AWS App Runner service, or an AWS Verified Access instance. Valid Values are `CLOUDFRONT` and `REGIONAL` .
	//
	// > For `CLOUDFRONT` , you must create your WAFv2 resources in the US East (N. Virginia) Region, `us-east-1` .
	//
	// For information about how to define the association of the web ACL with your resource, see `WebACLAssociation` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-scope
	//
	Scope *string `field:"required" json:"scope" yaml:"scope"`
	// Defines and enables Amazon CloudWatch metrics and web request sample collection.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-visibilityconfig
	//
	VisibilityConfig interface{} `field:"required" json:"visibilityConfig" yaml:"visibilityConfig"`
	// Specifies custom configurations for the associations between the web ACL and protected resources.
	//
	// Use this to customize the maximum size of the request body that your protected resources forward to AWS WAF for inspection. You can customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).
	//
	// > You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see [AWS WAF Pricing](https://docs.aws.amazon.com/waf/pricing/) .
	//
	// For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-associationconfig
	//
	AssociationConfig interface{} `field:"optional" json:"associationConfig" yaml:"associationConfig"`
	// Specifies how AWS WAF should handle `CAPTCHA` evaluations for rules that don't have their own `CaptchaConfig` settings.
	//
	// If you don't specify this, AWS WAF uses its default settings for `CaptchaConfig` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-captchaconfig
	//
	CaptchaConfig interface{} `field:"optional" json:"captchaConfig" yaml:"captchaConfig"`
	// Specifies how AWS WAF should handle challenge evaluations for rules that don't have their own `ChallengeConfig` settings.
	//
	// If you don't specify this, AWS WAF uses its default settings for `ChallengeConfig` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-challengeconfig
	//
	ChallengeConfig interface{} `field:"optional" json:"challengeConfig" yaml:"challengeConfig"`
	// A map of custom response keys and content bodies.
	//
	// When you create a rule with a block action, you can send a custom response to the web request. You define these for the web ACL, and then use them in the rules and default actions that you define in the web ACL.
	//
	// 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* .
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-customresponsebodies
	//
	CustomResponseBodies interface{} `field:"optional" json:"customResponseBodies" yaml:"customResponseBodies"`
	// A description of the web ACL that helps with identification.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-description
	//
	Description *string `field:"optional" json:"description" yaml:"description"`
	// The name of the web ACL.
	//
	// You cannot change the name of a web ACL after you create it.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-name
	//
	Name *string `field:"optional" json:"name" yaml:"name"`
	// The rule statements used to identify the web requests that you want to manage.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-rules
	//
	Rules interface{} `field:"optional" json:"rules" yaml:"rules"`
	// Key:value pairs associated with an AWS resource.
	//
	// The key:value pair can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each AWS resource.
	//
	// > 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-tags
	//
	Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
	// Specifies the domains that AWS WAF should accept in a web request token.
	//
	// This enables the use of tokens across multiple protected websites. When AWS WAF provides a token, it uses the domain of the AWS resource that the web ACL is protecting. If you don't specify a list of token domains, AWS WAF accepts tokens only for the domain of the protected resource. With a token domain list, AWS WAF accepts the resource's host domain plus all domains in the token domain list, including their prefixed subdomains.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html#cfn-wafv2-webacl-tokendomains
	//
	TokenDomains *[]*string `field:"optional" json:"tokenDomains" yaml:"tokenDomains"`
}

Properties for defining a `CfnWebACL`.

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-wafv2-webacl.html

type CfnWebACL_AWSManagedRulesACFPRuleSetProperty added in v2.91.0

type CfnWebACL_AWSManagedRulesACFPRuleSetProperty struct {
	// The path of the account creation endpoint for your application.
	//
	// This is the page on your website that accepts the completed registration form for a new user. This page must accept `POST` requests.
	//
	// For example, for the URL `https://example.com/web/newaccount` , you would provide the path `/web/newaccount` . Account creation page paths that start with the path that you provide are considered a match. For example `/web/newaccount` matches the account creation paths `/web/newaccount` , `/web/newaccount/` , `/web/newaccountPage` , and `/web/newaccount/thisPage` , but doesn't match the path `/home/web/newaccount` or `/website/newaccount` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesacfpruleset.html#cfn-wafv2-webacl-awsmanagedrulesacfpruleset-creationpath
	//
	CreationPath *string `field:"required" json:"creationPath" yaml:"creationPath"`
	// The path of the account registration endpoint for your application.
	//
	// This is the page on your website that presents the registration form to new users.
	//
	// > This page must accept `GET` text/html requests.
	//
	// For example, for the URL `https://example.com/web/registration` , you would provide the path `/web/registration` . Registration page paths that start with the path that you provide are considered a match. For example `/web/registration` matches the registration paths `/web/registration` , `/web/registration/` , `/web/registrationPage` , and `/web/registration/thisPage` , but doesn't match the path `/home/web/registration` or `/website/registration` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesacfpruleset.html#cfn-wafv2-webacl-awsmanagedrulesacfpruleset-registrationpagepath
	//
	RegistrationPagePath *string `field:"required" json:"registrationPagePath" yaml:"registrationPagePath"`
	// The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesacfpruleset.html#cfn-wafv2-webacl-awsmanagedrulesacfpruleset-requestinspection
	//
	RequestInspection interface{} `field:"required" json:"requestInspection" yaml:"requestInspection"`
	// Allow the use of regular expressions in the registration page path and the account creation path.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesacfpruleset.html#cfn-wafv2-webacl-awsmanagedrulesacfpruleset-enableregexinpath
	//
	EnableRegexInPath interface{} `field:"optional" json:"enableRegexInPath" yaml:"enableRegexInPath"`
	// The criteria for inspecting responses to account creation requests, used by the ACFP rule group to track account creation success rates.
	//
	// > Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
	//
	// The ACFP rule group evaluates the responses that your protected resources send back to client 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 that have had too many successful account creation attempts in a short amount of time.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesacfpruleset.html#cfn-wafv2-webacl-awsmanagedrulesacfpruleset-responseinspection
	//
	ResponseInspection interface{} `field:"optional" json:"responseInspection" yaml:"responseInspection"`
}

Details for your use of the account creation fraud prevention managed rule group, `AWSManagedRulesACFPRuleSet` .

This configuration is used in `ManagedRuleGroupConfig` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

aWSManagedRulesACFPRuleSetProperty := &AWSManagedRulesACFPRuleSetProperty{
	CreationPath: jsii.String("creationPath"),
	RegistrationPagePath: jsii.String("registrationPagePath"),
	RequestInspection: &RequestInspectionACFPProperty{
		PayloadType: jsii.String("payloadType"),

		// the properties below are optional
		AddressFields: []interface{}{
			&FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
		},
		EmailField: &FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
		PasswordField: &FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
		PhoneNumberFields: []interface{}{
			&FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
		},
		UsernameField: &FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
	},

	// the properties below are optional
	EnableRegexInPath: jsii.Boolean(false),
	ResponseInspection: &ResponseInspectionProperty{
		BodyContains: &ResponseInspectionBodyContainsProperty{
			FailureStrings: []*string{
				jsii.String("failureStrings"),
			},
			SuccessStrings: []*string{
				jsii.String("successStrings"),
			},
		},
		Header: &ResponseInspectionHeaderProperty{
			FailureValues: []*string{
				jsii.String("failureValues"),
			},
			Name: jsii.String("name"),
			SuccessValues: []*string{
				jsii.String("successValues"),
			},
		},
		Json: &ResponseInspectionJsonProperty{
			FailureValues: []*string{
				jsii.String("failureValues"),
			},
			Identifier: jsii.String("identifier"),
			SuccessValues: []*string{
				jsii.String("successValues"),
			},
		},
		StatusCode: &ResponseInspectionStatusCodeProperty{
			FailureCodes: []interface{}{
				jsii.Number(123),
			},
			SuccessCodes: []interface{}{
				jsii.Number(123),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesacfpruleset.html

type CfnWebACL_AWSManagedRulesATPRuleSetProperty added in v2.70.0

type CfnWebACL_AWSManagedRulesATPRuleSetProperty struct {
	// The path of the login endpoint for your application.
	//
	// For example, for the URL `https://example.com/web/login` , you would provide the path `/web/login` . Login paths that start with the path that you provide are considered a match. For example `/web/login` matches the login paths `/web/login` , `/web/login/` , `/web/loginPage` , and `/web/login/thisPage` , but doesn't match the login path `/home/web/login` or `/website/login` .
	//
	// The rule group inspects only HTTP `POST` requests to your specified login endpoint.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html#cfn-wafv2-webacl-awsmanagedrulesatpruleset-loginpath
	//
	LoginPath *string `field:"required" json:"loginPath" yaml:"loginPath"`
	// Allow the use of regular expressions in the login page path.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html#cfn-wafv2-webacl-awsmanagedrulesatpruleset-enableregexinpath
	//
	EnableRegexInPath interface{} `field:"optional" json:"enableRegexInPath" yaml:"enableRegexInPath"`
	// The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html#cfn-wafv2-webacl-awsmanagedrulesatpruleset-requestinspection
	//
	RequestInspection interface{} `field:"optional" json:"requestInspection" yaml:"requestInspection"`
	// The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates.
	//
	// > Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
	//
	// The 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html#cfn-wafv2-webacl-awsmanagedrulesatpruleset-responseinspection
	//
	ResponseInspection interface{} `field:"optional" json:"responseInspection" yaml:"responseInspection"`
}

Details for your use of the account takeover prevention managed rule group, `AWSManagedRulesATPRuleSet` .

This configuration is used in `ManagedRuleGroupConfig` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

aWSManagedRulesATPRuleSetProperty := &AWSManagedRulesATPRuleSetProperty{
	LoginPath: jsii.String("loginPath"),

	// the properties below are optional
	EnableRegexInPath: jsii.Boolean(false),
	RequestInspection: &RequestInspectionProperty{
		PasswordField: &FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
		PayloadType: jsii.String("payloadType"),
		UsernameField: &FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
	},
	ResponseInspection: &ResponseInspectionProperty{
		BodyContains: &ResponseInspectionBodyContainsProperty{
			FailureStrings: []*string{
				jsii.String("failureStrings"),
			},
			SuccessStrings: []*string{
				jsii.String("successStrings"),
			},
		},
		Header: &ResponseInspectionHeaderProperty{
			FailureValues: []*string{
				jsii.String("failureValues"),
			},
			Name: jsii.String("name"),
			SuccessValues: []*string{
				jsii.String("successValues"),
			},
		},
		Json: &ResponseInspectionJsonProperty{
			FailureValues: []*string{
				jsii.String("failureValues"),
			},
			Identifier: jsii.String("identifier"),
			SuccessValues: []*string{
				jsii.String("successValues"),
			},
		},
		StatusCode: &ResponseInspectionStatusCodeProperty{
			FailureCodes: []interface{}{
				jsii.Number(123),
			},
			SuccessCodes: []interface{}{
				jsii.Number(123),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesatpruleset.html

type CfnWebACL_AWSManagedRulesBotControlRuleSetProperty added in v2.56.0

type CfnWebACL_AWSManagedRulesBotControlRuleSetProperty struct {
	// The inspection level to use for the Bot Control rule group.
	//
	// 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) in the *AWS WAF Developer Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesbotcontrolruleset.html#cfn-wafv2-webacl-awsmanagedrulesbotcontrolruleset-inspectionlevel
	//
	InspectionLevel *string `field:"required" json:"inspectionLevel" yaml:"inspectionLevel"`
	// Applies only to the targeted inspection level.
	//
	// Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Machine learning is required for the Bot Control rules `TGT_ML_CoordinatedActivityLow` and `TGT_ML_CoordinatedActivityMedium` , which
	// inspect for anomalous behavior that might indicate distributed, coordinated bot activity.
	//
	// For more information about this choice, see the listing for these rules in the table at [Bot Control rules listing](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html#aws-managed-rule-groups-bot-rules) in the *AWS WAF Developer Guide* .
	//
	// Default: `TRUE`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesbotcontrolruleset.html#cfn-wafv2-webacl-awsmanagedrulesbotcontrolruleset-enablemachinelearning
	//
	EnableMachineLearning interface{} `field:"optional" json:"enableMachineLearning" yaml:"enableMachineLearning"`
}

Details for your use of the Bot Control managed rule group, `AWSManagedRulesBotControlRuleSet` .

This configuration is used in `ManagedRuleGroupConfig` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

aWSManagedRulesBotControlRuleSetProperty := &AWSManagedRulesBotControlRuleSetProperty{
	InspectionLevel: jsii.String("inspectionLevel"),

	// the properties below are optional
	EnableMachineLearning: jsii.Boolean(false),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-awsmanagedrulesbotcontrolruleset.html

type CfnWebACL_AllowActionProperty

type CfnWebACL_AllowActionProperty struct {
	// Defines custom handling for the web request.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-allowaction.html#cfn-wafv2-webacl-allowaction-customrequesthandling
	//
	CustomRequestHandling interface{} `field:"optional" json:"customRequestHandling" yaml:"customRequestHandling"`
}

Specifies that AWS WAF should allow the request and optionally defines additional custom handling for the request.

This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

allowActionProperty := &AllowActionProperty{
	CustomRequestHandling: &CustomRequestHandlingProperty{
		InsertHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-allowaction.html

type CfnWebACL_AndStatementProperty

type CfnWebACL_AndStatementProperty struct {
	// The statements to combine with AND logic.
	//
	// You can use any statements that can be nested.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatement.html#cfn-wafv2-webacl-andstatement-statements
	//
	Statements interface{} `field:"required" json:"statements" yaml:"statements"`
}

A logical rule statement used to combine other rule statements with AND logic.

You provide more than one `Statement` within the `AndStatement` .

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-andstatement.html

type CfnWebACL_AssociationConfigProperty added in v2.87.0

type CfnWebACL_AssociationConfigProperty struct {
	// Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to AWS WAF for inspection.
	//
	// The default size is 16 KB (16,384 bytes). You can change the setting for any of the available resource types.
	//
	// > You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see [AWS WAF Pricing](https://docs.aws.amazon.com/waf/pricing/) .
	//
	// Example JSON: `{ "API_GATEWAY": "KB_48", "APP_RUNNER_SERVICE": "KB_32" }`
	//
	// For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-associationconfig.html#cfn-wafv2-webacl-associationconfig-requestbody
	//
	RequestBody interface{} `field:"optional" json:"requestBody" yaml:"requestBody"`
}

Specifies custom configurations for the associations between the web ACL and protected resources.

Use this to customize the maximum size of the request body that your protected resources forward to AWS WAF for inspection. You can customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).

> You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see [AWS WAF Pricing](https://docs.aws.amazon.com/waf/pricing/) .

For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

associationConfigProperty := &AssociationConfigProperty{
	RequestBody: map[string]interface{}{
		"requestBodyKey": &RequestBodyAssociatedResourceTypeConfigProperty{
			"defaultSizeInspectionLimit": jsii.String("defaultSizeInspectionLimit"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-associationconfig.html

type CfnWebACL_BlockActionProperty

type CfnWebACL_BlockActionProperty struct {
	// Defines a custom response for the web request.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-blockaction.html#cfn-wafv2-webacl-blockaction-customresponse
	//
	CustomResponse interface{} `field:"optional" json:"customResponse" yaml:"customResponse"`
}

Specifies that AWS WAF should block the request and optionally defines additional custom handling for the response to the web request.

This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

blockActionProperty := &BlockActionProperty{
	CustomResponse: &CustomResponseProperty{
		ResponseCode: jsii.Number(123),

		// the properties below are optional
		CustomResponseBodyKey: jsii.String("customResponseBodyKey"),
		ResponseHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-blockaction.html

type CfnWebACL_BodyProperty added in v2.25.0

type CfnWebACL_BodyProperty struct {
	// What AWS WAF should do if the body is larger than AWS WAF can inspect.
	//
	// AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection.
	//
	// - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL `AssociationConfig` , for additional processing fees.
	//
	// The options for oversize handling are the following:
	//
	// - `CONTINUE` - Inspect the available body contents normally, according to the rule inspection criteria.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	//
	// You 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.
	//
	// Default: `CONTINUE`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-body.html#cfn-wafv2-webacl-body-oversizehandling
	//
	OversizeHandling *string `field:"optional" json:"oversizeHandling" yaml:"oversizeHandling"`
}

Inspect the body of the web request. The body immediately follows the request headers.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

bodyProperty := &BodyProperty{
	OversizeHandling: jsii.String("oversizeHandling"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-body.html

type CfnWebACL_ByteMatchStatementProperty

type CfnWebACL_ByteMatchStatementProperty struct {
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// The area within the portion of the web request that you want AWS WAF to search for `SearchString` .
	//
	// Valid values include the following:
	//
	// *CONTAINS*
	//
	// The specified part of the web request must include the value of `SearchString` , but the location doesn't matter.
	//
	// *CONTAINS_WORD*
	//
	// The 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:
	//
	// - `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` .
	// - `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;` .
	//
	// *EXACTLY*
	//
	// The value of the specified part of the web request must exactly match the value of `SearchString` .
	//
	// *STARTS_WITH*
	//
	// The value of `SearchString` must appear at the beginning of the specified part of the web request.
	//
	// *ENDS_WITH*
	//
	// The value of `SearchString` must appear at the end of the specified part of the web request.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-positionalconstraint
	//
	PositionalConstraint *string `field:"required" json:"positionalConstraint" yaml:"positionalConstraint"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
	// A string value that you want AWS WAF to search for.
	//
	// 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.
	//
	// Don't encode this string. Provide the value that you want AWS WAF to search for. AWS CloudFormation automatically base64 encodes the value for you.
	//
	// For 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` .
	//
	// You must specify either `SearchString` or `SearchStringBase64` in a `ByteMatchStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-searchstring
	//
	SearchString *string `field:"optional" json:"searchString" yaml:"searchString"`
	// String to search for in a web request component, base64-encoded.
	//
	// If you don't want to encode the string, specify the unencoded value in `SearchString` instead.
	//
	// You must specify either `SearchString` or `SearchStringBase64` in a `ByteMatchStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html#cfn-wafv2-webacl-bytematchstatement-searchstringbase64
	//
	SearchStringBase64 *string `field:"optional" json:"searchStringBase64" yaml:"searchStringBase64"`
}

A rule statement that defines a string match search for AWS WAF to apply to web requests.

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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

byteMatchStatementProperty := &ByteMatchStatementProperty{
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	PositionalConstraint: jsii.String("positionalConstraint"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},

	// the properties below are optional
	SearchString: jsii.String("searchString"),
	SearchStringBase64: jsii.String("searchStringBase64"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-bytematchstatement.html

type CfnWebACL_CaptchaActionProperty added in v2.2.0

type CfnWebACL_CaptchaActionProperty struct {
	// Defines custom handling for the web request, used when the `CAPTCHA` inspection determines that the request's token is valid and unexpired.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaaction.html#cfn-wafv2-webacl-captchaaction-customrequesthandling
	//
	CustomRequestHandling interface{} `field:"optional" json:"customRequestHandling" yaml:"customRequestHandling"`
}

Specifies that AWS WAF should run a `CAPTCHA` check against the request:.

- 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` . - 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.

AWS WAF generates a response that it sends back to the client, which includes the following:

- The header `x-amzn-waf-action` with a value of `captcha` . - The HTTP status code `405 Method Not Allowed` . - If the request contains an `Accept` header with a value of `text/html` , the response includes a `CAPTCHA` challenge.

You 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.

This action option is available for rules. It isn't available for web ACL default actions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

captchaActionProperty := &CaptchaActionProperty{
	CustomRequestHandling: &CustomRequestHandlingProperty{
		InsertHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaaction.html

type CfnWebACL_CaptchaConfigProperty added in v2.2.0

type CfnWebACL_CaptchaConfigProperty struct {
	// Determines how long a `CAPTCHA` timestamp in the token remains valid after the client successfully solves a `CAPTCHA` puzzle.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaconfig.html#cfn-wafv2-webacl-captchaconfig-immunitytimeproperty
	//
	ImmunityTimeProperty interface{} `field:"optional" json:"immunityTimeProperty" yaml:"immunityTimeProperty"`
}

Specifies how AWS WAF should handle `CAPTCHA` evaluations for rules that don't have their own `CaptchaConfig` settings.

If you don't specify this, AWS WAF uses its default settings for `CaptchaConfig` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

captchaConfigProperty := &CaptchaConfigProperty{
	ImmunityTimeProperty: &ImmunityTimePropertyProperty{
		ImmunityTime: jsii.Number(123),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaconfig.html

type CfnWebACL_ChallengeActionProperty added in v2.56.0

type CfnWebACL_ChallengeActionProperty struct {
	// Defines custom handling for the web request, used when the challenge inspection determines that the request's token is valid and unexpired.
	//
	// 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) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-challengeaction.html#cfn-wafv2-webacl-challengeaction-customrequesthandling
	//
	CustomRequestHandling interface{} `field:"optional" json:"customRequestHandling" yaml:"customRequestHandling"`
}

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` .

- 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.

AWS WAF then generates a challenge response that it sends back to the client, which includes the following:

- The header `x-amzn-waf-action` with a value of `challenge` . - The HTTP status code `202 Request Accepted` . - If the request contains an `Accept` header with a value of `text/html` , the response includes a JavaScript page interstitial with a challenge script.

Challenges run silent browser interrogations in the background, and don't generally affect the end user experience.

A 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.

After 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.

You 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.

This action option is available for rules. It isn't available for web ACL default actions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

challengeActionProperty := &ChallengeActionProperty{
	CustomRequestHandling: &CustomRequestHandlingProperty{
		InsertHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-challengeaction.html

type CfnWebACL_ChallengeConfigProperty added in v2.56.0

type CfnWebACL_ChallengeConfigProperty struct {
	// Determines how long a challenge timestamp in the token remains valid after the client successfully responds to a challenge.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-challengeconfig.html#cfn-wafv2-webacl-challengeconfig-immunitytimeproperty
	//
	ImmunityTimeProperty interface{} `field:"optional" json:"immunityTimeProperty" yaml:"immunityTimeProperty"`
}

Specifies how AWS WAF should handle `Challenge` evaluations.

This is available at the web ACL level and in each rule.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

challengeConfigProperty := &ChallengeConfigProperty{
	ImmunityTimeProperty: &ImmunityTimePropertyProperty{
		ImmunityTime: jsii.Number(123),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-challengeconfig.html

type CfnWebACL_CookieMatchPatternProperty added in v2.25.0

type CfnWebACL_CookieMatchPatternProperty struct {
	// Inspect all cookies.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookiematchpattern.html#cfn-wafv2-webacl-cookiematchpattern-all
	//
	All interface{} `field:"optional" json:"all" yaml:"all"`
	// Inspect only the cookies whose keys don't match any of the strings specified here.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookiematchpattern.html#cfn-wafv2-webacl-cookiematchpattern-excludedcookies
	//
	ExcludedCookies *[]*string `field:"optional" json:"excludedCookies" yaml:"excludedCookies"`
	// Inspect only the cookies that have a key that matches one of the strings specified here.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookiematchpattern.html#cfn-wafv2-webacl-cookiematchpattern-includedcookies
	//
	IncludedCookies *[]*string `field:"optional" json:"includedCookies" yaml:"includedCookies"`
}

The filter to use to identify the subset of cookies to inspect in a web request.

You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .

Example JSON: `"MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

cookieMatchPatternProperty := &CookieMatchPatternProperty{
	All: all,
	ExcludedCookies: []*string{
		jsii.String("excludedCookies"),
	},
	IncludedCookies: []*string{
		jsii.String("includedCookies"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookiematchpattern.html

type CfnWebACL_CookiesProperty added in v2.25.0

type CfnWebACL_CookiesProperty struct {
	// The filter to use to identify the subset of cookies to inspect in a web request.
	//
	// You must specify exactly one setting: either `All` , `IncludedCookies` , or `ExcludedCookies` .
	//
	// Example JSON: `"MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookies.html#cfn-wafv2-webacl-cookies-matchpattern
	//
	MatchPattern interface{} `field:"required" json:"matchPattern" yaml:"matchPattern"`
	// The parts of the cookies to inspect with the rule inspection criteria.
	//
	// If you specify `ALL` , AWS WAF inspects both keys and values.
	//
	// `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookies.html#cfn-wafv2-webacl-cookies-matchscope
	//
	MatchScope *string `field:"required" json:"matchScope" yaml:"matchScope"`
	// What AWS WAF should do if the cookies of the request are more numerous or larger than AWS WAF can inspect.
	//
	// 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 .
	//
	// The options for oversize handling are the following:
	//
	// - `CONTINUE` - Inspect the available cookies normally, according to the rule inspection criteria.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookies.html#cfn-wafv2-webacl-cookies-oversizehandling
	//
	OversizeHandling *string `field:"required" json:"oversizeHandling" yaml:"oversizeHandling"`
}

Inspect the cookies in the web request.

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.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example JSON: `"Cookies": { "MatchPattern": { "All": {} }, "MatchScope": "KEY", "OversizeHandling": "MATCH" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

cookiesProperty := &CookiesProperty{
	MatchPattern: &CookieMatchPatternProperty{
		All: all,
		ExcludedCookies: []*string{
			jsii.String("excludedCookies"),
		},
		IncludedCookies: []*string{
			jsii.String("includedCookies"),
		},
	},
	MatchScope: jsii.String("matchScope"),
	OversizeHandling: jsii.String("oversizeHandling"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-cookies.html

type CfnWebACL_CountActionProperty

type CfnWebACL_CountActionProperty struct {
	// Defines custom handling for the web request.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-countaction.html#cfn-wafv2-webacl-countaction-customrequesthandling
	//
	CustomRequestHandling interface{} `field:"optional" json:"customRequestHandling" yaml:"customRequestHandling"`
}

Specifies that AWS WAF should count the request. Optionally defines additional custom handling for the request.

This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

countActionProperty := &CountActionProperty{
	CustomRequestHandling: &CustomRequestHandlingProperty{
		InsertHeaders: []interface{}{
			&CustomHTTPHeaderProperty{
				Name: jsii.String("name"),
				Value: jsii.String("value"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-countaction.html

type CfnWebACL_CustomHTTPHeaderProperty

type CfnWebACL_CustomHTTPHeaderProperty struct {
	// The name of the custom header.
	//
	// 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` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customhttpheader.html#cfn-wafv2-webacl-customhttpheader-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// The value of the custom header.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customhttpheader.html#cfn-wafv2-webacl-customhttpheader-value
	//
	Value *string `field:"required" json:"value" yaml:"value"`
}

A custom header for custom request and response handling.

This is used in `CustomResponse` and `CustomRequestHandling` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customHTTPHeaderProperty := &CustomHTTPHeaderProperty{
	Name: jsii.String("name"),
	Value: jsii.String("value"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customhttpheader.html

type CfnWebACL_CustomRequestHandlingProperty

type CfnWebACL_CustomRequestHandlingProperty struct {
	// The HTTP headers to insert into the request. Duplicate header names are not allowed.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customrequesthandling.html#cfn-wafv2-webacl-customrequesthandling-insertheaders
	//
	InsertHeaders interface{} `field:"required" json:"insertHeaders" yaml:"insertHeaders"`
}

Custom request handling behavior that inserts custom headers into a web request.

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` .

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* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customRequestHandlingProperty := &CustomRequestHandlingProperty{
	InsertHeaders: []interface{}{
		&CustomHTTPHeaderProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customrequesthandling.html

type CfnWebACL_CustomResponseBodyProperty

type CfnWebACL_CustomResponseBodyProperty struct {
	// The payload of the custom response.
	//
	// You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the `ContentType` setting.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponsebody.html#cfn-wafv2-webacl-customresponsebody-content
	//
	Content *string `field:"required" json:"content" yaml:"content"`
	// The type of content in the payload that you are defining in the `Content` string.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponsebody.html#cfn-wafv2-webacl-customresponsebody-contenttype
	//
	ContentType *string `field:"required" json:"contentType" yaml:"contentType"`
}

The response body to use in a custom response to a web request.

This is referenced by key from `CustomResponse` `CustomResponseBodyKey` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customResponseBodyProperty := &CustomResponseBodyProperty{
	Content: jsii.String("content"),
	ContentType: jsii.String("contentType"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponsebody.html

type CfnWebACL_CustomResponseProperty

type CfnWebACL_CustomResponseProperty struct {
	// The HTTP status code to return to the client.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponse.html#cfn-wafv2-webacl-customresponse-responsecode
	//
	ResponseCode *float64 `field:"required" json:"responseCode" yaml:"responseCode"`
	// References the response body that you want AWS WAF to return to the web request client.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponse.html#cfn-wafv2-webacl-customresponse-customresponsebodykey
	//
	CustomResponseBodyKey *string `field:"optional" json:"customResponseBodyKey" yaml:"customResponseBodyKey"`
	// The HTTP headers to use in the response.
	//
	// You can specify any header name except for `content-type` . Duplicate header names are not allowed.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponse.html#cfn-wafv2-webacl-customresponse-responseheaders
	//
	ResponseHeaders interface{} `field:"optional" json:"responseHeaders" yaml:"responseHeaders"`
}

A custom response to send to the client.

You can define a custom response for rule actions and default web ACL actions that are set to the block action.

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) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

customResponseProperty := &CustomResponseProperty{
	ResponseCode: jsii.Number(123),

	// the properties below are optional
	CustomResponseBodyKey: jsii.String("customResponseBodyKey"),
	ResponseHeaders: []interface{}{
		&CustomHTTPHeaderProperty{
			Name: jsii.String("name"),
			Value: jsii.String("value"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customresponse.html

type CfnWebACL_DefaultActionProperty

type CfnWebACL_DefaultActionProperty struct {
	// Specifies that AWS WAF should allow requests by default.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html#cfn-wafv2-webacl-defaultaction-allow
	//
	Allow interface{} `field:"optional" json:"allow" yaml:"allow"`
	// Specifies that AWS WAF should block requests by default.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html#cfn-wafv2-webacl-defaultaction-block
	//
	Block interface{} `field:"optional" json:"block" yaml:"block"`
}

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` .

The default action must be a terminating action.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

defaultActionProperty := &DefaultActionProperty{
	Allow: &AllowActionProperty{
		CustomRequestHandling: &CustomRequestHandlingProperty{
			InsertHeaders: []interface{}{
				&CustomHTTPHeaderProperty{
					Name: jsii.String("name"),
					Value: jsii.String("value"),
				},
			},
		},
	},
	Block: &BlockActionProperty{
		CustomResponse: &CustomResponseProperty{
			ResponseCode: jsii.Number(123),

			// the properties below are optional
			CustomResponseBodyKey: jsii.String("customResponseBodyKey"),
			ResponseHeaders: []interface{}{
				&CustomHTTPHeaderProperty{
					Name: jsii.String("name"),
					Value: jsii.String("value"),
				},
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-defaultaction.html

type CfnWebACL_ExcludedRuleProperty

type CfnWebACL_ExcludedRuleProperty struct {
	// The name of the rule whose action you want to override to `Count` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrule.html#cfn-wafv2-webacl-excludedrule-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

Specifies a single rule in a rule group whose action you want to override to `Count` .

> Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

excludedRuleProperty := &ExcludedRuleProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-excludedrule.html

type CfnWebACL_FieldIdentifierProperty added in v2.13.0

type CfnWebACL_FieldIdentifierProperty struct {
	// The name of the field.
	//
	// When the `PayloadType` in the request inspection is `JSON` , this 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) .
	//
	// When the `PayloadType` is `FORM_ENCODED` , use the HTML form names. For example, `username` .
	//
	// For more information, see the descriptions for each field type in the request inspection properties.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldidentifier.html#cfn-wafv2-webacl-fieldidentifier-identifier
	//
	Identifier *string `field:"required" json:"identifier" yaml:"identifier"`
}

The identifier of a field in the web request payload that contains customer data.

This data type is used to specify fields in the `RequestInspection` and `RequestInspectionACFP` configurations, which are used in the managed rule group configurations `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` , respectively.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

fieldIdentifierProperty := &FieldIdentifierProperty{
	Identifier: jsii.String("identifier"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldidentifier.html

type CfnWebACL_FieldToMatchProperty

type CfnWebACL_FieldToMatchProperty struct {
	// Inspect all query arguments.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-allqueryarguments
	//
	AllQueryArguments interface{} `field:"optional" json:"allQueryArguments" yaml:"allQueryArguments"`
	// Inspect the request body as plain text.
	//
	// 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.
	//
	// AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection.
	//
	// - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL `AssociationConfig` , for additional processing fees.
	//
	// For information about how to handle oversized request bodies, see the `Body` object configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-body
	//
	Body interface{} `field:"optional" json:"body" yaml:"body"`
	// Inspect the request cookies.
	//
	// 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.
	//
	// Only 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-cookies
	//
	Cookies interface{} `field:"optional" json:"cookies" yaml:"cookies"`
	// Inspect the request headers.
	//
	// 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.
	//
	// Only 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-headers
	//
	Headers interface{} `field:"optional" json:"headers" yaml:"headers"`
	// Match against the request's JA3 fingerprint.
	//
	// The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello information for the calculation. Almost all web requests include this information.
	//
	// > You can use this choice only with a string match `ByteMatchStatement` with the `PositionalConstraint` set to `EXACTLY` .
	//
	// You can obtain the JA3 fingerprint for client requests from the web ACL logs. If AWS WAF is able to calculate the fingerprint, it includes it in the logs. For information about the logging fields, see [Log fields](https://docs.aws.amazon.com/waf/latest/developerguide/logging-fields.html) in the *AWS WAF Developer Guide* .
	//
	// Provide the JA3 fingerprint string from the logs in your string match statement specification, to match with any future requests that have the same TLS configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-ja3fingerprint
	//
	Ja3Fingerprint interface{} `field:"optional" json:"ja3Fingerprint" yaml:"ja3Fingerprint"`
	// Inspect the request body as JSON.
	//
	// 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.
	//
	// AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection.
	//
	// - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL `AssociationConfig` , for additional processing fees.
	//
	// For information about how to handle oversized request bodies, see the `JsonBody` object configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-jsonbody
	//
	JsonBody interface{} `field:"optional" json:"jsonBody" yaml:"jsonBody"`
	// Inspect the HTTP method.
	//
	// The method indicates the type of operation that the request is asking the origin to perform.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-method
	//
	Method interface{} `field:"optional" json:"method" yaml:"method"`
	// Inspect the query string.
	//
	// This is the part of a URL that appears after a `?` character, if any.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-querystring
	//
	QueryString interface{} `field:"optional" json:"queryString" yaml:"queryString"`
	// Inspect a single header.
	//
	// Provide the name of the header to inspect, for example, `User-Agent` or `Referer` . This setting isn't case sensitive.
	//
	// Example JSON: `"SingleHeader": { "Name": "haystack" }`
	//
	// Alternately, you can filter and inspect all headers with the `Headers` `FieldToMatch` setting.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-singleheader
	//
	SingleHeader interface{} `field:"optional" json:"singleHeader" yaml:"singleHeader"`
	// Inspect a single query argument.
	//
	// 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.
	//
	// Example JSON: `"SingleQueryArgument": { "Name": "myArgument" }`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-singlequeryargument
	//
	SingleQueryArgument interface{} `field:"optional" json:"singleQueryArgument" yaml:"singleQueryArgument"`
	// Inspect the request URI path.
	//
	// This is the part of the web request that identifies a resource, for example, `/images/daily-ad.jpg` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html#cfn-wafv2-webacl-fieldtomatch-uripath
	//
	UriPath interface{} `field:"optional" json:"uriPath" yaml:"uriPath"`
}

Specifies a web request component to be used in a rule match statement or in a logging configuration.

- In a rule statement, this is the part of the web request that you want AWS WAF to inspect. 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.

Example JSON for a `QueryString` field to match:

`"FieldToMatch": { "QueryString": {} }`

Example JSON for a `Method` field to match specification:

`"FieldToMatch": { "Method": { "Name": "DELETE" } }` - In a logging configuration, this is used in the `RedactedFields` property to specify a field to redact from the logging records. For this use case, note the following:

- Even though all `FieldToMatch` settings are available, the only valid settings for field redaction are `UriPath` , `QueryString` , `SingleHeader` , and `Method` . - In this documentation, the descriptions of the individual fields talk about specifying the web request component to inspect, but for field redaction, you are specifying the component type to redact from the logs. - If you have request sampling enabled, the redacted fields configuration for logging has no impact on sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

fieldToMatchProperty := &FieldToMatchProperty{
	AllQueryArguments: allQueryArguments,
	Body: &BodyProperty{
		OversizeHandling: jsii.String("oversizeHandling"),
	},
	Cookies: &CookiesProperty{
		MatchPattern: &CookieMatchPatternProperty{
			All: all,
			ExcludedCookies: []*string{
				jsii.String("excludedCookies"),
			},
			IncludedCookies: []*string{
				jsii.String("includedCookies"),
			},
		},
		MatchScope: jsii.String("matchScope"),
		OversizeHandling: jsii.String("oversizeHandling"),
	},
	Headers: &HeadersProperty{
		MatchPattern: &HeaderMatchPatternProperty{
			All: all,
			ExcludedHeaders: []*string{
				jsii.String("excludedHeaders"),
			},
			IncludedHeaders: []*string{
				jsii.String("includedHeaders"),
			},
		},
		MatchScope: jsii.String("matchScope"),
		OversizeHandling: jsii.String("oversizeHandling"),
	},
	Ja3Fingerprint: &JA3FingerprintProperty{
		FallbackBehavior: jsii.String("fallbackBehavior"),
	},
	JsonBody: &JsonBodyProperty{
		MatchPattern: &JsonMatchPatternProperty{
			All: all,
			IncludedPaths: []*string{
				jsii.String("includedPaths"),
			},
		},
		MatchScope: jsii.String("matchScope"),

		// the properties below are optional
		InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
		OversizeHandling: jsii.String("oversizeHandling"),
	},
	Method: method,
	QueryString: queryString,
	SingleHeader: singleHeader,
	SingleQueryArgument: singleQueryArgument,
	UriPath: uriPath,
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-fieldtomatch.html

type CfnWebACL_ForwardedIPConfigurationProperty

type CfnWebACL_ForwardedIPConfigurationProperty struct {
	// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	//
	// You can specify the following fallback behaviors:
	//
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html#cfn-wafv2-webacl-forwardedipconfiguration-fallbackbehavior
	//
	FallbackBehavior *string `field:"required" json:"fallbackBehavior" yaml:"fallbackBehavior"`
	// The name of the HTTP header to use for the IP address.
	//
	// For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html#cfn-wafv2-webacl-forwardedipconfiguration-headername
	//
	HeaderName *string `field:"required" json:"headerName" yaml:"headerName"`
}

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.

Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.

This configuration is used for `GeoMatchStatement` and `RateBasedStatement` . For `IPSetReferenceStatement` , use `IPSetForwardedIPConfig` instead.

AWS WAF only evaluates the first IP address found in the specified HTTP header.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

forwardedIPConfigurationProperty := &ForwardedIPConfigurationProperty{
	FallbackBehavior: jsii.String("fallbackBehavior"),
	HeaderName: jsii.String("headerName"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-forwardedipconfiguration.html

type CfnWebACL_GeoMatchStatementProperty

type CfnWebACL_GeoMatchStatementProperty struct {
	// 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.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html#cfn-wafv2-webacl-geomatchstatement-countrycodes
	//
	CountryCodes *[]*string `field:"optional" json:"countryCodes" yaml:"countryCodes"`
	// 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.
	//
	// Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html#cfn-wafv2-webacl-geomatchstatement-forwardedipconfig
	//
	ForwardedIpConfig interface{} `field:"optional" json:"forwardedIpConfig" yaml:"forwardedIpConfig"`
}

A rule statement that labels web requests by country and region and that matches against web requests based on country code.

A geo match rule labels every request that it inspects regardless of whether it finds a match.

- 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. - 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.

AWS 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` .

If you use the web request origin, the label formats are `awswaf:clientip:geo:region:<ISO country code>-<ISO region code>` and `awswaf:clientip:geo:country:<ISO country code>` .

If you use a forwarded IP address, the label formats are `awswaf:forwardedip:geo:region:<ISO country code>-<ISO region code>` and `awswaf:forwardedip:geo:country:<ISO country code>` .

For 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) .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

geoMatchStatementProperty := &GeoMatchStatementProperty{
	CountryCodes: []*string{
		jsii.String("countryCodes"),
	},
	ForwardedIpConfig: &ForwardedIPConfigurationProperty{
		FallbackBehavior: jsii.String("fallbackBehavior"),
		HeaderName: jsii.String("headerName"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-geomatchstatement.html

type CfnWebACL_HeaderMatchPatternProperty added in v2.25.0

type CfnWebACL_HeaderMatchPatternProperty struct {
	// Inspect all headers.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.html#cfn-wafv2-webacl-headermatchpattern-all
	//
	All interface{} `field:"optional" json:"all" yaml:"all"`
	// Inspect only the headers whose keys don't match any of the strings specified here.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.html#cfn-wafv2-webacl-headermatchpattern-excludedheaders
	//
	ExcludedHeaders *[]*string `field:"optional" json:"excludedHeaders" yaml:"excludedHeaders"`
	// Inspect only the headers that have a key that matches one of the strings specified here.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.html#cfn-wafv2-webacl-headermatchpattern-includedheaders
	//
	IncludedHeaders *[]*string `field:"optional" json:"includedHeaders" yaml:"includedHeaders"`
}

The filter to use to identify the subset of headers to inspect in a web request.

You must specify exactly one setting: either `All` , `IncludedHeaders` , or `ExcludedHeaders` .

Example JSON: `"MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

headerMatchPatternProperty := &HeaderMatchPatternProperty{
	All: all,
	ExcludedHeaders: []*string{
		jsii.String("excludedHeaders"),
	},
	IncludedHeaders: []*string{
		jsii.String("includedHeaders"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headermatchpattern.html

type CfnWebACL_HeadersProperty added in v2.25.0

type CfnWebACL_HeadersProperty struct {
	// The filter to use to identify the subset of headers to inspect in a web request.
	//
	// You must specify exactly one setting: either `All` , `IncludedHeaders` , or `ExcludedHeaders` .
	//
	// Example JSON: `"MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headers.html#cfn-wafv2-webacl-headers-matchpattern
	//
	MatchPattern interface{} `field:"required" json:"matchPattern" yaml:"matchPattern"`
	// The parts of the headers to match with the rule inspection criteria.
	//
	// If you specify `ALL` , AWS WAF inspects both keys and values.
	//
	// `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headers.html#cfn-wafv2-webacl-headers-matchscope
	//
	MatchScope *string `field:"required" json:"matchScope" yaml:"matchScope"`
	// What AWS WAF should do if the headers of the request are more numerous or larger than AWS WAF can inspect.
	//
	// 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 .
	//
	// The options for oversize handling are the following:
	//
	// - `CONTINUE` - Inspect the available headers normally, according to the rule inspection criteria.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headers.html#cfn-wafv2-webacl-headers-oversizehandling
	//
	OversizeHandling *string `field:"required" json:"oversizeHandling" yaml:"oversizeHandling"`
}

Inspect all headers in the web request.

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.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

If you want to inspect just the value of a single header, use the `SingleHeader` `FieldToMatch` setting instead.

Example JSON: `"Headers": { "MatchPattern": { "All": {} }, "MatchScope": "KEY", "OversizeHandling": "MATCH" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

headersProperty := &HeadersProperty{
	MatchPattern: &HeaderMatchPatternProperty{
		All: all,
		ExcludedHeaders: []*string{
			jsii.String("excludedHeaders"),
		},
		IncludedHeaders: []*string{
			jsii.String("includedHeaders"),
		},
	},
	MatchScope: jsii.String("matchScope"),
	OversizeHandling: jsii.String("oversizeHandling"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-headers.html

type CfnWebACL_IPSetForwardedIPConfigurationProperty

type CfnWebACL_IPSetForwardedIPConfigurationProperty struct {
	// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	//
	// You can specify the following fallback behaviors:
	//
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetforwardedipconfiguration.html#cfn-wafv2-webacl-ipsetforwardedipconfiguration-fallbackbehavior
	//
	FallbackBehavior *string `field:"required" json:"fallbackBehavior" yaml:"fallbackBehavior"`
	// The name of the HTTP header to use for the IP address.
	//
	// For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetforwardedipconfiguration.html#cfn-wafv2-webacl-ipsetforwardedipconfiguration-headername
	//
	HeaderName *string `field:"required" json:"headerName" yaml:"headerName"`
	// The position in the header to search for the IP address.
	//
	// 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.
	//
	// The options for this setting are the following:
	//
	// - FIRST - Inspect the first IP address in the list of IP addresses in the header. This is usually the client's original IP.
	// - LAST - Inspect the last IP address in the list of IP addresses in the header.
	// - 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetforwardedipconfiguration.html#cfn-wafv2-webacl-ipsetforwardedipconfiguration-position
	//
	Position *string `field:"required" json:"position" yaml:"position"`
}

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.

Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.

> If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.

This configuration is used only for `IPSetReferenceStatement` . For `GeoMatchStatement` and `RateBasedStatement` , use `ForwardedIPConfig` instead.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iPSetForwardedIPConfigurationProperty := map[string]*string{
	"fallbackBehavior": jsii.String("fallbackBehavior"),
	"headerName": jsii.String("headerName"),
	"position": jsii.String("position"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetforwardedipconfiguration.html

type CfnWebACL_IPSetReferenceStatementProperty

type CfnWebACL_IPSetReferenceStatementProperty struct {
	// The Amazon Resource Name (ARN) of the `IPSet` that this statement references.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html#cfn-wafv2-webacl-ipsetreferencestatement-arn
	//
	Arn *string `field:"required" json:"arn" yaml:"arn"`
	// 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.
	//
	// Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html#cfn-wafv2-webacl-ipsetreferencestatement-ipsetforwardedipconfig
	//
	IpSetForwardedIpConfig interface{} `field:"optional" json:"ipSetForwardedIpConfig" yaml:"ipSetForwardedIpConfig"`
}

A rule statement used to detect web requests coming from particular IP addresses or address ranges.

To use this, create an `IPSet` that specifies the addresses you want to detect, then use the ARN of that set in this statement.

Each 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

iPSetReferenceStatementProperty := map[string]interface{}{
	"arn": jsii.String("arn"),

	// the properties below are optional
	"ipSetForwardedIpConfig": map[string]*string{
		"fallbackBehavior": jsii.String("fallbackBehavior"),
		"headerName": jsii.String("headerName"),
		"position": jsii.String("position"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ipsetreferencestatement.html

type CfnWebACL_ImmunityTimePropertyProperty added in v2.2.0

type CfnWebACL_ImmunityTimePropertyProperty struct {
	// The amount of time, in seconds, that a `CAPTCHA` or challenge timestamp is considered valid by AWS WAF .
	//
	// The default setting is 300.
	//
	// For the Challenge action, the minimum setting is 300.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-immunitytimeproperty.html#cfn-wafv2-webacl-immunitytimeproperty-immunitytime
	//
	ImmunityTime *float64 `field:"required" json:"immunityTime" yaml:"immunityTime"`
}

Used for CAPTCHA and challenge token settings.

Determines how long a `CAPTCHA` or challenge timestamp remains valid after AWS WAF updates it for a successful `CAPTCHA` or challenge response.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

immunityTimePropertyProperty := &ImmunityTimePropertyProperty{
	ImmunityTime: jsii.Number(123),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-immunitytimeproperty.html

type CfnWebACL_JA3FingerprintProperty added in v2.133.0

type CfnWebACL_JA3FingerprintProperty struct {
	// The match status to assign to the web request if the request doesn't have a JA3 fingerprint.
	//
	// You can specify the following fallback behaviors:
	//
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ja3fingerprint.html#cfn-wafv2-webacl-ja3fingerprint-fallbackbehavior
	//
	FallbackBehavior *string `field:"required" json:"fallbackBehavior" yaml:"fallbackBehavior"`
}

Match against the request's JA3 fingerprint.

The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier for the client's TLS configuration. AWS WAF calculates and logs this fingerprint for each request that has enough TLS Client Hello information for the calculation. Almost all web requests include this information.

> You can use this choice only with a string match `ByteMatchStatement` with the `PositionalConstraint` set to `EXACTLY` .

You can obtain the JA3 fingerprint for client requests from the web ACL logs. If AWS WAF is able to calculate the fingerprint, it includes it in the logs. For information about the logging fields, see [Log fields](https://docs.aws.amazon.com/waf/latest/developerguide/logging-fields.html) in the *AWS WAF Developer Guide* .

Provide the JA3 fingerprint string from the logs in your string match statement specification, to match with any future requests that have the same TLS configuration.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

jA3FingerprintProperty := &JA3FingerprintProperty{
	FallbackBehavior: jsii.String("fallbackBehavior"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ja3fingerprint.html

type CfnWebACL_JsonBodyProperty

type CfnWebACL_JsonBodyProperty struct {
	// The patterns to look for in the JSON body.
	//
	// AWS WAF inspects the results of these pattern matches against the rule inspection criteria.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-matchpattern
	//
	MatchPattern interface{} `field:"required" json:"matchPattern" yaml:"matchPattern"`
	// The parts of the JSON to match against using the `MatchPattern` .
	//
	// If you specify `ALL` , AWS WAF matches against keys and values.
	//
	// `All` does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys or the values or both. To require a match in the keys and in the values, use a logical `AND` statement to combine two match rules, one that inspects the keys and another that inspects the values.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-matchscope
	//
	MatchScope *string `field:"required" json:"matchScope" yaml:"matchScope"`
	// What AWS WAF should do if it fails to completely parse the JSON body. The options are the following:.
	//
	// - `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.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	//
	// If you don't provide this setting, AWS WAF parses and evaluates the content only up to the first parsing failure that it encounters.
	//
	// AWS 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.
	//
	// AWS WAF parses the JSON in the following examples as two valid key, value pairs:
	//
	// - Missing comma: `{"key1":"value1""key2":"value2"}`
	// - Missing colon: `{"key1":"value1","key2""value2"}`
	// - Extra colons: `{"key1"::"value1","key2""value2"}`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-invalidfallbackbehavior
	//
	InvalidFallbackBehavior *string `field:"optional" json:"invalidFallbackBehavior" yaml:"invalidFallbackBehavior"`
	// What AWS WAF should do if the body is larger than AWS WAF can inspect.
	//
	// AWS WAF does not support inspecting the entire contents of the web request body if the body exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service only forwards the contents that are within the limit to AWS WAF for inspection.
	//
	// - For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).
	// - For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and you can increase the limit for each resource type in the web ACL `AssociationConfig` , for additional processing fees.
	//
	// The options for oversize handling are the following:
	//
	// - `CONTINUE` - Inspect the available body contents normally, according to the rule inspection criteria.
	// - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
	// - `NO_MATCH` - Treat the web request as not matching the rule statement.
	//
	// You 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.
	//
	// Default: `CONTINUE`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html#cfn-wafv2-webacl-jsonbody-oversizehandling
	//
	OversizeHandling *string `field:"optional" json:"oversizeHandling" yaml:"oversizeHandling"`
}

Inspect the body of the web request as JSON. The body immediately follows the request headers.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Use 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.

Example JSON: `"JsonBody": { "MatchPattern": { "All": {} }, "MatchScope": "ALL" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

jsonBodyProperty := &JsonBodyProperty{
	MatchPattern: &JsonMatchPatternProperty{
		All: all,
		IncludedPaths: []*string{
			jsii.String("includedPaths"),
		},
	},
	MatchScope: jsii.String("matchScope"),

	// the properties below are optional
	InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
	OversizeHandling: jsii.String("oversizeHandling"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonbody.html

type CfnWebACL_JsonMatchPatternProperty

type CfnWebACL_JsonMatchPatternProperty struct {
	// Match all of the elements. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification.
	//
	// You must specify either this setting or the `IncludedPaths` setting, but not both.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html#cfn-wafv2-webacl-jsonmatchpattern-all
	//
	All interface{} `field:"optional" json:"all" yaml:"all"`
	// Match only the specified include paths. See also `MatchScope` in the `JsonBody` `FieldToMatch` specification.
	//
	// 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) .
	//
	// You must specify either this setting or the `All` setting, but not both.
	//
	// > Don't use this option to include all paths. Instead, use the `All` setting.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html#cfn-wafv2-webacl-jsonmatchpattern-includedpaths
	//
	IncludedPaths *[]*string `field:"optional" json:"includedPaths" yaml:"includedPaths"`
}

The patterns to look for in the JSON body.

AWS WAF inspects the results of these pattern matches against the rule inspection criteria. This is used with the `FieldToMatch` option `JsonBody` .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}

jsonMatchPatternProperty := &JsonMatchPatternProperty{
	All: all,
	IncludedPaths: []*string{
		jsii.String("includedPaths"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-jsonmatchpattern.html

type CfnWebACL_LabelMatchStatementProperty

type CfnWebACL_LabelMatchStatementProperty struct {
	// The string to match against. The setting you provide for this depends on the match statement's `Scope` setting:.
	//
	// - 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.
	// - 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.
	//
	// Labels are case sensitive and components of a label must be separated by colon, for example `NS1:NS2:name` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html#cfn-wafv2-webacl-labelmatchstatement-key
	//
	Key *string `field:"required" json:"key" yaml:"key"`
	// Specify whether you want to match using the label name or just the namespace.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html#cfn-wafv2-webacl-labelmatchstatement-scope
	//
	Scope *string `field:"required" json:"scope" yaml:"scope"`
}

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.

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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

labelMatchStatementProperty := &LabelMatchStatementProperty{
	Key: jsii.String("key"),
	Scope: jsii.String("scope"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-labelmatchstatement.html

type CfnWebACL_LabelProperty

type CfnWebACL_LabelProperty struct {
	// The label string.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-label.html#cfn-wafv2-webacl-label-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

A single label container.

This is used as an element of a label array in `RuleLabels` inside a rule.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

labelProperty := &LabelProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-label.html

type CfnWebACL_ManagedRuleGroupConfigProperty added in v2.13.0

type CfnWebACL_ManagedRuleGroupConfigProperty struct {
	// Additional configuration for using the account creation fraud prevention (ACFP) managed rule group, `AWSManagedRulesACFPRuleSet` .
	//
	// Use this to provide account creation 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 account creation requests.
	//
	// For information about using the ACFP managed rule group, see [AWS WAF Fraud Control account creation fraud prevention (ACFP) rule group](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-acfp.html) and [AWS WAF Fraud Control account creation fraud prevention (ACFP)](https://docs.aws.amazon.com/waf/latest/developerguide/waf-acfp.html) in the *AWS WAF Developer Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-awsmanagedrulesacfpruleset
	//
	AwsManagedRulesAcfpRuleSet interface{} `field:"optional" json:"awsManagedRulesAcfpRuleSet" yaml:"awsManagedRulesAcfpRuleSet"`
	// Additional configuration for using the account takeover prevention (ATP) managed rule group, `AWSManagedRulesATPRuleSet` .
	//
	// 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.
	//
	// This configuration replaces the individual configuration fields in `ManagedRuleGroupConfig` and provides additional feature configuration.
	//
	// For 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-awsmanagedrulesatpruleset
	//
	AwsManagedRulesAtpRuleSet interface{} `field:"optional" json:"awsManagedRulesAtpRuleSet" yaml:"awsManagedRulesAtpRuleSet"`
	// Additional configuration for using the Bot Control managed rule group.
	//
	// 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* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-awsmanagedrulesbotcontrolruleset
	//
	AwsManagedRulesBotControlRuleSet interface{} `field:"optional" json:"awsManagedRulesBotControlRuleSet" yaml:"awsManagedRulesBotControlRuleSet"`
	// > Instead of this setting, provide your configuration under `AWSManagedRulesATPRuleSet` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-loginpath
	//
	LoginPath *string `field:"optional" json:"loginPath" yaml:"loginPath"`
	// > Instead of this setting, provide your configuration under the request inspection configuration for `AWSManagedRulesATPRuleSet` or `AWSManagedRulesACFPRuleSet` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-passwordfield
	//
	PasswordField interface{} `field:"optional" json:"passwordField" yaml:"passwordField"`
	// > Instead of this setting, provide your configuration under the request inspection configuration for `AWSManagedRulesATPRuleSet` or `AWSManagedRulesACFPRuleSet` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-payloadtype
	//
	PayloadType *string `field:"optional" json:"payloadType" yaml:"payloadType"`
	// > Instead of this setting, provide your configuration under the request inspection configuration for `AWSManagedRulesATPRuleSet` or `AWSManagedRulesACFPRuleSet` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html#cfn-wafv2-webacl-managedrulegroupconfig-usernamefield
	//
	UsernameField interface{} `field:"optional" json:"usernameField" yaml:"usernameField"`
}

Additional information that's used by a managed rule group. Many managed rule groups don't require this.

The rule groups used for intelligent threat mitigation require additional configuration:

- 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. - 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. - Use the `AWSManagedRulesBotControlRuleSet` configuration object to configure the protection level that you want the Bot Control rule group to use.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

managedRuleGroupConfigProperty := &ManagedRuleGroupConfigProperty{
	AwsManagedRulesAcfpRuleSet: &AWSManagedRulesACFPRuleSetProperty{
		CreationPath: jsii.String("creationPath"),
		RegistrationPagePath: jsii.String("registrationPagePath"),
		RequestInspection: &RequestInspectionACFPProperty{
			PayloadType: jsii.String("payloadType"),

			// the properties below are optional
			AddressFields: []interface{}{
				&FieldIdentifierProperty{
					Identifier: jsii.String("identifier"),
				},
			},
			EmailField: &FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
			PasswordField: &FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
			PhoneNumberFields: []interface{}{
				&FieldIdentifierProperty{
					Identifier: jsii.String("identifier"),
				},
			},
			UsernameField: &FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
		},

		// the properties below are optional
		EnableRegexInPath: jsii.Boolean(false),
		ResponseInspection: &ResponseInspectionProperty{
			BodyContains: &ResponseInspectionBodyContainsProperty{
				FailureStrings: []*string{
					jsii.String("failureStrings"),
				},
				SuccessStrings: []*string{
					jsii.String("successStrings"),
				},
			},
			Header: &ResponseInspectionHeaderProperty{
				FailureValues: []*string{
					jsii.String("failureValues"),
				},
				Name: jsii.String("name"),
				SuccessValues: []*string{
					jsii.String("successValues"),
				},
			},
			Json: &ResponseInspectionJsonProperty{
				FailureValues: []*string{
					jsii.String("failureValues"),
				},
				Identifier: jsii.String("identifier"),
				SuccessValues: []*string{
					jsii.String("successValues"),
				},
			},
			StatusCode: &ResponseInspectionStatusCodeProperty{
				FailureCodes: []interface{}{
					jsii.Number(123),
				},
				SuccessCodes: []interface{}{
					jsii.Number(123),
				},
			},
		},
	},
	AwsManagedRulesAtpRuleSet: &AWSManagedRulesATPRuleSetProperty{
		LoginPath: jsii.String("loginPath"),

		// the properties below are optional
		EnableRegexInPath: jsii.Boolean(false),
		RequestInspection: &RequestInspectionProperty{
			PasswordField: &FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
			PayloadType: jsii.String("payloadType"),
			UsernameField: &FieldIdentifierProperty{
				Identifier: jsii.String("identifier"),
			},
		},
		ResponseInspection: &ResponseInspectionProperty{
			BodyContains: &ResponseInspectionBodyContainsProperty{
				FailureStrings: []*string{
					jsii.String("failureStrings"),
				},
				SuccessStrings: []*string{
					jsii.String("successStrings"),
				},
			},
			Header: &ResponseInspectionHeaderProperty{
				FailureValues: []*string{
					jsii.String("failureValues"),
				},
				Name: jsii.String("name"),
				SuccessValues: []*string{
					jsii.String("successValues"),
				},
			},
			Json: &ResponseInspectionJsonProperty{
				FailureValues: []*string{
					jsii.String("failureValues"),
				},
				Identifier: jsii.String("identifier"),
				SuccessValues: []*string{
					jsii.String("successValues"),
				},
			},
			StatusCode: &ResponseInspectionStatusCodeProperty{
				FailureCodes: []interface{}{
					jsii.Number(123),
				},
				SuccessCodes: []interface{}{
					jsii.Number(123),
				},
			},
		},
	},
	AwsManagedRulesBotControlRuleSet: &AWSManagedRulesBotControlRuleSetProperty{
		InspectionLevel: jsii.String("inspectionLevel"),

		// the properties below are optional
		EnableMachineLearning: jsii.Boolean(false),
	},
	LoginPath: jsii.String("loginPath"),
	PasswordField: &FieldIdentifierProperty{
		Identifier: jsii.String("identifier"),
	},
	PayloadType: jsii.String("payloadType"),
	UsernameField: &FieldIdentifierProperty{
		Identifier: jsii.String("identifier"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupconfig.html

type CfnWebACL_ManagedRuleGroupStatementProperty

type CfnWebACL_ManagedRuleGroupStatementProperty struct {
	// The name of the managed rule group.
	//
	// You use this, along with the vendor name, to identify the rule group.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// The name of the managed rule group vendor.
	//
	// You use this, along with the rule group name, to identify a rule group.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-vendorname
	//
	VendorName *string `field:"required" json:"vendorName" yaml:"vendorName"`
	// Rules in the referenced rule group whose actions are set to `Count` .
	//
	// > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-excludedrules
	//
	ExcludedRules interface{} `field:"optional" json:"excludedRules" yaml:"excludedRules"`
	// Additional information that's used by a managed rule group. Many managed rule groups don't require this.
	//
	// The rule groups used for intelligent threat mitigation require additional configuration:
	//
	// - 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.
	// - 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.
	// - Use the `AWSManagedRulesBotControlRuleSet` configuration object to configure the protection level that you want the Bot Control rule group to use.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-managedrulegroupconfigs
	//
	ManagedRuleGroupConfigs interface{} `field:"optional" json:"managedRuleGroupConfigs" yaml:"managedRuleGroupConfigs"`
	// Action settings to use in the place of the rule actions that are configured inside the rule group.
	//
	// You specify one override for each rule whose action you want to change.
	//
	// You 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-ruleactionoverrides
	//
	RuleActionOverrides interface{} `field:"optional" json:"ruleActionOverrides" yaml:"ruleActionOverrides"`
	// An optional nested statement that narrows the scope of the web requests that are evaluated by the managed rule group.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-scopedownstatement
	//
	ScopeDownStatement interface{} `field:"optional" json:"scopeDownStatement" yaml:"scopeDownStatement"`
	// The version of the managed rule group to use.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html#cfn-wafv2-webacl-managedrulegroupstatement-version
	//
	Version *string `field:"optional" json:"version" yaml:"version"`
}

A rule statement used to run the rules that are defined in a managed rule group.

To use this, provide the vendor name and the name of the rule group in this statement. You can retrieve the required names through the API call `ListAvailableManagedRuleGroups` .

You cannot nest a `ManagedRuleGroupStatement` , for example for use inside a `NotStatement` or `OrStatement` . You cannot use a managed rule group statement inside another rule group. You can only use a managed rule group statement as a top-level statement in a rule that you define in a web ACL.

> You are charged additional fees when you use the AWS WAF Bot Control managed rule group `AWSManagedRulesBotControlRuleSet` , the AWS WAF Fraud Control account takeover prevention (ATP) managed rule group `AWSManagedRulesATPRuleSet` , or the AWS WAF Fraud Control account creation fraud prevention (ACFP) managed rule group `AWSManagedRulesACFPRuleSet` . For more information, see [AWS WAF Pricing](https://docs.aws.amazon.com/waf/pricing/) .

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-managedrulegroupstatement.html

type CfnWebACL_NotStatementProperty

type CfnWebACL_NotStatementProperty struct {
	// The statement to negate.
	//
	// You can use any statement that can be nested.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatement.html#cfn-wafv2-webacl-notstatement-statement
	//
	Statement interface{} `field:"required" json:"statement" yaml:"statement"`
}

A logical rule statement used to negate the results of another rule statement.

You provide one `Statement` within the `NotStatement` .

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-notstatement.html

type CfnWebACL_OrStatementProperty

type CfnWebACL_OrStatementProperty struct {
	// The statements to combine with OR logic.
	//
	// You can use any statements that can be nested.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatement.html#cfn-wafv2-webacl-orstatement-statements
	//
	Statements interface{} `field:"required" json:"statements" yaml:"statements"`
}

A logical rule statement used to combine other rule statements with OR logic.

You provide more than one `Statement` within the `OrStatement` .

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-orstatement.html

type CfnWebACL_OverrideActionProperty

type CfnWebACL_OverrideActionProperty struct {
	// Override the rule group evaluation result to count only.
	//
	// > 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html#cfn-wafv2-webacl-overrideaction-count
	//
	Count interface{} `field:"optional" json:"count" yaml:"count"`
	// Don't override the rule group evaluation result.
	//
	// This is the most common setting.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html#cfn-wafv2-webacl-overrideaction-none
	//
	None interface{} `field:"optional" json:"none" yaml:"none"`
}

The action to use in the place of the action that results from the rule group evaluation.

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.

You can only use this for rule statements that reference a rule group, like `RuleGroupReferenceStatement` and `ManagedRuleGroupStatement` .

> 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var count interface{}
var none interface{}

overrideActionProperty := &OverrideActionProperty{
	Count: count,
	None: none,
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-overrideaction.html

type CfnWebACL_RateBasedStatementCustomKeyProperty added in v2.91.0

type CfnWebACL_RateBasedStatementCustomKeyProperty struct {
	// Use the value of a cookie in the request as an aggregate key.
	//
	// Each distinct value in the cookie contributes to the aggregation instance. If you use a single cookie as your custom key, then each value fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-cookie
	//
	Cookie interface{} `field:"optional" json:"cookie" yaml:"cookie"`
	// Use the first IP address in an HTTP header as an aggregate key.
	//
	// Each distinct forwarded IP address contributes to the aggregation instance.
	//
	// When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use. You can aggregate on only the forwarded IP address by specifying `FORWARDED_IP` in your rate-based statement's `AggregateKeyType` .
	//
	// With this option, you must specify the header to use in the rate-based rule's `ForwardedIPConfig` property.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-forwardedip
	//
	ForwardedIp interface{} `field:"optional" json:"forwardedIp" yaml:"forwardedIp"`
	// Use the value of a header in the request as an aggregate key.
	//
	// Each distinct value in the header contributes to the aggregation instance. If you use a single header as your custom key, then each value fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-header
	//
	Header interface{} `field:"optional" json:"header" yaml:"header"`
	// Use the request's HTTP method as an aggregate key.
	//
	// Each distinct HTTP method contributes to the aggregation instance. If you use just the HTTP method as your custom key, then each method fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-httpmethod
	//
	HttpMethod interface{} `field:"optional" json:"httpMethod" yaml:"httpMethod"`
	// Use the request's originating IP address as an aggregate key. Each distinct IP address contributes to the aggregation instance.
	//
	// When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use. You can aggregate on only the IP address by specifying `IP` in your rate-based statement's `AggregateKeyType` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-ip
	//
	Ip interface{} `field:"optional" json:"ip" yaml:"ip"`
	// Use the specified label namespace as an aggregate key.
	//
	// Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance.
	//
	// This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL.
	//
	// For information about label namespaces and names, see [Label syntax and naming requirements](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-requirements.html) in the *AWS WAF Developer Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-labelnamespace
	//
	LabelNamespace interface{} `field:"optional" json:"labelNamespace" yaml:"labelNamespace"`
	// Use the specified query argument as an aggregate key.
	//
	// Each distinct value for the named query argument contributes to the aggregation instance. If you use a single query argument as your custom key, then each value fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-queryargument
	//
	QueryArgument interface{} `field:"optional" json:"queryArgument" yaml:"queryArgument"`
	// Use the request's query string as an aggregate key.
	//
	// Each distinct string contributes to the aggregation instance. If you use just the query string as your custom key, then each string fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-querystring
	//
	QueryString interface{} `field:"optional" json:"queryString" yaml:"queryString"`
	// Use the request's URI path as an aggregate key.
	//
	// Each distinct URI path contributes to the aggregation instance. If you use just the URI path as your custom key, then each URI path fully defines an aggregation instance.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html#cfn-wafv2-webacl-ratebasedstatementcustomkey-uripath
	//
	UriPath interface{} `field:"optional" json:"uriPath" yaml:"uriPath"`
}

Specifies a single custom aggregate key for a rate-base rule.

> Web requests that are missing any of the components specified in the aggregation keys are omitted from the rate-based rule evaluation and handling.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var forwardedIp interface{}
var httpMethod interface{}
var ip interface{}

rateBasedStatementCustomKeyProperty := &RateBasedStatementCustomKeyProperty{
	Cookie: &RateLimitCookieProperty{
		Name: jsii.String("name"),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	ForwardedIp: forwardedIp,
	Header: &RateLimitHeaderProperty{
		Name: jsii.String("name"),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	HttpMethod: httpMethod,
	Ip: ip,
	LabelNamespace: &RateLimitLabelNamespaceProperty{
		Namespace: jsii.String("namespace"),
	},
	QueryArgument: &RateLimitQueryArgumentProperty{
		Name: jsii.String("name"),
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	QueryString: &RateLimitQueryStringProperty{
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
	UriPath: &RateLimitUriPathProperty{
		TextTransformations: []interface{}{
			&TextTransformationProperty{
				Priority: jsii.Number(123),
				Type: jsii.String("type"),
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatementcustomkey.html

type CfnWebACL_RateBasedStatementProperty

type CfnWebACL_RateBasedStatementProperty struct {
	// Setting that indicates how to aggregate the request counts.
	//
	// > Web requests that are missing any of the components specified in the aggregation keys are omitted from the rate-based rule evaluation and handling.
	//
	// - `CONSTANT` - Count and limit the requests that match the rate-based rule's scope-down statement. With this option, the counted requests aren't further aggregated. The scope-down statement is the only specification used. When the count of all requests that satisfy the scope-down statement goes over the limit, AWS WAF applies the rule action to all requests that satisfy the scope-down statement.
	//
	// With this option, you must configure the `ScopeDownStatement` property.
	// - `CUSTOM_KEYS` - Aggregate the request counts using one or more web request components as the aggregate keys.
	//
	// With this option, you must specify the aggregate keys in the `CustomKeys` property.
	//
	// To aggregate on only the IP address or only the forwarded IP address, don't use custom keys. Instead, set the aggregate key type to `IP` or `FORWARDED_IP` .
	// - `FORWARDED_IP` - Aggregate the request counts on the first IP address in an HTTP header.
	//
	// With this option, you must specify the header to use in the `ForwardedIPConfig` property.
	//
	// To aggregate on a combination of the forwarded IP address with other aggregate keys, use `CUSTOM_KEYS` .
	// - `IP` - Aggregate the request counts on the IP address from the web request origin.
	//
	// To aggregate on a combination of the IP address with other aggregate keys, use `CUSTOM_KEYS` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-aggregatekeytype
	//
	AggregateKeyType *string `field:"required" json:"aggregateKeyType" yaml:"aggregateKeyType"`
	// The limit on requests per 5-minute period for a single aggregation instance for the rate-based rule.
	//
	// If the rate-based statement includes a `ScopeDownStatement` , this limit is applied only to the requests that match the statement.
	//
	// Examples:
	//
	// - If you aggregate on just the IP address, this is the limit on requests from any single IP address.
	// - If you aggregate on the HTTP method and the query argument name "city", then this is the limit on requests for any single method, city pair.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-limit
	//
	Limit *float64 `field:"required" json:"limit" yaml:"limit"`
	// Specifies the aggregate keys to use in a rate-base rule.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-customkeys
	//
	CustomKeys interface{} `field:"optional" json:"customKeys" yaml:"customKeys"`
	// The amount of time, in seconds, that AWS WAF should include in its request counts, looking back from the current time.
	//
	// For example, for a setting of 120, when AWS WAF checks the rate, it counts the requests for the 2 minutes immediately preceding the current time. Valid settings are 60, 120, 300, and 600.
	//
	// This setting doesn't determine how often AWS WAF checks the rate, but how far back it looks each time it checks. AWS WAF checks the rate about every 10 seconds.
	//
	// Default: `300` (5 minutes).
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-evaluationwindowsec
	//
	EvaluationWindowSec *float64 `field:"optional" json:"evaluationWindowSec" yaml:"evaluationWindowSec"`
	// 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.
	//
	// Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
	//
	// > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
	//
	// This is required if you specify a forwarded IP in the rule's aggregate key settings.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-forwardedipconfig
	//
	ForwardedIpConfig interface{} `field:"optional" json:"forwardedIpConfig" yaml:"forwardedIpConfig"`
	// An optional nested statement that narrows the scope of the web requests that are evaluated and managed by the rate-based statement.
	//
	// When you use a scope-down statement, the rate-based rule only tracks and rate limits requests that 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html#cfn-wafv2-webacl-ratebasedstatement-scopedownstatement
	//
	ScopeDownStatement interface{} `field:"optional" json:"scopeDownStatement" yaml:"scopeDownStatement"`
}

A rate-based rule counts incoming requests and rate limits requests when they are coming at too fast a rate.

The rule categorizes requests according to your aggregation criteria, collects them into aggregation instances, and counts and rate limits the requests for each instance.

> If you change any of these settings in a rule that's currently in use, the change resets the rule's rate limiting counts. This can pause the rule's rate limiting activities for up to a minute.

You can specify individual aggregation keys, like IP address or HTTP method. You can also specify aggregation key combinations, like IP address and HTTP method, or HTTP method, query argument, and cookie.

Each unique set of values for the aggregation keys that you specify is a separate aggregation instance, with the value from each key contributing to the aggregation instance definition.

For example, assume the rule evaluates web requests with the following IP address and HTTP method values:

- IP address 10.1.1.1, HTTP method POST - IP address 10.1.1.1, HTTP method GET - IP address 127.0.0.0, HTTP method POST - IP address 10.1.1.1, HTTP method GET

The rule would create different aggregation instances according to your aggregation criteria, for example:

- If the aggregation criteria is just the IP address, then each individual address is an aggregation instance, and AWS WAF counts requests separately for each. The aggregation instances and request counts for our example would be the following:

- IP address 10.1.1.1: count 3 - IP address 127.0.0.0: count 1 - If the aggregation criteria is HTTP method, then each individual HTTP method is an aggregation instance. The aggregation instances and request counts for our example would be the following:

- HTTP method POST: count 2 - HTTP method GET: count 2 - If the aggregation criteria is IP address and HTTP method, then each IP address and each HTTP method would contribute to the combined aggregation instance. The aggregation instances and request counts for our example would be the following:

- IP address 10.1.1.1, HTTP method POST: count 1 - IP address 10.1.1.1, HTTP method GET: count 2 - IP address 127.0.0.0, HTTP method POST: count 1

For any n-tuple of aggregation keys, each unique combination of values for the keys defines a separate aggregation instance, which AWS WAF counts and rate-limits individually.

You can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts and rate limits requests that match the nested statement. You can use this nested scope-down statement in conjunction with your aggregation key specifications or you can just count and rate limit all requests that match the scope-down statement, without additional aggregation. When you choose to just manage all requests that match a scope-down statement, the aggregation instance is singular for the rule.

You 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.

For additional information about the options, see [Rate limiting web requests using rate-based rules](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rate-based-rules.html) in the *AWS WAF Developer Guide* .

If you only aggregate on the individual IP address or forwarded IP address, you can retrieve the list of IP addresses that AWS WAF is currently rate limiting for a rule through the API call `GetRateBasedStatementManagedKeys` . This option is not available for other aggregation configurations.

AWS 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 .

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratebasedstatement.html

type CfnWebACL_RateLimitCookieProperty added in v2.91.0

type CfnWebACL_RateLimitCookieProperty struct {
	// The name of the cookie to use.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitcookie.html#cfn-wafv2-webacl-ratelimitcookie-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitcookie.html#cfn-wafv2-webacl-ratelimitcookie-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies a cookie as an aggregate key for a rate-based rule.

Each distinct value in the cookie contributes to the aggregation instance. If you use a single cookie as your custom key, then each value fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitCookieProperty := &RateLimitCookieProperty{
	Name: jsii.String("name"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitcookie.html

type CfnWebACL_RateLimitHeaderProperty added in v2.91.0

type CfnWebACL_RateLimitHeaderProperty struct {
	// The name of the header to use.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitheader.html#cfn-wafv2-webacl-ratelimitheader-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitheader.html#cfn-wafv2-webacl-ratelimitheader-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies a header as an aggregate key for a rate-based rule.

Each distinct value in the header contributes to the aggregation instance. If you use a single header as your custom key, then each value fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitHeaderProperty := &RateLimitHeaderProperty{
	Name: jsii.String("name"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitheader.html

type CfnWebACL_RateLimitLabelNamespaceProperty added in v2.91.0

type CfnWebACL_RateLimitLabelNamespaceProperty struct {
	// The namespace to use for aggregation.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitlabelnamespace.html#cfn-wafv2-webacl-ratelimitlabelnamespace-namespace
	//
	Namespace *string `field:"required" json:"namespace" yaml:"namespace"`
}

Specifies a label namespace to use as an aggregate key for a rate-based rule.

Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance.

This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL.

For information about label namespaces and names, see [Label syntax and naming requirements](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-label-requirements.html) in the *AWS WAF Developer Guide* .

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitLabelNamespaceProperty := &RateLimitLabelNamespaceProperty{
	Namespace: jsii.String("namespace"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitlabelnamespace.html

type CfnWebACL_RateLimitQueryArgumentProperty added in v2.91.0

type CfnWebACL_RateLimitQueryArgumentProperty struct {
	// The name of the query argument to use.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitqueryargument.html#cfn-wafv2-webacl-ratelimitqueryargument-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitqueryargument.html#cfn-wafv2-webacl-ratelimitqueryargument-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies a query argument in the request as an aggregate key for a rate-based rule.

Each distinct value for the named query argument contributes to the aggregation instance. If you use a single query argument as your custom key, then each value fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitQueryArgumentProperty := &RateLimitQueryArgumentProperty{
	Name: jsii.String("name"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitqueryargument.html

type CfnWebACL_RateLimitQueryStringProperty added in v2.91.0

type CfnWebACL_RateLimitQueryStringProperty struct {
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitquerystring.html#cfn-wafv2-webacl-ratelimitquerystring-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies the request's query string as an aggregate key for a rate-based rule.

Each distinct string contributes to the aggregation instance. If you use just the query string as your custom key, then each string fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitQueryStringProperty := &RateLimitQueryStringProperty{
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimitquerystring.html

type CfnWebACL_RateLimitUriPathProperty added in v2.91.0

type CfnWebACL_RateLimitUriPathProperty struct {
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// Text transformations are used in rule match statements, to transform the `FieldToMatch` request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, AWS WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimituripath.html#cfn-wafv2-webacl-ratelimituripath-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

Specifies the request's URI path as an aggregate key for a rate-based rule.

Each distinct URI path contributes to the aggregation instance. If you use just the URI path as your custom key, then each URI path fully defines an aggregation instance.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

rateLimitUriPathProperty := &RateLimitUriPathProperty{
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ratelimituripath.html

type CfnWebACL_RegexMatchStatementProperty added in v2.2.0

type CfnWebACL_RegexMatchStatementProperty struct {
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexmatchstatement.html#cfn-wafv2-webacl-regexmatchstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// The string representing the regular expression.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexmatchstatement.html#cfn-wafv2-webacl-regexmatchstatement-regexstring
	//
	RegexString *string `field:"required" json:"regexString" yaml:"regexString"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexmatchstatement.html#cfn-wafv2-webacl-regexmatchstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

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.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

regexMatchStatementProperty := &RegexMatchStatementProperty{
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	RegexString: jsii.String("regexString"),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexmatchstatement.html

type CfnWebACL_RegexPatternSetReferenceStatementProperty

type CfnWebACL_RegexPatternSetReferenceStatementProperty struct {
	// The Amazon Resource Name (ARN) of the `RegexPatternSet` that this statement references.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-arn
	//
	Arn *string `field:"required" json:"arn" yaml:"arn"`
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html#cfn-wafv2-webacl-regexpatternsetreferencestatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

A rule statement used to search web request components for matches with regular expressions.

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.

Each 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

regexPatternSetReferenceStatementProperty := &RegexPatternSetReferenceStatementProperty{
	Arn: jsii.String("arn"),
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-regexpatternsetreferencestatement.html

type CfnWebACL_RequestBodyAssociatedResourceTypeConfigProperty added in v2.87.0

type CfnWebACL_RequestBodyAssociatedResourceTypeConfigProperty struct {
	// Specifies the maximum size of the web request body component that an associated CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resource should send to AWS WAF for inspection.
	//
	// This applies to statements in the web ACL that inspect the body or JSON body.
	//
	// Default: `16 KB (16,384 bytes)`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestbodyassociatedresourcetypeconfig.html#cfn-wafv2-webacl-requestbodyassociatedresourcetypeconfig-defaultsizeinspectionlimit
	//
	DefaultSizeInspectionLimit *string `field:"required" json:"defaultSizeInspectionLimit" yaml:"defaultSizeInspectionLimit"`
}

Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to AWS WAF for inspection.

The default size is 16 KB (16,384 bytes). You can change the setting for any of the available resource types.

> You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see [AWS WAF Pricing](https://docs.aws.amazon.com/waf/pricing/) .

Example JSON: `{ "API_GATEWAY": "KB_48", "APP_RUNNER_SERVICE": "KB_32" }`

For Application Load Balancer and AWS AppSync , the limit is fixed at 8 KB (8,192 bytes).

This is used in the `AssociationConfig` of the web ACL.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

requestBodyAssociatedResourceTypeConfigProperty := &RequestBodyAssociatedResourceTypeConfigProperty{
	DefaultSizeInspectionLimit: jsii.String("defaultSizeInspectionLimit"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestbodyassociatedresourcetypeconfig.html

type CfnWebACL_RequestInspectionACFPProperty added in v2.91.0

type CfnWebACL_RequestInspectionACFPProperty struct {
	// The payload type for your account creation endpoint, either JSON or form encoded.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspectionacfp.html#cfn-wafv2-webacl-requestinspectionacfp-payloadtype
	//
	PayloadType *string `field:"required" json:"payloadType" yaml:"payloadType"`
	// The names of the fields in the request payload that contain your customer's primary physical address.
	//
	// Order the address fields in the array exactly as they are ordered in the request payload.
	//
	// How you specify the address fields depends on the request inspection payload type.
	//
	// - For JSON payloads, specify the field identifiers 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) .
	//
	// For example, for the JSON payload `{ "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } }` , the address field idenfiers are `/form/primaryaddressline1` , `/form/primaryaddressline2` , and `/form/primaryaddressline3` .
	// - For form encoded payload types, use the HTML form names.
	//
	// For example, for an HTML form with input elements named `primaryaddressline1` , `primaryaddressline2` , and `primaryaddressline3` , the address fields identifiers are `primaryaddressline1` , `primaryaddressline2` , and `primaryaddressline3` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspectionacfp.html#cfn-wafv2-webacl-requestinspectionacfp-addressfields
	//
	AddressFields interface{} `field:"optional" json:"addressFields" yaml:"addressFields"`
	// The name of the field in the request payload that contains your customer's email.
	//
	// How you specify this depends on the request inspection payload type.
	//
	// - 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) .
	//
	// For example, for the JSON payload `{ "form": { "email": "THE_EMAIL" } }` , the email field specification is `/form/email` .
	// - For form encoded payload types, use the HTML form names.
	//
	// For example, for an HTML form with the input element named `email1` , the email field specification is `email1` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspectionacfp.html#cfn-wafv2-webacl-requestinspectionacfp-emailfield
	//
	EmailField interface{} `field:"optional" json:"emailField" yaml:"emailField"`
	// The name of the field in the request payload that contains your customer's password.
	//
	// How you specify this depends on the request inspection payload type.
	//
	// - 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) .
	//
	// For example, for the JSON payload `{ "form": { "password": "THE_PASSWORD" } }` , the password field specification is `/form/password` .
	// - For form encoded payload types, use the HTML form names.
	//
	// For example, for an HTML form with the input element named `password1` , the password field specification is `password1` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspectionacfp.html#cfn-wafv2-webacl-requestinspectionacfp-passwordfield
	//
	PasswordField interface{} `field:"optional" json:"passwordField" yaml:"passwordField"`
	// The names of the fields in the request payload that contain your customer's primary phone number.
	//
	// Order the phone number fields in the array exactly as they are ordered in the request payload.
	//
	// How you specify the phone number fields depends on the request inspection payload type.
	//
	// - For JSON payloads, specify the field identifiers 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) .
	//
	// For example, for the JSON payload `{ "form": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } }` , the phone number field identifiers are `/form/primaryphoneline1` , `/form/primaryphoneline2` , and `/form/primaryphoneline3` .
	// - For form encoded payload types, use the HTML form names.
	//
	// For example, for an HTML form with input elements named `primaryphoneline1` , `primaryphoneline2` , and `primaryphoneline3` , the phone number field identifiers are `primaryphoneline1` , `primaryphoneline2` , and `primaryphoneline3` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspectionacfp.html#cfn-wafv2-webacl-requestinspectionacfp-phonenumberfields
	//
	PhoneNumberFields interface{} `field:"optional" json:"phoneNumberFields" yaml:"phoneNumberFields"`
	// The name of the field in the request payload that contains your customer's username.
	//
	// How you specify this depends on the request inspection payload type.
	//
	// - 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) .
	//
	// For example, for the JSON payload `{ "form": { "username": "THE_USERNAME" } }` , the username field specification is `/form/username` .
	// - For form encoded payload types, use the HTML form names.
	//
	// For example, for an HTML form with the input element named `username1` , the username field specification is `username1`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspectionacfp.html#cfn-wafv2-webacl-requestinspectionacfp-usernamefield
	//
	UsernameField interface{} `field:"optional" json:"usernameField" yaml:"usernameField"`
}

The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.

This is part of the `AWSManagedRulesACFPRuleSet` configuration in `ManagedRuleGroupConfig` .

In these settings, you specify how your application accepts account creation attempts by providing the request payload type and the names of the fields within the request body where the username, password, email, and primary address and phone number fields are provided.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

requestInspectionACFPProperty := &RequestInspectionACFPProperty{
	PayloadType: jsii.String("payloadType"),

	// the properties below are optional
	AddressFields: []interface{}{
		&FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
	},
	EmailField: &FieldIdentifierProperty{
		Identifier: jsii.String("identifier"),
	},
	PasswordField: &FieldIdentifierProperty{
		Identifier: jsii.String("identifier"),
	},
	PhoneNumberFields: []interface{}{
		&FieldIdentifierProperty{
			Identifier: jsii.String("identifier"),
		},
	},
	UsernameField: &FieldIdentifierProperty{
		Identifier: jsii.String("identifier"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspectionacfp.html

type CfnWebACL_RequestInspectionProperty added in v2.70.0

type CfnWebACL_RequestInspectionProperty struct {
	// The name of the field in the request payload that contains your customer's password.
	//
	// How you specify this depends on the request inspection payload type.
	//
	// - 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) .
	//
	// For example, for the JSON payload `{ "form": { "password": "THE_PASSWORD" } }` , the password field specification is `/form/password` .
	// - For form encoded payload types, use the HTML form names.
	//
	// For example, for an HTML form with the input element named `password1` , the password field specification is `password1` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspection.html#cfn-wafv2-webacl-requestinspection-passwordfield
	//
	PasswordField interface{} `field:"required" json:"passwordField" yaml:"passwordField"`
	// The payload type for your login endpoint, either JSON or form encoded.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspection.html#cfn-wafv2-webacl-requestinspection-payloadtype
	//
	PayloadType *string `field:"required" json:"payloadType" yaml:"payloadType"`
	// The name of the field in the request payload that contains your customer's username.
	//
	// How you specify this depends on the request inspection payload type.
	//
	// - 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) .
	//
	// For example, for the JSON payload `{ "form": { "username": "THE_USERNAME" } }` , the username field specification is `/form/username` .
	// - For form encoded payload types, use the HTML form names.
	//
	// For example, for an HTML form with the input element named `username1` , the username field specification is `username1`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspection.html#cfn-wafv2-webacl-requestinspection-usernamefield
	//
	UsernameField interface{} `field:"required" json:"usernameField" yaml:"usernameField"`
}

The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.

This is part of the `AWSManagedRulesATPRuleSet` configuration in `ManagedRuleGroupConfig` .

In 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

requestInspectionProperty := &RequestInspectionProperty{
	PasswordField: &FieldIdentifierProperty{
		Identifier: jsii.String("identifier"),
	},
	PayloadType: jsii.String("payloadType"),
	UsernameField: &FieldIdentifierProperty{
		Identifier: jsii.String("identifier"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-requestinspection.html

type CfnWebACL_ResponseInspectionBodyContainsProperty added in v2.70.0

type CfnWebACL_ResponseInspectionBodyContainsProperty struct {
	// Strings in the body of the response that indicate a failed login or account creation attempt.
	//
	// 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.
	//
	// JSON example: `"FailureStrings": [ "Request failed" ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html#cfn-wafv2-webacl-responseinspectionbodycontains-failurestrings
	//
	FailureStrings *[]*string `field:"required" json:"failureStrings" yaml:"failureStrings"`
	// Strings in the body of the response that indicate a successful login or account creation attempt.
	//
	// 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.
	//
	// JSON examples: `"SuccessStrings": [ "Login successful" ]` and `"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]`
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html#cfn-wafv2-webacl-responseinspectionbodycontains-successstrings
	//
	SuccessStrings *[]*string `field:"required" json:"successStrings" yaml:"successStrings"`
}

Configures inspection of the response body.

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` .

> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

responseInspectionBodyContainsProperty := &ResponseInspectionBodyContainsProperty{
	FailureStrings: []*string{
		jsii.String("failureStrings"),
	},
	SuccessStrings: []*string{
		jsii.String("successStrings"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionbodycontains.html

type CfnWebACL_ResponseInspectionHeaderProperty added in v2.70.0

type CfnWebACL_ResponseInspectionHeaderProperty struct {
	// Values in the response header with the specified name that indicate a failed login or account creation attempt.
	//
	// 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.
	//
	// JSON examples: `"FailureValues": [ "LoginFailed", "Failed login" ]` and `"FailureValues": [ "AccountCreationFailed" ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionheader.html#cfn-wafv2-webacl-responseinspectionheader-failurevalues
	//
	FailureValues *[]*string `field:"required" json:"failureValues" yaml:"failureValues"`
	// The name of the header to match against. The name must be an exact match, including case.
	//
	// JSON example: `"Name": [ "RequestResult" ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionheader.html#cfn-wafv2-webacl-responseinspectionheader-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// Values in the response header with the specified name that indicate a successful login or account creation attempt.
	//
	// 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.
	//
	// JSON examples: `"SuccessValues": [ "LoginPassed", "Successful login" ]` and `"SuccessValues": [ "AccountCreated", "Successful account creation" ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionheader.html#cfn-wafv2-webacl-responseinspectionheader-successvalues
	//
	SuccessValues *[]*string `field:"required" json:"successValues" yaml:"successValues"`
}

Configures inspection of the response header. This is part of the `ResponseInspection` configuration for `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` .

> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

responseInspectionHeaderProperty := &ResponseInspectionHeaderProperty{
	FailureValues: []*string{
		jsii.String("failureValues"),
	},
	Name: jsii.String("name"),
	SuccessValues: []*string{
		jsii.String("successValues"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionheader.html

type CfnWebACL_ResponseInspectionJsonProperty added in v2.70.0

type CfnWebACL_ResponseInspectionJsonProperty struct {
	// Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt.
	//
	// 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.
	//
	// JSON example: `"FailureValues": [ "False", "Failed" ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-failurevalues
	//
	FailureValues *[]*string `field:"required" json:"failureValues" yaml:"failureValues"`
	// The identifier for the value to match against in the JSON.
	//
	// The identifier must be an exact match, including case.
	//
	// JSON examples: `"Identifier": [ "/login/success" ]` and `"Identifier": [ "/sign-up/success" ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-identifier
	//
	Identifier *string `field:"required" json:"identifier" yaml:"identifier"`
	// Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt.
	//
	// 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.
	//
	// JSON example: `"SuccessValues": [ "True", "Succeeded" ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html#cfn-wafv2-webacl-responseinspectionjson-successvalues
	//
	SuccessValues *[]*string `field:"required" json:"successValues" yaml:"successValues"`
}

Configures inspection of the response JSON.

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` .

> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

responseInspectionJsonProperty := &ResponseInspectionJsonProperty{
	FailureValues: []*string{
		jsii.String("failureValues"),
	},
	Identifier: jsii.String("identifier"),
	SuccessValues: []*string{
		jsii.String("successValues"),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionjson.html

type CfnWebACL_ResponseInspectionProperty added in v2.70.0

type CfnWebACL_ResponseInspectionProperty struct {
	// Configures inspection of the response body for success and failure indicators.
	//
	// AWS WAF can inspect the first 65,536 bytes (64 KB) of the response body.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html#cfn-wafv2-webacl-responseinspection-bodycontains
	//
	BodyContains interface{} `field:"optional" json:"bodyContains" yaml:"bodyContains"`
	// Configures inspection of the response header for success and failure indicators.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html#cfn-wafv2-webacl-responseinspection-header
	//
	Header interface{} `field:"optional" json:"header" yaml:"header"`
	// Configures inspection of the response JSON for success and failure indicators.
	//
	// AWS WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html#cfn-wafv2-webacl-responseinspection-json
	//
	Json interface{} `field:"optional" json:"json" yaml:"json"`
	// Configures inspection of the response status code for success and failure indicators.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html#cfn-wafv2-webacl-responseinspection-statuscode
	//
	StatusCode interface{} `field:"optional" json:"statusCode" yaml:"statusCode"`
}

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.

> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.

The 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.

This is part of the `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` configurations in `ManagedRuleGroupConfig` .

Enable 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

responseInspectionProperty := &ResponseInspectionProperty{
	BodyContains: &ResponseInspectionBodyContainsProperty{
		FailureStrings: []*string{
			jsii.String("failureStrings"),
		},
		SuccessStrings: []*string{
			jsii.String("successStrings"),
		},
	},
	Header: &ResponseInspectionHeaderProperty{
		FailureValues: []*string{
			jsii.String("failureValues"),
		},
		Name: jsii.String("name"),
		SuccessValues: []*string{
			jsii.String("successValues"),
		},
	},
	Json: &ResponseInspectionJsonProperty{
		FailureValues: []*string{
			jsii.String("failureValues"),
		},
		Identifier: jsii.String("identifier"),
		SuccessValues: []*string{
			jsii.String("successValues"),
		},
	},
	StatusCode: &ResponseInspectionStatusCodeProperty{
		FailureCodes: []interface{}{
			jsii.Number(123),
		},
		SuccessCodes: []interface{}{
			jsii.Number(123),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspection.html

type CfnWebACL_ResponseInspectionStatusCodeProperty added in v2.70.0

type CfnWebACL_ResponseInspectionStatusCodeProperty struct {
	// Status codes in the response that indicate a failed login or account creation attempt.
	//
	// 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.
	//
	// JSON example: `"FailureCodes": [ 400, 404 ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionstatuscode.html#cfn-wafv2-webacl-responseinspectionstatuscode-failurecodes
	//
	FailureCodes interface{} `field:"required" json:"failureCodes" yaml:"failureCodes"`
	// Status codes in the response that indicate a successful login or account creation attempt.
	//
	// 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.
	//
	// JSON example: `"SuccessCodes": [ 200, 201 ]`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionstatuscode.html#cfn-wafv2-webacl-responseinspectionstatuscode-successcodes
	//
	SuccessCodes interface{} `field:"required" json:"successCodes" yaml:"successCodes"`
}

Configures inspection of the response status code. This is part of the `ResponseInspection` configuration for `AWSManagedRulesATPRuleSet` and `AWSManagedRulesACFPRuleSet` .

> Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

responseInspectionStatusCodeProperty := &ResponseInspectionStatusCodeProperty{
	FailureCodes: []interface{}{
		jsii.Number(123),
	},
	SuccessCodes: []interface{}{
		jsii.Number(123),
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-responseinspectionstatuscode.html

type CfnWebACL_RuleActionOverrideProperty added in v2.56.0

type CfnWebACL_RuleActionOverrideProperty struct {
	// The override action to use, in place of the configured action of the rule in the rule group.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleactionoverride.html#cfn-wafv2-webacl-ruleactionoverride-actiontouse
	//
	ActionToUse interface{} `field:"required" json:"actionToUse" yaml:"actionToUse"`
	// The name of the rule to override.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleactionoverride.html#cfn-wafv2-webacl-ruleactionoverride-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

Action setting to use in the place of a rule action that is configured inside the rule group.

You specify one override for each rule whose action you want to change.

You 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ruleActionOverrideProperty := &RuleActionOverrideProperty{
	ActionToUse: &RuleActionProperty{
		Allow: &AllowActionProperty{
			CustomRequestHandling: &CustomRequestHandlingProperty{
				InsertHeaders: []interface{}{
					&CustomHTTPHeaderProperty{
						Name: jsii.String("name"),
						Value: jsii.String("value"),
					},
				},
			},
		},
		Block: &BlockActionProperty{
			CustomResponse: &CustomResponseProperty{
				ResponseCode: jsii.Number(123),

				// the properties below are optional
				CustomResponseBodyKey: jsii.String("customResponseBodyKey"),
				ResponseHeaders: []interface{}{
					&CustomHTTPHeaderProperty{
						Name: jsii.String("name"),
						Value: jsii.String("value"),
					},
				},
			},
		},
		Captcha: &CaptchaActionProperty{
			CustomRequestHandling: &CustomRequestHandlingProperty{
				InsertHeaders: []interface{}{
					&CustomHTTPHeaderProperty{
						Name: jsii.String("name"),
						Value: jsii.String("value"),
					},
				},
			},
		},
		Challenge: &ChallengeActionProperty{
			CustomRequestHandling: &CustomRequestHandlingProperty{
				InsertHeaders: []interface{}{
					&CustomHTTPHeaderProperty{
						Name: jsii.String("name"),
						Value: jsii.String("value"),
					},
				},
			},
		},
		Count: &CountActionProperty{
			CustomRequestHandling: &CustomRequestHandlingProperty{
				InsertHeaders: []interface{}{
					&CustomHTTPHeaderProperty{
						Name: jsii.String("name"),
						Value: jsii.String("value"),
					},
				},
			},
		},
	},
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleactionoverride.html

type CfnWebACL_RuleActionProperty

type CfnWebACL_RuleActionProperty struct {
	// Instructs AWS WAF to allow the web request.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-allow
	//
	Allow interface{} `field:"optional" json:"allow" yaml:"allow"`
	// Instructs AWS WAF to block the web request.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-block
	//
	Block interface{} `field:"optional" json:"block" yaml:"block"`
	// Specifies that AWS WAF should run a `CAPTCHA` check against the request:.
	//
	// - 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` .
	// - 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.
	//
	// AWS WAF generates a response that it sends back to the client, which includes the following:
	//
	// - The header `x-amzn-waf-action` with a value of `captcha` .
	// - The HTTP status code `405 Method Not Allowed` .
	// - If the request contains an `Accept` header with a value of `text/html` , the response includes a `CAPTCHA` challenge.
	//
	// You 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.
	//
	// This action option is available for rules. It isn't available for web ACL default actions.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-captcha
	//
	Captcha interface{} `field:"optional" json:"captcha" yaml:"captcha"`
	// Instructs AWS WAF to run a `Challenge` check against the web request.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-challenge
	//
	Challenge interface{} `field:"optional" json:"challenge" yaml:"challenge"`
	// Instructs AWS WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html#cfn-wafv2-webacl-ruleaction-count
	//
	Count interface{} `field:"optional" json:"count" yaml:"count"`
}

The action that AWS WAF should take on a web request when it matches a rule's statement.

Settings at the web ACL level can override the rule action setting.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ruleActionProperty := &RuleActionProperty{
	Allow: &AllowActionProperty{
		CustomRequestHandling: &CustomRequestHandlingProperty{
			InsertHeaders: []interface{}{
				&CustomHTTPHeaderProperty{
					Name: jsii.String("name"),
					Value: jsii.String("value"),
				},
			},
		},
	},
	Block: &BlockActionProperty{
		CustomResponse: &CustomResponseProperty{
			ResponseCode: jsii.Number(123),

			// the properties below are optional
			CustomResponseBodyKey: jsii.String("customResponseBodyKey"),
			ResponseHeaders: []interface{}{
				&CustomHTTPHeaderProperty{
					Name: jsii.String("name"),
					Value: jsii.String("value"),
				},
			},
		},
	},
	Captcha: &CaptchaActionProperty{
		CustomRequestHandling: &CustomRequestHandlingProperty{
			InsertHeaders: []interface{}{
				&CustomHTTPHeaderProperty{
					Name: jsii.String("name"),
					Value: jsii.String("value"),
				},
			},
		},
	},
	Challenge: &ChallengeActionProperty{
		CustomRequestHandling: &CustomRequestHandlingProperty{
			InsertHeaders: []interface{}{
				&CustomHTTPHeaderProperty{
					Name: jsii.String("name"),
					Value: jsii.String("value"),
				},
			},
		},
	},
	Count: &CountActionProperty{
		CustomRequestHandling: &CustomRequestHandlingProperty{
			InsertHeaders: []interface{}{
				&CustomHTTPHeaderProperty{
					Name: jsii.String("name"),
					Value: jsii.String("value"),
				},
			},
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-ruleaction.html

type CfnWebACL_RuleGroupReferenceStatementProperty

type CfnWebACL_RuleGroupReferenceStatementProperty struct {
	// The Amazon Resource Name (ARN) of the entity.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-arn
	//
	Arn *string `field:"required" json:"arn" yaml:"arn"`
	// Rules in the referenced rule group whose actions are set to `Count` .
	//
	// > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-excludedrules
	//
	ExcludedRules interface{} `field:"optional" json:"excludedRules" yaml:"excludedRules"`
	// Action settings to use in the place of the rule actions that are configured inside the rule group.
	//
	// You specify one override for each rule whose action you want to change.
	//
	// You 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html#cfn-wafv2-webacl-rulegroupreferencestatement-ruleactionoverrides
	//
	RuleActionOverrides interface{} `field:"optional" json:"ruleActionOverrides" yaml:"ruleActionOverrides"`
}

A rule statement used to run the rules that are defined in a `RuleGroup` .

To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.

You cannot nest a `RuleGroupReferenceStatement` , for example for use inside a `NotStatement` or `OrStatement` . You cannot use a rule group reference statement inside another rule group. You can only reference a rule group as a top-level statement within a rule that you define in a web ACL.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

ruleGroupReferenceStatementProperty := &RuleGroupReferenceStatementProperty{
	Arn: jsii.String("arn"),

	// the properties below are optional
	ExcludedRules: []interface{}{
		&ExcludedRuleProperty{
			Name: jsii.String("name"),
		},
	},
	RuleActionOverrides: []interface{}{
		&RuleActionOverrideProperty{
			ActionToUse: &RuleActionProperty{
				Allow: &AllowActionProperty{
					CustomRequestHandling: &CustomRequestHandlingProperty{
						InsertHeaders: []interface{}{
							&CustomHTTPHeaderProperty{
								Name: jsii.String("name"),
								Value: jsii.String("value"),
							},
						},
					},
				},
				Block: &BlockActionProperty{
					CustomResponse: &CustomResponseProperty{
						ResponseCode: jsii.Number(123),

						// the properties below are optional
						CustomResponseBodyKey: jsii.String("customResponseBodyKey"),
						ResponseHeaders: []interface{}{
							&CustomHTTPHeaderProperty{
								Name: jsii.String("name"),
								Value: jsii.String("value"),
							},
						},
					},
				},
				Captcha: &CaptchaActionProperty{
					CustomRequestHandling: &CustomRequestHandlingProperty{
						InsertHeaders: []interface{}{
							&CustomHTTPHeaderProperty{
								Name: jsii.String("name"),
								Value: jsii.String("value"),
							},
						},
					},
				},
				Challenge: &ChallengeActionProperty{
					CustomRequestHandling: &CustomRequestHandlingProperty{
						InsertHeaders: []interface{}{
							&CustomHTTPHeaderProperty{
								Name: jsii.String("name"),
								Value: jsii.String("value"),
							},
						},
					},
				},
				Count: &CountActionProperty{
					CustomRequestHandling: &CustomRequestHandlingProperty{
						InsertHeaders: []interface{}{
							&CustomHTTPHeaderProperty{
								Name: jsii.String("name"),
								Value: jsii.String("value"),
							},
						},
					},
				},
			},
			Name: jsii.String("name"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rulegroupreferencestatement.html

type CfnWebACL_RuleProperty

type CfnWebACL_RuleProperty struct {
	// The name of the rule.
	//
	// If you change the name of a `Rule` after you create it and you want the rule's metric name to reflect the change, update the metric name in the rule's `VisibilityConfig` settings. AWS WAF doesn't automatically update the metric name when you update the rule name.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
	// 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` .
	//
	// AWS WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-priority
	//
	Priority *float64 `field:"required" json:"priority" yaml:"priority"`
	// The AWS WAF processing statement for the rule, for example `ByteMatchStatement` or `SizeConstraintStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-statement
	//
	Statement interface{} `field:"required" json:"statement" yaml:"statement"`
	// Defines and enables Amazon CloudWatch metrics and web request sample collection.
	//
	// If you change the name of a `Rule` after you create it and you want the rule's metric name to reflect the change, update the metric name as well. AWS WAF doesn't automatically update the metric name.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-visibilityconfig
	//
	VisibilityConfig interface{} `field:"required" json:"visibilityConfig" yaml:"visibilityConfig"`
	// The action that AWS WAF should take on a web request when it matches the rule's statement.
	//
	// Settings at the web ACL level can override the rule action setting.
	//
	// This is used only for rules whose statements don't reference a rule group. Rule statements that reference a rule group are `RuleGroupReferenceStatement` and `ManagedRuleGroupStatement` .
	//
	// You must set either this `Action` setting or the rule's `OverrideAction` , but not both:
	//
	// - 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.
	// - 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-action
	//
	Action interface{} `field:"optional" json:"action" yaml:"action"`
	// Specifies how AWS WAF should handle `CAPTCHA` evaluations.
	//
	// If you don't specify this, AWS WAF uses the `CAPTCHA` configuration that's defined for the web ACL.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-captchaconfig
	//
	CaptchaConfig interface{} `field:"optional" json:"captchaConfig" yaml:"captchaConfig"`
	// Specifies how AWS WAF should handle `Challenge` evaluations.
	//
	// If you don't specify this, AWS WAF uses the challenge configuration that's defined for the web ACL.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-challengeconfig
	//
	ChallengeConfig interface{} `field:"optional" json:"challengeConfig" yaml:"challengeConfig"`
	// The override action to apply to the rules in a rule group, instead of the individual rule action settings.
	//
	// This is used only for rules whose statements reference a rule group. Rule statements that reference a rule group are `RuleGroupReferenceStatement` and `ManagedRuleGroupStatement` .
	//
	// Set 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.
	//
	// You must set either this `OverrideAction` setting or the `Action` setting, but not both:
	//
	// - 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.
	// - 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-overrideaction
	//
	OverrideAction interface{} `field:"optional" json:"overrideAction" yaml:"overrideAction"`
	// Labels to apply to web requests that match the rule match statement.
	//
	// 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.
	//
	// Rules that run after this rule in the web ACL can match against these labels using a `LabelMatchStatement` .
	//
	// For each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:
	//
	// - Separate each component of the label with a colon.
	// - Each namespace or name can have up to 128 characters.
	// - You can specify up to 5 namespaces in a label.
	// - Don't use the following reserved words in your label specification: `aws` , `waf` , `managed` , `rulegroup` , `webacl` , `regexpatternset` , or `ipset` .
	//
	// For example, `myLabelName` or `nameSpace1:nameSpace2:myLabelName` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html#cfn-wafv2-webacl-rule-rulelabels
	//
	RuleLabels interface{} `field:"optional" json:"ruleLabels" yaml:"ruleLabels"`
}

A single rule, which you can use in a `WebACL` or `RuleGroup` to identify web requests that you want to manage in some way.

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.

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-rule.html

type CfnWebACL_SingleHeaderProperty added in v2.55.0

type CfnWebACL_SingleHeaderProperty struct {
	// The name of the query header to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singleheader.html#cfn-wafv2-webacl-singleheader-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

Inspect one of the headers in the web request, identified by name, for example, `User-Agent` or `Referer` .

The name isn't case sensitive.

You can filter and inspect all headers with the `FieldToMatch` setting `Headers` .

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example JSON: `"SingleHeader": { "Name": "haystack" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

singleHeaderProperty := &SingleHeaderProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singleheader.html

type CfnWebACL_SingleQueryArgumentProperty added in v2.55.0

type CfnWebACL_SingleQueryArgumentProperty struct {
	// The name of the query argument to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singlequeryargument.html#cfn-wafv2-webacl-singlequeryargument-name
	//
	Name *string `field:"required" json:"name" yaml:"name"`
}

Inspect one query argument in the web request, identified by name, for example *UserName* or *SalesRegion* .

The name isn't case sensitive.

This is used to indicate the web request component to inspect, in the `FieldToMatch` specification.

Example JSON: `"SingleQueryArgument": { "Name": "myArgument" }`.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

singleQueryArgumentProperty := &SingleQueryArgumentProperty{
	Name: jsii.String("name"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-singlequeryargument.html

type CfnWebACL_SizeConstraintStatementProperty

type CfnWebACL_SizeConstraintStatementProperty struct {
	// The operator to use to compare the request part to the size setting.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-comparisonoperator
	//
	ComparisonOperator *string `field:"required" json:"comparisonOperator" yaml:"comparisonOperator"`
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// The size, in byte, to compare to the request part, after any transformations.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-size
	//
	Size *float64 `field:"required" json:"size" yaml:"size"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html#cfn-wafv2-webacl-sizeconstraintstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

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 (<).

For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.

If you configure AWS WAF to inspect the request body, AWS WAF inspects only the number of bytes in the body up to the limit for the web ACL and protected resource type. If you know that the request body for your web requests should never exceed the inspection limit, you can use a size constraint statement to block requests that have a larger request body size. For more information about the inspection limits, see `Body` and `JsonBody` settings for the `FieldToMatch` data type.

If 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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

sizeConstraintStatementProperty := &SizeConstraintStatementProperty{
	ComparisonOperator: jsii.String("comparisonOperator"),
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	Size: jsii.Number(123),
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sizeconstraintstatement.html

type CfnWebACL_SqliMatchStatementProperty

type CfnWebACL_SqliMatchStatementProperty struct {
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
	// The sensitivity that you want AWS WAF to use to inspect for SQL injection attacks.
	//
	// `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* .
	//
	// `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.
	//
	// Default: `LOW`.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html#cfn-wafv2-webacl-sqlimatchstatement-sensitivitylevel
	//
	SensitivityLevel *string `field:"optional" json:"sensitivityLevel" yaml:"sensitivityLevel"`
}

A rule statement that inspects for malicious SQL code.

Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

sqliMatchStatementProperty := &SqliMatchStatementProperty{
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},

	// the properties below are optional
	SensitivityLevel: jsii.String("sensitivityLevel"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-sqlimatchstatement.html

type CfnWebACL_StatementProperty

type CfnWebACL_StatementProperty struct {
	// A logical rule statement used to combine other rule statements with AND logic.
	//
	// You provide more than one `Statement` within the `AndStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-andstatement
	//
	AndStatement interface{} `field:"optional" json:"andStatement" yaml:"andStatement"`
	// A rule statement that defines a string match search for AWS WAF to apply to web requests.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-bytematchstatement
	//
	ByteMatchStatement interface{} `field:"optional" json:"byteMatchStatement" yaml:"byteMatchStatement"`
	// A rule statement that labels web requests by country and region and that matches against web requests based on country code.
	//
	// A geo match rule labels every request that it inspects regardless of whether it finds a match.
	//
	// - 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.
	// - 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.
	//
	// AWS 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` .
	//
	// If you use the web request origin, the label formats are `awswaf:clientip:geo:region:<ISO country code>-<ISO region code>` and `awswaf:clientip:geo:country:<ISO country code>` .
	//
	// If you use a forwarded IP address, the label formats are `awswaf:forwardedip:geo:region:<ISO country code>-<ISO region code>` and `awswaf:forwardedip:geo:country:<ISO country code>` .
	//
	// For 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) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-geomatchstatement
	//
	GeoMatchStatement interface{} `field:"optional" json:"geoMatchStatement" yaml:"geoMatchStatement"`
	// A rule statement used to detect web requests coming from particular IP addresses or address ranges.
	//
	// To use this, create an `IPSet` that specifies the addresses you want to detect, then use the ARN of that set in this statement.
	//
	// Each 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-ipsetreferencestatement
	//
	IpSetReferenceStatement interface{} `field:"optional" json:"ipSetReferenceStatement" yaml:"ipSetReferenceStatement"`
	// 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.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-labelmatchstatement
	//
	LabelMatchStatement interface{} `field:"optional" json:"labelMatchStatement" yaml:"labelMatchStatement"`
	// A rule statement used to run the rules that are defined in a managed rule group.
	//
	// To use this, provide the vendor name and the name of the rule group in this statement. You can retrieve the required names through the API call `ListAvailableManagedRuleGroups` .
	//
	// You 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.
	//
	// > You are charged additional fees when you use the AWS WAF Bot Control managed rule group `AWSManagedRulesBotControlRuleSet` , the AWS WAF Fraud Control account takeover prevention (ATP) managed rule group `AWSManagedRulesATPRuleSet` , or the AWS WAF Fraud Control account creation fraud prevention (ACFP) managed rule group `AWSManagedRulesACFPRuleSet` . For more information, see [AWS WAF Pricing](https://docs.aws.amazon.com/waf/pricing/) .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-managedrulegroupstatement
	//
	ManagedRuleGroupStatement interface{} `field:"optional" json:"managedRuleGroupStatement" yaml:"managedRuleGroupStatement"`
	// A logical rule statement used to negate the results of another rule statement.
	//
	// You provide one `Statement` within the `NotStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-notstatement
	//
	NotStatement interface{} `field:"optional" json:"notStatement" yaml:"notStatement"`
	// A logical rule statement used to combine other rule statements with OR logic.
	//
	// You provide more than one `Statement` within the `OrStatement` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-orstatement
	//
	OrStatement interface{} `field:"optional" json:"orStatement" yaml:"orStatement"`
	// A rate-based rule counts incoming requests and rate limits requests when they are coming at too fast a rate.
	//
	// The rule categorizes requests according to your aggregation criteria, collects them into aggregation instances, and counts and rate limits the requests for each instance.
	//
	// > If you change any of these settings in a rule that's currently in use, the change resets the rule's rate limiting counts. This can pause the rule's rate limiting activities for up to a minute.
	//
	// You can specify individual aggregation keys, like IP address or HTTP method. You can also specify aggregation key combinations, like IP address and HTTP method, or HTTP method, query argument, and cookie.
	//
	// Each unique set of values for the aggregation keys that you specify is a separate aggregation instance, with the value from each key contributing to the aggregation instance definition.
	//
	// For example, assume the rule evaluates web requests with the following IP address and HTTP method values:
	//
	// - IP address 10.1.1.1, HTTP method POST
	// - IP address 10.1.1.1, HTTP method GET
	// - IP address 127.0.0.0, HTTP method POST
	// - IP address 10.1.1.1, HTTP method GET
	//
	// The rule would create different aggregation instances according to your aggregation criteria, for example:
	//
	// - If the aggregation criteria is just the IP address, then each individual address is an aggregation instance, and AWS WAF counts requests separately for each. The aggregation instances and request counts for our example would be the following:
	//
	// - IP address 10.1.1.1: count 3
	// - IP address 127.0.0.0: count 1
	// - If the aggregation criteria is HTTP method, then each individual HTTP method is an aggregation instance. The aggregation instances and request counts for our example would be the following:
	//
	// - HTTP method POST: count 2
	// - HTTP method GET: count 2
	// - If the aggregation criteria is IP address and HTTP method, then each IP address and each HTTP method would contribute to the combined aggregation instance. The aggregation instances and request counts for our example would be the following:
	//
	// - IP address 10.1.1.1, HTTP method POST: count 1
	// - IP address 10.1.1.1, HTTP method GET: count 2
	// - IP address 127.0.0.0, HTTP method POST: count 1
	//
	// For any n-tuple of aggregation keys, each unique combination of values for the keys defines a separate aggregation instance, which AWS WAF counts and rate-limits individually.
	//
	// You can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts and rate limits requests that match the nested statement. You can use this nested scope-down statement in conjunction with your aggregation key specifications or you can just count and rate limit all requests that match the scope-down statement, without additional aggregation. When you choose to just manage all requests that match a scope-down statement, the aggregation instance is singular for the rule.
	//
	// You 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.
	//
	// For additional information about the options, see [Rate limiting web requests using rate-based rules](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rate-based-rules.html) in the *AWS WAF Developer Guide* .
	//
	// If you only aggregate on the individual IP address or forwarded IP address, you can retrieve the list of IP addresses that AWS WAF is currently rate limiting for a rule through the API call `GetRateBasedStatementManagedKeys` . This option is not available for other aggregation configurations.
	//
	// AWS 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 .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-ratebasedstatement
	//
	RateBasedStatement interface{} `field:"optional" json:"rateBasedStatement" yaml:"rateBasedStatement"`
	// A rule statement used to search web request components for a match against a single regular expression.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-regexmatchstatement
	//
	RegexMatchStatement interface{} `field:"optional" json:"regexMatchStatement" yaml:"regexMatchStatement"`
	// A rule statement used to search web request components for matches with regular expressions.
	//
	// 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.
	//
	// Each 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-regexpatternsetreferencestatement
	//
	RegexPatternSetReferenceStatement interface{} `field:"optional" json:"regexPatternSetReferenceStatement" yaml:"regexPatternSetReferenceStatement"`
	// A rule statement used to run the rules that are defined in a `RuleGroup` .
	//
	// To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement.
	//
	// You cannot nest a `RuleGroupReferenceStatement` , for example for use inside a `NotStatement` or `OrStatement` . You cannot use a rule group reference statement inside another rule group. You can only reference a rule group as a top-level statement within a rule that you define in a web ACL.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-rulegroupreferencestatement
	//
	RuleGroupReferenceStatement interface{} `field:"optional" json:"ruleGroupReferenceStatement" yaml:"ruleGroupReferenceStatement"`
	// 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 (<).
	//
	// For example, you can use a size constraint statement to look for query strings that are longer than 100 bytes.
	//
	// If you configure AWS WAF to inspect the request body, AWS WAF inspects only the number of bytes in the body up to the limit for the web ACL and protected resource type. If you know that the request body for your web requests should never exceed the inspection limit, you can use a size constraint statement to block requests that have a larger request body size. For more information about the inspection limits, see `Body` and `JsonBody` settings for the `FieldToMatch` data type.
	//
	// If 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-sizeconstraintstatement
	//
	SizeConstraintStatement interface{} `field:"optional" json:"sizeConstraintStatement" yaml:"sizeConstraintStatement"`
	// A rule statement that inspects for malicious SQL code.
	//
	// Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-sqlimatchstatement
	//
	SqliMatchStatement interface{} `field:"optional" json:"sqliMatchStatement" yaml:"sqliMatchStatement"`
	// A rule statement that inspects for cross-site scripting (XSS) attacks.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html#cfn-wafv2-webacl-statement-xssmatchstatement
	//
	XssMatchStatement interface{} `field:"optional" json:"xssMatchStatement" yaml:"xssMatchStatement"`
}

The processing guidance for a rule, used by AWS WAF to determine whether a web request matches the rule.

Example:

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-statement.html

type CfnWebACL_TextTransformationProperty

type CfnWebACL_TextTransformationProperty struct {
	// Sets the relative processing order for multiple transformations.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html#cfn-wafv2-webacl-texttransformation-priority
	//
	Priority *float64 `field:"required" json:"priority" yaml:"priority"`
	// For detailed descriptions of each of the transformation types, see [Text transformations](https://docs.aws.amazon.com/waf/latest/developerguide/waf-rule-statement-transformation.html) in the *AWS WAF Developer Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html#cfn-wafv2-webacl-texttransformation-type
	//
	Type *string `field:"required" json:"type" yaml:"type"`
}

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.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

textTransformationProperty := &TextTransformationProperty{
	Priority: jsii.Number(123),
	Type: jsii.String("type"),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-texttransformation.html

type CfnWebACL_VisibilityConfigProperty

type CfnWebACL_VisibilityConfigProperty struct {
	// Indicates whether the associated resource sends metrics to Amazon CloudWatch.
	//
	// 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* .
	//
	// For 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,
	// see [The web ACL default action](https://docs.aws.amazon.com/waf/latest/developerguide/web-acl-default-action.html) in the *AWS WAF Developer Guide* .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-cloudwatchmetricsenabled
	//
	CloudWatchMetricsEnabled interface{} `field:"required" json:"cloudWatchMetricsEnabled" yaml:"cloudWatchMetricsEnabled"`
	// A name of the Amazon CloudWatch metric dimension.
	//
	// 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` .
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-metricname
	//
	MetricName *string `field:"required" json:"metricName" yaml:"metricName"`
	// Indicates whether AWS WAF should store a sampling of the web requests that match the rules.
	//
	// You can view the sampled requests through the AWS WAF console.
	//
	// > Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling. The only way to exclude fields from request sampling is by disabling sampling in the web ACL visibility configuration.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html#cfn-wafv2-webacl-visibilityconfig-sampledrequestsenabled
	//
	SampledRequestsEnabled interface{} `field:"required" json:"sampledRequestsEnabled" yaml:"sampledRequestsEnabled"`
}

Defines and enables Amazon CloudWatch metrics and web request sample collection.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

visibilityConfigProperty := &VisibilityConfigProperty{
	CloudWatchMetricsEnabled: jsii.Boolean(false),
	MetricName: jsii.String("metricName"),
	SampledRequestsEnabled: jsii.Boolean(false),
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-visibilityconfig.html

type CfnWebACL_XssMatchStatementProperty

type CfnWebACL_XssMatchStatementProperty struct {
	// The part of the web request that you want AWS WAF to inspect.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html#cfn-wafv2-webacl-xssmatchstatement-fieldtomatch
	//
	FieldToMatch interface{} `field:"required" json:"fieldToMatch" yaml:"fieldToMatch"`
	// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
	//
	// 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.
	// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html#cfn-wafv2-webacl-xssmatchstatement-texttransformations
	//
	TextTransformations interface{} `field:"required" json:"textTransformations" yaml:"textTransformations"`
}

A rule statement that inspects for cross-site scripting (XSS) attacks.

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.

Example:

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

var all interface{}
var allQueryArguments interface{}
var method interface{}
var queryString interface{}
var singleHeader interface{}
var singleQueryArgument interface{}
var uriPath interface{}

xssMatchStatementProperty := &XssMatchStatementProperty{
	FieldToMatch: &FieldToMatchProperty{
		AllQueryArguments: allQueryArguments,
		Body: &BodyProperty{
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Cookies: &CookiesProperty{
			MatchPattern: &CookieMatchPatternProperty{
				All: all,
				ExcludedCookies: []*string{
					jsii.String("excludedCookies"),
				},
				IncludedCookies: []*string{
					jsii.String("includedCookies"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Headers: &HeadersProperty{
			MatchPattern: &HeaderMatchPatternProperty{
				All: all,
				ExcludedHeaders: []*string{
					jsii.String("excludedHeaders"),
				},
				IncludedHeaders: []*string{
					jsii.String("includedHeaders"),
				},
			},
			MatchScope: jsii.String("matchScope"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Ja3Fingerprint: &JA3FingerprintProperty{
			FallbackBehavior: jsii.String("fallbackBehavior"),
		},
		JsonBody: &JsonBodyProperty{
			MatchPattern: &JsonMatchPatternProperty{
				All: all,
				IncludedPaths: []*string{
					jsii.String("includedPaths"),
				},
			},
			MatchScope: jsii.String("matchScope"),

			// the properties below are optional
			InvalidFallbackBehavior: jsii.String("invalidFallbackBehavior"),
			OversizeHandling: jsii.String("oversizeHandling"),
		},
		Method: method,
		QueryString: queryString,
		SingleHeader: singleHeader,
		SingleQueryArgument: singleQueryArgument,
		UriPath: uriPath,
	},
	TextTransformations: []interface{}{
		&TextTransformationProperty{
			Priority: jsii.Number(123),
			Type: jsii.String("type"),
		},
	},
}

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-xssmatchstatement.html

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL