Skip to content

/AWS1/CL_LMD=>GETPOLICY()

About GetPolicy

Returns the resource-based IAM policy for a function, version, or alias.

Method Signature

IMPORTING

Required arguments:

IV_FUNCTIONNAME TYPE /AWS1/LMDNAMESPACEDFUNCNAME /AWS1/LMDNAMESPACEDFUNCNAME

The name or ARN of the Lambda function, version, or alias.

Name formats

  • Function namemy-function (name-only), my-function:v1 (with alias).

  • Function ARNarn:aws:lambda:us-west-2:123456789012:function:my-function.

  • Partial ARN123456789012:function:my-function.

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.

Optional arguments:

IV_QUALIFIER TYPE /AWS1/LMDQUALIFIER /AWS1/LMDQUALIFIER

Specify a version or alias to get the policy for that resource.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_LMDGETPOLICYRESPONSE /AWS1/CL_LMDGETPOLICYRESPONSE