CloudTrail / Client / delete_resource_policy
delete_resource_policy#
- CloudTrail.Client.delete_resource_policy(**kwargs)#
Deletes the resource-based policy attached to the CloudTrail event data store, dashboard, or channel.
See also: AWS API Documentation
Request Syntax
response = client.delete_resource_policy( ResourceArn='string' )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the CloudTrail event data store, dashboard, or channel you’re deleting the resource-based policy from.
Example event data store ARN format:
arn:aws:cloudtrail:us-east-2:123456789012:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
Example dashboard ARN format:
arn:aws:cloudtrail:us-east-1:123456789012:dashboard/exampleDash
Example channel ARN format:
arn:aws:cloudtrail:us-east-2:123456789012:channel/01234567890
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
CloudTrail.Client.exceptions.ResourceARNNotValidException
CloudTrail.Client.exceptions.ResourceNotFoundException
CloudTrail.Client.exceptions.ResourcePolicyNotFoundException
CloudTrail.Client.exceptions.ResourceTypeNotSupportedException
CloudTrail.Client.exceptions.ConflictException
CloudTrail.Client.exceptions.OperationNotPermittedException
CloudTrail.Client.exceptions.UnsupportedOperationException