:doc:`Route53Resolver <../../route53resolver>` / Client / list_firewall_domains

*********************
list_firewall_domains
*********************



.. py:method:: Route53Resolver.Client.list_firewall_domains(**kwargs)

  

  Retrieves the domains that you have defined for the specified firewall domain list.

   

  A single call might return only a partial list of the domains. For information, see ``MaxResults``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/route53resolver-2018-04-01/ListFirewallDomains>`_  


  **Request Syntax**
  ::

    response = client.list_firewall_domains(
        FirewallDomainListId='string',
        MaxResults=123,
        NextToken='string'
    )
    
  :type FirewallDomainListId: string
  :param FirewallDomainListId: **[REQUIRED]** 

    The ID of the domain list whose domains you want to retrieve.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of objects that you want Resolver to return for this request. If more objects are available, in the response, Resolver provides a ``NextToken`` value that you can use in a subsequent call to get the next batch of objects.

     

    If you don't specify a value for ``MaxResults``, Resolver returns up to 100 objects.

    

  
  :type NextToken: string
  :param NextToken: 

    For the first call to this list request, omit this value.

     

    When you request a list of objects, Resolver returns at most the number of objects specified in ``MaxResults``. If more objects are available for retrieval, Resolver returns a ``NextToken`` value in the response. To retrieve the next batch of objects, use the token that was returned for the prior request in your next request.

    

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

    
    ::

      {
          'NextToken': 'string',
          'Domains': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **NextToken** *(string) --* 

        If objects are still available for retrieval, Resolver returns this token in the response. To retrieve the next batch of objects, provide this token in your next request.

        
      

      - **Domains** *(list) --* 

        A list of the domains in the firewall domain list.

         

        This might be a partial list of the domains that you've defined in the domain list. For information, see ``MaxResults``.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`Route53Resolver.Client.exceptions.ResourceNotFoundException`

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

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

  
  *   :py:class:`Route53Resolver.Client.exceptions.InternalServiceErrorException`

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

  