Skip to content
v2.278.0

CfnFirewallConfigProps Struct ​

Properties for defining a CfnFirewallConfig.

Example ​

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
# 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
// 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();
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"
};
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 ​

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

resourceIdstringresource_idstrresourceIdStringResourceIdstringResourceId*string required #
The ID of the VPC that this firewall configuration applies to.