AWS v6.71.0 published on Friday, Mar 7, 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:
- FirewallRule 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.
- FirewallRule 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.
- firewallRule 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.
- firewallRule 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.
- firewallRule 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:
- FirewallRule stringGroup Id 
- FirewallRules 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
- FirewallRule stringGroup Id 
- FirewallRules []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
- firewallRule StringGroup Id 
- firewallRules 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
- firewallRule stringGroup Id 
- firewallRules 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
- firewallRule StringGroup Id 
- firewallRules 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.
- BlockOverride stringDns Type 
- The DNS record's type.
- BlockOverride stringDomain 
- The custom DNS record to send back in response to the query.
- BlockOverride intTtl 
- The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- BlockResponse string
- The way that you want DNS Firewall to block the request.
- CreationTime string
- The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- CreatorRequest stringId 
- A unique string defined by you to identify the request.
- FirewallDomain stringList Id 
- The ID of the domain list that's used in the rule.
- FirewallRule stringGroup Id 
- The unique identifier of the firewall rule group that you want to retrieve the rules for.
- ModificationTime 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.
- BlockOverride stringDns Type 
- The DNS record's type.
- BlockOverride stringDomain 
- The custom DNS record to send back in response to the query.
- BlockOverride intTtl 
- The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- BlockResponse string
- The way that you want DNS Firewall to block the request.
- CreationTime string
- The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- CreatorRequest stringId 
- A unique string defined by you to identify the request.
- FirewallDomain stringList Id 
- The ID of the domain list that's used in the rule.
- FirewallRule stringGroup Id 
- The unique identifier of the firewall rule group that you want to retrieve the rules for.
- ModificationTime 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.
- blockOverride StringDns Type 
- The DNS record's type.
- blockOverride StringDomain 
- The custom DNS record to send back in response to the query.
- blockOverride IntegerTtl 
- The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- blockResponse String
- The way that you want DNS Firewall to block the request.
- creationTime String
- The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- creatorRequest StringId 
- A unique string defined by you to identify the request.
- firewallDomain StringList Id 
- The ID of the domain list that's used in the rule.
- firewallRule StringGroup Id 
- The unique identifier of the firewall rule group that you want to retrieve the rules for.
- modificationTime 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.
- blockOverride stringDns Type 
- The DNS record's type.
- blockOverride stringDomain 
- The custom DNS record to send back in response to the query.
- blockOverride numberTtl 
- The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- blockResponse string
- The way that you want DNS Firewall to block the request.
- creationTime string
- The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- creatorRequest stringId 
- A unique string defined by you to identify the request.
- firewallDomain stringList Id 
- The ID of the domain list that's used in the rule.
- firewallRule stringGroup Id 
- The unique identifier of the firewall rule group that you want to retrieve the rules for.
- modificationTime 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.
- blockOverride StringDns Type 
- The DNS record's type.
- blockOverride StringDomain 
- The custom DNS record to send back in response to the query.
- blockOverride NumberTtl 
- The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
- blockResponse String
- The way that you want DNS Firewall to block the request.
- creationTime String
- The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
- creatorRequest StringId 
- A unique string defined by you to identify the request.
- firewallDomain StringList Id 
- The ID of the domain list that's used in the rule.
- firewallRule StringGroup Id 
- The unique identifier of the firewall rule group that you want to retrieve the rules for.
- modificationTime 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.