Viewing docs for AWS v7.24.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
Viewing docs for AWS v7.24.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
aws.route53.getResolverFirewallRules Provides details about rules in a specific Route53 Resolver Firewall rule group.
Example Usage
The following example shows how to get Route53 Resolver Firewall rules based on its associated firewall group id.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.route53.getResolverFirewallRules({
firewallRuleGroupId: exampleAwsRoute53ResolverFirewallRuleGroup.id,
});
import pulumi
import pulumi_aws as aws
example = aws.route53.get_resolver_firewall_rules(firewall_rule_group_id=example_aws_route53_resolver_firewall_rule_group["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53.GetResolverFirewallRules(ctx, &route53.GetResolverFirewallRulesArgs{
FirewallRuleGroupId: exampleAwsRoute53ResolverFirewallRuleGroup.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Route53.GetResolverFirewallRules.Invoke(new()
{
FirewallRuleGroupId = exampleAwsRoute53ResolverFirewallRuleGroup.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.Route53Functions;
import com.pulumi.aws.route53.inputs.GetResolverFirewallRulesArgs;
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) {
final var example = Route53Functions.getResolverFirewallRules(GetResolverFirewallRulesArgs.builder()
.firewallRuleGroupId(exampleAwsRoute53ResolverFirewallRuleGroup.id())
.build());
}
}
variables:
example:
fn::invoke:
function: aws:route53:getResolverFirewallRules
arguments:
firewallRuleGroupId: ${exampleAwsRoute53ResolverFirewallRuleGroup.id}
Using getResolverFirewallRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResolverFirewallRules(args: GetResolverFirewallRulesArgs, opts?: InvokeOptions): Promise<GetResolverFirewallRulesResult>
function getResolverFirewallRulesOutput(args: GetResolverFirewallRulesOutputArgs, opts?: InvokeOptions): Output<GetResolverFirewallRulesResult>def get_resolver_firewall_rules(action: Optional[str] = None,
firewall_rule_group_id: Optional[str] = None,
priority: Optional[int] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResolverFirewallRulesResult
def get_resolver_firewall_rules_output(action: Optional[pulumi.Input[str]] = None,
firewall_rule_group_id: Optional[pulumi.Input[str]] = None,
priority: Optional[pulumi.Input[int]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResolverFirewallRulesResult]func GetResolverFirewallRules(ctx *Context, args *GetResolverFirewallRulesArgs, opts ...InvokeOption) (*GetResolverFirewallRulesResult, error)
func GetResolverFirewallRulesOutput(ctx *Context, args *GetResolverFirewallRulesOutputArgs, opts ...InvokeOption) GetResolverFirewallRulesResultOutput> Note: This function is named GetResolverFirewallRules in the Go SDK.
public static class GetResolverFirewallRules
{
public static Task<GetResolverFirewallRulesResult> InvokeAsync(GetResolverFirewallRulesArgs args, InvokeOptions? opts = null)
public static Output<GetResolverFirewallRulesResult> Invoke(GetResolverFirewallRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResolverFirewallRulesResult> getResolverFirewallRules(GetResolverFirewallRulesArgs args, InvokeOptions options)
public static Output<GetResolverFirewallRulesResult> getResolverFirewallRules(GetResolverFirewallRulesArgs args, InvokeOptions options)
fn::invoke:
function: aws:route53/getResolverFirewallRules:getResolverFirewallRules
arguments:
# arguments dictionaryThe following arguments are supported:
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- Action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- Priority int
- The setting that determines the processing order of the rules in a rule group.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- Action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- Priority int
- The setting that determines the processing order of the rules in a rule group.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- action String
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- priority Integer
- The setting that determines the processing order of the rules in a rule group.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- firewall
Rule stringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- priority number
- The setting that determines the processing order of the rules in a rule group.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- firewall_
rule_ strgroup_ id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- action str
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- priority int
- The setting that determines the processing order of the rules in a rule group.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- action String
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- priority Number
- The setting that determines the processing order of the rules in a rule group.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
getResolverFirewallRules Result
The following output properties are available:
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- Firewall
Rules List<GetResolver Firewall Rules Firewall Rule> - List with information about the firewall rules. See details below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.
- Priority int
- The priority of the rule in the rule group.
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- Firewall
Rules []GetResolver Firewall Rules Firewall Rule - List with information about the firewall rules. See details below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.
- Priority int
- The priority of the rule in the rule group.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group.
- firewall
Rules List<GetResolver Firewall Rules Firewall Rule> - List with information about the firewall rules. See details below.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- action String
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.
- priority Integer
- The priority of the rule in the rule group.
- firewall
Rule stringGroup Id - The unique identifier of the firewall rule group.
- firewall
Rules GetResolver Firewall Rules Firewall Rule[] - List with information about the firewall rules. See details below.
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.
- priority number
- The priority of the rule in the rule group.
- firewall_
rule_ strgroup_ id - The unique identifier of the firewall rule group.
- firewall_
rules Sequence[GetResolver Firewall Rules Firewall Rule] - List with information about the firewall rules. See details below.
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- action str
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.
- priority int
- The priority of the rule in the rule group.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group.
- firewall
Rules List<Property Map> - List with information about the firewall rules. See details below.
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- action String
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list, or a threat in a DNS Firewall Advanced rule.
- priority Number
- The priority of the rule in the rule group.
Supporting Types
GetResolverFirewallRulesFirewallRule
- Action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- Block
Override stringDns Type - The DNS record's type.
- Block
Override stringDomain - The custom DNS record to send back in response to the query.
- Block
Override intTtl - The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- Block
Response string - The way that you want DNS Firewall to block the request.
- Confidence
Threshold string - The confidence threshold for DNS Firewall Advanced rules.
- Creation
Time string - The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- Creator
Request stringId - A unique string defined by you to identify the request.
- Dns
Threat stringProtection - The type of DNS Firewall Advanced rule.
- Firewall
Domain stringList Id - The ID of the domain list that's used in the rule.
- Firewall
Domain stringRedirection Action - How DNS Firewall evaluates DNS redirection in the DNS redirection chain.
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- Firewall
Threat stringProtection Id - The ID of the DNS Firewall Advanced rule.
- Modification
Time string - The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
- Name string
- The name of the rule.
- Priority int
- The setting that determines the processing order of the rules in a rule group.
- QType string
- The DNS query type that the rule evaluates.
- Action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- Block
Override stringDns Type - The DNS record's type.
- Block
Override stringDomain - The custom DNS record to send back in response to the query.
- Block
Override intTtl - The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- Block
Response string - The way that you want DNS Firewall to block the request.
- Confidence
Threshold string - The confidence threshold for DNS Firewall Advanced rules.
- Creation
Time string - The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- Creator
Request stringId - A unique string defined by you to identify the request.
- Dns
Threat stringProtection - The type of DNS Firewall Advanced rule.
- Firewall
Domain stringList Id - The ID of the domain list that's used in the rule.
- Firewall
Domain stringRedirection Action - How DNS Firewall evaluates DNS redirection in the DNS redirection chain.
- Firewall
Rule stringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- Firewall
Threat stringProtection Id - The ID of the DNS Firewall Advanced rule.
- Modification
Time string - The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
- Name string
- The name of the rule.
- Priority int
- The setting that determines the processing order of the rules in a rule group.
- QType string
- The DNS query type that the rule evaluates.
- action String
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- block
Override StringDns Type - The DNS record's type.
- block
Override StringDomain - The custom DNS record to send back in response to the query.
- block
Override IntegerTtl - The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- block
Response String - The way that you want DNS Firewall to block the request.
- confidence
Threshold String - The confidence threshold for DNS Firewall Advanced rules.
- creation
Time String - The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- creator
Request StringId - A unique string defined by you to identify the request.
- dns
Threat StringProtection - The type of DNS Firewall Advanced rule.
- firewall
Domain StringList Id - The ID of the domain list that's used in the rule.
- firewall
Domain StringRedirection Action - How DNS Firewall evaluates DNS redirection in the DNS redirection chain.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- firewall
Threat StringProtection Id - The ID of the DNS Firewall Advanced rule.
- modification
Time String - The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
- name String
- The name of the rule.
- priority Integer
- The setting that determines the processing order of the rules in a rule group.
- q
Type String - The DNS query type that the rule evaluates.
- action string
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- block
Override stringDns Type - The DNS record's type.
- block
Override stringDomain - The custom DNS record to send back in response to the query.
- block
Override numberTtl - The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- block
Response string - The way that you want DNS Firewall to block the request.
- confidence
Threshold string - The confidence threshold for DNS Firewall Advanced rules.
- creation
Time string - The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- creator
Request stringId - A unique string defined by you to identify the request.
- dns
Threat stringProtection - The type of DNS Firewall Advanced rule.
- firewall
Domain stringList Id - The ID of the domain list that's used in the rule.
- firewall
Domain stringRedirection Action - How DNS Firewall evaluates DNS redirection in the DNS redirection chain.
- firewall
Rule stringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- firewall
Threat stringProtection Id - The ID of the DNS Firewall Advanced rule.
- modification
Time string - The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
- name string
- The name of the rule.
- priority number
- The setting that determines the processing order of the rules in a rule group.
- q
Type string - The DNS query type that the rule evaluates.
- action str
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- block_
override_ strdns_ type - The DNS record's type.
- block_
override_ strdomain - The custom DNS record to send back in response to the query.
- block_
override_ intttl - The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- block_
response str - The way that you want DNS Firewall to block the request.
- confidence_
threshold str - The confidence threshold for DNS Firewall Advanced rules.
- creation_
time str - The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- creator_
request_ strid - A unique string defined by you to identify the request.
- dns_
threat_ strprotection - The type of DNS Firewall Advanced rule.
- firewall_
domain_ strlist_ id - The ID of the domain list that's used in the rule.
- firewall_
domain_ strredirection_ action - How DNS Firewall evaluates DNS redirection in the DNS redirection chain.
- firewall_
rule_ strgroup_ id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- firewall_
threat_ strprotection_ id - The ID of the DNS Firewall Advanced rule.
- modification_
time str - The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
- name str
- The name of the rule.
- priority int
- The setting that determines the processing order of the rules in a rule group.
- q_
type str - The DNS query type that the rule evaluates.
- action String
- The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list.
- block
Override StringDns Type - The DNS record's type.
- block
Override StringDomain - The custom DNS record to send back in response to the query.
- block
Override NumberTtl - The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- block
Response String - The way that you want DNS Firewall to block the request.
- confidence
Threshold String - The confidence threshold for DNS Firewall Advanced rules.
- creation
Time String - The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- creator
Request StringId - A unique string defined by you to identify the request.
- dns
Threat StringProtection - The type of DNS Firewall Advanced rule.
- firewall
Domain StringList Id - The ID of the domain list that's used in the rule.
- firewall
Domain StringRedirection Action - How DNS Firewall evaluates DNS redirection in the DNS redirection chain.
- firewall
Rule StringGroup Id - The unique identifier of the firewall rule group that you want to retrieve the rules for.
- firewall
Threat StringProtection Id - The ID of the DNS Firewall Advanced rule.
- modification
Time String - The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
- name String
- The name of the rule.
- priority Number
- The setting that determines the processing order of the rules in a rule group.
- q
Type String - The DNS query type that the rule evaluates.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.24.0
published on Tuesday, Mar 31, 2026 by Pulumi
published on Tuesday, Mar 31, 2026 by Pulumi
