Skip to content

Removes a statement from the permissions policy for a version of an Lambda layer

Description

Removes a statement from the permissions policy for a version of an Lambda layer. For more information, see add_layer_version_permission.

Usage

lambda_remove_layer_version_permission(LayerName, VersionNumber,
  StatementId, RevisionId)

Arguments

  • LayerName

    [required] The name or Amazon Resource Name (ARN) of the layer.

  • VersionNumber

    [required] The version number.

  • StatementId

    [required] The identifier that was specified when the statement was added.

  • RevisionId

    Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

Value

An empty list.

Request syntax

svc$remove_layer_version_permission(
  LayerName = "string",
  VersionNumber = 123,
  StatementId = "string",
  RevisionId = "string"
)

Examples

# The following example deletes permission for an account to configure a
# layer version.
svc$remove_layer_version_permission(
  LayerName = "my-layer",
  StatementId = "xaccount",
  VersionNumber = 1L
)