Adds permissions to the resource-based policy of a version of an Lambda layer. Use this action to grant layer usage permission to other accounts. You can grant permission to a single account, all accounts in an organization, or all Amazon Web Services accounts.
To revoke permission, call RemoveLayerVersionPermission with the statement ID that you specified when you added it.
post/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy
Path parameters
LayerNamestring required
The name or Amazon Resource Name (ARN) of the layer.
VersionNumberinteger required
The version number.
Query parameters
RevisionIdstring
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.
Request body
Response
Success