AWS v6.77.1 published on Friday, Apr 18, 2025 by Pulumi
aws.route53.getResolverFirewallRules
Explore with Pulumi AI
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/v6/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,
                                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,
                                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.
 
- 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.
 
- 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.
 
- 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.
 
- 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.
 
- 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.
 
getResolverFirewallRules Result
The following output properties are available:
- Firewall
Rule stringGroup Id  - 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.
 - Action string
 - Priority int
 
- Firewall
Rule stringGroup Id  - 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.
 - Action string
 - Priority int
 
- firewall
Rule StringGroup Id  - 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.
 - action String
 - priority Integer
 
- firewall
Rule stringGroup Id  - 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.
 - action string
 - priority number
 
- firewall_
rule_ strgroup_ id  - 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.
 - action str
 - priority int
 
- firewall
Rule StringGroup Id  - 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.
 - action String
 - priority Number
 
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.
 - 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.
 - Firewall
Domain stringList Id  - The ID of the domain list that's used in the rule.
 - Firewall
Rule stringGroup Id  - The unique identifier of the firewall rule group that you want to retrieve the rules for.
 - 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.
 
- 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.
 - 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.
 - Firewall
Domain stringList Id  - The ID of the domain list that's used in the rule.
 - Firewall
Rule stringGroup Id  - The unique identifier of the firewall rule group that you want to retrieve the rules for.
 - 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.
 
- 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.
 - 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.
 - firewall
Domain StringList Id  - The ID of the domain list that's used in the rule.
 - firewall
Rule StringGroup Id  - The unique identifier of the firewall rule group that you want to retrieve the rules for.
 - 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.
 
- 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.
 - 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.
 - firewall
Domain stringList Id  - The ID of the domain list that's used in the rule.
 - firewall
Rule stringGroup Id  - The unique identifier of the firewall rule group that you want to retrieve the rules for.
 - 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.
 
- 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.
 - 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.
 - firewall_
domain_ strlist_ id  - The ID of the domain list that's used in the rule.
 - firewall_
rule_ strgroup_ id  - The unique identifier of the firewall rule group that you want to retrieve the rules for.
 - 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.
 
- 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.
 - 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.
 - firewall
Domain StringList Id  - The ID of the domain list that's used in the rule.
 - firewall
Rule StringGroup Id  - The unique identifier of the firewall rule group that you want to retrieve the rules for.
 - 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.
 
Package Details
- Repository
 - AWS Classic pulumi/pulumi-aws
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
awsTerraform Provider.