Lambda / Paginator / ListLayers


class Lambda.Paginator.ListLayers#
paginator = client.get_paginator('list_layers')

Creates an iterator that will paginate through responses from Lambda.Client.list_layers().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
  • CompatibleRuntime (string) –

    A runtime identifier. For example, java21.

    The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

  • CompatibleArchitecture (string) – The compatible instruction set architecture.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:



Response Syntax

    'Layers': [
            'LayerName': 'string',
            'LayerArn': 'string',
            'LatestMatchingVersion': {
                'LayerVersionArn': 'string',
                'Version': 123,
                'Description': 'string',
                'CreatedDate': 'string',
                'CompatibleRuntimes': [
                'LicenseInfo': 'string',
                'CompatibleArchitectures': [
    'NextToken': 'string'

Response Structure

  • (dict) –

    • Layers (list) –

      A list of function layers.

      • (dict) –

        Details about an Lambda layer.

        • LayerName (string) –

          The name of the layer.

        • LayerArn (string) –

          The Amazon Resource Name (ARN) of the function layer.

        • LatestMatchingVersion (dict) –

          The newest version of the layer.

          • LayerVersionArn (string) –

            The ARN of the layer version.

          • Version (integer) –

            The version number.

          • Description (string) –

            The description of the version.

          • CreatedDate (string) –

            The date that the version was created, in ISO 8601 format. For example, 2018-11-27T15:10:45.123+0000.

          • CompatibleRuntimes (list) –

            The layer’s compatible runtimes.

            The following list includes deprecated runtimes. For more information, see Runtime deprecation policy.

            • (string) –

          • LicenseInfo (string) –

            The layer’s open-source license.

          • CompatibleArchitectures (list) –

            A list of compatible instruction set architectures.

            • (string) –

    • NextToken (string) –

      A token to resume pagination.