Resolver Firewall Rule Args
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());
}
}
Content copied to clipboard
Import
In TODO v1.5.0 and later, use an import
block to import Route 53 Resolver DNS Firewall rules using the Route 53 Resolver DNS Firewall rule group ID and domain list ID separated by ':'. For exampleterraform import { to = aws_route53_resolver_firewall_rule.example id = "rslvr-frg-0123456789abcdef:rslvr-fdl-0123456789abcdef" } Using TODO import
, import Route 53 Resolver DNS Firewall rules using the Route 53 Resolver DNS Firewall rule group ID and domain list ID separated by ':'. For exampleconsole % TODO import aws_route53_resolver_firewall_rule.example rslvr-frg-0123456789abcdef:rslvr-fdl-0123456789abcdef
Constructors
Link copied to clipboard
fun ResolverFirewallRuleArgs(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)