:doc:`Route53GlobalResolver <../../route53globalresolver>` / Client / list_firewall_rules

*******************
list_firewall_rules
*******************



.. py:method:: Route53GlobalResolver.Client.list_firewall_rules(**kwargs)

  

  Lists all DNS firewall rules for a DNS view with pagination support.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/route53globalresolver-2022-09-27/ListFirewallRules>`_  


  **Request Syntax**
  ::

    response = client.list_firewall_rules(
        maxResults=123,
        nextToken='string',
        dnsViewId='string',
        filters={
            'string': [
                'string',
            ]
        }
    )
    
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to retrieve in a single call.

    

  
  :type nextToken: string
  :param nextToken: 

    A pagination token used for large sets of results that can't be returned in a single response.

    

  
  :type dnsViewId: string
  :param dnsViewId: **[REQUIRED]** 

    ID of the DNS view.

    

  
  :type filters: dict
  :param filters: 

    Values to filter the results.

    

  
    - *(string) --* 

    
      - *(list) --* 

      
        - *(string) --* 

        
    


  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'nextToken': 'string',
          'firewallRules': [
              {
                  'action': 'ALLOW'|'ALERT'|'BLOCK',
                  'blockOverrideDnsType': 'CNAME',
                  'blockOverrideDomain': 'string',
                  'blockOverrideTtl': 123,
                  'blockResponse': 'NODATA'|'NXDOMAIN'|'OVERRIDE',
                  'confidenceThreshold': 'LOW'|'MEDIUM'|'HIGH',
                  'createdAt': datetime(2015, 1, 1),
                  'description': 'string',
                  'dnsAdvancedProtection': 'DGA'|'DNS_TUNNELING',
                  'firewallDomainListId': 'string',
                  'id': 'string',
                  'name': 'string',
                  'priority': 123,
                  'dnsViewId': 'string',
                  'queryType': 'string',
                  'status': 'CREATING'|'OPERATIONAL'|'UPDATING'|'DELETING',
                  'updatedAt': datetime(2015, 1, 1)
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        A pagination token used for large sets of results that can't be returned in a single response. Provide this token in the next call to get the results not returned in this call.

        
      

      - **firewallRules** *(list) --* 

        List of the firewall rules and information about them.

        
        

        - *(dict) --* 

          Summary information about a firewall rule.

          
          

          - **action** *(string) --* 

            The action configured for the firewall rule.

            
          

          - **blockOverrideDnsType** *(string) --* 

            The DNS record type configured for the firewall rule's custom response.

            
          

          - **blockOverrideDomain** *(string) --* 

            The custom domain name configured for the firewall rule's BLOCK response.

            
          

          - **blockOverrideTtl** *(integer) --* 

            The TTL value configured for the firewall rule's custom response.

            
          

          - **blockResponse** *(string) --* 

            The type of block response configured for the firewall rule.

            
          

          - **confidenceThreshold** *(string) --* 

            The confidence threshold configured for the firewall rule's advanced threat detection.

            
          

          - **createdAt** *(datetime) --* 

            The date and time when the firewall rule was created.

            
          

          - **description** *(string) --* 

            The description of the firewall rule.

            
          

          - **dnsAdvancedProtection** *(string) --* 

            Whether advanced DNS threat protection is enabled for the firewall rule.

            
          

          - **firewallDomainListId** *(string) --* 

            The ID of the firewall domain list associated with the firewall rule.

            
          

          - **id** *(string) --* 

            The unique identifier of the firewall rule.

            
          

          - **name** *(string) --* 

            The name of the firewall rule.

            
          

          - **priority** *(integer) --* 

            The priority of the firewall rule.

            
          

          - **dnsViewId** *(string) --* 

            The ID of the DNS view associated with the firewall rule.

            
          

          - **queryType** *(string) --* 

            The DNS query type that the firewall rule matches.

            
          

          - **status** *(string) --* 

            The current status of the firewall rule.

            
          

          - **updatedAt** *(datetime) --* 

            The date and time when the firewall rule was last updated.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.InternalServerException`

  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.ValidationException`

  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.ThrottlingException`

  
  *   :py:class:`Route53GlobalResolver.Client.exceptions.ResourceNotFoundException`

  