1. Packages
  2. AWS
  3. API Docs
  4. route53
  5. getResolverFirewallRules
AWS v6.77.0 published on Wednesday, Apr 9, 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,
});
Copy
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"])
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:route53:getResolverFirewallRules
      arguments:
        firewallRuleGroupId: ${exampleAwsRoute53ResolverFirewallRuleGroup.id}
Copy

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>
Copy
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]
Copy
func GetResolverFirewallRules(ctx *Context, args *GetResolverFirewallRulesArgs, opts ...InvokeOption) (*GetResolverFirewallRulesResult, error)
func GetResolverFirewallRulesOutput(ctx *Context, args *GetResolverFirewallRulesOutputArgs, opts ...InvokeOption) GetResolverFirewallRulesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetResolverFirewallRulesResult> getResolverFirewallRules(GetResolverFirewallRulesArgs args, InvokeOptions options)
public static Output<GetResolverFirewallRulesResult> getResolverFirewallRules(GetResolverFirewallRulesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:route53/getResolverFirewallRules:getResolverFirewallRules
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FirewallRuleGroupId This property is required. string
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.
FirewallRuleGroupId This property is required. string
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.
firewallRuleGroupId This property is required. String
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.
firewallRuleGroupId This property is required. string
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_group_id This property is required. str
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.
firewallRuleGroupId This property is required. String
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:

FirewallRuleGroupId string
FirewallRules List<GetResolverFirewallRulesFirewallRule>
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
FirewallRuleGroupId string
FirewallRules []GetResolverFirewallRulesFirewallRule
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
firewallRuleGroupId String
firewallRules List<GetResolverFirewallRulesFirewallRule>
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
firewallRuleGroupId string
firewallRules GetResolverFirewallRulesFirewallRule[]
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_group_id str
firewall_rules Sequence[GetResolverFirewallRulesFirewallRule]
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
firewallRuleGroupId String
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 This property is required. 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.
BlockOverrideDnsType This property is required. string
The DNS record's type.
BlockOverrideDomain This property is required. string
The custom DNS record to send back in response to the query.
BlockOverrideTtl This property is required. int
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
BlockResponse This property is required. string
The way that you want DNS Firewall to block the request.
CreationTime This property is required. string
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
CreatorRequestId This property is required. string
A unique string defined by you to identify the request.
FirewallDomainListId This property is required. string
The ID of the domain list that's used in the rule.
FirewallRuleGroupId This property is required. string
The unique identifier of the firewall rule group that you want to retrieve the rules for.
ModificationTime This property is required. string
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
Name This property is required. string
The name of the rule.
Priority This property is required. int
The setting that determines the processing order of the rules in a rule group.
Action This property is required. 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.
BlockOverrideDnsType This property is required. string
The DNS record's type.
BlockOverrideDomain This property is required. string
The custom DNS record to send back in response to the query.
BlockOverrideTtl This property is required. int
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
BlockResponse This property is required. string
The way that you want DNS Firewall to block the request.
CreationTime This property is required. string
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
CreatorRequestId This property is required. string
A unique string defined by you to identify the request.
FirewallDomainListId This property is required. string
The ID of the domain list that's used in the rule.
FirewallRuleGroupId This property is required. string
The unique identifier of the firewall rule group that you want to retrieve the rules for.
ModificationTime This property is required. string
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
Name This property is required. string
The name of the rule.
Priority This property is required. int
The setting that determines the processing order of the rules in a rule group.
action This property is required. 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.
blockOverrideDnsType This property is required. String
The DNS record's type.
blockOverrideDomain This property is required. String
The custom DNS record to send back in response to the query.
blockOverrideTtl This property is required. Integer
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
blockResponse This property is required. String
The way that you want DNS Firewall to block the request.
creationTime This property is required. String
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
creatorRequestId This property is required. String
A unique string defined by you to identify the request.
firewallDomainListId This property is required. String
The ID of the domain list that's used in the rule.
firewallRuleGroupId This property is required. String
The unique identifier of the firewall rule group that you want to retrieve the rules for.
modificationTime This property is required. String
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
name This property is required. String
The name of the rule.
priority This property is required. Integer
The setting that determines the processing order of the rules in a rule group.
action This property is required. 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.
blockOverrideDnsType This property is required. string
The DNS record's type.
blockOverrideDomain This property is required. string
The custom DNS record to send back in response to the query.
blockOverrideTtl This property is required. number
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
blockResponse This property is required. string
The way that you want DNS Firewall to block the request.
creationTime This property is required. string
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
creatorRequestId This property is required. string
A unique string defined by you to identify the request.
firewallDomainListId This property is required. string
The ID of the domain list that's used in the rule.
firewallRuleGroupId This property is required. string
The unique identifier of the firewall rule group that you want to retrieve the rules for.
modificationTime This property is required. string
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
name This property is required. string
The name of the rule.
priority This property is required. number
The setting that determines the processing order of the rules in a rule group.
action This property is required. 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_dns_type This property is required. str
The DNS record's type.
block_override_domain This property is required. str
The custom DNS record to send back in response to the query.
block_override_ttl This property is required. int
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
block_response This property is required. str
The way that you want DNS Firewall to block the request.
creation_time This property is required. str
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
creator_request_id This property is required. str
A unique string defined by you to identify the request.
firewall_domain_list_id This property is required. str
The ID of the domain list that's used in the rule.
firewall_rule_group_id This property is required. str
The unique identifier of the firewall rule group that you want to retrieve the rules for.
modification_time This property is required. str
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
name This property is required. str
The name of the rule.
priority This property is required. int
The setting that determines the processing order of the rules in a rule group.
action This property is required. 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.
blockOverrideDnsType This property is required. String
The DNS record's type.
blockOverrideDomain This property is required. String
The custom DNS record to send back in response to the query.
blockOverrideTtl This property is required. Number
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record.
blockResponse This property is required. String
The way that you want DNS Firewall to block the request.
creationTime This property is required. String
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
creatorRequestId This property is required. String
A unique string defined by you to identify the request.
firewallDomainListId This property is required. String
The ID of the domain list that's used in the rule.
firewallRuleGroupId This property is required. String
The unique identifier of the firewall rule group that you want to retrieve the rules for.
modificationTime This property is required. String
The date and time that the rule was last modified, in Unix time format and Coordinated Universal Time (UTC).
name This property is required. String
The name of the rule.
priority This property is required. 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 aws Terraform Provider.