CloudWatchRUM / Client / delete_resource_policy
delete_resource_policy¶
- CloudWatchRUM.Client.delete_resource_policy(**kwargs)¶
Removes the association of a resource-based policy from an app monitor.
See also: AWS API Documentation
Request Syntax
response = client.delete_resource_policy( Name='string', PolicyRevisionId='string' )
- Parameters:
Name (string) –
[REQUIRED]
The app monitor that you want to remove the resource policy from.
PolicyRevisionId (string) – Specifies a specific policy revision to delete. Provide a
PolicyRevisionIdto ensure an atomic delete operation. If the revision ID that you provide doesn’t match the latest policy revision ID, the request will be rejected with anInvalidPolicyRevisionIdExceptionerror.
- Return type:
dict
- Returns:
Response Syntax
{ 'PolicyRevisionId': 'string' }
Response Structure
(dict) –
PolicyRevisionId (string) –
The revision ID of the policy that was removed, if it had one.
Exceptions
CloudWatchRUM.Client.exceptions.InvalidPolicyRevisionIdExceptionCloudWatchRUM.Client.exceptions.ConflictExceptionCloudWatchRUM.Client.exceptions.ResourceNotFoundExceptionCloudWatchRUM.Client.exceptions.InternalServerExceptionCloudWatchRUM.Client.exceptions.PolicyNotFoundExceptionCloudWatchRUM.Client.exceptions.ValidationExceptionCloudWatchRUM.Client.exceptions.ThrottlingExceptionCloudWatchRUM.Client.exceptions.AccessDeniedException