Skip to content

Retrieves the resource-based policy attached to a Lambda resource

Description

Retrieves the resource-based policy attached to a Lambda resource.

Usage

lambda_get_resource_policy(ResourceArn)

Arguments

  • ResourceArn

[required] The Amazon Resource Name (ARN) of the Lambda resource you want to retrieve the policy for. You can use a qualified or an unqualified ARN. The value must be a complete ARN, and the operation does not accept wildcard characters.

Value

A list with the following syntax:

list(
  Policy = "string",
  RevisionId = "string"
)

Request syntax

svc$get_resource_policy(
  ResourceArn = "string"
)