get_layer_version_policy
(**kwargs)¶Returns the permission policy for a version of an Lambda layer. For more information, see AddLayerVersionPermission.
See also: AWS API Documentation
Request Syntax
response = client.get_layer_version_policy(
LayerName='string',
VersionNumber=123
)
[REQUIRED]
The name or Amazon Resource Name (ARN) of the layer.
[REQUIRED]
The version number.
dict
Response Syntax
{
'Policy': 'string',
'RevisionId': 'string'
}
Response Structure
(dict) --
Policy (string) --
The policy document.
RevisionId (string) --
A unique identifier for the current revision of the policy.
Exceptions
Lambda.Client.exceptions.ServiceException
Lambda.Client.exceptions.ResourceNotFoundException
Lambda.Client.exceptions.TooManyRequestsException
Lambda.Client.exceptions.InvalidParameterValueException