Skip to content

Lambda  >  Operations  >  delete_resource_policy

delete_resource_policy

Operation

delete_resource_policy async

delete_resource_policy(input: DeleteResourcePolicyInput, plugins: list[Plugin] | None = None) -> DeleteResourcePolicyOutput

Deletes a resource-based policy from a Lambda resource.

Parameters:

Name Type Description Default
input DeleteResourcePolicyInput

An instance of DeleteResourcePolicyInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DeleteResourcePolicyOutput

An instance of DeleteResourcePolicyOutput.

Input

DeleteResourcePolicyInput dataclass

Dataclass for DeleteResourcePolicyInput structure.

Attributes

resource_arn class-attribute instance-attribute
resource_arn: str | None = None

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.

revision_id class-attribute instance-attribute
revision_id: str | None = None

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.

Output

DeleteResourcePolicyOutput dataclass

Dataclass for DeleteResourcePolicyOutput structure.