Lambda / Client / get_layer_version_policy

get_layer_version_policy#

Lambda.Client.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
)
Parameters:
  • LayerName (string) –

    [REQUIRED]

    The name or Amazon Resource Name (ARN) of the layer.

  • VersionNumber (integer) –

    [REQUIRED]

    The version number.

Return type:

dict

Returns:

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