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 PreconditionFailedException error. To retrieve the current revision ID, use the GetResourcePolicy operation.

Returns:

None

Exceptions

  • Lambda.Client.exceptions.InvalidParameterValueException

  • Lambda.Client.exceptions.ResourceConflictException

  • Lambda.Client.exceptions.ServiceException

  • Lambda.Client.exceptions.TooManyRequestsException

  • Lambda.Client.exceptions.ResourceNotFoundException

  • Lambda.Client.exceptions.PreconditionFailedException