# AllowProperty

Allow traffic towards application.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const allowProperty: wafv2.CfnRuleGroup.AllowProperty = {
  customRequestHandling: {
    insertHeaders: [{
      name: 'name',
      value: 'value',
    }],
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wafv2 as wafv2

allow_property = wafv2.CfnRuleGroup.AllowProperty(
    custom_request_handling=wafv2.CfnRuleGroup.CustomRequestHandlingProperty(
        insert_headers=[wafv2.CfnRuleGroup.CustomHTTPHeaderProperty(
            name="name",
            value="value"
        )]
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;

AllowProperty allowProperty = AllowProperty.builder()
        .customRequestHandling(CustomRequestHandlingProperty.builder()
                .insertHeaders(List.of(CustomHTTPHeaderProperty.builder()
                        .name("name")
                        .value("value")
                        .build()))
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;

var allowProperty = new AllowProperty {
    CustomRequestHandling = new CustomRequestHandlingProperty {
        InsertHeaders = new [] { new CustomHTTPHeaderProperty {
            Name = "name",
            Value = "value"
        } }
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"),
			},
		},
	},
}
```

## Properties

- `customRequestHandling`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnRuleGroup.CustomRequestHandlingProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_wafv2.CfnRuleGroup.CustomRequestHandlingProperty.html) — Custom request handling.
