:doc:`ServiceDiscovery <../../servicediscovery>` / Client / update_public_dns_namespace

***************************
update_public_dns_namespace
***************************



.. py:method:: ServiceDiscovery.Client.update_public_dns_namespace(**kwargs)

  

  Updates a public DNS namespace.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/UpdatePublicDnsNamespace>`_  


  **Request Syntax**
  ::

    response = client.update_public_dns_namespace(
        Id='string',
        UpdaterRequestId='string',
        Namespace={
            'Description': 'string',
            'Properties': {
                'DnsProperties': {
                    'SOA': {
                        'TTL': 123
                    }
                }
            }
        }
    )
    
  :type Id: string
  :param Id: **[REQUIRED]** 

    The ID or Amazon Resource Name (ARN) of the namespace being updated.

    

  
  :type UpdaterRequestId: string
  :param UpdaterRequestId: 

    A unique string that identifies the request and that allows failed ``UpdatePublicDnsNamespace`` requests to be retried without the risk of running the operation twice. ``UpdaterRequestId`` can be any unique string (for example, a date/timestamp).

    This field is autopopulated if not provided.

  
  :type Namespace: dict
  :param Namespace: **[REQUIRED]** 

    Updated properties for the public DNS namespace.

    

  
    - **Description** *(string) --* 

      An updated description for the public DNS namespace.

      

    
    - **Properties** *(dict) --* 

      Properties to be updated in the public DNS namespace.

      

    
      - **DnsProperties** *(dict) --* **[REQUIRED]** 

        Updated DNS properties for the hosted zone for the public DNS namespace.

        

      
        - **SOA** *(dict) --* **[REQUIRED]** 

          Updated fields for the Start of Authority (SOA) record for the hosted zone for the public DNS namespace.

          

        
          - **TTL** *(integer) --* **[REQUIRED]** 

            The updated time to live (TTL) for purposes of negative caching.

            

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

    
    ::

      {
          'OperationId': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **OperationId** *(string) --* 

        A value that you can use to determine whether the request completed successfully. To get the status of the operation, see `GetOperation <https://docs.aws.amazon.com/cloud-map/latest/api/API_GetOperation.html>`__.

        
  
  **Exceptions**
  
  *   :py:class:`ServiceDiscovery.Client.exceptions.InvalidInput`

  
  *   :py:class:`ServiceDiscovery.Client.exceptions.NamespaceNotFound`

  
  *   :py:class:`ServiceDiscovery.Client.exceptions.ResourceInUse`

  
  *   :py:class:`ServiceDiscovery.Client.exceptions.DuplicateRequest`

  