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'
)
[REQUIRED]
The name or ARN of the log group that contains the data protection policy that you want to see.
{
'logGroupIdentifier': 'string',
'policyDocument': 'string',
'lastUpdatedTime': 123
}
Response Structure
The log group name or ARN that you specified in your request.
The data protection policy document for this log group.
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