ResolverFirewallRuleArgs

data class ResolverFirewallRuleArgs(val action: Output<String>? = null, val blockOverrideDnsType: Output<String>? = null, val blockOverrideDomain: Output<String>? = null, val blockOverrideTtl: Output<Int>? = null, val blockResponse: Output<String>? = null, val firewallDomainListId: Output<String>? = null, val firewallRuleGroupId: Output<String>? = null, val name: Output<String>? = null, val priority: Output<Int>? = null) : ConvertibleToJava<ResolverFirewallRuleArgs>

Provides a Route 53 Resolver DNS Firewall rule resource.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.ResolverFirewallDomainList;
import com.pulumi.aws.route53.ResolverFirewallDomainListArgs;
import com.pulumi.aws.route53.ResolverFirewallRuleGroup;
import com.pulumi.aws.route53.ResolverFirewallRuleGroupArgs;
import com.pulumi.aws.route53.ResolverFirewallRule;
import com.pulumi.aws.route53.ResolverFirewallRuleArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResolverFirewallDomainList = new ResolverFirewallDomainList("exampleResolverFirewallDomainList", ResolverFirewallDomainListArgs.builder()
.domains("example.com")
.tags()
.build());
var exampleResolverFirewallRuleGroup = new ResolverFirewallRuleGroup("exampleResolverFirewallRuleGroup", ResolverFirewallRuleGroupArgs.builder()
.tags()
.build());
var exampleResolverFirewallRule = new ResolverFirewallRule("exampleResolverFirewallRule", ResolverFirewallRuleArgs.builder()
.action("BLOCK")
.blockOverrideDnsType("CNAME")
.blockOverrideDomain("example.com")
.blockOverrideTtl(1)
.blockResponse("OVERRIDE")
.firewallDomainListId(exampleResolverFirewallDomainList.id())
.firewallRuleGroupId(exampleResolverFirewallRuleGroup.id())
.priority(100)
.build());
}
}

Import

Route 53 Resolver DNS Firewall rules can be imported using the Route 53 Resolver DNS Firewall rule group ID and domain list ID separated by ':', e.g.,

$ pulumi import aws:route53/resolverFirewallRule:ResolverFirewallRule example rslvr-frg-0123456789abcdef:rslvr-fdl-0123456789abcdef

Constructors

Link copied to clipboard
constructor(action: Output<String>? = null, blockOverrideDnsType: Output<String>? = null, blockOverrideDomain: Output<String>? = null, blockOverrideTtl: Output<Int>? = null, blockResponse: Output<String>? = null, firewallDomainListId: Output<String>? = null, firewallRuleGroupId: Output<String>? = null, name: Output<String>? = null, priority: Output<Int>? = null)

Properties

Link copied to clipboard
val action: Output<String>? = null

The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list. Valid values: ALLOW, BLOCK, ALERT.

Link copied to clipboard
val blockOverrideDnsType: Output<String>? = null

The DNS record's type. This determines the format of the record value that you provided in BlockOverrideDomain. Value values: CNAME.

Link copied to clipboard
val blockOverrideDomain: Output<String>? = null

The custom DNS record to send back in response to the query.

Link copied to clipboard
val blockOverrideTtl: Output<Int>? = null

The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record. Minimum value of 0. Maximum value of 604800.

Link copied to clipboard
val blockResponse: Output<String>? = null

The way that you want DNS Firewall to block the request. Valid values: NODATA, NXDOMAIN, OVERRIDE.

Link copied to clipboard
val firewallDomainListId: Output<String>? = null

The ID of the domain list that you want to use in the rule.

Link copied to clipboard
val firewallRuleGroupId: Output<String>? = null

The unique identifier of the firewall rule group where you want to create the rule.

Link copied to clipboard
val name: Output<String>? = null

A name that lets you identify the rule, to manage and use it.

Link copied to clipboard
val priority: Output<Int>? = null

The setting that determines the processing order of the rule in the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.

Functions

Link copied to clipboard
open override fun toJava(): ResolverFirewallRuleArgs