1. Packages
  2. AWS Classic
  3. API Docs
  4. route53
  5. getResolverFirewallRules

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws.route53.getResolverFirewallRules

Explore with Pulumi AI

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: aws:route53/getResolverFirewallRules:getResolverFirewallRules
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FirewallRuleGroupId 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 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 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 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 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 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 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 string
    The DNS record's type.
    BlockOverrideDomain string
    The custom DNS record to send back in response to the query.
    BlockOverrideTtl int
    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).
    CreatorRequestId string
    A unique string defined by you to identify the request.
    FirewallDomainListId string
    The ID of the domain list that's used in the rule.
    FirewallRuleGroupId string
    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.
    BlockOverrideDnsType string
    The DNS record's type.
    BlockOverrideDomain string
    The custom DNS record to send back in response to the query.
    BlockOverrideTtl int
    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).
    CreatorRequestId string
    A unique string defined by you to identify the request.
    FirewallDomainListId string
    The ID of the domain list that's used in the rule.
    FirewallRuleGroupId string
    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.
    blockOverrideDnsType String
    The DNS record's type.
    blockOverrideDomain String
    The custom DNS record to send back in response to the query.
    blockOverrideTtl Integer
    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).
    creatorRequestId String
    A unique string defined by you to identify the request.
    firewallDomainListId String
    The ID of the domain list that's used in the rule.
    firewallRuleGroupId String
    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.
    blockOverrideDnsType string
    The DNS record's type.
    blockOverrideDomain string
    The custom DNS record to send back in response to the query.
    blockOverrideTtl number
    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).
    creatorRequestId string
    A unique string defined by you to identify the request.
    firewallDomainListId string
    The ID of the domain list that's used in the rule.
    firewallRuleGroupId string
    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_dns_type str
    The DNS record's type.
    block_override_domain str
    The custom DNS record to send back in response to the query.
    block_override_ttl int
    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_id str
    A unique string defined by you to identify the request.
    firewall_domain_list_id str
    The ID of the domain list that's used in the rule.
    firewall_rule_group_id str
    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.
    blockOverrideDnsType String
    The DNS record's type.
    blockOverrideDomain String
    The custom DNS record to send back in response to the query.
    blockOverrideTtl Number
    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).
    creatorRequestId String
    A unique string defined by you to identify the request.
    firewallDomainListId String
    The ID of the domain list that's used in the rule.
    firewallRuleGroupId String
    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 aws Terraform Provider.
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.42.0 published on Wednesday, Jun 26, 2024 by Pulumi