:doc:`Redshift <../../redshift>` / Client / deregister_namespace

********************
deregister_namespace
********************



.. py:method:: Redshift.Client.deregister_namespace(**kwargs)

  

  Deregisters a cluster or serverless namespace from the Amazon Web Services Glue Data Catalog.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeregisterNamespace>`_  


  **Request Syntax**
  ::

    response = client.deregister_namespace(
        NamespaceIdentifier={
            'ServerlessIdentifier': {
                'NamespaceIdentifier': 'string',
                'WorkgroupIdentifier': 'string'
            },
            'ProvisionedIdentifier': {
                'ClusterIdentifier': 'string'
            }
        },
        ConsumerIdentifiers=[
            'string',
        ]
    )
    
  :type NamespaceIdentifier: dict
  :param NamespaceIdentifier: **[REQUIRED]** 

    The unique identifier of the cluster or serverless namespace that you want to deregister.

    .. note::    This is a Tagged Union structure. Only one of the     following top level keys can be set: ``ServerlessIdentifier``, ``ProvisionedIdentifier``. 

  
    - **ServerlessIdentifier** *(dict) --* 

      The identifier for a serverless namespace.

      

    
      - **NamespaceIdentifier** *(string) --* **[REQUIRED]** 

        The unique identifier for the serverless namespace.

        

      
      - **WorkgroupIdentifier** *(string) --* **[REQUIRED]** 

        The unique identifier for the workgroup associated with the serverless namespace.

        

      
    
    - **ProvisionedIdentifier** *(dict) --* 

      The identifier for a provisioned cluster.

      

    
      - **ClusterIdentifier** *(string) --* **[REQUIRED]** 

        The unique identifier for the provisioned cluster.

        

      
    
  
  :type ConsumerIdentifiers: list
  :param ConsumerIdentifiers: **[REQUIRED]** 

    An array containing the ID of the consumer account that you want to deregister the cluster or serverless namespace from.

    

  
    - *(string) --* 

    

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

    
    ::

      {
          'Status': 'Registering'|'Deregistering'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Status** *(string) --* 

        The registration status of the cluster or serverless namespace.

        
  
  **Exceptions**
  
  *   :py:class:`Redshift.Client.exceptions.ClusterNotFoundFault`

  
  *   :py:class:`Redshift.Client.exceptions.InvalidNamespaceFault`

  
  *   :py:class:`Redshift.Client.exceptions.InvalidClusterStateFault`

  