Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

AWS Classic

v4.30.0 published on Tuesday, Nov 30, 2021 by Pulumi

ResolverFirewallConfig

Provides a Route 53 Resolver DNS Firewall config resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleVpc = new Aws.Ec2.Vpc("exampleVpc", new Aws.Ec2.VpcArgs
        {
            CidrBlock = "10.0.0.0/16",
            EnableDnsSupport = true,
            EnableDnsHostnames = true,
        });
        var exampleResolverFirewallConfig = new Aws.Route53.ResolverFirewallConfig("exampleResolverFirewallConfig", new Aws.Route53.ResolverFirewallConfigArgs
        {
            ResourceId = exampleVpc.Id,
            FirewallFailOpen = "ENABLED",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/ec2"
	"github.com/pulumi/pulumi-aws/sdk/v4/go/aws/route53"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		exampleVpc, err := ec2.NewVpc(ctx, "exampleVpc", &ec2.VpcArgs{
			CidrBlock:          pulumi.String("10.0.0.0/16"),
			EnableDnsSupport:   pulumi.Bool(true),
			EnableDnsHostnames: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = route53.NewResolverFirewallConfig(ctx, "exampleResolverFirewallConfig", &route53.ResolverFirewallConfigArgs{
			ResourceId:       exampleVpc.ID(),
			FirewallFailOpen: pulumi.String("ENABLED"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_aws as aws

example_vpc = aws.ec2.Vpc("exampleVpc",
    cidr_block="10.0.0.0/16",
    enable_dns_support=True,
    enable_dns_hostnames=True)
example_resolver_firewall_config = aws.route53.ResolverFirewallConfig("exampleResolverFirewallConfig",
    resource_id=example_vpc.id,
    firewall_fail_open="ENABLED")
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleVpc = new aws.ec2.Vpc("exampleVpc", {
    cidrBlock: "10.0.0.0/16",
    enableDnsSupport: true,
    enableDnsHostnames: true,
});
const exampleResolverFirewallConfig = new aws.route53.ResolverFirewallConfig("exampleResolverFirewallConfig", {
    resourceId: exampleVpc.id,
    firewallFailOpen: "ENABLED",
});

Create a ResolverFirewallConfig Resource

new ResolverFirewallConfig(name: string, args: ResolverFirewallConfigArgs, opts?: CustomResourceOptions);
@overload
def ResolverFirewallConfig(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           firewall_fail_open: Optional[str] = None,
                           resource_id: Optional[str] = None)
@overload
def ResolverFirewallConfig(resource_name: str,
                           args: ResolverFirewallConfigArgs,
                           opts: Optional[ResourceOptions] = None)
func NewResolverFirewallConfig(ctx *Context, name string, args ResolverFirewallConfigArgs, opts ...ResourceOption) (*ResolverFirewallConfig, error)
public ResolverFirewallConfig(string name, ResolverFirewallConfigArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args ResolverFirewallConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args ResolverFirewallConfigArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args ResolverFirewallConfigArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ResolverFirewallConfigArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

ResolverFirewallConfig Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The ResolverFirewallConfig resource accepts the following input properties:

ResourceId string
The ID of the VPC that the configuration is for.
FirewallFailOpen string
Determines how Route 53 Resolver handles queries during failures, for example when all traffic that is sent to DNS Firewall fails to receive a reply. By default, fail open is disabled, which means the failure mode is closed. This approach favors security over availability. DNS Firewall blocks queries that it is unable to evaluate properly. If you enable this option, the failure mode is open. This approach favors availability over security. DNS Firewall allows queries to proceed if it is unable to properly evaluate them. Valid values: ENABLED, DISABLED.
ResourceId string
The ID of the VPC that the configuration is for.
FirewallFailOpen string
Determines how Route 53 Resolver handles queries during failures, for example when all traffic that is sent to DNS Firewall fails to receive a reply. By default, fail open is disabled, which means the failure mode is closed. This approach favors security over availability. DNS Firewall blocks queries that it is unable to evaluate properly. If you enable this option, the failure mode is open. This approach favors availability over security. DNS Firewall allows queries to proceed if it is unable to properly evaluate them. Valid values: ENABLED, DISABLED.
resourceId string
The ID of the VPC that the configuration is for.
firewallFailOpen string
Determines how Route 53 Resolver handles queries during failures, for example when all traffic that is sent to DNS Firewall fails to receive a reply. By default, fail open is disabled, which means the failure mode is closed. This approach favors security over availability. DNS Firewall blocks queries that it is unable to evaluate properly. If you enable this option, the failure mode is open. This approach favors availability over security. DNS Firewall allows queries to proceed if it is unable to properly evaluate them. Valid values: ENABLED, DISABLED.
resource_id str
The ID of the VPC that the configuration is for.
firewall_fail_open str
Determines how Route 53 Resolver handles queries during failures, for example when all traffic that is sent to DNS Firewall fails to receive a reply. By default, fail open is disabled, which means the failure mode is closed. This approach favors security over availability. DNS Firewall blocks queries that it is unable to evaluate properly. If you enable this option, the failure mode is open. This approach favors availability over security. DNS Firewall allows queries to proceed if it is unable to properly evaluate them. Valid values: ENABLED, DISABLED.

Outputs

All input properties are implicitly available as output properties. Additionally, the ResolverFirewallConfig resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
OwnerId string
The AWS account ID of the owner of the VPC that this firewall configuration applies to.
Id string
The provider-assigned unique ID for this managed resource.
OwnerId string
The AWS account ID of the owner of the VPC that this firewall configuration applies to.
id string
The provider-assigned unique ID for this managed resource.
ownerId string
The AWS account ID of the owner of the VPC that this firewall configuration applies to.
id str
The provider-assigned unique ID for this managed resource.
owner_id str
The AWS account ID of the owner of the VPC that this firewall configuration applies to.

Look up an Existing ResolverFirewallConfig Resource

Get an existing ResolverFirewallConfig resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: ResolverFirewallConfigState, opts?: CustomResourceOptions): ResolverFirewallConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        firewall_fail_open: Optional[str] = None,
        owner_id: Optional[str] = None,
        resource_id: Optional[str] = None) -> ResolverFirewallConfig
func GetResolverFirewallConfig(ctx *Context, name string, id IDInput, state *ResolverFirewallConfigState, opts ...ResourceOption) (*ResolverFirewallConfig, error)
public static ResolverFirewallConfig Get(string name, Input<string> id, ResolverFirewallConfigState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

FirewallFailOpen string
Determines how Route 53 Resolver handles queries during failures, for example when all traffic that is sent to DNS Firewall fails to receive a reply. By default, fail open is disabled, which means the failure mode is closed. This approach favors security over availability. DNS Firewall blocks queries that it is unable to evaluate properly. If you enable this option, the failure mode is open. This approach favors availability over security. DNS Firewall allows queries to proceed if it is unable to properly evaluate them. Valid values: ENABLED, DISABLED.
OwnerId string
The AWS account ID of the owner of the VPC that this firewall configuration applies to.
ResourceId string
The ID of the VPC that the configuration is for.
FirewallFailOpen string
Determines how Route 53 Resolver handles queries during failures, for example when all traffic that is sent to DNS Firewall fails to receive a reply. By default, fail open is disabled, which means the failure mode is closed. This approach favors security over availability. DNS Firewall blocks queries that it is unable to evaluate properly. If you enable this option, the failure mode is open. This approach favors availability over security. DNS Firewall allows queries to proceed if it is unable to properly evaluate them. Valid values: ENABLED, DISABLED.
OwnerId string
The AWS account ID of the owner of the VPC that this firewall configuration applies to.
ResourceId string
The ID of the VPC that the configuration is for.
firewallFailOpen string
Determines how Route 53 Resolver handles queries during failures, for example when all traffic that is sent to DNS Firewall fails to receive a reply. By default, fail open is disabled, which means the failure mode is closed. This approach favors security over availability. DNS Firewall blocks queries that it is unable to evaluate properly. If you enable this option, the failure mode is open. This approach favors availability over security. DNS Firewall allows queries to proceed if it is unable to properly evaluate them. Valid values: ENABLED, DISABLED.
ownerId string
The AWS account ID of the owner of the VPC that this firewall configuration applies to.
resourceId string
The ID of the VPC that the configuration is for.
firewall_fail_open str
Determines how Route 53 Resolver handles queries during failures, for example when all traffic that is sent to DNS Firewall fails to receive a reply. By default, fail open is disabled, which means the failure mode is closed. This approach favors security over availability. DNS Firewall blocks queries that it is unable to evaluate properly. If you enable this option, the failure mode is open. This approach favors availability over security. DNS Firewall allows queries to proceed if it is unable to properly evaluate them. Valid values: ENABLED, DISABLED.
owner_id str
The AWS account ID of the owner of the VPC that this firewall configuration applies to.
resource_id str
The ID of the VPC that the configuration is for.

Import

Route 53 Resolver DNS Firewall configs can be imported using the Route 53 Resolver DNS Firewall config ID, e.g.,

 $ pulumi import aws:route53/resolverFirewallConfig:ResolverFirewallConfig example rdsc-be1866ecc1683e95

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.