delete_data_protection_policy

delete_data_protection_policy(**kwargs)

Deletes the data protection policy from the specified log group.

For more information about data protection policies, see PutDataProtectionPolicy.

See also: AWS API Documentation

Request Syntax

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

[REQUIRED]

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

Returns
None

Exceptions

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