:doc:`CloudWatchLogs <../../logs>` / Client / get_data_protection_policy

**************************
get_data_protection_policy
**************************



.. py:method:: CloudWatchLogs.Client.get_data_protection_policy(**kwargs)

  

  Returns information about a log group data protection policy.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/logs-2014-03-28/GetDataProtectionPolicy>`_  


  **Request Syntax**
  ::

    response = client.get_data_protection_policy(
        logGroupIdentifier='string'
    )
    
  :type logGroupIdentifier: string
  :param logGroupIdentifier: **[REQUIRED]** 

    The name or ARN of the log group that contains the data protection policy that you want to see.

    

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

    
    ::

      {
          'logGroupIdentifier': 'string',
          'policyDocument': 'string',
          'lastUpdatedTime': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **logGroupIdentifier** *(string) --* 

        The log group name or ARN that you specified in your request.

        
      

      - **policyDocument** *(string) --* 

        The data protection policy document for this log group.

        
      

      - **lastUpdatedTime** *(integer) --* 

        The date and time that this policy was most recently updated.

        
  
  **Exceptions**
  
  *   :py:class:`CloudWatchLogs.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.OperationAbortedException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`CloudWatchLogs.Client.exceptions.ServiceUnavailableException`

  