Skip to content

Deletes a resource-based policy from a Lambda resource

Description

Deletes a resource-based policy from a Lambda resource.

Usage

lambda_delete_resource_policy(ResourceArn, RevisionId)

Arguments

  • ResourceArn

[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

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 get_resource_policy operation.

Value

An empty list.

Request syntax

svc$delete_resource_policy(
  ResourceArn = "string",
  RevisionId = "string"
)