:doc:`DirectoryService <../../ds>` / Client / create_conditional_forwarder

****************************
create_conditional_forwarder
****************************



.. py:method:: DirectoryService.Client.create_conditional_forwarder(**kwargs)

  

  Creates a conditional forwarder associated with your Amazon Web Services directory. Conditional forwarders are required in order to set up a trust relationship with another domain. The conditional forwarder points to the trusted domain.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/ds-2015-04-16/CreateConditionalForwarder>`_  


  **Request Syntax**
  ::

    response = client.create_conditional_forwarder(
        DirectoryId='string',
        RemoteDomainName='string',
        DnsIpAddrs=[
            'string',
        ],
        DnsIpv6Addrs=[
            'string',
        ]
    )
    
  :type DirectoryId: string
  :param DirectoryId: **[REQUIRED]** 

    The directory ID of the Amazon Web Services directory for which you are creating the conditional forwarder.

    

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

    The fully qualified domain name (FQDN) of the remote domain with which you will set up a trust relationship.

    

  
  :type DnsIpAddrs: list
  :param DnsIpAddrs: 

    The IP addresses of the remote DNS server associated with RemoteDomainName.

    

  
    - *(string) --* 

    

  :type DnsIpv6Addrs: list
  :param DnsIpv6Addrs: 

    The IPv6 addresses of the remote DNS server associated with RemoteDomainName.

    

  
    - *(string) --* 

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      The result of a CreateConditinalForwarder request.

      
  
  **Exceptions**
  
  *   :py:class:`DirectoryService.Client.exceptions.EntityAlreadyExistsException`

  
  *   :py:class:`DirectoryService.Client.exceptions.EntityDoesNotExistException`

  
  *   :py:class:`DirectoryService.Client.exceptions.DirectoryUnavailableException`

  
  *   :py:class:`DirectoryService.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`DirectoryService.Client.exceptions.UnsupportedOperationException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ClientException`

  
  *   :py:class:`DirectoryService.Client.exceptions.ServiceException`

  