v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1466347371.7 KB

Revokes function-use permission from an Amazon Web Service or another Amazon Web Services account. You can get the ID of the statement from the output of <a>GetPolicy</a>.

delete/2015-03-31/functions/{FunctionName}/policy/{StatementId}

Path parameters

FunctionNamestring required
<p>The name of the Lambda function, version, or alias.</p> <p class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> – <code>my-function</code> (name-only), <code>my-function:v1</code> (with alias).</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>You can append a version number or alias to any of the formats. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
StatementIdstring required

Statement ID of the permission to remove.

Query parameters

Qualifierstring

Specify a version or alias to remove permissions from a published version of the function.

RevisionIdstring

Update the policy only if the revision ID matches the ID that's specified. Use this option to avoid modifying a policy that has changed since you last read it.

Response

Success