get_data_protection_policy

get_data_protection_policy(**kwargs)

Returns information about a log group data protection policy.

See also: AWS API Documentation

Request Syntax

response = client.get_data_protection_policy(
    logGroupIdentifier='string'
)
Parameters
logGroupIdentifier (string) --

[REQUIRED]

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

Return type
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

  • CloudWatchLogs.Client.exceptions.InvalidParameterException
  • CloudWatchLogs.Client.exceptions.OperationAbortedException
  • CloudWatchLogs.Client.exceptions.ResourceNotFoundException
  • CloudWatchLogs.Client.exceptions.ServiceUnavailableException