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

***************
disable_logging
***************



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

  

  Stops logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

  

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


  **Request Syntax**
  ::

    response = client.disable_logging(
        ClusterIdentifier='string'
    )
    
  :type ClusterIdentifier: string
  :param ClusterIdentifier: **[REQUIRED]** 

    The identifier of the cluster on which logging is to be stopped.

     

    Example: ``examplecluster``

    

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

    
    ::

      {
          'LoggingEnabled': True|False,
          'BucketName': 'string',
          'S3KeyPrefix': 'string',
          'LastSuccessfulDeliveryTime': datetime(2015, 1, 1),
          'LastFailureTime': datetime(2015, 1, 1),
          'LastFailureMessage': 'string',
          'LogDestinationType': 's3'|'cloudwatch',
          'LogExports': [
              'string',
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Describes the status of logging for a cluster.

      
      

      - **LoggingEnabled** *(boolean) --* 

        ``true`` if logging is on, ``false`` if logging is off.

        
      

      - **BucketName** *(string) --* 

        The name of the S3 bucket where the log files are stored.

        
      

      - **S3KeyPrefix** *(string) --* 

        The prefix applied to the log file names.

        
      

      - **LastSuccessfulDeliveryTime** *(datetime) --* 

        The last time that logs were delivered.

        
      

      - **LastFailureTime** *(datetime) --* 

        The last time when logs failed to be delivered.

        
      

      - **LastFailureMessage** *(string) --* 

        The message indicating that logs failed to be delivered.

        
      

      - **LogDestinationType** *(string) --* 

        The log destination type. An enum with possible values of ``s3`` and ``cloudwatch``.

        
      

      - **LogExports** *(list) --* 

        The collection of exported log types. Possible values are ``connectionlog``, ``useractivitylog``, and ``userlog``.

        
        

        - *(string) --* 
    
  
  **Exceptions**
  
  *   :py:class:`Redshift.Client.exceptions.ClusterNotFoundFault`

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

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

  