CmdID / aws / aws lambda
aws lambda put-resource-policy
Adds a resource-based policy to a Lambda resource. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--policyThe policy document you want to add to your Lambda resource.--resource-arnThe Amazon Resource Name (ARN) of the Lambda resource you want to add the policy to.--revision-idThe revision ID that the existing policy must match for the replacement to proceed.