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

********************************
disassociate_data_share_consumer
********************************



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

  

  From a datashare consumer account, remove association for the specified datashare.

  

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


  **Request Syntax**
  ::

    response = client.disassociate_data_share_consumer(
        DataShareArn='string',
        DisassociateEntireAccount=True|False,
        ConsumerArn='string',
        ConsumerRegion='string'
    )
    
  :type DataShareArn: string
  :param DataShareArn: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the datashare to remove association for.

    

  
  :type DisassociateEntireAccount: boolean
  :param DisassociateEntireAccount: 

    A value that specifies whether association for the datashare is removed from the entire account.

    

  
  :type ConsumerArn: string
  :param ConsumerArn: 

    The Amazon Resource Name (ARN) of the consumer namespace that association for the datashare is removed from.

    

  
  :type ConsumerRegion: string
  :param ConsumerRegion: 

    From a datashare consumer account, removes association of a datashare from all the existing and future namespaces in the specified Amazon Web Services Region.

    

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

    
    ::

      {
          'DataShareArn': 'string',
          'ProducerArn': 'string',
          'AllowPubliclyAccessibleConsumers': True|False,
          'DataShareAssociations': [
              {
                  'ConsumerIdentifier': 'string',
                  'Status': 'ACTIVE'|'PENDING_AUTHORIZATION'|'AUTHORIZED'|'DEAUTHORIZED'|'REJECTED'|'AVAILABLE',
                  'ConsumerRegion': 'string',
                  'CreatedDate': datetime(2015, 1, 1),
                  'StatusChangeDate': datetime(2015, 1, 1),
                  'ProducerAllowedWrites': True|False,
                  'ConsumerAcceptedWrites': True|False
              },
          ],
          'ManagedBy': 'string',
          'DataShareType': 'INTERNAL'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **DataShareArn** *(string) --* 

        The Amazon Resource Name (ARN) of the datashare that the consumer is to use.

        
      

      - **ProducerArn** *(string) --* 

        The Amazon Resource Name (ARN) of the producer namespace.

        
      

      - **AllowPubliclyAccessibleConsumers** *(boolean) --* 

        A value that specifies whether the datashare can be shared to a publicly accessible cluster.

        
      

      - **DataShareAssociations** *(list) --* 

        A value that specifies when the datashare has an association between producer and data consumers.

        
        

        - *(dict) --* 

          The association of a datashare from a producer account with a data consumer.

          
          

          - **ConsumerIdentifier** *(string) --* 

            The name of the consumer accounts that have an association with a producer datashare.

            
          

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

            The status of the datashare that is associated.

            
          

          - **ConsumerRegion** *(string) --* 

            The Amazon Web Services Region of the consumer accounts that have an association with a producer datashare.

            
          

          - **CreatedDate** *(datetime) --* 

            The creation date of the datashare that is associated.

            
          

          - **StatusChangeDate** *(datetime) --* 

            The status change data of the datashare that is associated.

            
          

          - **ProducerAllowedWrites** *(boolean) --* 

            Specifies whether write operations were allowed during data share authorization.

            
          

          - **ConsumerAcceptedWrites** *(boolean) --* 

            Specifies whether write operations were allowed during data share association.

            
      
    
      

      - **ManagedBy** *(string) --* 

        The identifier of a datashare to show its managing entity.

        
      

      - **DataShareType** *(string) --* 

        The type of the datashare created by RegisterNamespace.

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

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

  