Lambda / Client / delete_resource_policy
delete_resource_policy¶
- Lambda.Client.delete_resource_policy(**kwargs)¶
Deletes a resource-based policy from a Lambda resource.
See also: AWS API Documentation
Request Syntax
response = client.delete_resource_policy( ResourceArn='string', RevisionId='string' )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the Lambda resource you want to delete the policy from. You can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.
RevisionId (string) – The revision ID that the existing policy must match for the deletion to proceed. If the revision ID doesn’t match, the operation fails with a
PreconditionFailedExceptionerror. To retrieve the current revision ID, use the GetResourcePolicy operation.
- Returns:
None
Exceptions
Lambda.Client.exceptions.InvalidParameterValueExceptionLambda.Client.exceptions.ResourceConflictExceptionLambda.Client.exceptions.ServiceExceptionLambda.Client.exceptions.TooManyRequestsExceptionLambda.Client.exceptions.ResourceNotFoundExceptionLambda.Client.exceptions.PreconditionFailedException