DevOpsAgentService / Paginator / ListAssets

ListAssets

class DevOpsAgentService.Paginator.ListAssets
paginator = client.get_paginator('list_assets')
paginate(**kwargs)

Creates an iterator that will paginate through responses from DevOpsAgentService.Client.list_assets().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    agentSpaceId='string',
    assetType='string',
    updatedAfter=datetime(2015, 1, 1),
    updatedBefore=datetime(2015, 1, 1),
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • agentSpaceId (string) –

    [REQUIRED]

    The unique identifier for the agent space to list assets from

  • assetType (string) – Filter results to only assets of this type

  • updatedAfter (datetime) – Filter results to only assets updated after this timestamp

  • updatedBefore (datetime) – Filter results to only assets updated before this timestamp

  • 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

{
    'items': [
        {
            'assetId': 'string',
            'assetType': 'string',
            'metadata': {...}|[...]|123|123.4|'string'|True|None,
            'version': 123,
            'createdAt': datetime(2015, 1, 1),
            'updatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    Response structure for listing assets

    • items (list) –

      The list of assets for the agent space

      • (dict) –

        Represents an asset in an agent space, including its identifier, type, metadata, version, and timestamps.

        • assetId (string) –

          The unique identifier for this asset

        • assetType (string) –

          The type of this asset

        • metadata (document) –

          The metadata for this asset

        • version (integer) –

          The version number of this asset

        • createdAt (datetime) –

          Timestamp when this asset was created

        • updatedAt (datetime) –

          Timestamp when this asset was last updated

    • NextToken (string) –

      A token to resume pagination.