Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_resource_policy

delete_resource_policy(**kwargs)

Deletes a resource policy from this account. This revokes the access of the identities in that policy to put log events to this account.

See also: AWS API Documentation

Request Syntax

response = client.delete_resource_policy(
    policyName='string'
)
Parameters
policyName (string) -- The name of the policy to be revoked. This parameter is required.
Returns
None

Exceptions

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