LambdaWeb / Paginator / ListWebFunctionRevisions

ListWebFunctionRevisions

class LambdaWeb.Paginator.ListWebFunctionRevisions
paginator = client.get_paginator('list_web_function_revisions')
paginate(**kwargs)

Creates an iterator that will paginate through responses from LambdaWeb.Client.list_web_function_revisions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    functionName='string',
    filters=[
        {
            'name': 'string',
            'values': [
                'string',
            ]
        },
    ],
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • functionName (string) –

    [REQUIRED]

    The web function.

    You can specify either of the following:

    • The function name, for example my-function.

    • The function ARN.

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

  • filters (list) –

    A list of filters to apply to the results. The only supported filter name is state. If you don’t specify a filter, the operation returns all revisions for the web function.

    • (dict) –

      A filter to apply when listing resources.

      • name (string) – [REQUIRED]

        The name of the filter field.

      • values (list) – [REQUIRED]

        The values to match for the filter.

        • (string) –

  • 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:

dict

Returns:

Response Syntax

{
    'revisions': [
        {
            'revisionArn': 'string',
            'revisionId': 'string',
            'description': 'string',
            'state': 'Pending'|'Active'|'Failed',
            'stateReason': 'string',
            'createdAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    Contains the list of web function revisions.

    • revisions (list) –

      A list of revision summaries for the web function.

      • (dict) –

        A summary of a web function revision.

        • revisionArn (string) –

          The Amazon Resource Name (ARN) of the revision.

        • revisionId (string) –

          The identifier of the revision.

        • description (string) –

          A description of the revision.

        • state (string) –

          The current state of the revision.

        • stateReason (string) –

          The reason for the current state of the revision.

        • createdAt (datetime) –

          The date and time the revision was created.

    • NextToken (string) –

      A token to resume pagination.