IoT / Client / list_package_versions

list_package_versions#

IoT.Client.list_package_versions(**kwargs)#

Lists the software package versions associated to the account.

Requires permission to access the ListPackageVersions action.

See also: AWS API Documentation

Request Syntax

response = client.list_package_versions(
    packageName='string',
    status='DRAFT'|'PUBLISHED'|'DEPRECATED',
    maxResults=123,
    nextToken='string'
)
Parameters:
  • packageName (string) –

    [REQUIRED]

    The name of the target software package.

  • status (string) – The status of the package version. For more information, see Package version lifecycle.

  • maxResults (integer) – The maximum number of results to return at one time.

  • nextToken (string) – The token for the next set of results.

Return type:

dict

Returns:

Response Syntax

{
    'packageVersionSummaries': [
        {
            'packageName': 'string',
            'versionName': 'string',
            'status': 'DRAFT'|'PUBLISHED'|'DEPRECATED',
            'creationDate': datetime(2015, 1, 1),
            'lastModifiedDate': datetime(2015, 1, 1)
        },
    ],
    'nextToken': 'string'
}

Response Structure

  • (dict) –

    • packageVersionSummaries (list) –

      Lists the package versions associated to the package.

      • (dict) –

        A summary of information about a package version.

        • packageName (string) –

          The name of the associated software package.

        • versionName (string) –

          The name of the target package version.

        • status (string) –

          The status of the package version. For more information, see Package version lifecycle.

        • creationDate (datetime) –

          The date that the package version was created.

        • lastModifiedDate (datetime) –

          The date that the package version was last updated.

    • nextToken (string) –

      The token for the next set of results.

Exceptions