IoT / Paginator / ListPackages


class IoT.Paginator.ListPackages#
paginator = client.get_paginator('list_packages')

Creates an iterator that will paginate through responses from IoT.Client.list_packages().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': '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:



Response Syntax

    'packageSummaries': [
            'packageName': 'string',
            'defaultVersionName': 'string',
            'creationDate': datetime(2015, 1, 1),
            'lastModifiedDate': datetime(2015, 1, 1)
    'NextToken': 'string'

Response Structure

  • (dict) –

    • packageSummaries (list) –

      The software package summary.

      • (dict) –

        A summary of information about a software package.

        • packageName (string) –

          The name for the target package.

        • defaultVersionName (string) –

          The name of the default package version.

        • creationDate (datetime) –

          The date that the package was created.

        • lastModifiedDate (datetime) –

          The date that the package was last updated.

    • NextToken (string) –

      A token to resume pagination.