# CfnFirewallConfigProps

Properties for defining a `CfnFirewallConfig`.

Used as props by: [CfnFirewallConfig](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_route53resolver.CfnFirewallConfig.html)

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_route53resolver as route53resolver } from 'aws-cdk-lib';
const cfnFirewallConfigProps: route53resolver.CfnFirewallConfigProps = {
  firewallFailOpen: 'firewallFailOpen',
  resourceId: 'resourceId',
};
```

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_route53resolver as route53resolver

cfn_firewall_config_props = route53resolver.CfnFirewallConfigProps(
    firewall_fail_open="firewallFailOpen",
    resource_id="resourceId"
)
```

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

CfnFirewallConfigProps cfnFirewallConfigProps = CfnFirewallConfigProps.builder()
        .firewallFailOpen("firewallFailOpen")
        .resourceId("resourceId")
        .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.Route53Resolver;

var cfnFirewallConfigProps = new CfnFirewallConfigProps {
    FirewallFailOpen = "firewallFailOpen",
    ResourceId = "resourceId"
};
```

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"

cfnFirewallConfigProps := &CfnFirewallConfigProps{
	FirewallFailOpen: jsii.String("firewallFailOpen"),
	ResourceId: jsii.String("resourceId"),
}
```

## Properties

- `firewallFailOpen`: string (required) — Determines how DNS Firewall operates during failures.

  By default, fail open is disabled, which means the failure mode is closed. If you enable this option, the failure mode is open. This behavior is only enforced for VPCs that have at least one DNS Firewall rule group association.

- `resourceId`: string (required) — The ID of the VPC that this firewall configuration applies to.
