remove_permission - Boto3 1.38.13 documentation (original) (raw)

Back to top

Toggle table of contents sidebar

Lambda / Client / remove_permission

Lambda.Client.remove_permission(**kwargs)

Revokes function-use permission from an Amazon Web Services service or another Amazon Web Services account. You can get the ID of the statement from the output of GetPolicy.

See also: AWS API Documentation

Request Syntax

response = client.remove_permission( FunctionName='string', StatementId='string', Qualifier='string', RevisionId='string' )

Parameters:

Name formats

Returns:

None

Exceptions

Examples

The following example removes a permissions statement named xaccount from the PROD alias of a function named my-function.

response = client.remove_permission( FunctionName='my-function', Qualifier='PROD', StatementId='xaccount', )

print(response)

Expected Output:

{ 'ResponseMetadata': { '...': '...', }, }