Skip to content

/AWS1/CL_LMD=>REMOVELAYERVERSIONPERMISSION()

About RemoveLayerVersionPermission

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

Method Signature

IMPORTING

Required arguments:

iv_layername TYPE /AWS1/LMDLAYERNAME /AWS1/LMDLAYERNAME

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

iv_versionnumber TYPE /AWS1/LMDLAYERVERSIONNUMBER /AWS1/LMDLAYERVERSIONNUMBER

The version number.

iv_statementid TYPE /AWS1/LMDSTATEMENTID /AWS1/LMDSTATEMENTID

The identifier that was specified when the statement was added.

Optional arguments:

iv_revisionid TYPE /AWS1/LMDSTRING /AWS1/LMDSTRING

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.

Examples

Syntax Example

This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.

lo_client->/aws1/if_lmd~removelayerversionpermission(
  iv_layername = |string|
  iv_revisionid = |string|
  iv_statementid = |string|
  iv_versionnumber = 123
).

To delete layer-version permissions

The following example deletes permission for an account to configure a layer version.

lo_client->/aws1/if_lmd~removelayerversionpermission(
  iv_layername = |my-layer|
  iv_statementid = |xaccount|
  iv_versionnumber = 1
).