remove_layer_version_permission(**kwargs)¶Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
See also: AWS API Documentation
Request Syntax
response = client.remove_layer_version_permission(
    LayerName='string',
    VersionNumber=123,
    StatementId='string',
    RevisionId='string'
)
[REQUIRED]
The name or Amazon Resource Name (ARN) of the layer.
[REQUIRED]
The version number.
[REQUIRED]
The identifier that was specified when the statement was added.
None
Exceptions
Lambda.Client.exceptions.ServiceExceptionLambda.Client.exceptions.ResourceNotFoundExceptionLambda.Client.exceptions.InvalidParameterValueExceptionLambda.Client.exceptions.TooManyRequestsExceptionLambda.Client.exceptions.PreconditionFailedExceptionExamples
The following example deletes permission for an account to configure a layer version.
response = client.remove_layer_version_permission(
    LayerName='my-layer',
    StatementId='xaccount',
    VersionNumber=1,
)
print(response)
Expected Output:
{
    'ResponseMetadata': {
        '...': '...',
    },
}